]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground/relocation/gr_pushs.ma
milestone update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_pushs.ma
diff --git a/matita/matita/contribs/lambdadelta/ground/relocation/gr_pushs.ma b/matita/matita/contribs/lambdadelta/ground/relocation/gr_pushs.ma
new file mode 100644 (file)
index 0000000..9c2aa09
--- /dev/null
@@ -0,0 +1,51 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+include "ground/notation/functions/upspoonstar_2.ma".
+include "ground/arith/nat_succ_iter.ma".
+include "ground/relocation/gr_map.ma".
+
+(* ITERATED PUSH FOR GENERIC RELOCATION MAPS ***********************************************************)
+
+(*** pushs *)
+definition gr_pushs (f:gr_map) (n:nat) ≝
+           (gr_push^n) f.
+
+interpretation
+  "iterated push (generic relocation maps)"
+  'UpSpoonStar n f = (gr_pushs f n).
+
+(* Basic properties *********************************************************)
+
+(*** pushs_O *)
+lemma gr_pushs_zero:
+      ∀f. f = ⫯*[𝟎] f.
+// qed.
+
+(*** push_swap *)
+lemma gr_pushs_push (n):
+      ∀f. ⫯⫯*[n] f = ⫯*[n] ⫯f.
+#n #f @(niter_appl … gr_push)
+qed.
+
+(*** pushs_S *)
+lemma gr_pushs_succ (n):
+      ∀f. ⫯⫯*[n] f = ⫯*[↑n] f.
+#f #n @(niter_succ … gr_push)
+qed.
+
+(*** pushs_xn *)
+lemma gr_pushs_swap (n):
+      ∀f. ⫯*[n] ⫯f = ⫯*[↑n] f.
+// qed.