1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "basic_2/computation/cprs.ma".
16 include "basic_2/computation/csn.ma".
18 (* CONTEXT-SENSITIVE PARALLEL EVALUATION ON TERMS **************************)
20 definition cpe: lenv → relation term ≝
21 λL,T1,T2. L ⊢ T1 ➡* T2 ∧ L ⊢ 𝐍⦃T2⦄.
23 interpretation "context-sensitive parallel evaluation (term)"
24 'PEval L T1 T2 = (cpe L T1 T2).
26 (* Basic_properties *********************************************************)
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
32 elim (cnf_dec L T1) /3 width=3/
34 elim (IHT1 … H1T1 H2T1) -IHT1 -H2T1 #T2 * /4 width=3/