Zulip Chat Archive
Stream: Is there code for X?
Topic: semiring nsmul
Kim Morrison (Jul 03 2025 at 23:33):
Surely this already has a name somewhere?
import Mathlib
example {α} [Semiring α] (n : ℕ) (a : α) : n • a = (n : α) * a := by
induction n with
| zero => simp [zero_nsmul]
| succ n ih =>
simp [succ_nsmul, ih, right_distrib]
Aaron Liu (Jul 03 2025 at 23:35):
Probably something like docs#nsmul_eq_mul
Kim Morrison (Jul 03 2025 at 23:35):
ah, I didn't actually have that imported!
Last updated: Dec 20 2025 at 21:32 UTC