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