@@ -30,26 +30,23 @@ public section
3030
3131open Set Pointwise
3232
33- variable ( E : Type *) {s : Set E}
33+ variable { E : Type *} {s : Set E}
3434variable [AddCommGroup E] [Module ℝ E]
35- variable [UniformSpace E] [IsUniformAddGroup E] [lcs : LocallyConvexSpace ℝ E] [ContinuousSMul ℝ E]
35+ variable [UniformSpace E] [IsUniformAddGroup E] [LocallyConvexSpace ℝ E] [ContinuousSMul ℝ E]
3636
37- theorem totallyBounded_convexHull (hs : TotallyBounded s) :
37+ protected lemma TotallyBounded.convexHull (hs : TotallyBounded s) :
3838 TotallyBounded (convexHull ℝ s) := by
39- rw [totallyBounded_iff_subset_finite_iUnion_nhds_zero]
39+ rw [totallyBounded_iff_subset_finite_iUnion_nhds_zero] at ⊢ hs
4040 intro U hU
4141 obtain ⟨W, hW₁, hW₂⟩ := exists_nhds_zero_half hU
42- obtain ⟨V, ⟨ hV₁, hV₂, hV₃⟩⟩ := (locallyConvexSpace_iff_exists_convex_subset_zero ℝ E).mp lcs W hW₁
43- obtain ⟨t, ⟨ htf, hts⟩⟩ := (totallyBounded_iff_subset_finite_iUnion_nhds_zero.mp hs) _ hV₁
44- obtain ⟨t', ⟨ htf', hts'⟩⟩ := ( totallyBounded_iff_subset_finite_iUnion_nhds_zero.mp
45- (IsCompact.totallyBounded (Finite. isCompact_convexHull ℝ htf)) _ hV₁)
42+ obtain ⟨V, hV₁,hV₂, hV₃⟩ := (locallyConvexSpace_iff_exists_convex_subset_zero ℝ E).mp ‹_› W hW₁
43+ obtain ⟨t, htf, hts⟩ := hs _ hV₁
44+ obtain ⟨t', htf', hts'⟩ := totallyBounded_iff_subset_finite_iUnion_nhds_zero.mp
45+ (htf. isCompact_convexHull ℝ).totallyBounded _ hV₁
4646 use t', htf'
4747 simp only [iUnion_vadd_set, vadd_eq_add] at hts hts' ⊢
48- calc convexHull ℝ s
49- _ ⊆ convexHull ℝ (t + V) := convexHull_mono hts
50- _ ⊆ convexHull ℝ t + convexHull ℝ V := convexHull_add_subset
51- _ = convexHull ℝ t + V := by rw [hV₂.convexHull_eq]
52- _ ⊆ t' + V + V := add_subset_add_right hts'
53- _ = t' + (V + V) := by rw [add_assoc]
54- _ ⊆ t' + (W + W) := add_subset_add_left (add_subset_add hV₃ hV₃)
55- _ ⊆ t' + U := add_subset_add_left (add_subset_iff.mpr hW₂)
48+ grw [hts, convexHull_add_subset, hV₂.convexHull_eq, hts', add_assoc, hV₃, add_subset_iff.mpr hW₂]
49+
50+ @[simp] lemma totallyBounded_convexHull : TotallyBounded (convexHull ℝ s) ↔ TotallyBounded s where
51+ mp := .subset <| subset_convexHull ..
52+ mpr := .convexHull
0 commit comments