]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/delayed_updating/reduction/ifr_lift.ma
update in delayed_updating
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / reduction / ifr_lift.ma
index 59c9dcc9e6f150ab1d2b8ee15cdc42e2cd08bf0e..cd597c2bbdbf56b23f94edcc1d62b63f8557546b 100644 (file)
@@ -17,8 +17,8 @@ include "delayed_updating/reduction/ifr.ma".
 include "delayed_updating/substitution/fsubst_lift.ma".
 include "delayed_updating/substitution/fsubst_eq.ma".
 include "delayed_updating/substitution/lift_prototerm_after.ma".
-include "delayed_updating/substitution/lift_path_head.ma".
-include "delayed_updating/substitution/lift_rmap_head.ma".
+include "delayed_updating/substitution/lift_path_closed.ma".
+include "delayed_updating/substitution/lift_rmap_closed.ma".
 
 include "ground/relocation/tr_uni_compose.ma".
 include "ground/relocation/tr_compose_eq.ma".
@@ -27,15 +27,15 @@ include "ground/relocation/tr_compose_eq.ma".
 
 (* Constructions with lift **************************************************)
 
-theorem ifr_lift_bi (f) (p) (q) (t1) (t2):
-        t1 โžก๐ข๐Ÿ[p,q] t2 โ†’ โ†‘[f]t1 โžก๐ข๐Ÿ[โ†‘[f]p,โ†‘[โ†‘[pโ—–๐—”โ—–๐—Ÿ]f]q] โ†‘[f]t2.
-#f #p #q #t1 #t2
-* #k * #H1k #Ht1 #Ht2
-@(ex_intro โ€ฆ ((โ†‘[pโ—๐—”โ——๐—Ÿโ——q]f)๏ผ โงฃโจkโฉ)) @and3_intro
-[ -Ht1 -Ht2
-  <lift_rmap_L_dx >lift_path_L_sn
-  <(lift_path_head_closed โ€ฆ H1k) in โŠข (??%?); -H1k //
-| lapply (in_comp_lift_path_term f โ€ฆ Ht1) -Ht2 -Ht1 -H1k
+theorem ifr_lift_bi (f) (t1) (t2) (r):
+        t1 โžก๐ข๐Ÿ[r] t2 โ†’ ๐Ÿ ก[f]t1 โžก๐ข๐Ÿ[๐Ÿ ก[f]r] ๐Ÿ ก[f]t2.
+#f #t1 #t2 #r
+* #p #q #n #Hr #Hn #Ht1 #Ht2 destruct
+@(ex4_3_intro โ€ฆ (๐Ÿ ก[f]p) (๐Ÿ ก[๐Ÿ ข[f](pโ—–๐—”โ—–๐—Ÿ)]q) (๐Ÿ ข[f](pโ—๐—”โ——๐—Ÿโ——q)๏ผ ยงโจnโฉ))
+[ -Hn -Ht1 -Ht2 //
+| -Ht1 -Ht2
+  /2 width=1 by lift_path_rmap_closed_L/
+| lapply (in_comp_lift_path_term f โ€ฆ Ht1) -Ht2 -Ht1 -Hn
   <lift_path_d_dx #Ht1 //
 | lapply (lift_term_eq_repl_dx f โ€ฆ Ht2) -Ht2 #Ht2 -Ht1
   @(subset_eq_trans โ€ฆ Ht2) -t2
@@ -47,10 +47,9 @@ theorem ifr_lift_bi (f) (p) (q) (t1) (t2):
   @(subset_eq_canc_dx โ€ฆ (lift_term_after โ€ฆ))
   @lift_term_eq_repl_sn
 (* Note: crux of the proof begins *)
-  @(stream_eq_trans โ€ฆ (tr_compose_uni_dx โ€ฆ))
-  @tr_compose_eq_repl //
-  >list_append_rcons_sn in H1k; #H1k >lift_rmap_A_dx
-  /2 width=1 by tls_lift_rmap_closed/
+  @(stream_eq_trans โ€ฆ (tr_compose_uni_dx_pap โ€ฆ)) <tr_pap_succ_nap
+  @tr_compose_eq_repl // >nsucc_unfold
+  /2 width=2 by tls_succ_lift_rmap_append_closed_Lq_dx/
 (* Note: crux of the proof ends *)
 ]
 qed.