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 "ground_2/lib/ltc.ma".
16 include "basic_2/notation/relations/predstar_6.ma".
17 include "basic_2/notation/relations/predstar_5.ma".
18 include "basic_2/rt_transition/cpm.ma".
20 (* T-BOUND CONTEXT-SENSITIVE PARALLEL RT-COMPUTATION FOR TERMS **************)
22 (* Basic_2A1: uses: scpds *)
23 definition cpms (h) (G) (L): relation3 nat term term ≝
24 ltc … plus … (cpm h G L).
27 "t-bound context-sensitive parallel rt-computarion (term)"
28 'PRedStar n h G L T1 T2 = (cpms h G L n T1 T2).
31 "context-sensitive parallel r-computation (term)"
32 'PRedStar h G L T1 T2 = (cpms h G L O T1 T2).
34 (* Basic properties *********************************************************)
36 lemma cpm_cpms (h) (G) (L): ∀n,T1,T2. ⦃G, L⦄ ⊢ T1 ➡[n, h] T2 → ⦃G, L⦄ ⊢ T1 ➡*[n, h] T2.
37 /2 width=1 by ltc_rc/ qed.
39 lemma cpms_step_sn (h) (G) (L): ∀n1,T1,T. ⦃G, L⦄ ⊢ T1 ➡[n1, h] T →
40 ∀n2,T2. ⦃G, L⦄ ⊢ T ➡*[n2, h] T2 → ⦃G, L⦄ ⊢ T1 ➡*[n1+n2, h] T2.
41 /2 width=3 by ltc_sn/ qed-.
43 lemma cpms_step_dx (h) (G) (L): ∀n1,T1,T. ⦃G, L⦄ ⊢ T1 ➡*[n1, h] T →
44 ∀n2,T2. ⦃G, L⦄ ⊢ T ➡[n2, h] T2 → ⦃G, L⦄ ⊢ T1 ➡*[n1+n2, h] T2.
45 /2 width=3 by ltc_dx/ qed-.
47 (* Basic properties with r-transition ***************************************)
49 lemma cprs_refl: ∀h,G,L. reflexive … (cpms h G L 0).
50 /2 width=1 by cpm_cpms/ qed.
52 (* Basic eliminators ********************************************************)
54 lemma cpms_ind_sn (h) (G) (L) (T2) (Q:relation2 …):
56 (∀n1,n2,T1,T. ⦃G, L⦄ ⊢ T1 ➡[n1, h] T → ⦃G, L⦄ ⊢ T ➡*[n2, h] T2 → Q n2 T → Q (n1+n2) T1) →
57 ∀n,T1. ⦃G, L⦄ ⊢ T1 ➡*[n, h] T2 → Q n T1.
58 #h #G #L #T2 #R @ltc_ind_sn_refl //
61 lemma cpms_ind_dx (h) (G) (L) (T1) (Q:relation2 …):
63 (∀n1,n2,T,T2. ⦃G, L⦄ ⊢ T1 ➡*[n1, h] T → Q n1 T → ⦃G, L⦄ ⊢ T ➡[n2, h] T2 → Q (n1+n2) T2) →
64 ∀n,T2. ⦃G, L⦄ ⊢ T1 ➡*[n, h] T2 → Q n T2.
65 #h #G #L #T1 #R @ltc_ind_dx_refl //
68 (* Basic_2A1: removed theorems 4:
69 sta_cprs_scpds lstas_scpds scpds_strap1 scpds_fwd_cprs