]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/computation/cpre.ma
1a67e2b4622cf1fe6e7ff27ca53fc58c49621f77
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / computation / cpre.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "basic_2/computation/cprs.ma".
16 include "basic_2/computation/csn.ma".
17
18 (* CONTEXT-SENSITIVE PARALLEL EVALUATION ON TERMS **************************)
19
20 definition cpre: lenv → relation term ≝
21                  λL,T1,T2. L ⊢ T1 ➡* T2 ∧ L ⊢ 𝐍⦃T2⦄.
22
23 interpretation "context-sensitive parallel evaluation (term)"
24    'PEval L T1 T2 = (cpre L T1 T2).
25
26 (* Basic_properties *********************************************************)
27
28 (* Basic_1: was just: nf2_sn3 *)
29 axiom csn_cpre: ∀h,g,L,T1. ⦃h, L⦄ ⊢ ⬊*[g] T1 → ∃T2. L ⊢ T1 ➡* 𝐍⦃T2⦄.
30 (*
31 #h #g #L #T1 #H @(csn_ind … H) -T1
32 #T1 #_ #IHT1
33 elim (cnr_dec L T1) /3 width=3/
34 * #T #H1T1 #H2T1
35 elim (IHT1 … H2T1) -IHT1 -H2T1 [2: /2 width=2/ ] #T2 * /4 width=3/
36 qed.
37 *)