]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/static/lsubf_frees.ma
renaming in basic_2
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / static / lsubf_frees.ma
index 884d940bc945821c5f2cb8dfdee51574f1e08238..390e6f13a368c47fb2b4b42f80506dba3f179ece 100644 (file)
@@ -18,41 +18,34 @@ include "basic_2/static/lsubf.ma".
 
 (* Properties with context-sensitive free variables *************************)
 
-lemma lsubf_frees_trans: â\88\80f2,L2,T. L2 â\8a¢ ð\9d\90\85*â¦\83Tâ¦\84 â\89¡ f2 â\86\92 â\88\80f,L1. â¦\83L1, fâ¦\84 â«\83ð\9d\90\85* â¦\83L2, f2â¦\84 →
-                         â\88\83â\88\83f1. L1 â\8a¢ ð\9d\90\85*â¦\83Tâ¦\84 â\89¡ f1 & f1 â\8a\86 f.
+lemma lsubf_frees_trans: â\88\80f2,L2,T. L2 â\8a¢ ð\9d\90\85*â¦\83Tâ¦\84 â\89\98 f2 →
+                         â\88\80f1,L1. â¦\83L1, f1â¦\84 â«\83ð\9d\90\85* â¦\83L2, f2â¦\84 â\86\92 L1 â\8a¢ ð\9d\90\85*â¦\83Tâ¦\84 â\89\98 f1.
 #f2 #L2 #T #H elim H -f2 -L2 -T
-[ #f2 #I #Hf2 #f #L1 #H elim (lsubf_inv_atom2 … H) -H
-  #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 #K1 #V #Hg #Hf #H elim (sle_inv_nx … H ??) -H [ <tl_next_rew |*: // ]
-    #g2 #_ #H1 #H12 #H2 #H3 destruct elim (IH … H12) -K2
-    #f1 #Hf1 elim (sor_isfin_ex … f1 g ??)
-    /4 width=7 by frees_fwd_isfin, frees_flat, frees_zero, sor_inv_sle, sle_next, ex2_intro/
+[ /3 width=5 by lsubf_fwd_isid_dx, frees_sort/
+| #f2 #i #Hf2 #g1 #Y1 #H
+  elim (lsubf_inv_atom2 … H) -H #Hg1 #H destruct
+  elim (eq_inv_pushs_dx … Hg1) -Hg1 #g #Hg #H destruct
+  elim (eq_inv_xn … Hg) -Hg
+  /3 width=3 by frees_atom, isid_eq_repl_fwd/
+| #f2 #I #K2 #W #_ #IH #g1 #Y1 #H elim (lsubf_inv_pair2 … H) -H *
+  [ #f1 #K1 #H12 #H1 #H2 destruct /3 width=1 by frees_pair/
+  | #f #f0 #f1 #K1 #V #H12 #Hf #Hf1 #H1 #H2 #H3 destruct
+    /4 width=5 by frees_pair, frees_flat/
   ]
-| #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
-  elim (IHV f L1) -IHV [2: /3 width=4 by lsubf_sle_div, sor_inv_sle_sn/ ]
-  elim (IHT (⫯f) (L1.ⓑ{I}V)) -IHT [2: /4 width=4 by lsubf_sle_div, lsubf_pair_nn, sor_inv_sle_dx, sor_inv_tl_dx/ ]
-  -f2V -f2T -f2 -L2 #f1T #HT #Hf1T #f1V #HV #Hf1V elim (sor_isfin_ex … f1V (⫱f1T) ??)
-  /4 width=9 by frees_fwd_isfin, frees_bind, sor_inv_sle, sle_xn_tl, isfin_tl, ex2_intro/
-| #f2V #f2T #f2 #I #L2 #V #T #_ #_ #Hf2 #IHV #IHT #f #L1 #H12
-  elim (IHV f L1) -IHV [2: /3 width=4 by lsubf_sle_div, sor_inv_sle_sn/ ]
-  elim (IHT f L1) -IHT [2: /3 width=4 by lsubf_sle_div, sor_inv_sle_dx/ ]
-  -f2V -f2T -f2 -L2 #f1T #HT #Hf1T #f1V #HV #Hf1V elim (sor_isfin_ex … f1V f1T ??)
-  /3 width=7 by frees_fwd_isfin, frees_flat, sor_inv_sle, ex2_intro/
+| #f2 #I #L2 #Hf2 #g1 #Y1 #H elim (lsubf_inv_unit2 … H) -H *
+  [ #f1 #L1 #H12 #H1 #H2 destruct
+    /3 width=5 by lsubf_fwd_isid_dx, frees_unit/
+  | #f #f0 #f1 #J #L1 #V #H12 #Hf #Hf1 #H1 #H2 destruct
+    /5 width=9 by lsubf_fwd_isid_dx, frees_eq_repl_back, frees_pair, sor_isid_inv_sn/
+  ]
+| #f2 #I #L2 #i #_ #IH #g1 #L1 #H elim (lsubf_inv_push2 … H) -H
+  /3 width=1 by frees_lref/
+| /3 width=5 by lsubf_fwd_isid_dx, frees_gref/
+| #f2V #f2T #f2 #p #I #L2 #V #T #_ #_ #Hf2 #IHV #IHT #f1 #L1 #H12
+  elim (lsubf_inv_sor_dx … H12 … Hf2) -f2 #f1V #g1T #HV #HT #Hf1
+  elim (lsubf_bind_tl_dx … (BPair I V) … HT) -HT #f1T #HT #H destruct
+  /3 width=5 by frees_bind/
+| #f2V #f2T #f2 #I #L2 #V #T #_ #_ #Hf2 #IHV #IHT #f1 #L1 #H12
+  elim (lsubf_inv_sor_dx … H12 … Hf2) -f2 /3 width=5 by frees_flat/
 ]
 qed-.