X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fetc%2Fcpt%2Fcpt.etc;fp=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fetc%2Fcpt%2Fcpt.etc;h=e9e1cd8e9ecaf1eb132082c50b13e6bbd196a666;hb=600fba840c748f67593838673a6eb40eab9b68e5;hp=0000000000000000000000000000000000000000;hpb=b4f76b0d8fa0e5365fb48e91474febe200b647a7;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/etc/cpt/cpt.etc b/matita/matita/contribs/lambdadelta/basic_2/etc/cpt/cpt.etc new file mode 100644 index 000000000..e9e1cd8e9 --- /dev/null +++ b/matita/matita/contribs/lambdadelta/basic_2/etc/cpt/cpt.etc @@ -0,0 +1,54 @@ +(* Advanced inversion lemmas ************************************************) + +lemma cpt_inv_sort_sn (h) (n) (G) (L) (s): + ∀X2. ⦃G,L⦄ ⊢ ⋆s ⬆[h,n] X2 → + ∨∨ ∧∧ X2 = ⋆s & n = 0 + | ∧∧ X2 = ⋆(⫯[h]s) & n =1. +#h #n #G #L #s #X2 * #c #Hc #H +elim (cpg_inv_sort1 … H) -H * #H1 #H2 destruct +/3 width=1 by or_introl, or_intror, conj/ +qed-. + +lemma cpt_inv_zero_sn (h) (n) (G) (L): + ∀X2. ⦃G,L⦄ ⊢ #0 ⬆[h,n] X2 → + ∨∨ ∧∧ X2 = #0 & n = 0 + | ∃∃K,V1,V2. ⦃G,K⦄ ⊢ V1 ⬆[h,n] V2 & ⇧*[1] V2 ≘ X2 & L = K.ⓓV1 + | ∃∃m,K,V1,V2. ⦃G,K⦄ ⊢ V1 ⬆[h,m] V2 & ⇧*[1] V2 ≘ X2 & L = K.ⓛV1 & n = ↑m. +#h #n #G #L #X2 * #c #Hc #H +elim (cpg_inv_zero1 … H) -H * +[ #H1 #H2 destruct /3 width=1 by or3_intro0, conj/ +| #cV #K #V1 #V2 #HV12 #HVT2 #H1 #H2 destruct + /4 width=8 by or3_intro1, ex3_3_intro, ex2_intro/ +| #cV #K #V1 #V2 #HV12 #HVT2 #H1 #H2 destruct + elim (ist_inv_plus_SO_dx … H2) -H2 [| // ] #m #Hc #H destruct + /4 width=8 by or3_intro2, ex4_4_intro, ex2_intro/ +] +qed-. + +lemma cpt_inv_lref_sn (h) (n) (G) (L) (i): + ∀X2. ⦃G,L⦄ ⊢ #↑i ⬆[h,n] X2 → + ∨∨ ∧∧ X2 = #(↑i) & n = 0 + | ∃∃I,K,T. ⦃G,K⦄ ⊢ #i ⬆[h,n] T & ⇧*[1] T ≘ X2 & L = K.ⓘ{I}. +#h #n #G #L #i #X2 * #c #Hc #H +elim (cpg_inv_lref1 … H) -H * +[ #H1 #H2 destruct /3 width=1 by or_introl, conj/ +| #I #K #V2 #HV2 #HVT2 #H destruct + /4 width=6 by ex3_3_intro, ex2_intro, or_intror/ +] +qed-. + +lemma cpt_inv_gref_sn (h) (n) (G) (L) (l): + ∀X2. ⦃G,L⦄ ⊢ §l ⬆[h,n] X2 → ∧∧ X2 = §l & n = 0. +#h #n #G #L #l #X2 * #c #Hc #H +elim (cpg_inv_gref1 … H) -H #H1 #H2 destruct +/2 width=1 by conj/ +qed-. + + +lemma cpt_inv_sort_sn_iter (h) (n) (G) (L) (s): + ∀X2. ⦃G,L⦄ ⊢ ⋆s ⬆[h,n] X2 → + ∧∧ X2 = ⋆(((next h)^n) s) & n ≤ 1. +#h #n #G #L #s #X2 #H +elim (cpt_inv_sort_sn … H) -H * #H1 #H2 destruct +/2 width=1 by conj/ +qed-.