include "static_2/syntax/aarity.ma".
include "static_2/relocation/lifts_simple.ma".
include "static_2/relocation/lifts_lifts_vector.ma".
include "static_2/syntax/aarity.ma".
include "static_2/relocation/lifts_simple.ma".
include "static_2/relocation/lifts_lifts_vector.ma".
(* Note: this is Tait's iii, or Girard's CR4 *)
definition S2 ≝ λRR:relation4 genv lenv term term. λRS:relation term. λRP,C:candidate.
∀G,L,Vs. all … (RP G L) Vs →
(* Note: this is Tait's iii, or Girard's CR4 *)
definition S2 ≝ λRR:relation4 genv lenv term term. λRS:relation term. λRP,C:candidate.
∀G,L,Vs. all … (RP G L) Vs →
definition S5 ≝ λC:candidate. ∀I,G,L,K,Vs,V1,V2,i.
definition S5 ≝ λC:candidate. ∀I,G,L,K,Vs,V1,V2,i.
- ∀G,L,V1b,V2b. ⇧*[1] V1b ≘ V2b →
- ∀a,V,T. C G (L.ⓓV) (ⒶV2b.T) → RP G L V → C G L (ⒶV1b.ⓓ{a}V.T).
+ ∀G,L,V1b,V2b. ⇧[1] V1b ≘ V2b →
+ ∀a,V,T. C G (L.ⓓV) (ⒶV2b.T) → RP G L V → C G L (ⒶV1b.ⓓ[a]V.T).
definition S7 ≝ λC:candidate.
∀G,L,Vs,T,W. C G L (ⒶVs.T) → C G L (ⒶVs.W) → C G L (ⒶVs.ⓝW.T).
definition S7 ≝ λC:candidate.
∀G,L,Vs,T,W. C G L (ⒶVs.T) → C G L (ⒶVs.W) → C G L (ⒶVs.ⓝW.T).
(* Note: this requires multiple relocation *)
(* Basic 1: includes: sc3_lift *)
(* Basic 2A1: includes: gcr_lift *)
(* Note: this requires multiple relocation *)
(* Basic 1: includes: sc3_lift *)
(* Basic 2A1: includes: gcr_lift *)
lapply (drops_tls_at … Hf … HY) -HY #HY
elim (drops_inv_skip2 … HY) -HY #Z #K0 #HK0 #HZ #H destruct
elim (liftsb_inv_pair_sn … HZ) -HZ #W1 #HVW1 #H destruct
lapply (drops_tls_at … Hf … HY) -HY #HY
elim (drops_inv_skip2 … HY) -HY #Z #K0 #HK0 #HZ #H destruct
elim (liftsb_inv_pair_sn … HZ) -HZ #W1 #HVW1 #H destruct
lapply (lifts_trans … HVW1 … HW12 ??) -HVW1 [3: |*: // ] #H
lapply (lifts_conf … HV12 … H f ?) -V1 [ /2 width=3 by after_uni_succ_sn/ ] #HVW2
@(s5 … IHA … (V0⨮V0s) … HW12) /3 width=4 by drops_inv_gen, lifts_applv/
| #G #L #V1s #V2s #HV12s #p #V #T #HA #HV #f #L0 #V10 #X #HL0 #H #HB
elim (lifts_inv_applv1 … H) -H #V10s #X0 #HV10s #H0 #H destruct
elim (lifts_inv_bind1 … H0) -H0 #V0 #T0 #HV0 #HT0 #H destruct
lapply (lifts_trans … HVW1 … HW12 ??) -HVW1 [3: |*: // ] #H
lapply (lifts_conf … HV12 … H f ?) -V1 [ /2 width=3 by after_uni_succ_sn/ ] #HVW2
@(s5 … IHA … (V0⨮V0s) … HW12) /3 width=4 by drops_inv_gen, lifts_applv/
| #G #L #V1s #V2s #HV12s #p #V #T #HA #HV #f #L0 #V10 #X #HL0 #H #HB
elim (lifts_inv_applv1 … H) -H #V10s #X0 #HV10s #H0 #H destruct
elim (lifts_inv_bind1 … H0) -H0 #V0 #T0 #HV0 #HT0 #H destruct
- elim (lifts_total V10 (ð\9d\90\94â\9d´1â\9dµ)) #V20 #HV120
- elim (liftsv_total (ð\9d\90\94â\9d´1â\9dµ) V10s) #V20s #HV120s
+ elim (lifts_total V10 (ð\9d\90\94â\9d¨1â\9d©)) #V20 #HV120
+ elim (liftsv_total (ð\9d\90\94â\9d¨1â\9d©) V10s) #V20s #HV120s
@(s6 … IHA … (V10⨮V10s) (V20⨮V20s)) /3 width=7 by cp2, liftsv_cons/
@(HA … (⫯f)) /3 width=2 by drops_skip, ext2_pair/
[ @lifts_applv //
lapply (liftsv_trans … HV10s … HV120s ??) -V10s [3: |*: // ] #H
@(s6 … IHA … (V10⨮V10s) (V20⨮V20s)) /3 width=7 by cp2, liftsv_cons/
@(HA … (⫯f)) /3 width=2 by drops_skip, ext2_pair/
[ @lifts_applv //
lapply (liftsv_trans … HV10s … HV120s ??) -V10s [3: |*: // ] #H
>(liftsv_mono … HV12s … HV10s) -V1s //
| @(acr_lifts … H1RP … HB … HV120) /3 width=2 by drops_refl, drops_drop/
]
>(liftsv_mono … HV12s … HV10s) -V1s //
| @(acr_lifts … H1RP … HB … HV120) /3 width=2 by drops_refl, drops_drop/
]
- â\88\80p,G,L,W,T,A,B. â¦\83G,L,Wâ¦\84 ϵ[RP] ã\80\9aBã\80\9b → (
+ â\88\80p,G,L,W,T,A,B. â\9dªG,L,Wâ\9d« ϵ â\9f¦Bâ\9f§[RP] → (
∀b,f,L0,V0,W0,T0. ⇩*[b,f] L0 ≘ L → ⇧*[f] W ≘ W0 → ⇧*[⫯f] T ≘ T0 →
∀b,f,L0,V0,W0,T0. ⇩*[b,f] L0 ≘ L → ⇧*[f] W ≘ W0 → ⇧*[⫯f] T ≘ T0 →
- â¦\83G,L0,V0â¦\84 ϵ[RP] ã\80\9aBã\80\9b â\86\92 â¦\83G,L0,W0â¦\84 ϵ[RP] ã\80\9aBã\80\9b â\86\92 â¦\83G,L0.â\93\93â\93\9dW0.V0,T0â¦\84 ϵ[RP] ã\80\9aAã\80\9b
+ â\9dªG,L0,V0â\9d« ϵ â\9f¦Bâ\9f§[RP] â\86\92 â\9dªG,L0,W0â\9d« ϵ â\9f¦Bâ\9f§[RP] â\86\92 â\9dªG,L0.â\93\93â\93\9dW0.V0,T0â\9d« ϵ â\9f¦Aâ\9f§[RP]
#RR #RS #RP #H1RP #H2RP #p #G #L #W #T #A #B #HW #HA #f #L0 #V0 #X #HL0 #H #HB
lapply (acr_gcr … H1RP H2RP A) #HCA
lapply (acr_gcr … H1RP H2RP B) #HCB
#RR #RS #RP #H1RP #H2RP #p #G #L #W #T #A #B #HW #HA #f #L0 #V0 #X #HL0 #H #HB
lapply (acr_gcr … H1RP H2RP A) #HCA
lapply (acr_gcr … H1RP H2RP B) #HCB