lean4-htt/tests/lean/run/326.lean
2024-09-10 19:30:09 +10:00

12 lines
309 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Monoid (α : Type u) [Zero α] extends Add α where
zero_add (a : α) : 0 + a = a
add_zero (a : α) : a + 0 = a
attribute [simp] Monoid.zero_add Monoid.add_zero
variable {α : Type u} [Zero α] [Monoid α]
-- works
example (a : α) : 0 + a = a := by simp
example (a : α) : a + 0 = a := by simp