(**************************************************************************) (* ___ *) (* ||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/unfold/tpss_tpss.ma". include "basic_2/unfold/ltpss_dx_tpss.ma". include "basic_2/static/ssta_lift.ma". (* STRATIFIED STATIC TYPE ASSIGNMENT ON TERMS *******************************) (* Properties about dx parallel unfold **************************************) (* Note: apparently this was missing in basic_1 *) lemma ssta_ltpss_dx_tpss_conf: ∀h,g,L1,T1,U1,l. ⦃h, L1⦄ ⊢ T1 •[g] ⦃l, U1⦄ → ∀L2,d,e. L1 ▶* [d, e] L2 → ∀T2. L2 ⊢ T1 ▶* [d, e] T2 → ∃∃U2. ⦃h, L2⦄ ⊢ T2 •[g] ⦃l, U2⦄ & L2 ⊢ U1 ▶* [d, e] U2. #h #g #L1 #T1 #U #l #H elim H -L1 -T1 -U -l [ #L1 #k1 #l1 #Hkl1 #L2 #d #e #_ #T2 #H >(tpss_inv_sort1 … H) -H /3 width=3/ | #L1 #K1 #V1 #W1 #U1 #i #l #HLK1 #HVW1 #HWU1 #IHVW1 #L2 #d #e #HL12 #T2 #H elim (tpss_inv_lref1 … H) -H [ | -HVW1 ] [ #H destruct elim (lt_or_ge i d) #Hdi [ -HVW1 | ] [ elim (ltpss_dx_ldrop_conf_le … HL12 … HLK1 ?) -L1 /2 width=2/ #X #H #HLK2 elim (ltpss_dx_inv_tpss11 … H ?) -H /2 width=1/ #K2 #V2 #HK12 #HV12 #H destruct elim (IHVW1 … HK12 … HV12) -IHVW1 -HK12 -HV12 #W2 #HVW2 #HW12 lapply (ldrop_fwd_ldrop2 … HLK2) #H elim (lift_total W2 0 (i+1)) #U2 #HWU2 lapply (tpss_lift_ge … HW12 … H … HWU1 … HWU2) // -HW12 -H -HWU1 >minus_plus minus_plus #H lapply (tpss_weak … H d e ? ?) [1,2: normalize [ >commutative_plus minus_plus #H lapply (tpss_weak … H d e ? ?) [1,2: normalize [ >commutative_plus minus_plus minus_plus #H lapply (tpss_weak … H d e ? ?) [1,2: normalize [ >commutative_plus