(**************************************************************************) (* ___ *) (* ||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_tpss.ma". include "basic_2/static/sta_lift.ma". (* STATIC TYPE ASSIGNMENT ON TERMS ******************************************) (* Properties about parallel unfold *****************************************) lemma sta_ltpss_tpss_conf: ∀h,L1,T1,U1. ⦃h, L1⦄ ⊢ T1 • U1 → ∀L2,d,e. L1 ▶* [d, e] L2 → ∀T2. L2 ⊢ T1 ▶* [d, e] T2 → ∃∃U2. ⦃h, L2⦄ ⊢ T2 • U2 & L2 ⊢ U1 ▶* [d, e] U2. #h #L1 #T1 #U #H elim H -L1 -T1 -U [ #L1 #k1 #L2 #d #e #_ #T2 #H >(tpss_inv_sort1 … H) -H /2 width=3/ | #L1 #K1 #V1 #W1 #U1 #i #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_ldrop_conf_le … HL12 … HLK1 ?) -L1 /2 width=2/ #X #H #HLK2 elim (ltpss_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