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

Estimated changes

modified theorem RingHom.coe_mul
modified theorem RingHom.coe_one
added theorem RingHom.coe_pow
modified theorem RingHom.mul_def
modified theorem RingHom.one_def