-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intercalate a polyhedron in an open set
- Loading branch information
1 parent
36d96c2
commit 1a30ed2
Showing
7 changed files
with
158 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Mathlib.Analysis.Convex.Hull | ||
|
||
section OrderedCommSemiring | ||
variable {𝕜 E : Type*} [OrderedCommRing 𝕜] [AddCommGroup E] [Module 𝕜 E] | ||
|
||
open scoped Pointwise | ||
|
||
-- TODO: Turn `convexHull_smul` around | ||
lemma convexHull_vadd (x : E) (s : Set E) : convexHull 𝕜 (x +ᵥ s) = x +ᵥ convexHull 𝕜 s := | ||
(AffineEquiv.constVAdd 𝕜 _ x).toAffineMap.image_convexHull s |>.symm | ||
|
||
end OrderedCommSemiring | ||
|
||
section pi | ||
variable {𝕜 ι : Type*} {E : ι → Type*} [Fintype ι] [LinearOrderedField 𝕜] | ||
[Π i, AddCommGroup (E i)] [Π i, Module 𝕜 (E i)] {s : Set ι} {t : Π i, Set (E i)} {f : Π i, E i} | ||
|
||
lemma mem_convexHull_pi (h : ∀ i ∈ s, f i ∈ convexHull 𝕜 (t i)) : f ∈ convexHull 𝕜 (s.pi t) := | ||
sorry -- See `mk_mem_convexHull_prod` | ||
|
||
@[simp] lemma convexHull_pi (s : Set ι) (t : Π i, Set (E i)) : | ||
convexHull 𝕜 (s.pi t) = s.pi (fun i ↦ convexHull 𝕜 (t i)) := | ||
Set.Subset.antisymm (convexHull_min (Set.pi_mono fun _ _ ↦ subset_convexHull _ _) $ convex_pi $ | ||
fun _ _ ↦ convex_convexHull _ _) fun _ ↦ mem_convexHull_pi | ||
|
||
end pi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import Mathlib.Analysis.Convex.Normed | ||
import Mathlib.Analysis.NormedSpace.AddTorsorBases | ||
import LeanCamCombi.Mathlib.Analysis.Convex.Hull | ||
|
||
open AffineBasis FiniteDimensional Metric Set | ||
open scoped Pointwise Topology | ||
|
||
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] | ||
{s : Set E} {x : E} | ||
|
||
/-- We can intercalate a polyhedron between a point and one of its neighborhoods. -/ | ||
lemma exists_mem_interior_convexHull_finset (hs : s ∈ 𝓝 x) : | ||
∃ t : Finset E, x ∈ interior (convexHull ℝ t : Set E) ∧ convexHull ℝ t ⊆ s := by | ||
classical | ||
wlog hx : x = 0 | ||
· obtain ⟨t, ht⟩ := this (s := -x +ᵥ s) (by simpa using vadd_mem_nhds (-x) hs) rfl | ||
use x +ᵥ t | ||
simpa [subset_set_vadd_iff, mem_vadd_set_iff_neg_vadd_mem, convexHull_vadd, interior_vadd] | ||
using ht | ||
subst hx | ||
obtain ⟨b⟩ := exists_affineBasis_of_finiteDimensional | ||
(ι := Fin (finrank ℝ E + 1)) (k := ℝ) (P := E) (by simp) | ||
obtain ⟨ε, hε, hεs⟩ := Metric.mem_nhds_iff.1 hs | ||
set u : Finset E := -Finset.univ.centroid ℝ b +ᵥ Finset.univ.image b | ||
have hu₀ : 0 ∈ interior (convexHull ℝ u : Set E) := by | ||
simpa [u, convexHull_vadd, interior_vadd, mem_vadd_set_iff_neg_vadd_mem] | ||
using b.centroid_mem_interior_convexHull | ||
have hu : u.Nonempty := Finset.nonempty_iff_ne_empty.2 fun h ↦ by simp [h] at hu₀ | ||
have hunorm : (u : Set E) ⊆ closedBall 0 (u.sup' hu (‖·‖) + 1) := by | ||
simp only [subset_def, Finset.mem_coe, mem_closedBall, dist_zero_right, ← sub_le_iff_le_add, | ||
Finset.le_sup'_iff] | ||
exact fun x hx ↦ ⟨x, hx, by simp⟩ | ||
set ε' : ℝ := ε / 2 / (u.sup' hu (‖·‖) + 1) | ||
have hε' : 0 < ε' := by | ||
dsimp [ε'] | ||
obtain ⟨x, hx⟩ := id hu | ||
have : 0 ≤ u.sup' hu (‖·‖) := Finset.le_sup'_of_le _ hx (norm_nonneg _) | ||
positivity | ||
set t : Finset E := ε' • u | ||
have hε₀ : 0 < ε / 2 := by positivity | ||
have htnorm : (t : Set E) ⊆ closedBall 0 (ε / 2) := by | ||
simp [t, Set.set_smul_subset_iff₀ hε'.ne', hε₀.le, _root_.smul_closedBall, abs_of_nonneg hε'.le] | ||
simpa [ε', hε₀.ne'] using hunorm | ||
refine ⟨t, ?_, ?_⟩ | ||
· simpa [t, interior_smul₀, ← convexHull_smul, zero_mem_smul_set_iff, hε'.ne'] | ||
calc | ||
convexHull ℝ t ⊆ closedBall 0 (ε / 2) := convexHull_min htnorm (convex_closedBall ..) | ||
_ ⊆ ball 0 ε := closedBall_subset_ball (by linarith) | ||
_ ⊆ s := hεs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Mathlib.Analysis.Convex.Segment | ||
import Mathlib.Topology.MetricSpace.PseudoMetric | ||
|
||
namespace Real | ||
variable {ε r : ℝ} | ||
|
||
open Metric | ||
|
||
lemma closedBall_eq_segment (hε : 0 ≤ ε) : closedBall r ε = segment ℝ (r - ε) (r + ε) := by | ||
rw [closedBall_eq_Icc, segment_eq_Icc ((sub_le_self _ hε).trans $ le_add_of_nonneg_right hε)] | ||
|
||
end Real |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Mathlib.Analysis.Normed.Group.Basic | ||
|
||
open scoped NNReal | ||
|
||
section ContinuousInv | ||
variable {α E : Type*} [SeminormedCommGroup E] [PseudoEMetricSpace α] {K : ℝ≥0} | ||
{f : α → E} {s : Set α} {x : α} | ||
|
||
@[to_additive (attr := simp)] | ||
lemma lipschitzWith_inv_iff : LipschitzWith K f⁻¹ ↔ LipschitzWith K f := by simp [LipschitzWith] | ||
|
||
@[to_additive (attr := simp)] | ||
lemma lipschitzOnWith_inv_iff : LipschitzOnWith K f⁻¹ s ↔ LipschitzOnWith K f s := by | ||
simp [LipschitzOnWith] | ||
|
||
@[to_additive (attr := simp)] | ||
lemma locallyLipschitz_inv_iff : LocallyLipschitz f⁻¹ ↔ LocallyLipschitz f := by | ||
simp [LocallyLipschitz] | ||
|
||
@[to_additive (attr := simp)] | ||
lemma antilipschitzWith_inv_iff : AntilipschitzWith K f⁻¹ ↔ AntilipschitzWith K f := by | ||
simp [AntilipschitzWith] | ||
|
||
end ContinuousInv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Mathlib.Topology.Algebra.Group.Basic | ||
|
||
variable {α G : Type*} | ||
|
||
section ContinuousInv | ||
variable [TopologicalSpace G] [InvolutiveInv G] [ContinuousInv G] [TopologicalSpace α] | ||
{f : α → G} {s : Set α} {x : α} | ||
|
||
@[to_additive (attr := simp)] | ||
lemma continuous_inv_iff : Continuous f⁻¹ ↔ Continuous f := (Homeomorph.inv G).comp_continuous_iff | ||
|
||
@[to_additive (attr := simp)] | ||
lemma continuousAt_inv_iff : ContinuousAt f⁻¹ x ↔ ContinuousAt f x := | ||
(Homeomorph.inv G).comp_continuousAt_iff _ _ | ||
|
||
@[to_additive (attr := simp)] | ||
lemma continuousOn_inv_iff : ContinuousOn f⁻¹ s ↔ ContinuousOn f s := | ||
(Homeomorph.inv G).comp_continuousOn_iff _ _ | ||
|
||
end ContinuousInv |