(**************************************************************************) (* ___ *) (* ||M|| *) (* ||A|| A project by Andrea Asperti *) (* ||T|| *) (* ||I|| Developers: *) (* ||T|| The HELM team. *) (* ||A|| http://helm.cs.unibo.it *) (* \ / *) (* \ / This file is distributed under the terms of the *) (* v GNU General Public License Version 2 *) (* *) (**************************************************************************) include "basic_2/static/da_lift.ma". include "basic_2/static/ssta.ma". (* STRATIFIED STATIC TYPE ASSIGNMENT FOR TERMS ******************************) (* Properties on relocation *************************************************) lemma ssta_lift: ∀h,g,G. l_liftable (ssta h g G). #h #g #G #L1 #T1 #U1 #H elim H -G -L1 -T1 -U1 [ #G #L1 #k #L2 #s #d #e #HL21 #X1 #H1 #X2 #H2 >(lift_inv_sort1 … H1) -X1 >(lift_inv_sort1 … H2) -X2 // | #G #L1 #K1 #V1 #U1 #W1 #i #HLK1 #_ #HWU1 #IHVW1 #L2 #s #d #e #HL21 #X #H #U2 #HU12 elim (lift_inv_lref1 … H) * #Hid #H destruct [ elim (lift_trans_ge … HWU1 … HU12) -U1 // #W2 #HW12 #HWU2 elim (ldrop_trans_le … HL21 … HLK1) -L1 /2 width=2 by lt_to_le/ #X #HLK2 #H elim (ldrop_inv_skip2 … H) -H /2 width=1 by lt_plus_to_minus_r/ -Hid #K2 #V2 #HK21 #HV12 #H destruct /3 width=9 by ssta_ldef/ | lapply (lift_trans_be … HWU1 … HU12 ? ?) -U1 /2 width=1 by le_S/ #HW1U2 lapply (ldrop_trans_ge … HL21 … HLK1 ?) -L1 // -Hid /3 width=9 by ssta_ldef, ldrop_inv_gen/ ] | #G #L1 #K1 #W1 #U1 #l #i #HLK1 #HW1l #HWU1 #L2 #s #d #e #HL21 #X #H #U2 #HU12 elim (lift_inv_lref1 … H) * #Hid #H destruct [ elim (lift_trans_ge … HWU1 … HU12) -U1 // (lift_inv_sort2 … H) -X /2 width=3 by ssta_sort, lift_sort, ex2_intro/ | #G #L2 #K2 #V2 #U2 #W2 #i #HLK2 #HVW2 #HWU2 #IHVW2 #L1 #s #d #e #HL21 #X #H elim (lift_inv_lref2 … H) * #Hid #H destruct [ -HVW2 | -IHVW2 ] [ elim (ldrop_conf_lt … HL21 … HLK2) -L2 // #K1 #V1 #HLK1 #HK21 #HV12 elim (IHVW2 … HK21 … HV12) -K2 -V2 #W1 #HW12 #HVW1 elim (lift_trans_le … HW12 … HWU2) -W2 // >minus_plus minus_minus_m_m /3 width=8 by ssta_ldef, le_S, ex2_intro/ | minus_plus minus_minus_m_m /3 width=8 by ssta_ldec, le_S, ex2_intro/ |