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 "delayed_updating/substitution/lift_eq.ma".
17 axiom lift_path_after (p) (f1) (f2):
18 ↑[f2]↑[f1]p = ↑[f2∘f1]p.
20 #p @(path_ind_lift … p) -p // [ #n | #n #l #p | #p ] #IH #f1 #f2
21 [ <lift_path_d_empty_sn <lift_path_d_empty_sn
22 | <lift_path_d_lcons_sn <lift_path_d_lcons_sn
23 | <lift_path_L_sn <lift_path_L_sn <lift_path_L_sn
25 include "delayed_updating/substitution/lift_prototerm.ma".
27 axiom lift_term_after (t) (f1) (f2):
28 ↑[f2]↑[f1]t ⇔ ↑[f2∘f1]t.
30 include "delayed_updating/syntax/prototerm_constructors.ma".
32 (* LIFT FOR PROTOTERM *******************************************************)
34 lemma lift_iref_after_sn (f) (t) (n:pnat):
35 ↑[f∘𝐮❨n❩]t ⊆ ↑[f](𝛗n.t).
36 #f #t #n #p * #q #Hq #H0 destruct
37 @(ex2_intro … (𝗱n◗𝗺◗q))
38 /2 width=1 by in_comp_iref/
41 lemma lift_iref_after_dx (f) (t) (n:pnat):
42 ↑[f](𝛗n.t) ⊆ ↑[f∘𝐮❨n❩]t.
43 #f #t #n #p * #q #Hq #H0 destruct
44 elim (in_comp_inv_iref … Hq) -Hq #p #Hp #Ht destruct
45 /2 width=1 by in_comp_lift_bi/
48 lemma lift_iref_after (f) (t) (n:pnat):
49 ↑[f∘𝐮❨n❩]t ⇔ ↑[f](𝛗n.t).
50 /3 width=1 by conj, lift_iref_after_sn, lift_iref_after_dx/
53 lemma lift_iref (f) (t) (n:pnat):
54 ↑[f]↑[𝐮❨n❩]t ⇔ ↑[f](𝛗n.t).
55 /3 width=3 by lift_term_after, subset_eq_trans/