lemmaliftPath_apply (e : X→Y) (he : IsEmbedding e) {a b : X}
(p : Path (e a) (e b)) (hp : ∀ t, p t ∈ range e) (t : unitInterval) :
e (liftPath e he p hp t) = p t :=by
lemmalift_joinedIn (e : X→Y) (he : IsEmbedding e) {a b : X} {S : SetY}
(hS : S⊆ range e) (hp : JoinedInS (e a) (e b)) :
JoinedIn (e ⁻¹' S) a b :=by
proof · 6
lines
obtain ⟨p,hp⟩ := hp
lethpr : ∀ t, p t ∈ range e :=fun t => hS (hp t)
refine ⟨liftPath e he p hpr,fun t => ?_⟩
change e (liftPath e he p hpr t) ∈S
rw [liftPath_apply e he p hpr]
exact hp t
theoremregularized_values {f : Square→ℝ} {AB : SetSquare}
(hA : A.Nonempty) (hB : B.Nonempty)
(hf0 : ∀ z, 0≤ f z) (hf1 : ∀ z, f z ≤1)
(hAf : ∀ z ∈A, f z = 0) (hBf : ∀ z ∈B, f z = 1) :
(∀ z, drain (flood f A) B z ∈Icc (0 : ℝ) 1) ∧
(∀ z ∈A, drain (flood f A) B z = 0) ∧
(∀ z ∈B, drain (flood f A) B z = 1) :=by
proof · 12
lines
havehF0 : ∀ z, 0≤ flood f A z :=fun z => (hf0 z).trans (le_flood hA hf1 z)
have hF1 := flood_le_upper hA hf1
have hH0 := drain_lower hB hF0
have hHF := drain_le hB hF0
refine ⟨fun z => ⟨hH0 z, (hHF z).trans (hF1 z)⟩, ?_, ?_⟩
· intro z hz
apply le_antisymm _ (hH0 z)
simpa [flood_eq_on_band hA hf1 hz, hAf z hz] using hHF z
· intro z hz
rw [drain_eq_on_band hB hF0 hz]
apply le_antisymm (hF1 z)
simpa [hBf z hz] using le_flood hA hf1 z
theoremrectangle_separating_level {f : Square→ℝ}
(hf : Continuous f) (hf0 : ∀ z, 0≤ f z) (hf1 : ∀ z, f z ≤1)
(hAf : ∀ z ∈ topBand, f z = 0) (hBf : ∀ z ∈ bottomBand, f z = 1)
{t : ℝ} (ht0 : 0 < t) (ht1 : t < 1) :
letH:= drain (flood f topBand) bottomBand
proof · 20
lines
∃C : SetSquare, IsCompactC∧IsConnectedC∧C⊆ centralRectangle ∧
(∀ z ∈C, H z = t) ∧ (∃ z ∈C, z.1 = 0) ∧ (∃ z ∈C, z.1 = 1) ∧
(∀ {x y : Square} (p : Path x y), H x < t → t < H y →∃ s, p s ∈C) :=by
obtain ⟨C,hCc,hCn,hCH,hCl,hCr,hCs⟩ := separating_level topBand_pathConnected bottomBand_pathConnected
(by intro s; change (0 : ℝ) ≤1 / 3; norm_num)
(by intro s; change (2 : ℝ) / 3≤1; norm_num)
hf hf0 hf1 hAf hBf ht0 ht1
refine ⟨C,hCc,hCn,?_,hCH,hCl,hCr,hCs⟩
obtain ⟨_,hHA,hHB⟩ := regularized_values topBand_pathConnected.nonempty
bottomBand_pathConnected.nonempty hf0 hf1 hAf hBf
intro z hz
constructor
· by_contra h
have he := hHA z (show z ∈ topBand from (lt_of_not_ge h).le)
rw [hCH z hz] at he
exact (ne_of_gt ht0) he
· by_contra h
have he := hHB z (show z ∈ bottomBand from (lt_of_not_ge h).le)
rw [hCH z hz] at he
exact (ne_of_lt ht1) he