]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/computation/fpbs_alt.ma
dd982ac3713ddf172be5773b7769185291db97bb
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / computation / fpbs_alt.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/btpredstaralt_8.ma".
16 include "basic_2/computation/lpxs_cpxs.ma".
17 include "basic_2/computation/fpbs_fpbs.ma".
18
19 (* "BIG TREE" PARALLEL COMPUTATION FOR CLOSURES *****************************)
20
21 (* Note: alternative definition of fpbs *)
22 definition fpbsa: ∀h. sd h → tri_relation genv lenv term ≝
23                   λh,g,G1,L1,T1,G2,L2,T2.
24                   ∃∃L,T. ⦃G1, L1⦄ ⊢ T1 ➡*[h, g] T &
25                          ⦃G1, L1, T⦄ ⊃* ⦃G2, L, T2⦄ &
26                          ⦃G2, L⦄ ⊢ ➡*[h, g] L2.
27
28 interpretation "'big tree' parallel computation (closure) alternative"
29    'BTPRedStarAlt h g G1 L1 T1 G2 L2 T2 = (fpbsa h g G1 L1 T1 G2 L2 T2).
30
31 (* Basic properties *********************************************************)
32
33 lemma fpb_fpbsa_trans: ∀h,g,G1,G,L1,L,T1,T. ⦃G1, L1, T1⦄ ≽[h, g] ⦃G, L, T⦄ →
34                        ∀G2,L2,T2. ⦃G, L, T⦄ ≥≥[h, g] ⦃G2, L2, T2⦄ → ⦃G1, L1, T1⦄ ≥≥[h, g] ⦃G2, L2, T2⦄.
35 #h #g #G1 #G #L1 #L #T1 #T * -G -L -T [ #G #L #T #HG1 | #T #HT1 | #L #HL1 ]   
36 #G2 #L2 #T2 * #L0 #T0 #HT0 #HG2 #L2
37 [ elim (fsupq_cpxs_trans … HT0 … HG1) -T
38   /3 width=7 by fsups_trans, ex3_2_intro/
39 | /3 width=5 by cpxs_strap2, ex3_2_intro/
40 | lapply (lpx_cpxs_trans … HT0 … HL1) -HT0 #HT10
41
42
43 (* Main properties **********************************************************)
44
45 theorem fpbs_fpbsa: ∀h,g,G1,G2,L1,L2,T1,T2.
46                     ⦃G1, L1, T1⦄ ≥[h, g] ⦃G2, L2, T2⦄ → ⦃G1, L1, T1⦄ ≥≥[h, g] ⦃G2, L2, T2⦄.
47 #h #g #G1 #G2 #L1 #L2 #T1 #T2 #H @(fpbs_ind_dx … H) -G1 -L1 -T1
48 /2 width=5 by fpb_fpbsa_trans, ex3_2_intro/
49 qed.
50
51 (* Main inversion lemmas ****************************************************)
52
53 theorem fpbsa_inv_fpbs: ∀h,g,G1,G2,L1,L2,T1,T2.
54                         ⦃G1, L1, T1⦄ ≥≥[h, g] ⦃G2, L2, T2⦄ → ⦃G1, L1, T1⦄ ≥[h, g] ⦃G2, L2, T2⦄.
55 #h #g #G1 #G2 #L1 #L2 #T1 #T2 * 
56 /4 width=5 by fpbs_trans, fsups_fpbs, cpxs_fpbs, lpxs_fpbs/
57 qed-.