]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/gr_pushs.ma
update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_pushs.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "ground/notation/functions/upspoonstar_2.ma".
16 include "ground/arith/nat_succ_iter.ma".
17 include "ground/relocation/gr_map.ma".
18
19 (* ITERATED PUSH FOR GENERIC RELOCATION MAPS ********************************)
20
21 (*** pushs *)
22 definition gr_pushs (f:gr_map) (n:nat) ≝
23            (gr_push^n) f.
24
25 interpretation
26   "iterated push (generic relocation maps)"
27   'UpSpoonStar n f = (gr_pushs f n).
28
29 (* Basic constructions ******************************************************)
30
31 (*** pushs_O *)
32 lemma gr_pushs_zero:
33       ∀f. f = ⫯*[𝟎] f.
34 // qed.
35
36 (*** push_swap *)
37 lemma gr_pushs_push (n):
38       ∀f. ⫯⫯*[n] f = ⫯*[n] ⫯f.
39 #n #f @(niter_appl … gr_push)
40 qed.
41
42 (*** pushs_S *)
43 lemma gr_pushs_succ (n):
44       ∀f. ⫯⫯*[n] f = ⫯*[↑n] f.
45 #f #n @(niter_succ … gr_push)
46 qed.
47
48 (*** pushs_xn *)
49 lemma gr_pushs_swap (n):
50       ∀f. ⫯*[n] ⫯f = ⫯*[↑n] f.
51 // qed.