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/exp_3.ma".
16 include "ground/arith/pnat.ma".
18 (* ITERATED FUNCTION FOR POSITIVE INTEGERS **********************************)
20 (* Note: see also: lib/arithemetics/bigops.ma *)
21 rec definition piter (p:pnat) (A:Type[0]) (f:A→A) (a:A) ≝
24 | psucc q ⇒ f (piter q A f a)
28 "iterated function (positive integers)"
29 'Exp A f p = (piter p A f).
31 (* Basic constructions ******************************************************)
33 lemma piter_unit (A) (f) (a): f a = (f^{A}𝟏) a.
36 lemma piter_succ (A) (f) (p) (a): f (f^p a) = f^{A}(↑p) a.
39 (* Advanced constructions ***************************************************)
41 lemma piter_appl (A) (f) (p) (a): f (f^p a) = f^{A}p (f a).
43 #p #IH #a <piter_succ <piter_succ //