1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "ground/relocation/tr_compose_compose.ma".
16 include "ground/relocation/tr_compose_pn.ma".
17 include "delayed_updating/substitution/lift_eq.ma".
19 lemma lift_path_after (p) (f1) (f2):
20 ↑[f2]↑[f1]p = ↑[f2∘f1]p.
21 #p @(path_ind_lift … p) -p // [ #n #l #p | #p ] #IH #f1 #f2
22 [ <lift_path_d_lcons_sn <lift_path_d_lcons_sn
23 >(lift_path_eq_repl … (tr_compose_assoc …)) //
24 | <lift_path_L_sn <lift_path_L_sn <lift_path_L_sn
25 >tr_compose_push_bi //
29 include "delayed_updating/substitution/lift_prototerm.ma".
31 axiom lift_term_after (t) (f1) (f2):
32 ↑[f2]↑[f1]t ⇔ ↑[f2∘f1]t.
34 include "delayed_updating/syntax/prototerm_constructors.ma".
36 (* LIFT FOR PROTOTERM *******************************************************)
38 lemma lift_iref_after_sn (f) (t) (n:pnat):
39 (↑[f∘𝐮❨n❩]t) ⊆ ↑[f](𝛗n.t).
40 #f #t #n #p * #q #Hq #H0 destruct
41 @(ex2_intro … (𝗱n◗𝗺◗q))
42 /2 width=1 by in_comp_iref/
45 lemma lift_iref_after_dx (f) (t) (n:pnat):
46 ↑[f](𝛗n.t) ⊆ ↑[f∘𝐮❨n❩]t.
47 #f #t #n #p * #q #Hq #H0 destruct
48 elim (in_comp_inv_iref … Hq) -Hq #p #Hp #Ht destruct
49 /2 width=1 by in_comp_lift_bi/
52 lemma lift_iref_after (f) (t) (n:pnat):
53 ↑[f∘𝐮❨n❩]t ⇔ ↑[f](𝛗n.t).
54 /3 width=1 by conj, lift_iref_after_sn, lift_iref_after_dx/
57 lemma lift_iref (f) (t) (n:pnat):
58 ↑[f]↑[𝐮❨n❩]t ⇔ ↑[f](𝛗n.t).
59 /3 width=3 by lift_term_after, subset_eq_trans/