]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/rt_transition/cpx_etc.ma
integrating the framework with fle ...
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / rt_transition / cpx_etc.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/static/fle_drops.ma".
16 include "basic_2/static/fle_fqup.ma".
17 include "basic_2/static/fle_fle.ma".
18 include "basic_2/static/lfxs_length.ma".
19 include "basic_2/rt_transition/cpx.ma".
20
21 (* UNCOUNTED CONTEXT-SENSITIVE PARALLEL RT-TRANSITION FOR TERMS *************)
22
23 (* Properties with context-sensitive free variables *************************)
24
25 (* Note: "⦃L2, T1⦄ ⊆ ⦃L0, T1⦄" may not hold *)
26 axiom cpx_lfxs_conf_fle: ∀R. c_reflexive … R →
27                          ∀h,G,L0,T0,T1. ⦃G, L0⦄ ⊢ T0 ⬈[h] T1 →
28                          ∀L2. L0 ⪤*[R, T0] L2 →
29                          ∧∧ ⦃L2, T0⦄ ⊆ ⦃L0, T0⦄ & ⦃L2, T1⦄ ⊆ ⦃L2, T0⦄
30                           & ⦃L0, T1⦄ ⊆ ⦃L0, T0⦄.
31 (*
32 #R #HR #h #G #L0 #T0 @(fqup_wf_ind_eq (Ⓕ) … G L0 T0) -G -L0 -T0
33 #G #L #T #IH #G0 #L0 * *
34 [ #s #HG #HL #HT #X #HX #Y #HY destruct -IH
35   lapply (lfxs_fwd_length … HY) -HY #H0
36   elim (cpx_inv_sort1 … HX) -HX #H destruct
37   /3 width=1 by fle_sort_length, and3_intro/
38 | * [| #i ] #HG #HL #HT #X #HX #Y #HY destruct
39   [ elim (cpx_inv_zero1 … HX) -HX
40     [ #H destruct
41       elim (lfxs_inv_zero … HY) -HY *
42       [ #H1 #H2 destruct -IH /2 width=1 by and3_intro/
43       | #I #K0 #K2 #V0 #V2 #HK02 #HV02 #H1 #H2 destruct
44         elim (IH … HK02) [4,5: /2 width=2 by fqu_fqup, fqu_lref_O/ ]
45    
46     lapply (lfxs_fwd_length … HY) -HY #H0
47     /3 width=1 by fle_lref_length, and3_intro/
48   | * #I0 #K0 #V0 #V1 #HLK0 #HV01 #HX  
49
50   elim (lfxs_inv_lref … HY) -HY // #HV0 #HT0
51
52 | #l #HG #HL #HT #X #HX #Y #HY destruct -IH
53   lapply (lfxs_fwd_length … HY) -HY #H0
54   >(cpx_inv_gref1 … HX) -X
55   /3 width=1 by fle_gref_length, and3_intro/
56 | #p #I #V0 #T0 #HG #HL #HT #X #HX #Y #HY destruct
57   lapply (lfxs_fwd_length … HY) #H0
58   elim (lfxs_inv_bind … V0 ? HY) -HY // #HV0 #HT0
59   elim (cpx_inv_bind1 … HX) -HX *
60   [ #V1 #T1 #HV01 #HT01 #H destruct
61     elim (IH … HV01 … HV0) -HV01 -HV0 // #H1V #H2V #H3V
62     elim (IH … HT01 … HT0) -HT01 -HT0 -IH // #H1T #H2T #H3T
63     /4 width=3 by fle_bind_eq, fle_fwd_pair_sn, and3_intro/
64   | #T #HT #HXT #H1 #H2 destruct
65     elim (IH G0 … V0… V0 … HV0) -HV0 // #H1V #H2V #H3V
66     elim (IH … HT … HT0) -HT -HT0 -IH // #H1T #H2T #H3T
67     /3 width=5 by fle_bind, fle_inv_lifts_sn, and3_intro/
68   ]
69 | #I #V0 #X0 #HG #HL #HT #X #HX #Y #HY destruct
70   elim (lfxs_inv_flat … HY) -HY #HV0 #HX0
71   elim (cpx_inv_flat1 … HX) -HX *
72   [ #V1 #T1 #HV01 #HT01 #H destruct
73     elim (IH … HV01 … HV0) -HV01 -HV0 // #H1V #H2V #H3V
74     elim (IH … HT01 … HX0) -HT01 -HX0 -IH // #H1T #H2T #H3T
75     /3 width=3 by fle_flat, and3_intro/
76   | #HX #H destruct
77     elim (IH G0 … V0… V0 … HV0) -HV0 // #H1V #H2V #H3V
78     elim (IH … HX … HX0) -HX -HX0 -IH // #H1T #H2T #H3T
79     /4 width=3 by fle_flat_sn, fle_flat_dx_dx, fle_flat_dx_sn, and3_intro/
80   | #HX #H destruct
81     elim (IH … HX … HV0) -HX -HV0 // #H1V #H2V #H3V
82     elim (IH G0 … X0… X0 … HX0) -HX0 -IH // #H1T #H2T #H3T
83     /4 width=3 by fle_flat_sn, fle_flat_dx_dx, fle_flat_dx_sn, and3_intro/
84   | #p #V1 #W0 #W1 #T0 #T1 #HV01 #HW01 #HT01 #H1 #H2 #H3 destruct
85     elim (lfxs_inv_bind … W0 ? HX0) -HX0 // #HW0 #HT0
86     elim (IH … HV01 … HV0) -HV01 -HV0 // #H1V #H2V #H3V
87     elim (IH … HW01 … HW0) -HW01 -HW0 // #H1W #H2W #H3W
88     elim (IH … HT01 … HT0) -HT01 -HT0 -IH // #H1T #H2T #H3T
89     lapply (fle_fwd_pair_sn … H2T) -H2T #H2T
90     lapply (fle_fwd_pair_sn … H3T) -H3T #H3T
91     @and3_intro [ /3 width=5 by fle_flat, fle_bind/ ] (**) (* full auto too slow *)
92     @fle_bind_sn_ge /4 width=1 by fle_shift, fle_flat_sn, fle_flat_dx_dx, fle_flat_dx_sn, fle_bind_dx_sn/
93   | #p #V1 #X1 #W0 #W1 #T0 #T1 #HV01 #HVX1 #HW01 #HT01 #H1 #H2 #H3 destruct
94     elim (lfxs_inv_bind … W0 ? HX0) -HX0 // #HW0 #HT0
95     elim (IH … HV01 … HV0) -HV01 -HV0 // #H1V #H2V #H3V
96     elim (IH … HW01 … HW0) -HW01 -HW0 // #H1W #H2W #H3W
97     elim (IH … HT01 … HT0) -HT01 -HT0 -IH // #H1T #H2T #H3T
98     lapply (fle_fwd_pair_sn … H2T) -H2T #H2T
99     lapply (fle_fwd_pair_sn … H3T) -H3T #H3T
100     @and3_intro[ /3 width=5 by fle_flat, fle_bind/ ] (**) (* full auto too slow *)
101     @fle_bind_sn_ge //
102     [1,3: /3 width=1 by fle_flat_dx_dx, fle_bind_dx_sn/
103     |2,4: /4 width=3 by fle_flat_sn, fle_flat_dx_sn, fle_flat_dx_dx, fle_shift, fle_lifts_sn/
104     ]
105   ]
106 ]
107 *)