Skip to content

Commit f8770bc

Browse files
committed
feat(Topology/Order): DenselyOrdered of PreconnectedSpace (#37935)
Co-authored-by: NoahW314 <noahwalker3.14@gmail.com>
1 parent 8e3c989 commit f8770bc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Mathlib/Topology/Order/IntermediateValue.lean

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,16 @@ theorem IsPreconnected.eq_univ_of_unbounded {s : Set α} (hs : IsPreconnected s)
220220

221221
end
222222

223-
variable {α : Type u} [ConditionallyCompleteLinearOrder α] [TopologicalSpace α] [OrderTopology α]
223+
variable {α : Type u} [TopologicalSpace α]
224+
225+
theorem denselyOrdered_of_preconnectedSpace [LinearOrder α] [OrderTopology α]
226+
[PreconnectedSpace α] : DenselyOrdered α where
227+
dense x y hxy := by
228+
suffices (Iio y ∩ Ioi x).Nonempty by grind [Set.inter_nonempty_iff_exists_left]
229+
exact nonempty_inter (isOpen_Iio' y) (isOpen_Ioi' x) (Set.Iio_union_Ioi_of_lt hxy)
230+
⟨x, Set.mem_Iio.mpr hxy⟩ ⟨y, Set.mem_Ioi.mpr hxy⟩
231+
232+
variable [ConditionallyCompleteLinearOrder α] [OrderTopology α]
224233

225234
/-- A bounded connected subset of a conditionally complete linear order includes the open interval
226235
`(Inf s, Sup s)`. -/

0 commit comments

Comments
 (0)