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/reducibility/lcpr.ma".
17 (* CONTEXT-SENSITIVE PARALLEL COMPUTATION ON LOCAL ENVIRONMENTS *************)
19 definition lcprs: relation lenv ≝ TC … lcpr.
22 "context-sensitive parallel computation (environment)"
23 'CPRedStar L1 L2 = (lcprs L1 L2).
25 (* Basic eliminators ********************************************************)
27 lemma lcprs_ind: ∀L1. ∀R:predicate lenv. R L1 →
28 (∀L,L2. L1 ⊢ ➡* L → L ⊢ ➡ L2 → R L → R L2) →
29 ∀L2. L1 ⊢ ➡* L2 → R L2.
30 #L1 #R #HL1 #IHL1 #L2 #HL12
31 @(TC_star_ind … HL1 IHL1 … HL12) //
34 lemma lcprs_ind_dx: ∀L2. ∀R:predicate lenv. R L2 →
35 (∀L1,L. L1 ⊢ ➡ L → L ⊢ ➡* L2 → R L → R L1) →
36 ∀L1. L1 ⊢ ➡* L2 → R L1.
37 #L2 #R #HL2 #IHL2 #L1 #HL12
38 @(TC_star_ind_dx … HL2 IHL2 … HL12) //
41 (* Basic properties *********************************************************)
43 lemma lcprs_refl: ∀L. L ⊢ ➡* L.
46 lemma lcprs_strap1: ∀L1,L,L2.
47 L1 ⊢ ➡* L → L ⊢ ➡ L2 → L1 ⊢ ➡* L2.
50 lemma lcprs_strap2: ∀L1,L,L2.
51 L1 ⊢ ➡ L → L ⊢ ➡* L2 → L1 ⊢ ➡* L2.