lean4-htt/tests/lean/run/4534.lean
2024-06-26 05:48:03 +00:00

17 lines
472 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.

universe u
class MyClass (α : Type u) extends LE α where
sup : ααα
le_refl : ∀ a : α, a ≤ a
sup_of_le_left : ∀ a b : α, b ≤ a → sup a b = a
instance : MyClass Prop where
le_refl _ := id
sup_of_le_left _ _ h := propext ⟨Or.rec id h, Or.inl⟩
/--
info: Try this: simp only [MyClass.le_refl, MyClass.sup_of_le_left]
-/
#guard_msgs in
example : MyClass.sup False False = False := by
simp? [MyClass.sup_of_le_left, MyClass.le_refl]