@@ -39,7 +39,7 @@ assert_not_exists ContinuousLinearMap.hasOpNorm
3939
4040open Set
4141
42- open Pointwise
42+ open Pointwise TopologicalSpace Metric
4343
4444variable {E : Type *} {s t : Set E} {x y : E}
4545
321321
322322section Countable
323323
324- open TopologicalSpace Metric
325-
326324variable [NormedAddCommGroup E] [NormedSpace ℝ E] [Module 𝕜 E] [ContinuousSMul 𝕜 E]
327325
328326/-- A closed convex set `s` is the intersection of countably many half spaces in a separable Banach
@@ -352,24 +350,20 @@ theorem iInter_nat_halfSpaces_eq
352350 · ext x
353351 simp only [mem_iInter, mem_setOf_eq]
354352 refine ⟨fun hx ↦ ?_, fun hx i ↦ (hLc i).2 x hx⟩
355- · intro hx
356- contrapose! hx
357- have pos : 0 < infDist x s / 2 := by
358- refine div_pos ?_ (by positivity)
359- exact (IsClosed.notMem_iff_infDist_pos hs₂ hs₃).mp hx
360- obtain ⟨_, ⟨i, rfl⟩, hi⟩ := Metric.mem_closure_iff.mp (hf hx) _ pos
361- refine ⟨i, (hLc i).1 _ ?_⟩
362- have hfix : infDist (f i) s ≥ infDist x s / 2 := by
363- by_contra! hp
364- obtain ⟨y, hy1, hy2⟩ := (infDist_lt_iff hs₃).mp hp
365- have hxy : dist x y < infDist x s := by linarith [dist_triangle x (f i) y]
366- exact notMem_of_dist_lt_infDist hxy hy1
367- rw [mem_ball]
368- linarith
369- · intro hx i
370- exact (hLc i).2 x hx
371- · intro _ _ j
372- obtain hl | hr := le_or_gt (c j) 0
353+ contrapose! hx
354+ have pos : 0 < infDist x s / 2 := by
355+ refine div_pos ?_ (by positivity)
356+ exact (IsClosed.notMem_iff_infDist_pos hs₂ hs₃).mp hx
357+ obtain ⟨_, ⟨i, rfl⟩, hi⟩ := Metric.mem_closure_iff.mp (hf hx) _ pos
358+ refine ⟨i, (hLc i).1 _ ?_⟩
359+ have hfix : infDist (f i) s ≥ infDist x s / 2 := by
360+ by_contra! hp
361+ obtain ⟨y, hy1, hy2⟩ := (infDist_lt_iff hs₃).mp hp
362+ have hxy : dist x y < infDist x s := by linarith [dist_triangle x (f i) y]
363+ exact notMem_of_dist_lt_infDist hxy hy1
364+ rw [mem_ball]
365+ linarith
366+ · obtain hl | hr := le_or_gt (c j) 0
373367 · use f j
374368 have : re (L j (f j)) < c j := (hLc j).1 _ <| mem_ball_self <|
375369 (IsClosed.notMem_iff_infDist_pos hs₂ hs₃).mp (hfmem j)
@@ -394,8 +388,7 @@ theorem iInter_nat_halfSpaces_eq_of_prod {F : Type*} {s : Set (E × F)}
394388 refine iInter_congr fun i ↦ ?_
395389 ext
396390 simp [← map_add]
397- · intro hs₃ hsne i
398- obtain ⟨z, hz⟩ := eq2 hs₃ hsne i
391+ · obtain ⟨z, hz⟩ := eq2 hs₃ hsne i
399392 exact ⟨z.1 , z.2 , by simpa [← map_add] using hz⟩
400393
401394end Countable
0 commit comments