Commit 2024-06-05 08:10 3b9aaf4f
View on Github →refactor: Redefine pow
in terms of iterate
(#1388)
In the Monoid
instances for Function.End α
, Equiv.Perm α
, Monoid.End α
, AddMonoid.End α
, α →+* α
, replace the default npowRec
by a custom one in terms of Nat.iterate
. Write the expected coercion lemmas.
As a consequence, I can delete the recently introduced file Algebra.Ring.Hom.IterateHom
.
Zulip discussion: https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/.231388.20Redefine.20pow.20in.20terms.20of.20iterate