Skip to content

Commit d76f1d4

Browse files
eupruninyuanyi-350
authored andcommitted
chore(Order/BoundedOrder): golf entire max_ne_top using grind (leanprover-community#28845)
1 parent b1ff059 commit d76f1d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Mathlib/Order/BoundedOrder/Lattice.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ theorem max_eq_top [OrderTop α] {a b : α} : max a b = ⊤ ↔ a = ⊤ ∨ b =
156156

157157
@[aesop (rule_sets := [finiteness]) safe apply]
158158
lemma max_ne_top [OrderTop α] {a b : α} (ha : a ≠ ⊤) (hb : b ≠ ⊤) : max a b ≠ ⊤ := by
159-
by_contra h
160-
obtain (h | h) := max_eq_top.mp h
161-
all_goals simp_all
159+
grind [max_eq_top]
162160

163161
end LinearOrder
164162

0 commit comments

Comments
 (0)