Zulip Chat Archive
Stream: general
Topic: grind provides multiplication by Nat
Yaël Dillies (Aug 26 2025 at 06:21):
docs#Lean.Grind.NatModule.nsmul is registered as an instance of HMul ℕ M M instead of SMul ℕ M, which means that you can end up writing an expression for which there is no API!
import Mathlib.Algebra.Group.Basic
variable {M : Type*} [AddCommMonoid M]
lemma foo (m : M) : 2 * m = m + m := two_nsmul _ -- definitely abusing defeq
Yaël Dillies (Aug 26 2025 at 06:22):
Would core be happy to change this to SMul?
Kim Morrison (Aug 26 2025 at 06:51):
It's already done.
Yaël Dillies (Aug 26 2025 at 06:52):
Is it? I see the same on master
Markus Himmel (Aug 26 2025 at 06:53):
Last updated: Dec 20 2025 at 21:32 UTC