Zulip Chat Archive
Stream: general
Topic: Finding the `@[simp]` attribute
Eric Wieser (Jan 07 2026 at 11:36):
I'm struggling to work out why this works:
example : [].rightpad 0 0 = [] := by
simp? -- simp only [List.rightpad, ...]
Where is src#List.rightpad being marked as simp? docs#List.rightpad doesn't indicate that it is.
Eric Wieser (Jan 07 2026 at 11:37):
In this case it seems the attribute is in a later file; should this be discouraged?
Kim Morrison (Jan 07 2026 at 23:49):
https://github.com/leanprover/lean4/pull/11928
Last updated: Feb 28 2026 at 14:05 UTC