]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/computation/fpbu_fpns.ma
- "big tree" theorem is now proved up to some conjectures involving
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / computation / fpbu_fpns.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/computation/cpxs_lleq.ma".
16 include "basic_2/computation/lpxs_lleq.ma".
17 include "basic_2/computation/lpxs_lpxs.ma".
18 include "basic_2/computation/fpns.ma".
19 include "basic_2/computation/fpbs_alt.ma".
20 include "basic_2/computation/fpbu.ma".
21
22 (* UNITARY "BIG TREE" PROPER PARALLEL COMPUTATION FOR CLOSURES **************)
23
24 (* Properties on parallel computation for "big tree" normal forms ***********)
25
26 lemma fpns_fpbu_trans: ∀h,g,F1,F2,K1,K2,T1,T2. ⦃F1, K1, T1⦄ ⊢ ⋕➡*[h, g] ⦃F2, K2, T2⦄ →
27                        ∀G2,L2,U2. ⦃F2, K2, T2⦄ ≻[h, g] ⦃G2, L2, U2⦄ →
28                        ∃∃G1,L1,U1. ⦃F1, K1, T1⦄ ≻[h, g] ⦃G1, L1, U1⦄ & ⦃G1, L1, U1⦄ ⊢ ⋕➡*[h, g] ⦃G2, L2, U2⦄.
29 #h #g #F1 #F2 #K1 #K2 #T1 #T2 * -F2 -K2 -T2
30 #K2 #HK12 #HT1 #G2 #L2 #U2 * -G2 -L2 -U2
31 [ #G2 #L2 #U2 #H12 elim (lpxs_lleq_fqup_trans … H12 … HK12 HT1) -K2
32   /3 width=5 by fpbu_fqup, fpns_intro, ex2_3_intro/
33 | /4 width=9 by fpbu_cpxs, fpns_intro, lpxs_cpxs_trans, lleq_cpxs_conf_dx, ex2_3_intro/
34 | /5 width=5 by fpbu_lpxs, lpxs_trans, lleq_canc_sn, ex2_3_intro/
35 ]
36 qed-.
37
38 lemma fpb_fpbu: ∀h,g,G1,G2,L1,L2,T1,T2. ⦃G1, L1, T1⦄ ≽[h, g] ⦃G2, L2, T2⦄ →
39                 ⦃G1, L1, T1⦄ ⊢ ⋕➡*[h, g] ⦃G2, L2, T2⦄ ∨
40                 ⦃G1, L1, T1⦄ ≻[h, g] ⦃G2, L2, T2⦄.
41 #h #g #G1 #G2 #L1 #L2 #T1 #T2 * -G2 -L2 -T2
42 [ #G2 #L2 #T2 #H elim (fquq_inv_gen … H) -H
43   [ /4 width=1 by fpbu_fqup, fqu_fqup, or_intror/
44   | * #H1 #H2 #H3 destruct /2 width=1 by or_introl/
45   ]
46 | #T2 #HT12 elim (eq_term_dec T1 T2)
47   #HnT12 destruct /4 width=1 by fpbu_cpxs, cpx_cpxs, or_intror, or_introl/
48 | #L2 #HL12 elim (lleq_dec … T1 L1 L2 0)
49   /4 width=3 by fpbu_lpxs, fpns_intro, lpx_lpxs, or_intror, or_introl/
50 ]
51 qed-.
52
53 lemma fpbs_fpbu_sn: ∀h,g,G1,G2,L1,L2,T1,T2. ⦃G1, L1, T1⦄ ≥[h, g] ⦃G2, L2, T2⦄ →
54                     ⦃G1, L1, T1⦄ ⊢ ⋕➡*[h, g] ⦃G2, L2, T2⦄ ∨
55                     ∃∃G,L,T. ⦃G1, L1, T1⦄ ≻[h, g] ⦃G, L, T⦄ & ⦃G, L, T⦄ ≥[h, g] ⦃G2, L2, T2⦄.
56 (* ALTERNATIVE PROOF
57 #h #g #G1 #G2 #L1 #L2 #T1 #T2 #H @(fpbs_ind_dx … H) -G1 -L1 -T1
58 [ /2 width=1 by or_introl/
59 | #G1 #G #L1 #L #T1 #T #H1 #_ * [ #H2 | * #G0 #L0 #T0 #H0 #H02 ]
60   elim (fpb_fpbu … H1) -H1 #H1
61   [ /3 width=1 by  
62 *)
63 #h #g #G1 #G2 #L1 #L2 #T1 #T2 #H elim(fpbs_fpbsa … H) -H
64 #L #T #HT1 #HT2 #HL2 elim (eq_term_dec T1 T) #H destruct
65 [ -HT1 elim (fqus_inv_gen … HT2) -HT2
66   [ #HT2 @or_intror
67     /5 width=9 by fpbsa_inv_fpbs, fpbu_fqup, ex3_2_intro, ex2_3_intro, or_intror/
68   | * #HG #HL #HT destruct elim (lleq_dec T2 L L2 0) #H
69     [ /3 width=1 by fpns_intro, or_introl/
70     | /5 width=5 by fpbu_lpxs, ex2_3_intro, or_intror/
71     ]
72   ]
73 | elim (cpxs_neq_inv_step_sn … HT1 H) -HT1 -H
74   /5 width=9 by fpbsa_inv_fpbs, fpbu_cpxs, cpx_cpxs, ex3_2_intro, ex2_3_intro, or_intror/
75 ]
76 qed-.