]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/static/lsubf_frees.ma
advances towards confluence of reduction in local environments ...
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / static / lsubf_frees.ma
index 65de4cfae86a6d3ee5853fba27638ca2944a9971..47fc2f75ec691cd66c02678c213a57ce4adc5b4b 100644 (file)
@@ -18,34 +18,34 @@ include "basic_2/static/lsubf.ma".
 
 (* Properties with context-sensitive free variables *************************)
 
-lemma lsubf_free_trans: ∀f2,L2,T. L2 ⊢ 𝐅*⦃T⦄ ≡ f2 → ∀f,L1. ⦃L1, f⦄ ⫃𝐅* ⦃L2, f2⦄ →
-                        ∃∃f1. L1 ⊢ 𝐅*⦃T⦄ ≡ f1 & f1 ⊆ f.
+axiom lsubf_frees_trans: ∀f2,L2,T. L2 ⊢ 𝐅*⦃T⦄ ≡ f2 → ∀f,L1. ⦃L1, f⦄ ⫃𝐅* ⦃L2, f2⦄ →
+                         ∃∃f1. L1 ⊢ 𝐅*⦃T⦄ ≡ f1 & f1 ⊆ f.
+(*
 #f2 #L2 #T #H elim H -f2 -L2 -T
 [ #f2 #I #Hf2 #f #L1 #H elim (lsubf_inv_atom2 … H) -H
-  #H1 #H2 destruct /3 width=3 by frees_atom, sle_refl, ex2_intro/
-| #f2 #I #K2 #W #s #_ #IH #f #L1 #H elim (lsubf_inv_push2 … H) -H *
-  [ #g1 #K1 #H12 #H1 #H2
-  | #g #g1 #K1 #V #Hg #Hg1 #H12 #H1 #H2 #H3
-  ] destruct elim (IH … H12) -f2 -K2
-  /3 width=7 by frees_sort, sle_push, ex2_intro/
-| #f2 #I #K2 #W #_ #IH #f #L1 #H elim (lsubf_inv_next2 … H) -H *
-  [ #g1 #K1 #H12 #H1 #H2 destruct elim (IH … H12) -f2 -K2
+  #H #_ destruct /3 width=3 by frees_atom, sle_isid_sn, ex2_intro/
+| #f2 #I #K2 #W #s #_ #IH #f #L1 #H elim (lsubf_inv_pair2 … H) -H *
+  [ #K1 #_ #H12 #H | #g #K1 #V #Hg #Hf #_ #H12 #H1 #H2 ]
+  destruct elim (IH … H12) -K2
+  /3 width=3 by frees_sort, sle_inv_tl_dx, ex2_intro/
+| #f2 #I #K2 #W #_ #IH #f #L1 #H elim (lsubf_inv_pair2 … H) -H *
+  [ #K1 #H elim (sle_inv_nx … H ??) -H [ <tl_next_rew |*: // ]
+    #g2 #_ #H1 #H12 #H2 destruct elim (IH … H12) -K2
     /3 width=7 by frees_zero, sle_next, ex2_intro/
-  | #g #g1 #K1 #V #Hg #Hg1 #H12 #H1 #H2 #H3 destruct
-    elim (IH … H12) -K2 #f1 #Hf1 #Hfg1
-    elim (sor_isfin_ex … f1 g ??)
-    /5 width=10 by frees_fwd_isfin, frees_flat, frees_zero, monotonic_sle_sor, sor_inv_sle_dx, sor_sle_sn, sle_next, ex2_intro/
+  | #g #K1 #V #Hg <tl_next_rew #Hf lapply (sor_sym … Hf) -Hf
+    #Hf #H elim (sle_inv_nx … H ??) -H [|*: // ]
+    #g2 #_ #H1 #H12 #H2 #H3 destruct elim (IH … H12) -K2
+    #f1 #Hf1 elim (sor_isfin_ex … f1 g ??)
+    /5 width=10 by frees_fwd_isfin, frees_flat, frees_zero, monotonic_sle_sor, sor_inv_sle_dx, sor_sym, sor_sle_sn, sle_next, ex2_intro/
   ]
-| #f2 #I #K2 #W #i #_ #IH #f #L1 #H elim (lsubf_inv_push2 … H) -H *
-  [ #g1 #K1 #H12 #H1 #H2
-  | #g #g1 #K1 #V #Hg #Hg1 #H12 #H1 #H2 #H3
-  ] destruct elim (IH … H12) -f2 -K2
-  /3 width=7 by frees_lref, sle_push, ex2_intro/
-| #f2 #I #K2 #W #l #_ #IH #f #L1 #H elim (lsubf_inv_push2 … H) -H *
-  [ #g1 #K1 #H12 #H1 #H2
-  | #g #g1 #K1 #V #Hg #Hg1 #H12 #H1 #H2 #H3
-  ] destruct elim (IH … H12) -f2 -K2
-  /3 width=7 by frees_gref, sle_push, ex2_intro/
+| #f2 #I #K2 #W #i #_ #IH #f #L1 #H elim (lsubf_inv_pair2 … H) -H *
+  [ #K1 #_ #H12 #H | #g #K1 #V #Hg #Hf #_ #H12 #H1 #H2 ]
+  destruct elim (IH … H12) -K2
+  /3 width=3 by frees_lref, sle_inv_tl_dx, ex2_intro/
+| #f2 #I #K2 #W #l #_ #IH #f #L1 #H elim (lsubf_inv_pair2 … H) -H *
+  [ #K1 #_ #H12 #H | #g #K1 #V #Hg #Hf #_ #H12 #H1 #H2 ]
+  destruct elim (IH … H12) -K2
+  /3 width=3 by frees_gref, sle_inv_tl_dx, ex2_intro/
 | #f2V #f2T #f2 #p #I #L2 #V #T #_ #_ #Hf2 #IHV #IHT #f #L1 #H12
 | #f2V #f2T #f2 #I #L2 #V #T #_ #_ #Hf2 #IHV #IHT #f #L1 #H12
\ No newline at end of file
+*)