X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fbasic_2%2Fcomputation%2Fcpre.ma;h=61dadbcde18b780956d815281057b3193e28f379;hb=f725a35c9014595293cfe43081ef11b059d5e3a7;hp=1a67e2b4622cf1fe6e7ff27ca53fc58c49621f77;hpb=f62eeb3c7824564ccbe4fff6e75ddee46ca39cc0;p=helm.git diff --git a/matita/matita/contribs/lambdadelta/basic_2/computation/cpre.ma b/matita/matita/contribs/lambdadelta/basic_2/computation/cpre.ma index 1a67e2b46..61dadbcde 100644 --- a/matita/matita/contribs/lambdadelta/basic_2/computation/cpre.ma +++ b/matita/matita/contribs/lambdadelta/basic_2/computation/cpre.ma @@ -12,26 +12,25 @@ (* *) (**************************************************************************) +include "basic_2/notation/relations/peval_4.ma". include "basic_2/computation/cprs.ma". -include "basic_2/computation/csn.ma". +include "basic_2/computation/csx.ma". (* CONTEXT-SENSITIVE PARALLEL EVALUATION ON TERMS **************************) -definition cpre: lenv → relation term ≝ - λL,T1,T2. L ⊢ T1 ➡* T2 ∧ L ⊢ 𝐍⦃T2⦄. +definition cpre: relation4 genv lenv term term ≝ + λG,L,T1,T2. ⦃G, L⦄ ⊢ T1 ➡* T2 ∧ ⦃G, L⦄ ⊢ 𝐍⦃T2⦄. interpretation "context-sensitive parallel evaluation (term)" - 'PEval L T1 T2 = (cpre L T1 T2). + 'PEval G L T1 T2 = (cpre G L T1 T2). (* Basic_properties *********************************************************) (* Basic_1: was just: nf2_sn3 *) -axiom csn_cpre: ∀h,g,L,T1. ⦃h, L⦄ ⊢ ⬊*[g] T1 → ∃T2. L ⊢ T1 ➡* 𝐍⦃T2⦄. -(* -#h #g #L #T1 #H @(csn_ind … H) -T1 +lemma csx_cpre: ∀h,g,G,L,T1. ⦃G, L⦄ ⊢ ⬊*[h, g] T1 → ∃T2. ⦃G, L⦄ ⊢ T1 ➡* 𝐍⦃T2⦄. +#h #g #G #L #T1 #H @(csx_ind … H) -T1 #T1 #_ #IHT1 -elim (cnr_dec L T1) /3 width=3/ +elim (cnr_dec G L T1) /3 width=3/ * #T #H1T1 #H2T1 elim (IHT1 … H2T1) -IHT1 -H2T1 [2: /2 width=2/ ] #T2 * /4 width=3/ qed. -*)