Skip to content

Commit de290dd

Browse files
committed
chore(Topology): remove repeated grind from DenselyOrdered.subsingleton_of_discreteTopology (#39511)
This proof can be rewritten into a single use of `grind` that is almost identical and maybe more clear with the purpose of the rewrites.
1 parent 33390a7 commit de290dd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Mathlib/Topology/Order/DenselyOrdered.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,8 @@ lemma DenselyOrdered.subsingleton_of_discreteTopology [DiscreteTopology α] : Su
263263
suffices ∀ a b : α, b ≤ a fromfun a b ↦ le_antisymm (this b a) (this a b)⟩
264264
intro a b
265265
by_contra! contra
266-
suffices b ∈ Ioo a b by grind
267-
rw [← (isClosed_discrete (Ioo a b)).closure_eq, closure_Ioo contra.ne]
268-
grind
266+
have : Ioo a b = Icc a b := by rw [← closure_discrete (Ioo a b), closure_Ioo contra.ne]
267+
grind => have : b ∈ Ioo a b; finish
269268

270269
/-- Let `s` be a dense set in a nontrivial dense linear order `α`. If `s` is a
271270
separable space (e.g., if `α` has a second countable topology), then there exists a countable

0 commit comments

Comments
 (0)