]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/substitution/lpx_sn_drop.ma
theory of generic slicing almost completed ....
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / substitution / lpx_sn_drop.ma
index 3b7b6ebab57bba9c0cd57db0e54c4cfbf4f818f7..612f16a37b902de62790589bc4c8bf0be9f21166 100644 (file)
@@ -71,14 +71,12 @@ lemma lpx_sn_liftable_dedropable: ∀R. (∀L. reflexive ? (R L)) →
   #K2 #V2 #HK12 #HV12 #H destruct
   lapply (lpx_sn_fwd_length … HK12)
   #H @(ex3_intro … (K2.ⓑ{I}V2)) (**) (* explicit constructor *)
-  /3 width=1 by lpx_sn_pair, monotonic_le_plus_l/
-  @lreq_O2 normalize //
+  /3 width=1 by lpx_sn_pair, lreq_O2/
 | #I #L1 #K1 #V1 #m #_ #IHLK1 #K2 #HK12 elim (IHLK1 … HK12) -K1
   /3 width=5 by drop_drop, lreq_pair, lpx_sn_pair, ex3_intro/
 | #I #L1 #K1 #V1 #W1 #l #m #HLK1 #HWV1 #IHLK1 #X #H
   elim (lpx_sn_inv_pair1 … H) -H #K2 #W2 #HK12 #HW12 #H destruct
-  elim (lift_total W2 l m) #V2 #HWV2
-  lapply (H2R … HW12 … HLK1 … HWV1 … HWV2) -W1
+  elim (H2R … HW12 … HLK1 … HWV1) -W1
   elim (IHLK1 … HK12) -K1
   /3 width=6 by drop_skip, lreq_succ, lpx_sn_pair, ex3_intro/
 ]
@@ -87,7 +85,7 @@ qed-.
 fact lpx_sn_dropable_aux: ∀R,L2,K2,s,l,m. ⬇[s, l, m] L2 ≡ K2 → ∀L1. lpx_sn R L1 L2 →
                           l = 0 → ∃∃K1. ⬇[s, 0, m] L1 ≡ K1 & lpx_sn R K1 K2.
 #R #L2 #K2 #s #l #m #H elim H -L2 -K2 -l -m
-[ #l #m #Hm #X #H >(lpx_sn_inv_atom2 … H) -H 
+[ #l #m #Hm #X #H >(lpx_sn_inv_atom2 … H) -H
   /4 width=3 by drop_atom, lpx_sn_atom, ex2_intro/
 | #I #K2 #V2 #X #H elim (lpx_sn_inv_pair2 … H) -H
   #K1 #V1 #HK12 #HV12 #H destruct
@@ -95,8 +93,7 @@ fact lpx_sn_dropable_aux: ∀R,L2,K2,s,l,m. ⬇[s, l, m] L2 ≡ K2 → ∀L1. lp
 | #I #L2 #K2 #V2 #m #_ #IHLK2 #X #H #_ elim (lpx_sn_inv_pair2 … H) -H
   #L1 #V1 #HL12 #HV12 #H destruct
   elim (IHLK2 … HL12) -L2 /3 width=3 by drop_drop, ex2_intro/
-| #I #L2 #K2 #V2 #W2 #l #m #_ #_ #_ #L1 #_
-  <plus_n_Sm #H destruct
+| #I #L2 #K2 #V2 #W2 #l #m #_ #_ #_ #L1 #_ #H elim (ysucc_inv_O_dx … H)
 ]
 qed-.