1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
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.ma".
19 include "basic_2/rt_transition/cpx.ma".
21 axiom fle_pair_sn: ∀L,V1,V2. ⦃L, V1⦄ ⊆ ⦃L, V2⦄ →
22 ∀I1,I2,T. ⦃L.ⓑ{I1}V1, T⦄ ⊆ ⦃L.ⓑ{I2}V2, T⦄.
24 axiom fle_elim_flat: ∀L1,L2,V1,T2. ⦃L1, V1⦄ ⊆ ⦃L2, T2⦄ → ∀T1. ⦃L1, T1⦄ ⊆ ⦃L2, T2⦄ →
25 ∀I. ⦃L1, ⓕ{I}V1.T1⦄ ⊆ ⦃L2, T2⦄.
28 ∀p,I1,I2,J1,J2,L,V,W,T. ⦃L, ⓑ{p,I1}ⓕ{J1}V.W.T⦄ ⊆ ⦃L, ⓕ{J2}V.ⓑ{p,I2}W.T⦄.
30 (* UNCOUNTED CONTEXT-SENSITIVE PARALLEL RT-TRANSITION FOR TERMS *************)
32 (* Properties with context-sensitive free variables *************************)
34 (* Note: "⦃L2, T1⦄ ⊆ ⦃L0, T1⦄" may not hold *)
35 axiom cpx_lfxs_conf_gen: ∀R. c_reflexive … R →
36 ∀h,G,L0,T0,T1. ⦃G, L0⦄ ⊢ T0 ⬈[h] T1 →
37 ∀L2. L0 ⪤*[R, T0] L2 →
38 ∧∧ ⦃L2, T0⦄ ⊆ ⦃L0, T0⦄ & ⦃L2, T1⦄ ⊆ ⦃L2, T0⦄
39 & ⦃L0, T1⦄ ⊆ ⦃L0, T0⦄.
41 #R #HR #h #G #L0 #T0 @(fqup_wf_ind_eq (Ⓕ) … G L0 T0) -G -L0 -T0
42 #G #L #T #IH #G0 #L0 * *
43 [ #s #HG #HL #HT #X #HX #Y #_ destruct -IH
44 elim (cpx_inv_sort1 … HX) -HX #H destruct
45 /2 width=1 by and3_intro/
47 | #l #HG #HL #HT #X #HX #Y #_ destruct -IH
48 >(cpx_inv_gref1 … HX) -X
49 /2 width=1 by and3_intro/
50 | #p #I #V0 #T0 #HG #HL #HT #X #HX #Y #HY destruct
51 elim (lfxs_inv_bind … V0 ? HY) -HY // #HV0 #HT0
52 elim (cpx_inv_bind1 … HX) -HX *
53 [ #V1 #T1 #HV01 #HT01 #H destruct
54 elim (IH … HV01 … HV0) -HV01 -HV0 // #H1V #H2V #H3V
55 elim (IH … HT01 … HT0) -HT01 -HT0 -IH // #H1T #H2T #H3T
56 /5 width=4 by fle_pair_sn, fle_trans, fle_bind, and3_intro/
57 | #T #HT #HXT #H1 #H2 destruct
58 elim (IH G0 … V0… V0 … HV0) -HV0 // #H1V #H2V #H3V
59 elim (IH … HT … HT0) -HT -HT0 -IH // #H1T #H2T #H3T
60 /4 width=7 by fle_bind_dx, fle_trans, fle_bind, and3_intro/
62 | #I #V0 #X0 #HG #HL #HT #X #HX #Y #HY destruct
63 elim (lfxs_inv_flat … HY) -HY #HV0 #HX0
64 elim (cpx_inv_flat1 … HX) -HX *
65 [ #V1 #T1 #HV01 #HT01 #H destruct
66 elim (IH … HV01 … HV0) -HV01 -HV0 // #H1V #H2V #H3V
67 elim (IH … HT01 … HX0) -HT01 -HX0 -IH // #H1T #H2T #H3T
68 /3 width=3 by fle_flat, and3_intro/
70 elim (IH G0 … V0… V0 … HV0) -HV0 // #H1V #H2V #H3V
71 elim (IH … HX … HX0) -HX -HX0 -IH // #H1T #H2T #H3T
72 /4 width=4 by fle_trans, fle_flat, and3_intro/
74 elim (IH … HX … HV0) -HX -HV0 // #H1V #H2V #H3V
75 elim (IH G0 … X0… X0 … HX0) -HX0 -IH // #H1T #H2T #H3T
76 /4 width=4 by fle_trans, fle_flat, and3_intro/
77 | #p #V1 #W0 #W1 #T0 #T1 #HV01 #HW01 #HT01 #H1 #H2 #H3 destruct
78 elim (lfxs_inv_bind … W0 ? HX0) -HX0 // #HW0 #HT0
79 elim (IH … HV01 … HV0) -HV01 -HV0 // #H1V #H2V #H3V
80 elim (IH … HW01 … HW0) -HW01 -HW0 // #H1W #H2W #H3W
81 elim (IH … HT01 … HT0) -HT01 -HT0 -IH // #H1T #H2T #H3T
83 [ /3 width=5 by fle_flat, fle_bind/
85 [4: @(fle_flat … H2V) [2: @(fle_bind … H2T) // | skip | @Appl ]
87 | @(fle_trans) [3: @fle_elim_bind
92 | /2 width=1 by fle_bind_dx/