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/notation/functions/droppreds_2.ma".
16 include "ground/relocation/rtmap_pushs.ma".
17 include "ground/relocation/rtmap_tl.ma".
19 (* RELOCATION MAP ***********************************************************)
21 definition tls (f:rtmap) (n:nat) ≝ tl^n f.
23 interpretation "tls (rtmap)" 'DropPreds n f = (tls f n).
25 (* Basic properties *********************************************************)
27 lemma tls_O: ∀f. f = ⫱*[𝟎] f.
30 lemma tls_S: ∀f,n. ⫱ ⫱*[n] f = ⫱*[↑n] f.
31 #f #n @(niter_succ … tl)
34 lemma tls_eq_repl: ∀n. eq_repl (λf1,f2. ⫱*[n] f1 ≡ ⫱*[n] f2).
35 #n @(nat_ind_succ … n) -n /3 width=1 by tl_eq_repl/
38 (* Advanced properties ******************************************************)
40 lemma tls_swap (n) (f): ⫱ ⫱*[n] f = ⫱*[n] ⫱f.
41 #f #n @(niter_appl … tl)
44 lemma tls_xn: ∀n,f. ⫱*[n] ⫱f = ⫱*[↑n] f.
47 (* Properties with pushs ****************************************************)
49 lemma tls_pushs: ∀n,f. f = ⫱*[n] ⫯*[n] f.
50 #n @(nat_ind_succ … n) -n //
51 #n #IH #f <tls_xn <pushs_S <tl_push_rew //