X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fs_computation%2Ffqus.ma;h=d62a80894f755dc495bccf7e4e9f9e3c9ed3ee95;hb=325bc2fb36e8f8db99a152037d71332c9ac7eff9;hp=851ac510848688caa32b2bedf2151310ac11a01c;hpb=075441b55fa8a6fa693a1c96ed60ab4d87c42a2d;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/s_computation/fqus.ma b/matita/matita/contribs/lambdadelta/basic_2/s_computation/fqus.ma index 851ac5108..d62a80894 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/s_computation/fqus.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/s_computation/fqus.ma @@ -54,4 +54,66 @@ lemma fqus_strap2: ∀G1,G,G2,L1,L,L2,T1,T,T2. ⦃G1, L1, T1⦄ ⊐⸮ ⦃G, L, ⦃G1, L1, T1⦄ ⊐* ⦃G2, L2, T2⦄. /2 width=5 by tri_TC_strap/ qed-. +(* Basic inversion lemmas ***************************************************) + +lemma fqus_inv_fqu_sn: ∀G1,G2,L1,L2,T1,T2. ⦃G1, L1, T1⦄ ⊐* ⦃G2, L2, T2⦄ → + (∧∧ G1 = G2 & L1 = L2 & T1 = T2) ∨ + ∃∃G,L,T. ⦃G1, L1, T1⦄ ⊐ ⦃G, L, T⦄ & ⦃G, L, T⦄ ⊐* ⦃G2, L2, T2⦄. +#G1 #G2 #L1 #L2 #T1 #T2 #H12 @(fqus_ind_dx … H12) -G1 -L1 -T1 /3 width=1 by and3_intro, or_introl/ +#G1 #G #L1 #L #T1 #T * /3 width=5 by ex2_3_intro, or_intror/ +* #HG #HL #HT #_ destruct // +qed-. + +lemma fqus_inv_atom1: ∀I,G1,G2,L2,T2. ⦃G1, ⋆, ⓪{I}⦄ ⊐* ⦃G2, L2, T2⦄ → + ∧∧ G1 = G2 & ⋆ = L2 & ⓪{I} = T2. +#I #G1 #G2 #L2 #T2 #H elim (fqus_inv_fqu_sn … H) -H * /2 width=1 by and3_intro/ +#G #L #T #H elim (fqu_inv_atom1 … H) +qed-. + +lemma fqus_inv_sort1: ∀I,G1,G2,L1,L2,V1,T2,s. ⦃G1, L1.ⓑ{I}V1, ⋆s⦄ ⊐* ⦃G2, L2, T2⦄ → + (∧∧ G1 = G2 & L1.ⓑ{I}V1 = L2 & ⋆s = T2) ∨ ⦃G1, L1, ⋆s⦄ ⊐* ⦃G2, L2, T2⦄. +#I #G1 #G2 #L1 #L2 #V #T2 #s #H elim (fqus_inv_fqu_sn … H) -H * /3 width=1 by and3_intro, or_introl/ +#G #L #T #H elim (fqu_inv_sort1 … H) -H +#H1 #H2 #H3 #H destruct /2 width=1 by or_intror/ +qed-. + +lemma fqus_inv_zero1: ∀I,G1,G2,L1,L2,V1,T2. ⦃G1, L1.ⓑ{I}V1, #0⦄ ⊐* ⦃G2, L2, T2⦄ → + (∧∧ G1 = G2 & L1.ⓑ{I}V1 = L2 & #0 = T2) ∨ ⦃G1, L1, V1⦄ ⊐* ⦃G2, L2, T2⦄. +#I #G1 #G2 #L1 #L2 #V1 #T2 #H elim (fqus_inv_fqu_sn … H) -H * /3 width=1 by and3_intro, or_introl/ +#G #L #T #H elim (fqu_inv_zero1 … H) -H +#H1 #H2 #H3 #H destruct /2 width=1 by or_intror/ +qed-. + +lemma fqus_inv_lref1: ∀I,G1,G2,L1,L2,V1,T2,i. ⦃G1, L1.ⓑ{I}V1, #⫯i⦄ ⊐* ⦃G2, L2, T2⦄ → + (∧∧ G1 = G2 & L1.ⓑ{I}V1 = L2 & #(⫯i) = T2) ∨ ⦃G1, L1, #i⦄ ⊐* ⦃G2, L2, T2⦄. +#I #G1 #G2 #L1 #L2 #V #T2 #i #H elim (fqus_inv_fqu_sn … H) -H * /3 width=1 by and3_intro, or_introl/ +#G #L #T #H elim (fqu_inv_lref1 … H) -H +#H1 #H2 #H3 #H destruct /2 width=1 by or_intror/ +qed-. + +lemma fqus_inv_gref1: ∀I,G1,G2,L1,L2,V1,T2,l. ⦃G1, L1.ⓑ{I}V1, §l⦄ ⊐* ⦃G2, L2, T2⦄ → + (∧∧ G1 = G2 & L1.ⓑ{I}V1 = L2 & §l = T2) ∨ ⦃G1, L1, §l⦄ ⊐* ⦃G2, L2, T2⦄. +#I #G1 #G2 #L1 #L2 #V #T2 #l #H elim (fqus_inv_fqu_sn … H) -H * /3 width=1 by and3_intro, or_introl/ +#G #L #T #H elim (fqu_inv_gref1 … H) -H +#H1 #H2 #H3 #H destruct /2 width=1 by or_intror/ +qed-. + +lemma fqus_inv_bind1: ∀p,I,G1,G2,L1,L2,V1,T1,T2. ⦃G1, L1, ⓑ{p,I}V1.T1⦄ ⊐* ⦃G2, L2, T2⦄ → + ∨∨ ∧∧ G1 = G2 & L1 = L2 & ⓑ{p,I}V1.T1 = T2 + | ⦃G1, L1, V1⦄ ⊐* ⦃G2, L2, T2⦄ + | ⦃G1, L1.ⓑ{I}V1, T1⦄ ⊐* ⦃G2, L2, T2⦄. +#p #I #G1 #G2 #L1 #L2 #V1 #T1 #T2 #H elim (fqus_inv_fqu_sn … H) -H * /3 width=1 by and3_intro, or3_intro0/ +#G #L #T #H elim (fqu_inv_bind1 … H) -H * +#H1 #H2 #H3 #H destruct /2 width=1 by or3_intro1, or3_intro2/ +qed-. + +lemma fqus_inv_flat1: ∀I,G1,G2,L1,L2,V1,T1,T2. ⦃G1, L1, ⓕ{I}V1.T1⦄ ⊐* ⦃G2, L2, T2⦄ → + ∨∨ ∧∧ G1 = G2 & L1 = L2 & ⓕ{I}V1.T1 = T2 + | ⦃G1, L1, V1⦄ ⊐* ⦃G2, L2, T2⦄ + | ⦃G1, L1, T1⦄ ⊐* ⦃G2, L2, T2⦄. +#I #G1 #G2 #L1 #L2 #V1 #T1 #T2 #H elim (fqus_inv_fqu_sn … H) -H * /3 width=1 by and3_intro, or3_intro0/ +#G #L #T #H elim (fqu_inv_flat1 … H) -H * +#H1 #H2 #H3 #H destruct /2 width=1 by or3_intro1, or3_intro2/ +qed-. + (* Basic_2A1: removed theorems 1: fqus_drop *)