X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fdynamic%2Fcnv_aaa.ma;h=c63a1aa1209760964af4074632213d6ba11978b8;hb=87f57ddc367303c33e19c83cd8989cd561f3185b;hp=d8981613d1f1abb5f53b91a3c47b322e70689c9d;hpb=dd93a0919b67bead0d4f07d49dfc198006edc9aa;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/dynamic/cnv_aaa.ma b/matita/matita/contribs/lambdadelta/basic_2/dynamic/cnv_aaa.ma index d8981613d..c63a1aa12 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/dynamic/cnv_aaa.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/dynamic/cnv_aaa.ma @@ -12,7 +12,9 @@ (* *) (**************************************************************************) +include "ground_2/lib/arith_2b.ma". include "basic_2/rt_computation/cpms_aaa.ma". +include "basic_2/rt_computation/lprs_cpms.ma". include "basic_2/dynamic/cnv.ma". (* CONTEXT-SENSITIVE NATIVE VALIDITY FOR TERMS ******************************) @@ -56,5 +58,24 @@ lemma cnv_fwd_cpms_total (a) (h) (n) (G) (L): ∀T. ⦃G, L⦄ ⊢ T ![a, h] → ∃U. ⦃G,L⦄ ⊢ T ➡*[n,h] U. #a #h #n #G #L #T #H elim (cnv_fwd_aaa … H) -H #A #HA -/2 width=2 by aaa_cpms_total/ +/2 width=2 by cpms_total_aaa/ +qed-. + +(* Advanced inversion lemmas ************************************************) + +lemma cnv_inv_appl_pred (a) (h) (G) (L): + ∀V,T. ⦃G, L⦄ ⊢ ⓐV.T ![yinj a, h] → + ∃∃p,W0,U0. ⦃G, L⦄ ⊢ V ![a, h] & ⦃G, L⦄ ⊢ T ![a, h] & + ⦃G, L⦄ ⊢ V ➡*[1, h] W0 & ⦃G, L⦄ ⊢ T ➡*[↓a, h] ⓛ{p}W0.U0. +#a #h #G #L #V #T #H +elim (cnv_inv_appl … H) -H #n #p #W #U #Ha #HV #HT #HVW #HTU +lapply (ylt_inv_inj … Ha) -Ha #Ha +elim (cnv_fwd_aaa … HT) #A #HA +elim (cpms_total_aaa h … (a-↑n) … (ⓛ{p}W.U)) +[|*: /2 width=8 by cpms_aaa_conf/ ] -HA #X #HU0 +elim (cpms_inv_abst_sn … HU0) #W0 #U0 #HW0 #_ #H destruct +lapply (cpms_trans … HVW … HW0) -HVW -HW0 #HVW0 +lapply (cpms_trans … HTU … HU0) -HTU -HU0 +>(arith_m2 … Ha) -Ha #HTU0 +/2 width=5 by ex4_3_intro/ qed-.