Iteration of functions on natural numbers.
Copyright (c) The Iris-Lean Contributors.
theorem
Nat.repeat_rel
{α : Type u_1}
{R : α → α → Prop}
(hR : Equivalence R)
{f g : α → α}
(hf : ∀ {x y : α}, R x y → R (f x) (f y))
(hfg : ∀ (z : α), R (f z) (g z))
(k : Nat)
(z : α)
:
If f respects an equivalence R and is R-related to g pointwise, then iterating f
and g gives R-related results.