lean4-htt/tests/lean/run/326.lean
Leonardo de Moura f1245f9dc7 fix: bug at isDefEqOffset
fixes #326
2021-03-02 17:28:40 -08:00

14 lines
349 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.

abbrev Zero α := OfNat α (natLit! 0)
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