From: Claudio Sacerdoti Coen Date: Mon, 21 Nov 2005 18:16:59 +0000 (+0000) Subject: Lost of redundant typing hints removed from the functional induction term. X-Git-Tag: V_0_7_2_3~12 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=6f674b1765ae081b1af8346691eb5434ad38a635;p=helm.git Lost of redundant typing hints removed from the functional induction term. --- diff --git a/helm/matita/library/list/sort.ma b/helm/matita/library/list/sort.ma index 2716235d0..455462d8d 100644 --- a/helm/matita/library/list/sort.ma +++ b/helm/matita/library/list/sort.ma @@ -48,26 +48,6 @@ let rec insert (A:Set) (le: A → A → bool) x (l: list A) on l ≝ | false ⇒ he::(insert A le x l') ] ]. -(* -theorem insert_ind: - ∀A:Set. ∀le: A → A → bool. ∀x:A. - ∀P: list A → Prop. - ∀l:list A. P (insert A le x l). - intros (A le x P H l). - apply ( - let rec insert_ind (l: list A) ≝ - match l in list return λl.P (insert A le x l) with - [ nil ⇒ (? : P [x]) - | (cons he l') ⇒ - match le x he return λb.P (match b with [ true ⇒ x::he::l' | false ⇒ he::(insert A le x l') ]) with - [ true ⇒ (H2 : P (x::he::l')) - | false ⇒ (? : P (he::(insert A le x l'))) - ] - ] - in - insert_ind l). -qed. -*) let rec insertionsort (A:Set) (le: A → A → bool) (l: list A) on l ≝ match l with @@ -125,7 +105,7 @@ lemma insert_sorted: l = li → ordered ? le li = true → ordered ? le (insert A le x li) = true with - [ nil ⇒ (? : l = [] → ordered ? le [] = true → ordered ? le [x] = true) + [ nil ⇒ ? | (cons he l') ⇒ match le x he return @@ -135,18 +115,8 @@ lemma insert_sorted: [ true ⇒ x::he::l' | false ⇒ he::(insert A le x l') ]) = true with - [ true ⇒ - (? : - le x he = true → - l = he::l' → - ordered ? le (he::l') = true → - ordered ? le (x::he::l') = true) - | false ⇒ - let res ≝ insert_ind l' in - (? : - le x he = false → l = he::l' → - ordered ? le (he::l') = true → - ordered ? le (he::(insert ? le x l')) = true) + [ true ⇒ ? + | false ⇒ let res ≝ insert_ind l' in ? ] (refl_eq ? (le x he)) ] (refl_eq ? l) in insert_ind l);