]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/computation/cpe.ma
- lambda_delta: programmed renaming to lambdadelta
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / computation / cpe.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 cpe: 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 = (cpe L T1 T2).
25
26 (* Basic_properties *********************************************************)
27
28 (* Basic_1: was: nf2_sn3 *)
29 lemma cpe_csn: ∀L,T1. L ⊢ ⬊* T1 → ∃T2. L ⊢ T1 ➡* 𝐍⦃T2⦄.
30 #L #T1 #H @(csn_ind … H) -T1
31 #T1 #_ #IHT1
32 elim (cnf_dec L T1) /3 width=3/
33 * #T #H1T1 #H2T1
34 elim (IHT1 … H1T1 H2T1) -IHT1 -H2T1 #T2 * /4 width=3/
35 qed.