Crossing paths in a rectangle and in a strip #
Paths joining opposite pairs of sides of a rectangle intersect. The proof applies Brouwer's fixed-point theorem to the two path parameters, projected to the unit square. Extending a path along the bounding lines then rules out reversed endpoint order for disjoint paths across a strip.
theorem Cslib.exists_eq_of_paths_crossing_rectangle {a b c d : ℝ × ℝ} (p : Path a b) (q : Path c d) (hp : Set.range ⇑p ⊆ Set.Icc a.1 b.1 ×ˢ Set.Icc c.2 d.2) (hq : Set.range ⇑q ⊆ Set.Icc a.1 b.1 ×ˢ Set.Icc c.2 d.2) :
Two paths in a rectangle joining opposite pairs of sides have a common point. The first path runs from the left side to the right and the second from bottom to top.
theorem Cslib.exists_eq_of_paths_crossing_strip {a b c d : ℝ × ℝ} (p : Path a b) (q : Path c d) (hc : c.2 = a.2) (hd : d.2 = b.2) (hp : ∀ (t : ↑unitInterval), (p t).2 ∈ Set.Icc a.2 b.2) (hq : ∀ (t : ↑unitInterval), (q t).2 ∈ Set.Icc a.2 b.2) (hbottom : ∀ (t : ↑unitInterval), (p t).2 = a.2 → p t = a) (htop : ∀ (t : ↑unitInterval), (p t).2 = b.2 → p t = b) (hstart : a.1 < c.1) (hfinish : d.1 < b.1) :
If two paths cross the same horizontal strip and their endpoints occur in opposite horizontal orders on its two boundary lines, the paths intersect. The first path meets the boundary lines only at its endpoints.