]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/computation/cpds.ma
partial commit: just the components before "static" ...
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / computation / cpds.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/notation/relations/dpredstar_5.ma".
16 include "basic_2/unfold/sstas.ma".
17 include "basic_2/computation/cprs.ma".
18
19 (* DECOMPOSED EXTENDED PARALLEL COMPUTATION ON TERMS ************************)
20
21 definition cpds: ∀h. sd h → lenv → relation term ≝ λh,g,L,T1,T2.
22                  ∃∃T. ⦃G, L⦄ ⊢ T1 •*[h, g] T & ⦃G, L⦄ ⊢ T ➡* T2.
23
24 interpretation "decomposed extended parallel computation (term)"
25    'DPRedStar h g L T1 T2 = (cpds h g L T1 T2).
26
27 (* Basic properties *********************************************************)
28
29 lemma cpds_refl: ∀h,g,L. reflexive … (cpds h g L).
30 /2 width=3/ qed.
31
32 lemma sstas_cpds: ∀h,g,L,T1,T2. ⦃G, L⦄ ⊢ T1 •*[h, g] T2 → ⦃G, L⦄ ⊢ T1 •*➡*[h, g] T2.
33 /2 width=3/ qed.
34
35 lemma cprs_cpds: ∀h,g,L,T1,T2.  ⦃G, L⦄ ⊢ T1 ➡* T2 → ⦃G, L⦄ ⊢ T1 •*➡*[h, g] T2.
36 /2 width=3/ qed.
37
38 lemma cpds_strap1: ∀h,g,L,T1,T,T2.
39                    ⦃G, L⦄ ⊢ T1 •*➡*[h, g] T → ⦃G, L⦄ ⊢ T ➡ T2 → ⦃G, L⦄ ⊢ T1 •*➡*[h, g] T2.
40 #h #g #L #T1 #T #T2 * /3 width=5/
41 qed.
42
43 lemma cpds_strap2: ∀h,g,L,T1,T,T2,l.
44                    ⦃G, L⦄ ⊢ T1 •[h, g] ⦃l+1, T⦄ → ⦃G, L⦄ ⊢ T •*➡*[h, g] T2 → ⦃G, L⦄ ⊢ T1 •*➡*[h, g] T2.
45 #h #g #L #T1 #T #T2 #l #HT1 * /3 width=4/
46 qed.
47
48 lemma ssta_cprs_cpds: ∀h,g,L,T1,T,T2,l. ⦃G, L⦄ ⊢ T1 •[h, g] ⦃l+1, T⦄ →
49                       ⦃G, L⦄ ⊢ T ➡* T2 → ⦃G, L⦄ ⊢ T1 •*➡*[h, g] T2.
50 /3 width=3/ qed.