]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift_constructors.ma
update in delayd_updating
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / substitution / lift_constructors.ma
index 89ef40e91fdcc9362a7e7f6bb04ddf9926ea0d08..f263e2d140464896573bd1fddc5ebceaa2e322db 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-include "delayed_updating/substitution/lift_prototerm_eq.ma".
-include "delayed_updating/syntax/prototerm_constructors.ma".
+include "delayed_updating/substitution/lift_prototerm_id.ma".
+include "delayed_updating/substitution/lift_path_uni.ma".
+include "delayed_updating/syntax/prototerm_constructors_eq.ma".
+include "ground/relocation/nap.ma".
 
 (* LIFT FOR PROTOTERM *******************************************************)
 
-lemma lift_iref_after_sn (f) (t:prototerm) (n:pnat):
-      โ†‘[fโˆ˜๐ฎโจnโฉ]t โŠ† โ†‘[f](๐›—n.t).
-#f #t #n #p * #q #Hq #H0 destruct
-@(ex2_intro โ€ฆ (๐—ฑnโ——๐—บโ——q))
+lemma lift_term_iref_pap_sn (f) (t:prototerm) (k:pnat):
+      (๐›•f๏ผ โงฃโจkโฉ.โ†‘[โ‡‚*[k]f]t) โŠ† โ†‘[f](๐›•k.t).
+#f #t #k #p * #q * #r #Hr #H1 #H2 destruct
+@(ex2_intro โ€ฆ (๐—ฑkโ——๐—บโ——r))
 /2 width=1 by in_comp_iref/
 qed-.
 
-lemma lift_iref_after_dx (f) (t) (n:pnat):
-      โ†‘[f](๐›—n.t) โŠ† โ†‘[fโˆ˜๐ฎโจnโฉ]t.
-#f #t #n #p * #q #Hq #H0 destruct
-elim (in_comp_inv_iref โ€ฆ Hq) -Hq #p #Hp #Ht destruct
-/2 width=1 by in_comp_lift_bi/
+lemma lift_term_iref_pap_dx (f) (t) (k:pnat):
+      โ†‘[f](๐›•k.t) โŠ† ๐›•f๏ผ โงฃโจkโฉ.โ†‘[โ‡‚*[k]f]t.
+#f #t #k #p * #q #Hq #H0 destruct
+elim (in_comp_inv_iref โ€ฆ Hq) -Hq #p #H0 #Hp destruct
+<lift_path_d_sn <lift_path_m_sn
+/3 width=1 by in_comp_iref, in_comp_lift_path_term/
 qed-.
 
-lemma lift_iref_after (f) (t) (n:pnat):
-      โ†‘[fโˆ˜๐ฎโจnโฉ]t โ‡” โ†‘[f](๐›—n.t).
-/3 width=1 by conj, lift_iref_after_sn, lift_iref_after_dx/
+lemma lift_term_iref_pap (f) (t) (k:pnat):
+      (๐›•f๏ผ โงฃโจkโฉ.โ†‘[โ‡‚*[k]f]t) โ‡” โ†‘[f](๐›•k.t).
+/3 width=1 by conj, lift_term_iref_pap_sn, lift_term_iref_pap_dx/
 qed.
 
-lemma lift_iref (f) (t) (n:pnat):
-      โ†‘[f]โ†‘[๐ฎโจnโฉ]t โ‡” โ†‘[f](๐›—n.t).
-/3 width=3 by lift_term_after, subset_eq_trans/
+lemma lift_term_iref_nap (f) (t) (n):
+      (๐›•โ†‘(f๏ผ ยงโจnโฉ).โ†‘[โ‡‚*[โ†‘n]f]t) โ‡” โ†‘[f](๐›•โ†‘n.t).
+#f #t #n
+>tr_pap_succ_nap //
+qed.
+
+lemma lift_term_iref_uni (t) (n) (k):
+      (๐›•(k+n).t) โ‡” โ†‘[๐ฎโจnโฉ](๐›•k.t).
+#t #n #k
+@(subset_eq_trans โ€ฆ (lift_term_iref_pap โ€ฆ))
+<tr_uni_pap >nsucc_pnpred <tr_tls_succ_uni
+/3 width=1 by iref_eq_repl, lift_term_id/
 qed.