Commit 2022-02-23 09:06 5be1724a
View on Github →feat: AddMonoidWithOne
, AddGroupWithOne
(#206)
Counterpart to leanprover-community/mathlib#12182. Solves the performance issues with polymorphic numerals from #177, as well as the diamonds with Nat.
A noteworthy feature is that after importing mathlib, the coercion ℕ → ℤ
changes from Int.ofNat
to Nat.cast
.