Add lean source and binary files (part 37)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- lean/OAI/Analysis/RieszRectifiability/Rigidity/ShrinkingJetSeminorms.lean +97 -0
- lean/OAI/Analysis/RieszRectifiability/Rigidity/SourceDensityFractionalEquation.lean +51 -0
- lean/OAI/Analysis/RieszRectifiability/Rigidity/SupportedFractionalCutoff.lean +89 -0
- lean/OAI/Analysis/RieszRectifiability/Rigidity/TemperedFiniteOrderBound.lean +28 -0
- lean/OAI/Analysis/RieszRectifiability/Rigidity/TemperedHeightWeights.lean +81 -0
- lean/OAI/Analysis/RieszRectifiability/Rigidity/TemperedRealFiniteOrderBound.lean +29 -0
- lean/OAI/Analysis/RieszRectifiability/Rigidity/TruncatedRenormalizedHeightIdentity.lean +127 -0
- lean/OAI/Analysis/RieszRectifiability/Rigidity/VanishingJetGrowth.lean +65 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ActualNativeSurfaceGeometry.lean +77 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/BallChartPartialMap.lean +52 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/BoundedNormalizedBallCharts.lean +82 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/CenteredPerturbedBallCoverage.lean +113 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ChartNormalCone.lean +34 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ChildAndPointChartGluing.lean +112 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/CoherentCellCharts.lean +71 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ContinuousChartInnerCoverage.lean +67 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ContinuousPerturbedBallCoverage.lean +52 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ConvexChartContraction.lean +65 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/FiniteBallChartUnion.lean +83 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/FiniteChartParameterPacking.lean +84 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/FiniteChartUnionBounds.lean +43 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/FittingPlaneInputChart.lean +51 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ImmediateChildChartAssembly.lean +79 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ImmediateChildChartRescaling.lean +57 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/InitialAffineCharts.lean +88 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/LipschitzChartLift.lean +37 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/MatchedSurfaceBallDepthCharts.lean +79 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/MatchedSurfaceCellPlanes.lean +58 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/MatchedSurfaceDepthCharts.lean +91 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/MatchedSurfacePrecision.lean +33 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/NativeCoreAreaFraction.lean +82 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/NativeSurfaceArea.lean +96 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/NativeSurfaceRegularity.lean +115 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/OriginalADMatchedSurfaceModels.lean +75 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/OriginalADUniformPrecisionAreaModels.lean +79 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/OriginalADUniformSurfaceBallCharts.lean +95 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/OriginalTopAreaCharges.lean +65 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ParentChartPlaneHeight.lean +67 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/ParentToChildInputChart.lean +152 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/PerturbedBallCoverage.lean +67 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/PlaneChangeCharts.lean +83 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/PlaneChartBallArea.lean +79 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/PlaneDiskLowerArea.lean +54 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/QuantitativeConvexChartContraction.lean +92 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/RecenteredDiskCharts.lean +58 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/RegionRepresentativeCharts.lean +88 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/RescaledBallCharts.lean +81 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/RescaledChildChartGluing.lean +64 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/RieszFromUniformSurfacePieces.lean +60 -0
- lean/OAI/Analysis/RieszRectifiability/Surfaces/SurfaceBallCellCover.lean +101 -0
lean/OAI/Analysis/RieszRectifiability/Rigidity/ShrinkingJetSeminorms.lean
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Rigidity.VanishingJetGrowth
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Limits.SchwartzCutoffConvergence
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace RieszRectifiability
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
open SchwartzMap Metric Set Filter Topology
|
| 12 |
+
open scoped ContDiff
|
| 13 |
+
|
| 14 |
+
def jetCutoffCoefficient (C : ℕ → ℝ) (n : ℕ) : ℝ :=
|
| 15 |
+
∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * C i * 2 ^ (i + 1)
|
| 16 |
+
|
| 17 |
+
theorem jetCutoffCoefficient_nonneg (C : ℕ → ℝ) (hC : ∀ i, 0 ≤ C i) (n : ℕ) :
|
| 18 |
+
0 ≤ jetCutoffCoefficient C n :=
|
| 19 |
+
Finset.sum_nonneg fun i _ => mul_nonneg (mul_nonneg (by positivity) (hC i)) (by positivity)
|
| 20 |
+
|
| 21 |
+
theorem inverse_scale_cancel (r : ℝ) (hr : 0 < r) (i : ℕ) :
|
| 22 |
+
(r⁻¹) ^ i * (2 * r) ^ (i + 1) = 2 ^ (i + 1) * r := by
|
| 23 |
+
rw [mul_pow, pow_succ r]
|
| 24 |
+
calc
|
| 25 |
+
_ = 2 ^ (i + 1) * ((r⁻¹) ^ i * r ^ i) * r := by ring
|
| 26 |
+
_ = _ := by rw [← mul_pow, inv_mul_cancel₀ hr.ne', one_pow, mul_one]
|
| 27 |
+
|
| 28 |
+
theorem zero_jet_localized_derivative_bound {d : ℕ} {F : Type*}
|
| 29 |
+
[NormedAddCommGroup F] [NormedSpace ℝ F]
|
| 30 |
+
(g : 𝓢(Ambient d, F)) (n : ℕ)
|
| 31 |
+
(hz : ∀ i, i ≤ n → iteratedFDeriv ℝ i g 0 = 0)
|
| 32 |
+
(q : Ambient d → ℝ) (hq : ContDiff ℝ ∞ q)
|
| 33 |
+
(C : ℕ → ℝ) (hC : ∀ i, 0 ≤ C i) (r : ℝ) (hr : 0 < r)
|
| 34 |
+
(hb : ∀ i x, ‖iteratedFDeriv ℝ i q x‖ ≤ C i * (r⁻¹) ^ i)
|
| 35 |
+
(x : Ambient d) (hx : ‖x‖ ≤ 2 * r) :
|
| 36 |
+
‖iteratedFDeriv ℝ n (fun y => q y • g y) x‖ ≤
|
| 37 |
+
SchwartzMap.seminorm ℝ 0 (n + 1) g * jetCutoffCoefficient C n * r := by
|
| 38 |
+
let M := SchwartzMap.seminorm ℝ 0 (n + 1) g
|
| 39 |
+
have hM : 0 ≤ M := apply_nonneg _ _
|
| 40 |
+
have hd := norm_iteratedFDeriv_smul_le hq (g.smooth ⊤) x (n := n) (mod_cast le_top)
|
| 41 |
+
apply hd.trans
|
| 42 |
+
calc
|
| 43 |
+
_ ≤ ∑ i ∈ Finset.range (n + 1), M * ((n.choose i : ℝ) * C i * 2 ^ (i + 1)) * r := by
|
| 44 |
+
apply Finset.sum_le_sum
|
| 45 |
+
intro i hi
|
| 46 |
+
have hin : i ≤ n := by simpa only [Finset.mem_range, Nat.lt_succ_iff] using! hi
|
| 47 |
+
have hg : ‖iteratedFDeriv ℝ (n - i) g x‖ ≤ M * (2 * r) ^ (i + 1) := by
|
| 48 |
+
have ht := schwartz_zero_jet_derivative_bound g n (n - i) (by omega) hz x
|
| 49 |
+
rw [show n + 1 - (n - i) = i + 1 by omega] at ht
|
| 50 |
+
exact ht.trans (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (norm_nonneg _) hx _) hM)
|
| 51 |
+
calc
|
| 52 |
+
_ ≤ (n.choose i : ℝ) * (C i * (r⁻¹) ^ i) * (M * (2 * r) ^ (i + 1)) := by
|
| 53 |
+
exact mul_le_mul (mul_le_mul_of_nonneg_left (hb i x) (by positivity)) hg
|
| 54 |
+
(norm_nonneg _) (mul_nonneg (by positivity) (mul_nonneg (hC i) (by positivity)))
|
| 55 |
+
_ = M * ((n.choose i : ℝ) * C i) * ((r⁻¹) ^ i * (2 * r) ^ (i + 1)) := by ring
|
| 56 |
+
_ = _ := by rw [inverse_scale_cancel r hr i]; ring
|
| 57 |
+
_ = _ := by
|
| 58 |
+
unfold jetCutoffCoefficient
|
| 59 |
+
rw [Finset.mul_sum, Finset.sum_mul]
|
| 60 |
+
|
| 61 |
+
theorem zero_jet_localized_seminorm_bound {d : ℕ} {F : Type*}
|
| 62 |
+
[NormedAddCommGroup F] [NormedSpace ℝ F]
|
| 63 |
+
(g : 𝓢(Ambient d, F)) (k n : ℕ)
|
| 64 |
+
(hz : ∀ i, i ≤ n → iteratedFDeriv ℝ i g 0 = 0)
|
| 65 |
+
(q : Ambient d → ℝ) (hq : q.HasTemperateGrowth)
|
| 66 |
+
(C : ℕ → ℝ) (hC : ∀ i, 0 ≤ C i) (r : ℝ) (hr : 0 < r) (hrsmall : 2 * r ≤ 1)
|
| 67 |
+
(hb : ∀ i x, ‖iteratedFDeriv ℝ i q x‖ ≤ C i * (r⁻¹) ^ i)
|
| 68 |
+
(hs : tsupport q ⊆ closedBall (0 : Ambient d) (2 * r)) :
|
| 69 |
+
SchwartzMap.seminorm ℝ k n (smulLeftCLM F q g) ≤
|
| 70 |
+
SchwartzMap.seminorm ℝ 0 (n + 1) g * jetCutoffCoefficient C n * r := by
|
| 71 |
+
have hnonneg : 0 ≤ SchwartzMap.seminorm ℝ 0 (n + 1) g * jetCutoffCoefficient C n * r :=
|
| 72 |
+
mul_nonneg (mul_nonneg (apply_nonneg _ _) (jetCutoffCoefficient_nonneg C hC n)) hr.le
|
| 73 |
+
apply seminorm_le_bound ℝ k n _ hnonneg
|
| 74 |
+
intro x
|
| 75 |
+
rw [smulLeftCLM_apply hq]
|
| 76 |
+
by_cases hx : x ∈ closedBall (0 : Ambient d) (2 * r)
|
| 77 |
+
· have hxr : ‖x‖ ≤ 2 * r := by simpa only [mem_closedBall, dist_zero_right] using! hx
|
| 78 |
+
calc
|
| 79 |
+
_ ≤ 1 * ‖iteratedFDeriv ℝ n (fun y => q y • g y) x‖ :=
|
| 80 |
+
mul_le_mul_of_nonneg_right (pow_le_one₀ (norm_nonneg _) (hxr.trans hrsmall)) (norm_nonneg _)
|
| 81 |
+
_ ≤ _ := by
|
| 82 |
+
rw [one_mul]
|
| 83 |
+
exact zero_jet_localized_derivative_bound g n hz q hq.1 C hC r hr hb x hxr
|
| 84 |
+
· have hnot : x ∉ tsupport q := fun h => hx (hs h)
|
| 85 |
+
have heq : (fun y => q y • g y) =ᶠ[𝓝 x] (fun _ => (0 : F)) := by
|
| 86 |
+
filter_upwards [notMem_tsupport_iff_eventuallyEq.mp hnot] with y hy
|
| 87 |
+
simp only [Pi.zero_apply] at hy
|
| 88 |
+
rw [hy, zero_smul]
|
| 89 |
+
have hd := (heq.iteratedFDeriv ℝ n).eq_of_nhds
|
| 90 |
+
rw [hd]
|
| 91 |
+
simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero, mul_zero] using! hnonneg
|
| 92 |
+
|
| 93 |
+
end
|
| 94 |
+
|
| 95 |
+
end RieszRectifiability
|
| 96 |
+
|
| 97 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Rigidity/SourceDensityFractionalEquation.lean
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Kernel.SourceDensityRieszEquation
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Foundations.DensityGradientEquation
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace RieszRectifiability
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
open MeasureTheory SchwartzMap Metric Set Filter Topology
|
| 12 |
+
open scoped NNReal ENNReal
|
| 13 |
+
|
| 14 |
+
theorem source_planar_density_fractional_equation {d : ℕ} (p : ℕ) (C G : ℝ)
|
| 15 |
+
(μ : ℕ → Measure (Ambient d)) (ν : Measure (Ambient d))
|
| 16 |
+
[∀ j, IsFiniteMeasureOnCompacts (μ j)] [IsFiniteMeasureOnCompacts ν]
|
| 17 |
+
(hgrowth : ∀ j, GlobalUpperGrowth (p + 1) C (μ j))
|
| 18 |
+
(hgν : GlobalUpperGrowth (p + 1) G ν) (hweak : CompactTestConvergence μ ν)
|
| 19 |
+
(D : ℝ≥0)
|
| 20 |
+
(hB : ∀ j ε, 0 < ε → ∀ u : Ambient d → ℝ, MemLp u 2 (μ j) →
|
| 21 |
+
MemLp (truncated (p + 1) (μ j) ε u) 2 (μ j) ∧
|
| 22 |
+
eLpNorm (truncated (p + 1) (μ j) ε u) 2 (μ j) ≤ (D : ℝ≥0∞) * eLpNorm u 2 (μ j))
|
| 23 |
+
(L : Ambient (p + 1) →ₗᵢ[ℝ] Ambient d) (f : Ambient (p + 1) → ℝ)
|
| 24 |
+
(hf : Measurable f) (c : ℝ) (hc : 0 < c) (hlower : ∀ x, c ≤ f x)
|
| 25 |
+
(M : ℝ) (hupper : ∀ x, |f x| ≤ M)
|
| 26 |
+
(hdensity : ((volume : Measure (Ambient (p + 1))).withDensity
|
| 27 |
+
(fun x => ENNReal.ofReal (f x))).map L = ν)
|
| 28 |
+
(a : Ambient (p + 1)) (H R : ℝ) (hH : 0 < H) (hR : 0 < R) (hHR : 2 * H ≤ R)
|
| 29 |
+
(hboundary : ν (frontier (ball (L a) R)) = 0) (hmass : ν (ball (L a) R) ≠ 0)
|
| 30 |
+
(cMass : ℝ) (hcMass : 0 < cMass)
|
| 31 |
+
(hlowerMass : ENNReal.ofReal (cMass * (H / 4) ^ (p + 1)) ≤ ν (ball (L a) (H / 4)))
|
| 32 |
+
(hreflect : ScalarReflectionlessAt (p + 1) ν (L a))
|
| 33 |
+
(ψ : 𝓢(Ambient (p + 1), ℝ)) (hψc : HasCompactSupport ψ) (hψs : tsupport ψ ⊆ ball a H) :
|
| 34 |
+
Integrable (fun y => f y * ((-1 / 2 : ℝ) * ∫ h, fractionalSchwartzKernel (p + 1) ψ y h)) volume ∧
|
| 35 |
+
(∫ y, f y * ((-1 / 2 : ℝ) * ∫ h, fractionalSchwartzKernel (p + 1) ψ y h)) = 0 := by
|
| 36 |
+
apply density_fractional_equation_of_riesz_tests p f ψ
|
| 37 |
+
intro e
|
| 38 |
+
obtain ⟨_, _, hDs, _, hmean⟩ :=
|
| 39 |
+
compact_smooth_directional_derivative_test ψ (ψ.smooth ⊤) hψc e
|
| 40 |
+
have hsupport : ∀ x, scalarSchwartzDerivative ψ e x ≠ 0 → x ∈ ball a H := by
|
| 41 |
+
intro x hx
|
| 42 |
+
exact hψs (hDs (subset_tsupport (fun y => fderiv ℝ ψ y e) hx))
|
| 43 |
+
exact source_planar_density_riesz_test_equation p C G μ ν hgrowth hgν hweak D hB
|
| 44 |
+
L f hf c hc hlower M hupper hdensity e a H R hH hR hHR hboundary hmass cMass hcMass
|
| 45 |
+
hlowerMass hreflect (scalarSchwartzDerivative ψ e) hmean hsupport
|
| 46 |
+
|
| 47 |
+
end
|
| 48 |
+
|
| 49 |
+
end RieszRectifiability
|
| 50 |
+
|
| 51 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Rigidity/SupportedFractionalCutoff.lean
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Nets.FinitePairingCancellation
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Rigidity.FiniteFractionalHeightPairing
|
| 4 |
+
import OAI.Analysis.RieszRectifiability.Kernel.SupportedKernelDecomposition
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-!
|
| 9 |
+
# Fractional cutoffs for supported tests
|
| 10 |
+
|
| 11 |
+
Separation between the test support and the exterior region makes the cutoff
|
| 12 |
+
inactive in cross terms. The cutoff increment is also the closed-exterior
|
| 13 |
+
indicator of the full increment, giving its integrability and its equality
|
| 14 |
+
with the truncated fractional Schwartz test.
|
| 15 |
+
-/
|
| 16 |
+
|
| 17 |
+
namespace RieszRectifiability
|
| 18 |
+
|
| 19 |
+
noncomputable section
|
| 20 |
+
|
| 21 |
+
open MeasureTheory Metric Set Filter SchwartzMap
|
| 22 |
+
|
| 23 |
+
theorem supported_fractional_cutoff_cross {d : ℕ} (m : ℕ) (ε H R : ℝ)
|
| 24 |
+
(a x y : Ambient d) (g : Ambient d → ℂ)
|
| 25 |
+
(hnear : g x ≠ 0 → dist x a ≤ H) (hfar : y ∈ closedExterior a R)
|
| 26 |
+
(hsep : ε + H ≤ R) :
|
| 27 |
+
symmetricFractionalCutoffKernel m ε (x, y) • g x =
|
| 28 |
+
inverseDistancePow (m + 1) x y • g x := by
|
| 29 |
+
by_cases hg : g x = 0
|
| 30 |
+
· rw [hg]
|
| 31 |
+
exact (smul_zero _).trans (smul_zero _).symm
|
| 32 |
+
· have hy : R ≤ dist a y := hfar
|
| 33 |
+
have ht := dist_triangle a x y
|
| 34 |
+
rw [dist_comm a x] at ht
|
| 35 |
+
have hd : ε ≤ dist x y := by linarith [hnear hg]
|
| 36 |
+
simp only [symmetricFractionalCutoffKernel, ite_eq_left hd]
|
| 37 |
+
|
| 38 |
+
theorem supported_fractional_cutoff_cross_swap {d : ℕ} (m : ℕ) (ε H R : ℝ)
|
| 39 |
+
(a x y : Ambient d) (g : Ambient d → ℂ)
|
| 40 |
+
(hnear : g x ≠ 0 → dist x a ≤ H) (hfar : y ∈ closedExterior a R)
|
| 41 |
+
(hsep : ε + H ≤ R) :
|
| 42 |
+
symmetricFractionalCutoffKernel m ε (y, x) • g x =
|
| 43 |
+
inverseDistancePow (m + 1) x y • g x := by
|
| 44 |
+
rw [show symmetricFractionalCutoffKernel m ε (y, x) =
|
| 45 |
+
symmetricFractionalCutoffKernel m ε (x, y) from
|
| 46 |
+
symmetricFractionalCutoffKernel_swap m ε (x, y)]
|
| 47 |
+
exact supported_fractional_cutoff_cross m ε H R a x y g hnear hfar hsep
|
| 48 |
+
|
| 49 |
+
theorem test_zero_outside_localization {d : ℕ} (g : Ambient d → ℂ)
|
| 50 |
+
(a : Ambient d) (H R : ℝ) (hHR : H < R)
|
| 51 |
+
(hnear : ∀ x, g x ≠ 0 → dist x a ≤ H) :
|
| 52 |
+
∀ y ∈ (ball a R)ᶜ, g y = 0 := by
|
| 53 |
+
intro y hy
|
| 54 |
+
by_contra hgy
|
| 55 |
+
have hh := hnear y hgy
|
| 56 |
+
have hf : R ≤ dist y a := by simpa only [mem_compl_iff, mem_ball, not_lt] using! hy
|
| 57 |
+
linarith
|
| 58 |
+
|
| 59 |
+
theorem fractional_cutoff_increment_eq_indicator {d : ℕ} (m : ℕ) (ε : ℝ)
|
| 60 |
+
(g : Ambient d → ℂ) (x : Ambient d) :
|
| 61 |
+
(fun y => symmetricFractionalCutoffKernel m ε (x, y) • (g x - g y)) =
|
| 62 |
+
(closedExterior x ε).indicator (fun y => inverseDistancePow (m + 1) x y • (g x - g y)) := by
|
| 63 |
+
funext y
|
| 64 |
+
by_cases h : ε ≤ dist x y
|
| 65 |
+
· rw [indicator_of_mem (show y ∈ closedExterior x ε from h)]
|
| 66 |
+
simp only [symmetricFractionalCutoffKernel, ite_eq_left h]
|
| 67 |
+
· rw [indicator_of_notMem (show y ∉ closedExterior x ε from h)]
|
| 68 |
+
simp only [symmetricFractionalCutoffKernel, ite_eq_right h]
|
| 69 |
+
exact zero_smul ℝ (g x - g y)
|
| 70 |
+
|
| 71 |
+
theorem fractional_cutoff_increment_integrable (p : ℕ) (ε : ℝ) (hε : 0 < ε)
|
| 72 |
+
(g : 𝓢(Ambient (p + 1), ℂ)) (x : Ambient (p + 1)) :
|
| 73 |
+
Integrable (fun y => symmetricFractionalCutoffKernel (p + 1) ε (x, y) • (g x - g y)) volume := by
|
| 74 |
+
rw [fractional_cutoff_increment_eq_indicator]
|
| 75 |
+
exact (integrable_indicator_iff (closedExterior_measurable x ε)).2
|
| 76 |
+
(fractionalSchwartz_single_increment_integrable p ε hε g x)
|
| 77 |
+
|
| 78 |
+
theorem fractional_cutoff_increment_integral (p : ℕ) (ε : ℝ) (hε : 0 < ε)
|
| 79 |
+
(g : 𝓢(Ambient (p + 1), ℂ)) (x : Ambient (p + 1)) :
|
| 80 |
+
(∫ y, symmetricFractionalCutoffKernel (p + 1) ε (x, y) • (g x - g y)) =
|
| 81 |
+
fractionalSchwartzTruncatedTest p ε g x := by
|
| 82 |
+
rw [fractional_cutoff_increment_eq_indicator, integral_indicator (closedExterior_measurable x ε)]
|
| 83 |
+
exact (fractionalSchwartzTruncatedTest_eq_single_increment p ε hε g x).symm
|
| 84 |
+
|
| 85 |
+
end
|
| 86 |
+
|
| 87 |
+
end RieszRectifiability
|
| 88 |
+
|
| 89 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Rigidity/TemperedFiniteOrderBound.lean
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Rigidity.HeightTemperedDistribution
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open SchwartzMap MeasureTheory
|
| 11 |
+
|
| 12 |
+
theorem tempered_distribution_finite_seminorm_bound {d : ℕ}
|
| 13 |
+
(T : 𝓢'(Ambient d, ℂ)) :
|
| 14 |
+
∃ s : Finset (ℕ × ℕ), ∃ C : ℝ, 0 < C ∧
|
| 15 |
+
∀ g : 𝓢(Ambient d, ℂ),
|
| 16 |
+
‖T g‖ ≤ C * s.sup (schwartzSeminormFamily ℂ (Ambient d) ℂ) g := by
|
| 17 |
+
let q : Seminorm ℂ 𝓢(Ambient d, ℂ) := (normSeminorm ℂ ℂ).comp T.toLinearMap
|
| 18 |
+
have hq : Continuous q := continuous_norm.comp T.continuous
|
| 19 |
+
obtain ⟨s, C, hC, hbound⟩ := Seminorm.bound_of_continuous
|
| 20 |
+
(schwartz_withSeminorms ℂ (Ambient d) ℂ) q hq
|
| 21 |
+
refine ⟨s, C, by exact_mod_cast (pos_iff_ne_zero.mpr hC), fun g => ?_⟩
|
| 22 |
+
exact hbound g
|
| 23 |
+
|
| 24 |
+
end
|
| 25 |
+
|
| 26 |
+
end RieszRectifiability
|
| 27 |
+
|
| 28 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Rigidity/TemperedHeightWeights.lean
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Nets.FinitePairingCancellation
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open MeasureTheory Metric Set Function Filter Topology
|
| 11 |
+
|
| 12 |
+
def polynomialDecay {d : ℕ} (q : ℕ) (x : Ambient d) : ℝ := ((1 + ‖x‖) ^ q)⁻¹
|
| 13 |
+
|
| 14 |
+
theorem polynomialDecay_measurable {d : ℕ} (q : ℕ) :
|
| 15 |
+
Measurable (polynomialDecay (d := d) q) := by
|
| 16 |
+
unfold polynomialDecay
|
| 17 |
+
fun_prop
|
| 18 |
+
|
| 19 |
+
theorem polynomialDecay_nonneg {d : ℕ} (q : ℕ) (x : Ambient d) : 0 ≤ polynomialDecay q x := by
|
| 20 |
+
unfold polynomialDecay
|
| 21 |
+
positivity
|
| 22 |
+
|
| 23 |
+
theorem polynomialDecay_le_one {d : ℕ} (q : ℕ) (x : Ambient d) : polynomialDecay q x ≤ 1 := by
|
| 24 |
+
unfold polynomialDecay
|
| 25 |
+
apply inv_le_one_of_one_le₀
|
| 26 |
+
exact one_le_pow₀ (by linarith [norm_nonneg x] : (1 : ℝ) ≤ 1 + ‖x‖)
|
| 27 |
+
|
| 28 |
+
theorem polynomialDecay_eq_rpow {d : ℕ} (q : ℕ) (x : Ambient d) :
|
| 29 |
+
polynomialDecay q x = (1 + ‖x‖) ^ (-(q : ℝ)) := by
|
| 30 |
+
rw [Real.rpow_neg (by positivity), Real.rpow_natCast]
|
| 31 |
+
rfl
|
| 32 |
+
|
| 33 |
+
theorem polynomialDecay_le_far {d : ℕ} (q : ℕ) (a x : Ambient d) (hx : 0 < dist a x) :
|
| 34 |
+
polynomialDecay q x ≤ (1 + ‖a‖) ^ q * inverseDistancePow q a x := by
|
| 35 |
+
have hd : dist a x ≤ (1 + ‖a‖) * (1 + ‖x‖) := by
|
| 36 |
+
have h : dist a x ≤ ‖a‖ + ‖x‖ := by
|
| 37 |
+
rw [dist_eq_norm]
|
| 38 |
+
exact norm_sub_le a x
|
| 39 |
+
nlinarith [norm_nonneg a, norm_nonneg x, mul_nonneg (norm_nonneg a) (norm_nonneg x)]
|
| 40 |
+
have hp := pow_le_pow_left₀ (by positivity : 0 ≤ dist a x) hd q
|
| 41 |
+
rw [inverseDistancePow, ← div_eq_mul_inv]
|
| 42 |
+
apply (le_div_iff₀ (pow_pos hx q)).mpr
|
| 43 |
+
calc
|
| 44 |
+
_ ≤ polynomialDecay q x * ((1 + ‖a‖) * (1 + ‖x‖)) ^ q :=
|
| 45 |
+
mul_le_mul_of_nonneg_left hp (polynomialDecay_nonneg q x)
|
| 46 |
+
_ = _ := by
|
| 47 |
+
unfold polynomialDecay
|
| 48 |
+
rw [mul_pow]
|
| 49 |
+
field_simp
|
| 50 |
+
|
| 51 |
+
theorem polynomial_weight_integrable_from_height_tail {d : ℕ} (q : ℕ)
|
| 52 |
+
(μ : Measure (Ambient d)) (f : Ambient d → ℝ) (hf : Measurable f)
|
| 53 |
+
(a : Ambient d) (R : ℝ) (hR : 0 < R)
|
| 54 |
+
(hnear : IntegrableOn f (ball a R) μ)
|
| 55 |
+
(hfar : IntegrableOn (fun x => |f x| * inverseDistancePow q a x) (closedExterior a R) μ) :
|
| 56 |
+
Integrable (fun x => |f x| * polynomialDecay q x) μ := by
|
| 57 |
+
have hm : Measurable (fun x => |f x| * polynomialDecay q x) :=
|
| 58 |
+
hf.abs.mul (polynomialDecay_measurable q)
|
| 59 |
+
have hi : IntegrableOn (fun x => |f x| * polynomialDecay q x) (ball a R) μ := by
|
| 60 |
+
apply hnear.abs.mono' hm.aestronglyMeasurable
|
| 61 |
+
apply Eventually.of_forall
|
| 62 |
+
intro x
|
| 63 |
+
rw [Real.norm_of_nonneg (mul_nonneg (abs_nonneg _) (polynomialDecay_nonneg q x))]
|
| 64 |
+
simpa only [mul_one] using! mul_le_mul_of_nonneg_left (polynomialDecay_le_one q x) (abs_nonneg _)
|
| 65 |
+
have ho : IntegrableOn (fun x => |f x| * polynomialDecay q x) (closedExterior a R) μ := by
|
| 66 |
+
apply (hfar.const_mul ((1 + ‖a‖) ^ q)).mono' hm.aestronglyMeasurable
|
| 67 |
+
filter_upwards [ae_restrict_mem (closedExterior_measurable a R)] with x hx
|
| 68 |
+
rw [Real.norm_of_nonneg (mul_nonneg (abs_nonneg _) (polynomialDecay_nonneg q x))]
|
| 69 |
+
calc
|
| 70 |
+
_ ≤ |f x| * ((1 + ‖a‖) ^ q * inverseDistancePow q a x) :=
|
| 71 |
+
mul_le_mul_of_nonneg_left (polynomialDecay_le_far q a x (hR.trans_le hx)) (abs_nonneg _)
|
| 72 |
+
_ = _ := by ring
|
| 73 |
+
have hu := hi.union ho
|
| 74 |
+
rw [closedExterior_eq_compl_ball, union_compl_self, integrableOn_univ] at hu
|
| 75 |
+
exact hu
|
| 76 |
+
|
| 77 |
+
end
|
| 78 |
+
|
| 79 |
+
end RieszRectifiability
|
| 80 |
+
|
| 81 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Rigidity/TemperedRealFiniteOrderBound.lean
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Rigidity.TemperedFiniteOrderBound
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open SchwartzMap
|
| 11 |
+
|
| 12 |
+
theorem tempered_distribution_finite_real_seminorm_bound {d : ℕ}
|
| 13 |
+
(T : 𝓢'(Ambient d, ℂ)) :
|
| 14 |
+
∃ s : Finset (ℕ × ℕ), ∃ C : ℝ, 0 < C ∧
|
| 15 |
+
∀ g : 𝓢(Ambient d, ℂ),
|
| 16 |
+
‖T g‖ ≤ C * s.sup (schwartzSeminormFamily ℝ (Ambient d) ℂ) g := by
|
| 17 |
+
obtain ⟨s, C, hC, hbound⟩ := tempered_distribution_finite_seminorm_bound T
|
| 18 |
+
refine ⟨s, C, hC, fun g => ?_⟩
|
| 19 |
+
have heq : s.sup (schwartzSeminormFamily ℂ (Ambient d) ℂ) g =
|
| 20 |
+
s.sup (schwartzSeminormFamily ℝ (Ambient d) ℂ) g := by
|
| 21 |
+
simp only [Seminorm.finset_sup_apply]
|
| 22 |
+
rfl
|
| 23 |
+
exact (hbound g).trans_eq (congrArg (fun t : ℝ => C * t) heq)
|
| 24 |
+
|
| 25 |
+
end
|
| 26 |
+
|
| 27 |
+
end RieszRectifiability
|
| 28 |
+
|
| 29 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Rigidity/TruncatedRenormalizedHeightIdentity.lean
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Rigidity.SupportedFractionalCutoff
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Kernel.ComplexExteriorIntegrability
|
| 4 |
+
import OAI.Analysis.RieszRectifiability.Nets.RenormalizedCrossCancellation
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-!
|
| 9 |
+
# Truncated height pairing and its renormalized exterior term
|
| 10 |
+
|
| 11 |
+
For a compactly supported mean-zero Schwartz test, the weighted truncated
|
| 12 |
+
fractional pairing splits into a symmetric local pairing and a renormalized
|
| 13 |
+
exterior integral. Support separation removes the cutoff in cross terms, and
|
| 14 |
+
the weighted exterior hypothesis supplies the integrability needed for cancellation.
|
| 15 |
+
-/
|
| 16 |
+
|
| 17 |
+
namespace RieszRectifiability
|
| 18 |
+
|
| 19 |
+
noncomputable section
|
| 20 |
+
|
| 21 |
+
open MeasureTheory Metric Set Filter SchwartzMap
|
| 22 |
+
|
| 23 |
+
theorem compact_schwartz_truncated_height_pairing (p : ℕ)
|
| 24 |
+
(a : Ambient (p + 1)) (H R : ℝ) (hH : 0 ≤ H) (hR : 0 < R) (hHR : 2 * H ≤ R)
|
| 25 |
+
(ε : ℝ) (hε : 0 < ε) (hsep : ε + H ≤ R)
|
| 26 |
+
(w : Ambient (p + 1) → ℝ) (hwm : Measurable w)
|
| 27 |
+
(hw : IntegrableOn w (ball a R) volume)
|
| 28 |
+
(g : 𝓢(Ambient (p + 1), ℂ)) (hzero : (∫ x, g x) = 0)
|
| 29 |
+
(hnear : ∀ x, g x ≠ 0 → dist x a ≤ H)
|
| 30 |
+
(B : ℝ) (hB : 0 ≤ B) (hgB : ∀ x, ‖g x‖ ≤ B)
|
| 31 |
+
(hweighted : IntegrableOn (fun y => |w y| * inverseDistancePow (p + 1 + 2) a y)
|
| 32 |
+
(closedExterior a R) volume) :
|
| 33 |
+
Integrable (fun x => w x • fractionalSchwartzTruncatedTest p ε g x) volume ∧
|
| 34 |
+
(∫ x, w x • fractionalSchwartzTruncatedTest p ε g x) =
|
| 35 |
+
(1 / 2 : ℝ) • (∫ q : Ambient (p + 1) × Ambient (p + 1),
|
| 36 |
+
(w q.1 - w q.2) • (symmetricFractionalCutoffKernel (p + 1) ε q • (g q.1 - g q.2))
|
| 37 |
+
∂(volume.restrict (ball a R)).prod (volume.restrict (ball a R))) +
|
| 38 |
+
∫ q, complexRenormalizedNormalIntegrand (p + 1) w g a q
|
| 39 |
+
∂(volume.restrict (ball a R)).prod (volume.restrict (ball a R)ᶜ) := by
|
| 40 |
+
let μ : Measure (Ambient (p + 1)) := volume
|
| 41 |
+
let ν := μ.restrict (ball a R)
|
| 42 |
+
let η := μ.restrict (ball a R)ᶜ
|
| 43 |
+
let C := (volume (ball (0 : Ambient (p + 1)) 1)).toReal
|
| 44 |
+
let k := symmetricFractionalCutoffKernel (d := p + 1) (p + 1) ε
|
| 45 |
+
have hgrowth : GlobalUpperGrowth (p + 1) C μ := volume_global_upper_growth (p + 1)
|
| 46 |
+
let : IsFiniteMeasure ν := finiteMeasure_restrict_ball_of_globalGrowth (p + 1) C μ hgrowth a R hR
|
| 47 |
+
have hgs := test_zero_outside_localization g a H R (by linarith) hnear
|
| 48 |
+
have hgm : Measurable g := g.continuous.measurable
|
| 49 |
+
have hgn : Integrable (fun x => ‖g x‖) ν := g.integrable.restrict.norm
|
| 50 |
+
have hgnw : Integrable (fun x => ‖g x‖ * w x) ν :=
|
| 51 |
+
hw.bdd_mul hgm.norm.aestronglyMeasurable
|
| 52 |
+
(Eventually.of_forall fun x => by simpa only [norm_norm] using! hgB x)
|
| 53 |
+
have hzν : (∫ x, g x ∂ν) = 0 := by
|
| 54 |
+
exact (setIntegral_eq_integral_of_forall_compl_eq_zero hgs).trans hzero
|
| 55 |
+
have hD : Integrable (fun q : Ambient (p + 1) × Ambient (p + 1) =>
|
| 56 |
+
w q.1 • (inverseDistancePow (p + 1 + 1) q.1 q.2 • g q.1)) (ν.prod η) := by
|
| 57 |
+
simpa only [closedExterior_eq_compl_ball] using! direct_height_exterior_integrable
|
| 58 |
+
(p + 1) C μ ν hgrowth w g hwm hgm hgnw a H R hR hHR (Eventually.of_forall hnear)
|
| 59 |
+
have hN : Integrable (complexRenormalizedNormalIntegrand (p + 1) w g a) (ν.prod η) := by
|
| 60 |
+
simpa only [closedExterior_eq_compl_ball] using! complex_renormalized_exterior_integrable
|
| 61 |
+
(p + 1) C μ ν hgrowth w g hwm hgm hgn hgnw a H R hH hR hHR
|
| 62 |
+
(Eventually.of_forall hnear) hweighted
|
| 63 |
+
have hraw : ∀ᵐ y ∂η, Integrable (fun x => inverseDistancePow (p + 1 + 1) x y • g x) ν := by
|
| 64 |
+
filter_upwards [ae_restrict_mem (μ := μ)
|
| 65 |
+
(show MeasurableSet (ball a R)ᶜ from measurableSet_ball.compl)] with y hy
|
| 66 |
+
have hy' : R ≤ dist a y := by
|
| 67 |
+
rwa [← closedExterior_eq_compl_ball] at hy
|
| 68 |
+
exact far_kernel_test_integrable_of_support ν g hgm g.integrable.restrict
|
| 69 |
+
(p + 1) a y H R hR hHR (Eventually.of_forall hnear) hy'
|
| 70 |
+
have hcross := renormalized_complex_cross_integral_identity (p + 1) ν η w g a
|
| 71 |
+
g.integrable.restrict hzν hraw hD hN
|
| 72 |
+
have hcut (x y : Ambient (p + 1)) (hy : y ∈ (ball a R)ᶜ) :
|
| 73 |
+
k (x, y) • g x = inverseDistancePow (p + 1 + 1) x y • g x :=
|
| 74 |
+
supported_fractional_cutoff_cross (p + 1) ε H R a x y g (hnear x)
|
| 75 |
+
(by rwa [closedExterior_eq_compl_ball]) hsep
|
| 76 |
+
have hcutswap (x y : Ambient (p + 1)) (hy : y ∈ (ball a R)ᶜ) :
|
| 77 |
+
k (y, x) • g x = inverseDistancePow (p + 1 + 1) x y • g x :=
|
| 78 |
+
supported_fractional_cutoff_cross_swap (p + 1) ε H R a x y g (hnear x)
|
| 79 |
+
(by rwa [closedExterior_eq_compl_ball]) hsep
|
| 80 |
+
have hDcut : Integrable (fun q : Ambient (p + 1) × Ambient (p + 1) =>
|
| 81 |
+
w q.1 • (k q • g q.1)) (ν.prod η) := by
|
| 82 |
+
apply hD.congr
|
| 83 |
+
filter_upwards [Measure.quasiMeasurePreserving_snd.ae
|
| 84 |
+
(ae_restrict_mem (μ := μ) (show MeasurableSet (ball a R)ᶜ from measurableSet_ball.compl))] with q hq
|
| 85 |
+
exact congrArg (fun z : ℂ => w q.1 • z) (hcut q.1 q.2 hq).symm
|
| 86 |
+
have hOeq : (fun y => w y • (∫ x, k (y, x) • g x ∂ν)) =��[η]
|
| 87 |
+
fun y => w y • (∫ x, inverseDistancePow (p + 1 + 1) x y • g x ∂ν) := by
|
| 88 |
+
filter_upwards [ae_restrict_mem (μ := μ)
|
| 89 |
+
(show MeasurableSet (ball a R)ᶜ from measurableSet_ball.compl)] with y hy
|
| 90 |
+
apply congrArg (fun z : ℂ => w y • z)
|
| 91 |
+
exact integral_congr_ae (Eventually.of_forall fun x => hcutswap x y hy)
|
| 92 |
+
have hO := hcross.1.congr hOeq.symm
|
| 93 |
+
have hL := bounded_kernel_height_integrable ν w hwm hw g hgm B hB hgB k
|
| 94 |
+
(symmetricFractionalCutoffKernel_measurable (p + 1) ε) ((ε ^ (p + 1 + 1))⁻¹)
|
| 95 |
+
(symmetricFractionalCutoffKernel_bound (p + 1) ε hε)
|
| 96 |
+
have hdec := supported_height_kernel_integral_decomposition μ (ball a R) measurableSet_ball
|
| 97 |
+
w g hgs k (fractional_cutoff_increment_integrable p ε hε g) hL hDcut hO
|
| 98 |
+
have hpair := (finite_symmetric_height_kernel_pairing ν w hwm hw g hgm B hB hgB k
|
| 99 |
+
(symmetricFractionalCutoffKernel_measurable (p + 1) ε) ((ε ^ (p + 1 + 1))⁻¹)
|
| 100 |
+
(symmetricFractionalCutoffKernel_bound (p + 1) ε hε)
|
| 101 |
+
(symmetricFractionalCutoffKernel_swap (p + 1) ε)).2
|
| 102 |
+
have hDeq : (∫ x, w x • (∫ y, k (x, y) • g x ∂η) ∂ν) =
|
| 103 |
+
∫ x, w x • (∫ y, inverseDistancePow (p + 1 + 1) x y • g x ∂η) ∂ν := by
|
| 104 |
+
apply integral_congr_ae
|
| 105 |
+
apply Eventually.of_forall
|
| 106 |
+
intro x
|
| 107 |
+
apply congrArg (fun z : ℂ => w x • z)
|
| 108 |
+
apply setIntegral_congr_fun measurableSet_ball.compl
|
| 109 |
+
intro y hy
|
| 110 |
+
exact hcut x y hy
|
| 111 |
+
have hAe : (fun x => w x • (∫ y, k (x, y) • (g x - g y) ∂μ)) =
|
| 112 |
+
fun x => w x • fractionalSchwartzTruncatedTest p ε g x := by
|
| 113 |
+
funext x
|
| 114 |
+
exact congrArg (fun z : ℂ => w x • z) (fractional_cutoff_increment_integral p ε hε g x)
|
| 115 |
+
rw [hAe] at hdec
|
| 116 |
+
refine ⟨hdec.1, ?_⟩
|
| 117 |
+
change (∫ x, w x • fractionalSchwartzTruncatedTest p ε g x ∂μ) =
|
| 118 |
+
(1 / 2 : ℝ) • (∫ q, (w q.1 - w q.2) • (k q • (g q.1 - g q.2)) ∂ν.prod ν) +
|
| 119 |
+
∫ q, complexRenormalizedNormalIntegrand (p + 1) w g a q ∂ν.prod η
|
| 120 |
+
rw [hdec.2, ← hpair, hDeq, integral_congr_ae hOeq, hcross.2]
|
| 121 |
+
abel
|
| 122 |
+
|
| 123 |
+
end
|
| 124 |
+
|
| 125 |
+
end RieszRectifiability
|
| 126 |
+
|
| 127 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Rigidity/VanishingJetGrowth.lean
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Kernel.SchwartzSecondDifference
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open SchwartzMap Metric Set
|
| 11 |
+
open scoped ContDiff
|
| 12 |
+
|
| 13 |
+
theorem iteratedFDeriv_growth_of_zero_jets {d : ℕ} {F : Type*}
|
| 14 |
+
[NormedAddCommGroup F] [NormedSpace ℝ F]
|
| 15 |
+
(f : Ambient d → F) (hf : ContDiff ℝ ∞ f)
|
| 16 |
+
(M : ℝ) (hM : 0 ≤ M) (n k : ℕ)
|
| 17 |
+
(hz : ∀ j, n ≤ j → j < n + k → iteratedFDeriv ℝ j f 0 = 0)
|
| 18 |
+
(hb : ∀ x, ‖iteratedFDeriv ℝ (n + k) f x‖ ≤ M) (x : Ambient d) :
|
| 19 |
+
‖iteratedFDeriv ℝ n f x‖ ≤ M * ‖x‖ ^ k := by
|
| 20 |
+
induction k generalizing n x with
|
| 21 |
+
| zero => simpa only [Nat.add_zero, pow_zero, mul_one] using! hb x
|
| 22 |
+
| succ k ih =>
|
| 23 |
+
have hn : ∀ y, ‖iteratedFDeriv ℝ (n + 1) f y‖ ≤ M * ‖y‖ ^ k := by
|
| 24 |
+
intro y
|
| 25 |
+
apply ih (n + 1)
|
| 26 |
+
· intro j hj hjk
|
| 27 |
+
exact hz j (by omega) (by omega)
|
| 28 |
+
· intro z
|
| 29 |
+
rw [show n + 1 + k = n + (k + 1) by omega]
|
| 30 |
+
exact hb z
|
| 31 |
+
have hfinite : ContDiff ℝ (n + 1 : ℕ) f := hf.of_le (by exact_mod_cast le_top)
|
| 32 |
+
have hd : Differentiable ℝ (iteratedFDeriv ℝ n f) :=
|
| 33 |
+
hfinite.differentiable_iteratedFDeriv (by exact_mod_cast Nat.lt_succ_self n)
|
| 34 |
+
have hbound : ∀ y ∈ segment ℝ (0 : Ambient d) x,
|
| 35 |
+
‖fderiv ℝ (iteratedFDeriv ℝ n f) y‖ ≤ M * ‖x‖ ^ k := by
|
| 36 |
+
intro y hy
|
| 37 |
+
rw [norm_fderiv_iteratedFDeriv]
|
| 38 |
+
apply (hn y).trans
|
| 39 |
+
have hxy : ‖y‖ ≤ ‖x‖ := by
|
| 40 |
+
simpa only [sub_zero] using! norm_sub_le_of_mem_segment hy
|
| 41 |
+
gcongr
|
| 42 |
+
have hv := (convex_segment (0 : Ambient d) x).norm_image_sub_le_of_norm_fderiv_le
|
| 43 |
+
(fun y _ => hd y) hbound (left_mem_segment ℝ 0 x) (right_mem_segment ℝ 0 x)
|
| 44 |
+
rw [hz n le_rfl (by omega), sub_zero, sub_zero] at hv
|
| 45 |
+
simpa only [pow_succ, mul_assoc] using! hv
|
| 46 |
+
|
| 47 |
+
theorem schwartz_zero_jet_derivative_bound {d : ℕ} {F : Type*}
|
| 48 |
+
[NormedAddCommGroup F] [NormedSpace ℝ F]
|
| 49 |
+
(g : 𝓢(Ambient d, F)) (N j : ℕ) (hj : j ≤ N + 1)
|
| 50 |
+
(hz : ∀ i, i ≤ N → iteratedFDeriv ℝ i g 0 = 0) (x : Ambient d) :
|
| 51 |
+
‖iteratedFDeriv ℝ j g x‖ ≤
|
| 52 |
+
SchwartzMap.seminorm ℝ 0 (N + 1) g * ‖x‖ ^ (N + 1 - j) := by
|
| 53 |
+
apply iteratedFDeriv_growth_of_zero_jets g (g.smooth ⊤)
|
| 54 |
+
(SchwartzMap.seminorm ℝ 0 (N + 1) g) (apply_nonneg _ _) j (N + 1 - j)
|
| 55 |
+
· intro i _ hi
|
| 56 |
+
exact hz i (by omega)
|
| 57 |
+
· intro y
|
| 58 |
+
rw [show j + (N + 1 - j) = N + 1 by omega]
|
| 59 |
+
exact norm_iteratedFDeriv_le_seminorm ℝ g (N + 1) y
|
| 60 |
+
|
| 61 |
+
end
|
| 62 |
+
|
| 63 |
+
end RieszRectifiability
|
| 64 |
+
|
| 65 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ActualNativeSurfaceGeometry.lean
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.NativeSurfaceRegularity
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Restart.ActiveRegionMatchedProjection
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Geometry of the native area measure on a limit surface
|
| 9 |
+
|
| 10 |
+
Two-sided Hausdorff area bounds on a closed embedded active-region limit image
|
| 11 |
+
give regularity, exact support, AD regularity, and infinite support diameter for
|
| 12 |
+
its native area measure. Matched projection estimates then transfer to that
|
| 13 |
+
support with the same explicit flatness and disk-coverage constants.
|
| 14 |
+
-/
|
| 15 |
+
|
| 16 |
+
namespace RieszRectifiability
|
| 17 |
+
|
| 18 |
+
noncomputable section
|
| 19 |
+
|
| 20 |
+
open MeasureTheory Metric Set Topology
|
| 21 |
+
open scoped ENNReal
|
| 22 |
+
|
| 23 |
+
theorem active_region_native_surface_geometry {n d : ℕ} (hn : 0 < n)
|
| 24 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 25 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 26 |
+
(Good : SupportCellDescendant μ R hR k z → Prop)
|
| 27 |
+
(S : SupportCellDescendant μ R hR k z → AffineSubspace ℝ (Ambient d))
|
| 28 |
+
(hS : ∀ i, IsAffineNPlane n (S i)) (ε : ℝ) (hε : 0 < ε)
|
| 29 |
+
(hεfine : ε ≤ 1 / 72057594037927936) (hsmall : activeProjectionError d ε ≤ 1 / 4096)
|
| 30 |
+
(hfit : ∀ i, activeRegionCell Good i →
|
| 31 |
+
bilateralPlaneError μ i.center (1024 * i.radius) (S i) < ε)
|
| 32 |
+
(f : S (supportCellRoot μ R hR k z) → Ambient d)
|
| 33 |
+
(hmodel : IsActiveRegionLimitModel μ R hR k z Good S hS ε f)
|
| 34 |
+
(hembed : IsClosedEmbedding f)
|
| 35 |
+
(c C : ℝ≥0∞) (hc : 0 < c) (hcfin : c < ⊤) (hC : C < ⊤)
|
| 36 |
+
(hlower : ∀ p ∈ Set.range f, ∀ r : ℝ, 0 < r →
|
| 37 |
+
c * (ENNReal.ofReal r) ^ n ≤
|
| 38 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (Set.range f ∩ closedBall p r))
|
| 39 |
+
(hupper : ∀ (p : Ambient d) (r : ℝ), 0 < r →
|
| 40 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (Set.range f ∩ closedBall p r) ≤
|
| 41 |
+
C * (ENNReal.ofReal r) ^ n) :
|
| 42 |
+
let ν := nativeSurfaceArea n (Set.range f)
|
| 43 |
+
ν.Regular ∧ ν.support = Set.range f ∧ ADRegular n ν ∧ ediam ν.support = ⊤ ∧
|
| 44 |
+
1 ≤ nativeSurfaceADConstant n c C ∧
|
| 45 |
+
GlobalUpperGrowth n (nativeSurfaceADConstant n c C) ν ∧
|
| 46 |
+
(∀ p ∈ ν.support, ∀ r : ℝ, 0 < r →
|
| 47 |
+
ENNReal.ofReal (r ^ n / nativeSurfaceADConstant n c C) ≤ ν (ball p r)) ∧
|
| 48 |
+
∀ p ∈ ν.support, ∀ r : ℝ, 0 < r →
|
| 49 |
+
∃ P : Submodule ℝ (Ambient d), Module.finrank ℝ P = n ∧
|
| 50 |
+
(∀ x ∈ ν.support ∩ closedBall p (1024 * r),
|
| 51 |
+
infDist x (AffineSubspace.mk' p P : Set (Ambient d)) ≤
|
| 52 |
+
(281474976710656 * (ε + activeProjectionError d ε)) * r) ∧
|
| 53 |
+
closedBall (P.orthogonalProjectionOnto p) (r / 32) ⊆
|
| 54 |
+
P.orthogonalProjectionOnto '' (ν.support ∩ closedBall p (r / 16)) := by
|
| 55 |
+
dsimp only
|
| 56 |
+
have hclosed := hembed.isClosed_range
|
| 57 |
+
have hs := nativeSurfaceArea_support (Set.range f) hclosed c hc hlower
|
| 58 |
+
have hne : (Set.range f).Nonempty := by
|
| 59 |
+
obtain ⟨a, ha⟩ := (hS (supportCellRoot μ R hR k z)).1
|
| 60 |
+
exact ⟨f ⟨a, ha⟩, Set.mem_range_self _⟩
|
| 61 |
+
obtain ⟨hK, hg, hl⟩ := nativeSurfaceArea_uniform_bounds (Set.range f) c C hc hcfin hC hlower hupper
|
| 62 |
+
refine ⟨nativeSurfaceArea_regular _ C hC hupper, hs,
|
| 63 |
+
nativeSurfaceArea_adRegular _ hclosed c C hc hcfin hC hlower hupper,
|
| 64 |
+
nativeSurfaceArea_support_ediam_top hn _ hclosed hne c C hc hcfin hC hlower hupper,
|
| 65 |
+
hK, hg, ?_, ?_⟩
|
| 66 |
+
· intro p hp r hr
|
| 67 |
+
exact hl p (hs ▸ hp) r hr
|
| 68 |
+
· rw [hs]
|
| 69 |
+
intro p hp r hr
|
| 70 |
+
exact exists_active_region_matched_projection_all_scales μ R hR k z Good S hS
|
| 71 |
+
ε hε hεfine hsmall hfit f hmodel p hp r hr
|
| 72 |
+
|
| 73 |
+
end
|
| 74 |
+
|
| 75 |
+
end RieszRectifiability
|
| 76 |
+
|
| 77 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/BallChartPartialMap.lean
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.MeasureBounds
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Ball charts as ambient parameter maps
|
| 8 |
+
|
| 9 |
+
A chart on a parameter ball is extended by zero outside its domain. On the ball,
|
| 10 |
+
this ambient map agrees with the chart and retains its Lipschitz bound.
|
| 11 |
+
-/
|
| 12 |
+
|
| 13 |
+
namespace RieszRectifiability
|
| 14 |
+
|
| 15 |
+
noncomputable section
|
| 16 |
+
|
| 17 |
+
open Metric Set
|
| 18 |
+
open scoped NNReal
|
| 19 |
+
|
| 20 |
+
def ballChartPartialMap {n d : ℕ} (r : ℝ)
|
| 21 |
+
(g : ball (0 : Ambient n) r → Ambient d) (u : Ambient n) : Ambient d := by
|
| 22 |
+
classical
|
| 23 |
+
exact if hu : u ∈ ball (0 : Ambient n) r then g ⟨u, hu⟩ else 0
|
| 24 |
+
|
| 25 |
+
theorem ballChartPartialMap_apply {n d : ℕ} (r : ℝ)
|
| 26 |
+
(g : ball (0 : Ambient n) r → Ambient d) (u : Ambient n) (hu : u ∈ ball (0 : Ambient n) r) :
|
| 27 |
+
ballChartPartialMap r g u = g ⟨u, hu⟩ := by
|
| 28 |
+
simp only [ballChartPartialMap, dite_eq_left hu]
|
| 29 |
+
|
| 30 |
+
theorem ballChartPartialMap_lipschitzOn {n d : ℕ} (r : ℝ)
|
| 31 |
+
(g : ball (0 : Ambient n) r → Ambient d) (M : ℝ≥0) (hg : LipschitzWith M g) :
|
| 32 |
+
LipschitzOnWith M (ballChartPartialMap r g) (ball (0 : Ambient n) r) := by
|
| 33 |
+
apply LipschitzOnWith.of_dist_le_mul
|
| 34 |
+
intro x hx y hy
|
| 35 |
+
rw [ballChartPartialMap_apply r g x hx, ballChartPartialMap_apply r g y hy]
|
| 36 |
+
exact hg.dist_le_mul ⟨x, hx⟩ ⟨y, hy⟩
|
| 37 |
+
|
| 38 |
+
theorem ballChartPartialMap_image {n d : ℕ} (r : ℝ)
|
| 39 |
+
(g : ball (0 : Ambient n) r → Ambient d) :
|
| 40 |
+
ballChartPartialMap r g '' ball (0 : Ambient n) r = Set.range g := by
|
| 41 |
+
apply Set.Subset.antisymm
|
| 42 |
+
· rintro y ⟨u, hu, rfl⟩
|
| 43 |
+
rw [ballChartPartialMap_apply r g u hu]
|
| 44 |
+
exact Set.mem_range_self (⟨u, hu⟩ : ball (0 : Ambient n) r)
|
| 45 |
+
· rintro y ⟨u, rfl⟩
|
| 46 |
+
exact ⟨u.val, u.property, ballChartPartialMap_apply r g u.val u.property⟩
|
| 47 |
+
|
| 48 |
+
end
|
| 49 |
+
|
| 50 |
+
end RieszRectifiability
|
| 51 |
+
|
| 52 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/BoundedNormalizedBallCharts.lean
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.RescaledBallCharts
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Bounded normalized ball charts
|
| 8 |
+
|
| 9 |
+
Metric projection onto a nonempty complete convex set gives a nonexpansive retraction.
|
| 10 |
+
Composing this retraction with a rescaled ball chart bounds its range by a closed ball
|
| 11 |
+
while preserving every point of the original image in that ball. The normalization
|
| 12 |
+
halves the domain radius and multiplies the Lipschitz bound by two.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open Metric Set
|
| 20 |
+
open scoped NNReal
|
| 21 |
+
|
| 22 |
+
theorem exists_nonexpansive_retraction_of_complete_convex {d : ℕ}
|
| 23 |
+
(K : Set (Ambient d)) (hne : K.Nonempty) (hcomplete : IsComplete K) (hconvex : Convex ℝ K) :
|
| 24 |
+
∃ p : Ambient d → Ambient d, LipschitzWith 1 p ∧
|
| 25 |
+
(∀ x, p x ∈ K) ∧ ∀ x ∈ K, p x = x := by
|
| 26 |
+
classical
|
| 27 |
+
choose p hp hmin using exists_norm_eq_iInf_of_complete_convex hne hcomplete hconvex
|
| 28 |
+
have hv (x : Ambient d) : ∀ w ∈ K, inner ℝ (x - p x) (w - p x) ≤ 0 :=
|
| 29 |
+
(norm_eq_iInf_iff_real_inner_le_zero hconvex (hp x)).mp (hmin x)
|
| 30 |
+
refine ⟨p, ?_, hp, ?_⟩
|
| 31 |
+
· apply LipschitzWith.of_dist_le_mul
|
| 32 |
+
intro x y
|
| 33 |
+
have hx := hv x (p y) (hp y)
|
| 34 |
+
have hy := hv y (p x) (hp x)
|
| 35 |
+
have hid : inner ℝ (x - y) (p x - p y) = ‖p x - p y‖ ^ 2 -
|
| 36 |
+
inner ℝ (x - p x) (p y - p x) - inner ℝ (y - p y) (p x - p y) := by
|
| 37 |
+
rw [← real_inner_self_eq_norm_sq]
|
| 38 |
+
simp only [inner_sub_left, inner_sub_right]
|
| 39 |
+
ring
|
| 40 |
+
have hc := real_inner_le_norm (x - y) (p x - p y)
|
| 41 |
+
simp only [NNReal.coe_one, one_mul, dist_eq_norm]
|
| 42 |
+
nlinarith [norm_nonneg (x - y), norm_nonneg (p x - p y)]
|
| 43 |
+
· intro x hx
|
| 44 |
+
have h := hv x x hx
|
| 45 |
+
rw [real_inner_self_eq_norm_sq] at h
|
| 46 |
+
have hz : ‖x - p x‖ = 0 := by nlinarith [norm_nonneg (x - p x)]
|
| 47 |
+
exact (sub_eq_zero.mp (norm_eq_zero.mp hz)).symm
|
| 48 |
+
|
| 49 |
+
theorem exists_bounded_normalized_ball_chart {n d : ℕ}
|
| 50 |
+
(r : ℝ) (c : Ambient d) (b : ℝ) (hb : 0 ≤ b)
|
| 51 |
+
(f : ball (0 : Ambient n) (2 * r) → Ambient d) (M : ℝ≥0) (hf : LipschitzWith M f) :
|
| 52 |
+
∃ g : ball (0 : Ambient n) r → Ambient d,
|
| 53 |
+
LipschitzWith (M * 2) g ∧ Set.range g ⊆ closedBall c b ∧
|
| 54 |
+
(closedBall c b ∩ Set.range f) ⊆ Set.range g := by
|
| 55 |
+
obtain ⟨p, hp, hpRange, hpFix⟩ := exists_nonexpansive_retraction_of_complete_convex
|
| 56 |
+
(closedBall c b) ⟨c, mem_closedBall_self hb⟩ isClosed_closedBall.isComplete (convex_closedBall c b)
|
| 57 |
+
obtain ⟨h, hhLip, hhRange⟩ := exists_rescaled_ball_chart (2 * r) (0 : Ambient n)
|
| 58 |
+
2 (by norm_num) f M hf
|
| 59 |
+
have heq : (2 * r) / ((2 : ℝ≥0) : ℝ) = r := by change (2 * r) / 2 = r; ring
|
| 60 |
+
rw [heq] at hhLip hhRange
|
| 61 |
+
let h' : ball (0 : Ambient n) r → Ambient d := (ball (0 : Ambient n) r).domRestrict h
|
| 62 |
+
have hh'Lip : LipschitzWith (M * 2) h' := hhLip.to_restrict
|
| 63 |
+
have hh'Range : Set.range h' = Set.range f := by
|
| 64 |
+
apply Set.Subset.antisymm
|
| 65 |
+
· rintro y ⟨u, rfl⟩
|
| 66 |
+
exact hhRange ▸ mem_image_of_mem h u.property
|
| 67 |
+
· intro y hy
|
| 68 |
+
obtain ⟨u, hu, he⟩ := hhRange ▸ hy
|
| 69 |
+
exact ⟨⟨u, hu⟩, he⟩
|
| 70 |
+
refine ⟨p ∘ h', ?_, ?_, ?_⟩
|
| 71 |
+
· simpa only [one_mul] using! hp.comp hh'Lip
|
| 72 |
+
· rintro y ⟨u, rfl⟩
|
| 73 |
+
exact hpRange (h' u)
|
| 74 |
+
· intro y hy
|
| 75 |
+
obtain ⟨u, hu⟩ := hh'Range ▸ hy.2
|
| 76 |
+
exact ⟨u, by change p (h' u) = y; rw [hu, hpFix y hy.1]⟩
|
| 77 |
+
|
| 78 |
+
end
|
| 79 |
+
|
| 80 |
+
end RieszRectifiability
|
| 81 |
+
|
| 82 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/CenteredPerturbedBallCoverage.lean
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.PerturbedBallCoverage
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Centered coverage for perturbed charts
|
| 8 |
+
|
| 9 |
+
Lipschitz perturbations of the identity cover balls centered at any parameter
|
| 10 |
+
with sufficient room in the domain. Applied to tangential projection, this gives
|
| 11 |
+
a disk covered by the portion of the surface inside a controlled ambient ball.
|
| 12 |
+
-/
|
| 13 |
+
|
| 14 |
+
namespace RieszRectifiability
|
| 15 |
+
|
| 16 |
+
noncomputable section
|
| 17 |
+
|
| 18 |
+
open Metric Set
|
| 19 |
+
open scoped NNReal
|
| 20 |
+
|
| 21 |
+
theorem centered_ball_covered_by_lipschitz_perturbation {X : Type*}
|
| 22 |
+
[NormedAddCommGroup X] [CompleteSpace X]
|
| 23 |
+
(c : X) (R : ℝ) (f : closedBall c R → X) (K : ℝ≥0) (hK : K < 1)
|
| 24 |
+
(herr : LipschitzWith K (fun u => f u - u.val))
|
| 25 |
+
(a : closedBall c R) (r : ℝ) (hr : 0 ≤ r) (hroom : dist a.val c + r ≤ R) :
|
| 26 |
+
∀ z ∈ closedBall (f a) ((1 - (K : ℝ)) * r),
|
| 27 |
+
∃ u : closedBall c R, dist u a ≤ r ∧ f u = z := by
|
| 28 |
+
have hsub : closedBall a.val r ⊆ closedBall c R := by
|
| 29 |
+
intro x hx
|
| 30 |
+
have hx' : dist x a.val ≤ r := hx
|
| 31 |
+
change dist x c ≤ R
|
| 32 |
+
exact (dist_triangle x a.val c).trans (by linarith)
|
| 33 |
+
let j : closedBall a.val r → closedBall c R := fun u => ⟨u.val, hsub u.property⟩
|
| 34 |
+
let g : closedBall a.val r → X := fun u => f (j u) - f a + a.val
|
| 35 |
+
have hdisp : ∀ u, dist (g u) u.val ≤ (K : ℝ) * r := by
|
| 36 |
+
intro u
|
| 37 |
+
have hid : g u - u.val = (f (j u) - (j u).val) - (f a - a.val) := by
|
| 38 |
+
dsimp [g, j]
|
| 39 |
+
abel
|
| 40 |
+
rw [dist_eq_norm, hid]
|
| 41 |
+
have h := (herr.dist_le_mul (j u) a).trans
|
| 42 |
+
(mul_le_mul_of_nonneg_left (show dist (j u) a ≤ r from u.property) K.coe_nonneg)
|
| 43 |
+
simpa only [dist_eq_norm] using! h
|
| 44 |
+
have hLip : LipschitzWith K (fun u : closedBall a.val r => g u - u.val) := by
|
| 45 |
+
apply LipschitzWith.of_dist_le_mul
|
| 46 |
+
intro u v
|
| 47 |
+
have hid : (g u - u.val) - (g v - v.val) =
|
| 48 |
+
(f (j u) - (j u).val) - (f (j v) - (j v).val) := by
|
| 49 |
+
dsimp [g, j]
|
| 50 |
+
abel
|
| 51 |
+
rw [dist_eq_norm, hid]
|
| 52 |
+
simpa only [dist_eq_norm] using! herr.dist_le_mul (j u) (j v)
|
| 53 |
+
intro z hz
|
| 54 |
+
have hz' : z - f a + a.val ∈ closedBall a.val (r - (K : ℝ) * r) := by
|
| 55 |
+
have hd : dist (z - f a + a.val) a.val = dist z (f a) := by
|
| 56 |
+
rw [dist_eq_norm, dist_eq_norm]
|
| 57 |
+
congr 1
|
| 58 |
+
abel
|
| 59 |
+
rw [mem_closedBall, hd]
|
| 60 |
+
have hzr : dist z (f a) ≤ (1 - (K : ℝ)) * r := hz
|
| 61 |
+
nlinarith
|
| 62 |
+
obtain ⟨u, hu⟩ := closedBall_covered_by_lipschitz_perturbation a.val r ((K : ℝ) * r)
|
| 63 |
+
hr K hK g hdisp hLip hz'
|
| 64 |
+
refine ⟨j u, u.property, ?_⟩
|
| 65 |
+
change f (j u) - f a + a.val = z - f a + a.val at hu
|
| 66 |
+
exact sub_left_inj.mp (add_right_cancel hu)
|
| 67 |
+
|
| 68 |
+
theorem centered_projection_disk_in_surface_ball {d : ℕ}
|
| 69 |
+
(P : Submodule ℝ (Ambient d)) (c : P) (R : ℝ)
|
| 70 |
+
(H : closedBall c R → Ambient d) (K L : ℝ≥0)
|
| 71 |
+
(hK : (K : ℝ) ≤ 1 / 2) (hL : (L : ℝ) ≤ 1 / 2)
|
| 72 |
+
(hError : LipschitzWith K (fun u => P.orthogonalProjectionOnto (H u) - u.val))
|
| 73 |
+
(hNormal : LipschitzWith L (fun u => (Pᗮ : Submodule ℝ (Ambient d)).starProjection (H u)))
|
| 74 |
+
(a : closedBall c R) (ρ : ℝ) (hρ : 0 ≤ ρ)
|
| 75 |
+
(hroom : dist a.val c + 2 * ρ ≤ R)
|
| 76 |
+
(surface : Set (Ambient d)) (hSurface : ∀ u, dist u a ≤ 2 * ρ → H u ∈ surface) :
|
| 77 |
+
closedBall (P.orthogonalProjectionOnto (H a)) ρ ⊆
|
| 78 |
+
P.orthogonalProjectionOnto '' (surface ∩ closedBall (H a) (2 * ρ)) := by
|
| 79 |
+
have hKone : K < 1 := by
|
| 80 |
+
have hreal : (K : ℝ) < 1 := by linarith
|
| 81 |
+
exact_mod_cast hreal
|
| 82 |
+
intro z hz
|
| 83 |
+
have hz' : z ∈ closedBall (P.orthogonalProjectionOnto (H a)) ((1 - (K : ℝ)) * (2 * ρ)) := by
|
| 84 |
+
have hdist : dist z (P.orthogonalProjectionOnto (H a)) ≤ ρ := hz
|
| 85 |
+
change dist z (P.orthogonalProjectionOnto (H a)) ≤ _
|
| 86 |
+
nlinarith [mul_le_mul_of_nonneg_right hK hρ]
|
| 87 |
+
obtain ⟨u, hua, hu⟩ := centered_ball_covered_by_lipschitz_perturbation c R
|
| 88 |
+
(fun v => P.orthogonalProjectionOnto (H v)) K hKone hError a (2 * ρ)
|
| 89 |
+
(by positivity) hroom z hz'
|
| 90 |
+
change P.orthogonalProjectionOnto (H u) = z at hu
|
| 91 |
+
refine ⟨H u, ⟨hSurface u hua, ?_⟩, hu⟩
|
| 92 |
+
have hp : ‖P.starProjection (H u - H a)‖ ≤ ρ := by
|
| 93 |
+
rw [map_sub]
|
| 94 |
+
change dist (P.orthogonalProjectionOnto (H u)) (P.orthogonalProjectionOnto (H a)) ≤ ρ
|
| 95 |
+
rw [hu]
|
| 96 |
+
exact hz
|
| 97 |
+
have hn := hNormal.dist_le_mul u a
|
| 98 |
+
rw [dist_eq_norm, ← map_sub] at hn
|
| 99 |
+
have ht := norm_add_le (P.starProjection (H u - H a))
|
| 100 |
+
((Pᗮ : Submodule ℝ (Ambient d)).starProjection (H u - H a))
|
| 101 |
+
rw [P.starProjection_add_starProjection_orthogonal] at ht
|
| 102 |
+
change dist (H u) (H a) ≤ 2 * ρ
|
| 103 |
+
rw [dist_eq_norm]
|
| 104 |
+
have hnr : (L : ℝ) * dist u a ≤ ρ := by
|
| 105 |
+
have hb := mul_le_mul_of_nonneg_left hua L.coe_nonneg
|
| 106 |
+
nlinarith [mul_le_mul_of_nonneg_right hL hρ]
|
| 107 |
+
linarith
|
| 108 |
+
|
| 109 |
+
end
|
| 110 |
+
|
| 111 |
+
end RieszRectifiability
|
| 112 |
+
|
| 113 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ChartNormalCone.lean
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.MeasureBounds
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open MeasureTheory Metric Set
|
| 11 |
+
open scoped NNReal
|
| 12 |
+
|
| 13 |
+
theorem normal_projection_bound_on_chart_range {X : Type*} [PseudoMetricSpace X] {d : ℕ}
|
| 14 |
+
(P : Submodule ℝ (Ambient d)) (H : X → Ambient d) (K L : ℝ≥0)
|
| 15 |
+
(hNormal : LipschitzWith K (fun u => (Pᗮ : Submodule ℝ (Ambient d)).starProjection (H u)))
|
| 16 |
+
(hSep : AntilipschitzWith L H)
|
| 17 |
+
(x : Ambient d) (hx : x ∈ Set.range H) (y : Ambient d) (hy : y ∈ Set.range H) :
|
| 18 |
+
‖(Pᗮ : Submodule ℝ (Ambient d)).starProjection (x - y)‖ ≤
|
| 19 |
+
((K * L : ℝ≥0) : ℝ) * dist x y := by
|
| 20 |
+
obtain ⟨u, rfl⟩ := hx
|
| 21 |
+
obtain ⟨v, rfl⟩ := hy
|
| 22 |
+
have h := hNormal.dist_le_mul u v
|
| 23 |
+
rw [dist_eq_norm, ← map_sub] at h
|
| 24 |
+
calc
|
| 25 |
+
_ ≤ (K : ℝ) * dist u v := h
|
| 26 |
+
_ ≤ (K : ℝ) * ((L : ℝ) * dist (H u) (H v)) :=
|
| 27 |
+
mul_le_mul_of_nonneg_left (hSep.le_mul_dist u v) K.coe_nonneg
|
| 28 |
+
_ = _ := by rw [NNReal.coe_mul]; ring
|
| 29 |
+
|
| 30 |
+
end
|
| 31 |
+
|
| 32 |
+
end RieszRectifiability
|
| 33 |
+
|
| 34 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ChildAndPointChartGluing.lean
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.RescaledChildChartGluing
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open Metric Set
|
| 11 |
+
open scoped NNReal
|
| 12 |
+
|
| 13 |
+
theorem exists_ball_lipschitz_cover_of_children_and_points {n d : ℕ} {ι κ : Type*}
|
| 14 |
+
(a : ι → Ambient n) (c : ι → Ambient d) (r : ι → ℝ)
|
| 15 |
+
(b : κ → Ambient n) (y : κ → Ambient d)
|
| 16 |
+
(f : ∀ i : ι, ball (0 : Ambient n) (r i) → Ambient d)
|
| 17 |
+
(M A L : ℝ≥0) (hA : 0 < A)
|
| 18 |
+
(hsep : ∀ i j : ι, i ≠ j → r i + r j ≤ (A : ℝ) * dist (a i) (a j))
|
| 19 |
+
(hcenters : ∀ i j : ι, dist (c i) (c j) ≤ (L : ℝ) * dist (a i) (a j))
|
| 20 |
+
(hsepPoint : ∀ i : ι, ∀ j : κ, r i ≤ (A : ℝ) * dist (a i) (b j))
|
| 21 |
+
(hcenterPoint : ∀ i : ι, ∀ j : κ, dist (c i) (y j) ≤ (L : ℝ) * dist (a i) (b j))
|
| 22 |
+
(hpointLip : ∀ i j : κ, dist (y i) (y j) ≤ (L : ℝ) * dist (b i) (b j))
|
| 23 |
+
(himage : ∀ i : ι, Set.range (f i) ⊆ closedBall (c i) (3 * r i))
|
| 24 |
+
(hLip : ∀ i : ι, LipschitzWith M (f i))
|
| 25 |
+
(ρ : ℝ) (hball : ∀ i : ι, ball (a i) (r i / (4 * (A : ℝ))) ⊆ ball (0 : Ambient n) ρ)
|
| 26 |
+
(hpointBall : ∀ j : κ, b j ∈ ball (0 : Ambient n) ρ) :
|
| 27 |
+
∃ F : ball (0 : Ambient n) ρ → Ambient d,
|
| 28 |
+
LipschitzWith (lipschitzExtensionConstant (Ambient d) *
|
| 29 |
+
separatedPatchGluingConstant (M * (4 * A)) A L) F ∧
|
| 30 |
+
((⋃ i : ι, Set.range (f i)) ∪ Set.range y) ⊆ Set.range F := by
|
| 31 |
+
classical
|
| 32 |
+
have hs : 0 < 4 * A := by positivity
|
| 33 |
+
have hc (i : ι) := exists_rescaled_ball_chart (r i) (a i) (4 * A) hs (f i) M (hLip i)
|
| 34 |
+
choose g hg hrange using hc
|
| 35 |
+
have hrange' (i : ι) : g i '' ball (a i) (r i / (4 * (A : ℝ))) = Set.range (f i) := by
|
| 36 |
+
simpa only [NNReal.coe_mul, NNReal.coe_ofNat] using! hrange i
|
| 37 |
+
have hg' (i : ι) : LipschitzOnWith (M * (4 * A)) (g i)
|
| 38 |
+
(ball (a i) (r i / (4 * (A : ℝ)))) := by
|
| 39 |
+
simpa only [NNReal.coe_mul, NNReal.coe_ofNat] using! hg i
|
| 40 |
+
let a' : Sum ι κ → Ambient n := Sum.elim a b
|
| 41 |
+
let c' : Sum ι κ → Ambient d := Sum.elim c y
|
| 42 |
+
let r' : Sum ι κ → ℝ := Sum.elim r (fun _ => 0)
|
| 43 |
+
let D' : Sum ι κ → Set (Ambient n) :=
|
| 44 |
+
Sum.elim (fun i => ball (a i) (r i / (4 * (A : ℝ)))) (fun j => {b j})
|
| 45 |
+
let g' : Sum ι κ → Ambient n → Ambient d := Sum.elim g (fun j _ => y j)
|
| 46 |
+
have hsep' (i j : Sum ι κ) (hij : i ≠ j) :
|
| 47 |
+
r' i + r' j ≤ (A : ℝ) * dist (a' i) (a' j) := by
|
| 48 |
+
cases i with
|
| 49 |
+
| inl i =>
|
| 50 |
+
cases j with
|
| 51 |
+
| inl j => exact hsep i j (fun heq => hij (congrArg Sum.inl heq))
|
| 52 |
+
| inr j => simpa only [r', a', Sum.elim_inl, Sum.elim_inr, add_zero] using! hsepPoint i j
|
| 53 |
+
| inr i =>
|
| 54 |
+
cases j with
|
| 55 |
+
| inl j => simpa only [r', a', Sum.elim_inl, Sum.elim_inr, zero_add, dist_comm] using! hsepPoint j i
|
| 56 |
+
| inr j =>
|
| 57 |
+
change 0 + 0 ≤ _
|
| 58 |
+
rw [zero_add]
|
| 59 |
+
exact mul_nonneg A.coe_nonneg dist_nonneg
|
| 60 |
+
have hcenters' (i j : Sum ι κ) : dist (c' i) (c' j) ≤ (L : ℝ) * dist (a' i) (a' j) := by
|
| 61 |
+
cases i with
|
| 62 |
+
| inl i =>
|
| 63 |
+
cases j with
|
| 64 |
+
| inl j => exact hcenters i j
|
| 65 |
+
| inr j => exact hcenterPoint i j
|
| 66 |
+
| inr i =>
|
| 67 |
+
cases j with
|
| 68 |
+
| inl j => simpa only [c', a', Sum.elim_inl, Sum.elim_inr, dist_comm] using! hcenterPoint j i
|
| 69 |
+
| inr j => exact hpointLip i j
|
| 70 |
+
have hparam' (i : Sum ι κ) (u : Ambient n) (hu : u ∈ D' i) :
|
| 71 |
+
dist u (a' i) ≤ r' i / (4 * (A : ℝ)) := by
|
| 72 |
+
cases i with
|
| 73 |
+
| inl i => exact le_of_lt hu
|
| 74 |
+
| inr j =>
|
| 75 |
+
have heq : u = b j := hu
|
| 76 |
+
simp only [a', r', Sum.elim_inr, heq, dist_self, zero_div, le_refl]
|
| 77 |
+
have himage' (i : Sum ι κ) (u : Ambient n) (hu : u ∈ D' i) :
|
| 78 |
+
dist (g' i u) (c' i) ≤ 3 * r' i := by
|
| 79 |
+
cases i with
|
| 80 |
+
| inl i => exact himage i (hrange' i ▸ mem_image_of_mem (g i) hu)
|
| 81 |
+
| inr j => simp only [g', c', r', Sum.elim_inr, dist_self, mul_zero, le_refl]
|
| 82 |
+
have hLip' (i : Sum ι κ) : LipschitzOnWith (M * (4 * A)) (g' i) (D' i) := by
|
| 83 |
+
cases i with
|
| 84 |
+
| inl i => exact hg' i
|
| 85 |
+
| inr j =>
|
| 86 |
+
apply LipschitzOnWith.of_dist_le_mul
|
| 87 |
+
intro u hu v hv
|
| 88 |
+
change dist (y j) (y j) ≤ _
|
| 89 |
+
rw [dist_self]
|
| 90 |
+
positivity
|
| 91 |
+
have hball' : (⋃ i : Sum ι κ, D' i) ⊆ ball (0 : Ambient n) ρ := by
|
| 92 |
+
apply iUnion_subset
|
| 93 |
+
intro i
|
| 94 |
+
cases i with
|
| 95 |
+
| inl i => exact hball i
|
| 96 |
+
| inr j => exact singleton_subset_iff.mpr (hpointBall j)
|
| 97 |
+
obtain ⟨F, hF, hcover⟩ := exists_ball_lipschitz_cover_of_separated_parameter_patches
|
| 98 |
+
a' c' r' D' g' (M * (4 * A)) A L hA hsep' hcenters' hparam' himage' hLip' ρ hball'
|
| 99 |
+
refine ⟨F, hF, ?_⟩
|
| 100 |
+
intro v hv
|
| 101 |
+
rcases hv with hchild | hpoint
|
| 102 |
+
· obtain ⟨i, hi⟩ := mem_iUnion.mp hchild
|
| 103 |
+
have hi' : v ∈ g i '' ball (a i) (r i / (4 * (A : ℝ))) := hrange' i ▸ hi
|
| 104 |
+
exact hcover (mem_iUnion.mpr ⟨Sum.inl i, hi'⟩)
|
| 105 |
+
· obtain ⟨j, rfl⟩ := hpoint
|
| 106 |
+
exact hcover (mem_iUnion.mpr ⟨Sum.inr j, b j, mem_singleton (b j), rfl⟩)
|
| 107 |
+
|
| 108 |
+
end
|
| 109 |
+
|
| 110 |
+
end RieszRectifiability
|
| 111 |
+
|
| 112 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/CoherentCellCharts.lean
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Nets.PointCellChains
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Projections.ProjectionPieceParameterization
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Lipschitz charts from coherent cell fits
|
| 9 |
+
|
| 10 |
+
For each pair of points, a descendant at the separation scale supplies a nearby affine
|
| 11 |
+
plane with small angle to a fixed subspace. The resulting lower bound on projected
|
| 12 |
+
distances gives an inverse Lipschitz estimate and a ball parameterization of the piece.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open MeasureTheory Metric Set
|
| 20 |
+
open scoped NNReal ENNReal
|
| 21 |
+
|
| 22 |
+
theorem projection_separates_of_coherent_cell_fits {n d : ℕ}
|
| 23 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 24 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 25 |
+
(E : Set (Ambient d)) (hE : E ⊆ cleanSupportCell μ R hR k z)
|
| 26 |
+
(P : Submodule ℝ (Ambient d))
|
| 27 |
+
(hfit : ∀ i : SupportCellDescendant μ R hR k z,
|
| 28 |
+
(E ∩ i.cell).Nonempty → ∃ S : AffineSubspace ℝ (Ambient d),
|
| 29 |
+
IsAffineNPlane n S ∧
|
| 30 |
+
(∀ w ∈ E ∩ ball i.center (1024 * i.radius), infDist w (S : Set (Ambient d)) ≤ i.radius) ∧
|
| 31 |
+
∀ v ∈ S.direction,
|
| 32 |
+
‖(Pᗮ : Submodule ℝ (Ambient d)).starProjection v‖ ≤ (1 / 4) * ‖v‖) :
|
| 33 |
+
∀ x ∈ E, ∀ y ∈ E, dist x y ≤ 2 * dist (P.starProjection x) (P.starProjection y) := by
|
| 34 |
+
intro x hx y hy
|
| 35 |
+
by_cases hxy : x = y
|
| 36 |
+
· simp only [hxy, dist_self, mul_zero, le_refl]
|
| 37 |
+
obtain ⟨i, hxi, hupper, _, hxball, hyball⟩ :=
|
| 38 |
+
exists_pair_scale_support_descendant μ R hR k z x y (hE hx) (hE hy) hxy
|
| 39 |
+
obtain ⟨S, hS, hnear, hangle⟩ := hfit i ⟨x, hx, hxi⟩
|
| 40 |
+
let : Nonempty S := hS.1.to_subtype
|
| 41 |
+
have hxs : infDist x (S : Set (Ambient d)) ≤ (1 / 8) * dist x y := by
|
| 42 |
+
have h := hnear x ⟨hx, hxball⟩
|
| 43 |
+
linarith
|
| 44 |
+
have hys : infDist y (S : Set (Ambient d)) ≤ (1 / 8) * dist x y := by
|
| 45 |
+
have h := hnear y ⟨hy, hyball⟩
|
| 46 |
+
linarith
|
| 47 |
+
exact projection_separates_of_pairwise_plane P S x y (1 / 8) (1 / 4)
|
| 48 |
+
(by norm_num) (by norm_num) hxs hys hangle
|
| 49 |
+
|
| 50 |
+
theorem exists_ball_lipschitz_cover_of_coherent_cell_fits {n d : ℕ}
|
| 51 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 52 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 53 |
+
(E : Set (Ambient d)) (hE : E ⊆ cleanSupportCell μ R hR k z)
|
| 54 |
+
(a : Ambient d) (r : ℝ) (hball : E ⊆ ball a r)
|
| 55 |
+
(P : Submodule ℝ (Ambient d)) (hdim : Module.finrank ℝ P = n)
|
| 56 |
+
(hfit : ∀ i : SupportCellDescendant μ R hR k z,
|
| 57 |
+
(E ∩ i.cell).Nonempty → ∃ S : AffineSubspace ℝ (Ambient d),
|
| 58 |
+
IsAffineNPlane n S ∧
|
| 59 |
+
(∀ w ∈ E ∩ ball i.center (1024 * i.radius), infDist w (S : Set (Ambient d)) ≤ i.radius) ∧
|
| 60 |
+
∀ v ∈ S.direction,
|
| 61 |
+
‖(Pᗮ : Submodule ℝ (Ambient d)).starProjection v‖ ≤ (1 / 4) * ‖v‖) :
|
| 62 |
+
∃ g : (ball (0 : Ambient n) r) → Ambient d,
|
| 63 |
+
LipschitzWith (lipschitzExtensionConstant (Ambient d) * 2) g ∧ E ⊆ range g := by
|
| 64 |
+
exact exists_ball_lipschitz_cover_of_projection E a r hball P hdim 2
|
| 65 |
+
(projection_separates_of_coherent_cell_fits μ R hR k z E hE P hfit)
|
| 66 |
+
|
| 67 |
+
end
|
| 68 |
+
|
| 69 |
+
end RieszRectifiability
|
| 70 |
+
|
| 71 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ContinuousChartInnerCoverage.lean
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Projections.ProjectionTubeLocation
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.ContinuousPerturbedBallCoverage
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Inner projection coverage of continuous charts
|
| 9 |
+
|
| 10 |
+
A chart whose projected displacement is small covers an inner ball in the plane direction.
|
| 11 |
+
Bounds on the chart height and the base point's distance to the plane keep the covering
|
| 12 |
+
points inside the required ambient ball.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open Metric Set
|
| 20 |
+
|
| 21 |
+
theorem continuous_chart_inner_projection_coverage {d : ℕ}
|
| 22 |
+
(S : AffineSubspace ℝ (Ambient d)) (hS : (S : Set (Ambient d)).Nonempty)
|
| 23 |
+
(c : S.direction) (R : ℝ) (H : closedBall c R → Ambient d)
|
| 24 |
+
(hH : Continuous H) (surface : Set (Ambient d)) (hRange : Set.range H ⊆ surface)
|
| 25 |
+
(p : Ambient d) (ρ e a b : ℝ) (hρ : 0 ≤ ρ)
|
| 26 |
+
(hroom : dist (S.direction.orthogonalProjectionOnto p) c + 2 * ρ ≤ R)
|
| 27 |
+
(hDisp : ∀ u, dist (S.direction.orthogonalProjectionOnto (H u)) u.val ≤ e)
|
| 28 |
+
(hHeight : ∀ u, infDist (H u) (S : Set (Ambient d)) ≤ a)
|
| 29 |
+
(hBase : infDist p (S : Set (Ambient d)) ≤ b)
|
| 30 |
+
(he : e ≤ ρ) (hab : a + b ≤ ρ) :
|
| 31 |
+
closedBall (S.direction.orthogonalProjectionOnto p) ρ ⊆
|
| 32 |
+
S.direction.orthogonalProjectionOnto '' (surface ∩ closedBall p (2 * ρ)) := by
|
| 33 |
+
let P := S.direction
|
| 34 |
+
have hsub : closedBall (P.orthogonalProjectionOnto p) (2 * ρ) ⊆ closedBall c R := by
|
| 35 |
+
intro u hu
|
| 36 |
+
have ht := dist_triangle u (P.orthogonalProjectionOnto p) c
|
| 37 |
+
have hud : dist u (P.orthogonalProjectionOnto p) ≤ 2 * ρ := hu
|
| 38 |
+
change dist u c ≤ R
|
| 39 |
+
linarith
|
| 40 |
+
let j : closedBall (P.orthogonalProjectionOnto p) (2 * ρ) → closedBall c R :=
|
| 41 |
+
fun u => ⟨u.val, hsub u.property⟩
|
| 42 |
+
have hj : Continuous j := continuous_subtype_val.subtype_mk _
|
| 43 |
+
have hCont : Continuous (fun u => P.orthogonalProjectionOnto (H (j u))) :=
|
| 44 |
+
P.orthogonalProjectionOnto.continuous.comp (hH.comp hj)
|
| 45 |
+
intro z hz
|
| 46 |
+
have hz' : z ∈ closedBall (P.orthogonalProjectionOnto p) (2 * ρ - e) := by
|
| 47 |
+
have hzd : dist z (P.orthogonalProjectionOnto p) ≤ ρ := hz
|
| 48 |
+
change dist z (P.orthogonalProjectionOnto p) ≤ _
|
| 49 |
+
linarith
|
| 50 |
+
obtain ⟨u, hu⟩ := closedBall_covered_by_continuous_perturbation
|
| 51 |
+
(P.orthogonalProjectionOnto p) (2 * ρ) e (by positivity)
|
| 52 |
+
(fun u => P.orthogonalProjectionOnto (H (j u))) hCont (fun u => hDisp (j u)) hz'
|
| 53 |
+
change P.orthogonalProjectionOnto (H (j u)) = z at hu
|
| 54 |
+
refine ⟨H (j u), ⟨hRange ⟨j u, rfl⟩, ?_⟩, hu⟩
|
| 55 |
+
have hprojected : dist (P.starProjection (H (j u))) (P.starProjection p) ≤ ρ := by
|
| 56 |
+
change dist (P.orthogonalProjectionOnto (H (j u))) (P.orthogonalProjectionOnto p) ≤ ρ
|
| 57 |
+
rw [hu]
|
| 58 |
+
exact hz
|
| 59 |
+
have ht := dist_le_projection_add_plane_distances S hS (H (j u)) p
|
| 60 |
+
change dist (H (j u)) p ≤ 2 * ρ
|
| 61 |
+
linarith [hHeight (j u)]
|
| 62 |
+
|
| 63 |
+
end
|
| 64 |
+
|
| 65 |
+
end RieszRectifiability
|
| 66 |
+
|
| 67 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ContinuousPerturbedBallCoverage.lean
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.MeasureBounds
|
| 3 |
+
import FixedPointTheorems.brouwer
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace RieszRectifiability
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
open Metric Set
|
| 12 |
+
|
| 13 |
+
theorem closedBall_covered_by_continuous_perturbation {X : Type*}
|
| 14 |
+
[NormedAddCommGroup X] [NormedSpace ℝ X] [FiniteDimensional ℝ X]
|
| 15 |
+
(a : X) (r δ : ℝ) (hr : 0 ≤ r)
|
| 16 |
+
(f : closedBall a r → X) (hf : Continuous f)
|
| 17 |
+
(hdisp : ∀ x, dist (f x) x.val ≤ δ) :
|
| 18 |
+
closedBall a (r - δ) ⊆ Set.range f := by
|
| 19 |
+
intro z hz
|
| 20 |
+
have hz' : ‖z - a‖ ≤ r - δ := by
|
| 21 |
+
simpa only [mem_closedBall, dist_eq_norm] using! hz
|
| 22 |
+
have hmaps (x : closedBall a r) : z - (f x - x.val) ∈ closedBall a r := by
|
| 23 |
+
change dist (z - (f x - x.val)) a ≤ r
|
| 24 |
+
calc
|
| 25 |
+
_ = ‖(z - a) - (f x - x.val)‖ := by
|
| 26 |
+
rw [dist_eq_norm]
|
| 27 |
+
congr 1
|
| 28 |
+
abel
|
| 29 |
+
_ ≤ ‖z - a‖ + ‖f x - x.val‖ := norm_sub_le _ _
|
| 30 |
+
_ ≤ (r - δ) + δ := add_le_add hz'
|
| 31 |
+
(by simpa only [dist_eq_norm] using! hdisp x)
|
| 32 |
+
_ = r := by ring
|
| 33 |
+
let T : C(closedBall a r, closedBall a r) :=
|
| 34 |
+
⟨fun x => ⟨z - (f x - x.val), hmaps x⟩,
|
| 35 |
+
(continuous_const.sub (hf.sub continuous_subtype_val)).subtype_mk _⟩
|
| 36 |
+
obtain ⟨u, hu⟩ := _root_.brouwer_fixed_point (closedBall a r)
|
| 37 |
+
(convex_closedBall a r) (isCompact_closedBall a r)
|
| 38 |
+
⟨a, mem_closedBall_self hr⟩ T
|
| 39 |
+
have heq := congrArg (fun x : closedBall a r => x.val) hu
|
| 40 |
+
change z - (f u - u.val) = u.val at heq
|
| 41 |
+
refine ⟨u, ?_⟩
|
| 42 |
+
calc
|
| 43 |
+
f u = (f u - u.val) + u.val := (sub_add_cancel _ _).symm
|
| 44 |
+
_ = (f u - u.val) + (z - (f u - u.val)) :=
|
| 45 |
+
congrArg (fun w => (f u - u.val) + w) heq.symm
|
| 46 |
+
_ = z := by abel
|
| 47 |
+
|
| 48 |
+
end
|
| 49 |
+
|
| 50 |
+
end RieszRectifiability
|
| 51 |
+
|
| 52 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ConvexChartContraction.lean
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.MeasureBounds
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open Metric Set Topology
|
| 11 |
+
|
| 12 |
+
theorem exists_contraction_in_convex_chart {E V : Type*}
|
| 13 |
+
[NormedAddCommGroup E] [NormedSpace ℝ E] [MetricSpace V]
|
| 14 |
+
(C : Set E) (hC : Convex ℝ C) (H : C → V) (hH : IsEmbedding H)
|
| 15 |
+
(A : Set V) (hA : A ⊆ Set.range H) (p : V) (hp : p ∈ A) :
|
| 16 |
+
∃ F : unitInterval × A → V, Continuous F ∧
|
| 17 |
+
(∀ x, F (0, x) = x.val) ∧ (∀ x, F (1, x) = p) ∧
|
| 18 |
+
(∀ s, F (s, ⟨p, hp⟩) = p) ∧ (∀ w, F w ∈ Set.range H) := by
|
| 19 |
+
classical
|
| 20 |
+
have hpre : ∀ x : A, ∃ u : C, H u = x.val := fun x => hA x.property
|
| 21 |
+
choose j hj using hpre
|
| 22 |
+
have hjcont : Continuous j := hH.continuous_iff.mpr (by
|
| 23 |
+
have hid : H ∘ j = (Subtype.val : A → V) := funext hj
|
| 24 |
+
rw [hid]
|
| 25 |
+
exact continuous_subtype_val)
|
| 26 |
+
let u0 : C := j ⟨p, hp⟩
|
| 27 |
+
let T : unitInterval × A → C := fun w =>
|
| 28 |
+
⟨(1 - (w.1 : ℝ)) • (j w.2 : E) + (w.1 : ℝ) • (u0 : E),
|
| 29 |
+
hC (j w.2).property u0.property (sub_nonneg.mpr w.1.property.2)
|
| 30 |
+
w.1.property.1 (by ring)⟩
|
| 31 |
+
have hs : Continuous (fun w : unitInterval × A => (w.1 : ℝ)) :=
|
| 32 |
+
continuous_subtype_val.comp continuous_fst
|
| 33 |
+
have hjv : Continuous (fun w : unitInterval × A => (j w.2 : E)) :=
|
| 34 |
+
continuous_subtype_val.comp (hjcont.comp continuous_snd)
|
| 35 |
+
have hT : Continuous T :=
|
| 36 |
+
(((continuous_const.sub hs).smul hjv).add (hs.smul continuous_const)).subtype_mk _
|
| 37 |
+
let F := H ∘ T
|
| 38 |
+
refine ⟨F, hH.continuous.comp hT, ?_, ?_, ?_, ?_⟩
|
| 39 |
+
· intro x
|
| 40 |
+
have ht : T (0, x) = j x := by apply Subtype.ext; simp [T]
|
| 41 |
+
change H (T (0, x)) = x.val
|
| 42 |
+
rw [ht]
|
| 43 |
+
exact hj x
|
| 44 |
+
· intro x
|
| 45 |
+
have ht : T (1, x) = u0 := by apply Subtype.ext; simp [T]
|
| 46 |
+
change H (T (1, x)) = p
|
| 47 |
+
rw [ht]
|
| 48 |
+
exact hj ⟨p, hp⟩
|
| 49 |
+
· intro s
|
| 50 |
+
have ht : T (s, ⟨p, hp⟩) = u0 := by
|
| 51 |
+
apply Subtype.ext
|
| 52 |
+
change (1 - (s : ℝ)) • (u0 : E) + (s : ℝ) • (u0 : E) = (u0 : E)
|
| 53 |
+
rw [← add_smul]
|
| 54 |
+
simp
|
| 55 |
+
change H (T (s, ⟨p, hp⟩)) = p
|
| 56 |
+
rw [ht]
|
| 57 |
+
exact hj ⟨p, hp⟩
|
| 58 |
+
· intro w
|
| 59 |
+
exact ⟨T w, rfl⟩
|
| 60 |
+
|
| 61 |
+
end
|
| 62 |
+
|
| 63 |
+
end RieszRectifiability
|
| 64 |
+
|
| 65 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/FiniteBallChartUnion.lean
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.RescaledChildChartGluing
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.BoundedNormalizedBallCharts
|
| 4 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.FiniteChartParameterPacking
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-!
|
| 9 |
+
# Finite unions of ball charts
|
| 10 |
+
|
| 11 |
+
Separated parameter islands encode finitely many bounded Lipschitz charts in a single
|
| 12 |
+
ball chart. The union constant combines the packing factor, the gluing estimate, and
|
| 13 |
+
the ambient Lipschitz extension constant. Extension followed by a nonexpansive
|
| 14 |
+
retraction also handles charts initially defined on subsets of the parameter ball.
|
| 15 |
+
-/
|
| 16 |
+
|
| 17 |
+
namespace RieszRectifiability
|
| 18 |
+
|
| 19 |
+
noncomputable section
|
| 20 |
+
|
| 21 |
+
open Metric Set
|
| 22 |
+
open scoped NNReal
|
| 23 |
+
|
| 24 |
+
def finiteBallChartUnionConstant (d N : ℕ) (M : ℝ≥0) : ℝ≥0 :=
|
| 25 |
+
lipschitzExtensionConstant (Ambient d) *
|
| 26 |
+
separatedPatchGluingConstant (M * (4 * finiteChartPackingFactor N)) (finiteChartPackingFactor N) 0
|
| 27 |
+
|
| 28 |
+
theorem exists_ball_lipschitz_cover_of_finite_ball_charts {n d : ℕ} (hn : 0 < n)
|
| 29 |
+
(N : ℕ) (r : ℝ) (hr : 0 < r) (z : Ambient d)
|
| 30 |
+
(f : Fin N → ball (0 : Ambient n) r → Ambient d)
|
| 31 |
+
(M : ℝ≥0) (hLip : ∀ i, LipschitzWith M (f i))
|
| 32 |
+
(himage : ∀ i, Set.range (f i) ⊆ closedBall z (3 * r)) :
|
| 33 |
+
∃ g : ball (0 : Ambient n) r → Ambient d,
|
| 34 |
+
LipschitzWith (finiteBallChartUnionConstant d N M) g ∧
|
| 35 |
+
(⋃ i : Fin N, Set.range (f i)) ⊆ Set.range g := by
|
| 36 |
+
have hdim : 0 < Module.finrank ℝ (Ambient n) := by simpa [Ambient] using! hn
|
| 37 |
+
let : Nontrivial (Ambient n) := Module.nontrivial_of_finrank_pos hdim
|
| 38 |
+
obtain ⟨e, he⟩ := exists_norm_eq (Ambient n) (show 0 ≤ (1 : ℝ) by norm_num)
|
| 39 |
+
have hA : 0 < finiteChartPackingFactor N := by unfold finiteChartPackingFactor; positivity
|
| 40 |
+
exact exists_ball_lipschitz_cover_of_rescaled_children (finiteChartParameterCenter e r N)
|
| 41 |
+
(fun _ => z) (fun _ => r) f M (finiteChartPackingFactor N) 0 hA
|
| 42 |
+
(finite_chart_parameter_centers_separated e he r hr N)
|
| 43 |
+
(fun _ _ => by simp only [dist_self, NNReal.coe_zero, zero_mul, le_refl])
|
| 44 |
+
himage hLip r (finite_chart_parameter_island_subset e he r hr N)
|
| 45 |
+
|
| 46 |
+
theorem exists_ball_lipschitz_cover_of_finite_partial_charts {n d : ℕ} (hn : 0 < n)
|
| 47 |
+
(N : ℕ) (r : ℝ) (hr : 0 < r) (z : Ambient d)
|
| 48 |
+
(D : Fin N → Set (Ambient n)) (hD : ∀ i, D i ⊆ ball (0 : Ambient n) r)
|
| 49 |
+
(f : Fin N → Ambient n → Ambient d) (M : ℝ≥0)
|
| 50 |
+
(hLip : ∀ i, LipschitzOnWith M (f i) (D i))
|
| 51 |
+
(himage : ∀ i, f i '' D i ⊆ closedBall z (3 * r)) :
|
| 52 |
+
∃ g : ball (0 : Ambient n) r → Ambient d,
|
| 53 |
+
LipschitzWith (finiteBallChartUnionConstant d N (lipschitzExtensionConstant (Ambient d) * M)) g ∧
|
| 54 |
+
(⋃ i : Fin N, f i '' D i) ⊆ Set.range g := by
|
| 55 |
+
classical
|
| 56 |
+
have hext (i : Fin N) := (hLip i).extend_finite_dimension
|
| 57 |
+
choose F hF hEq using hext
|
| 58 |
+
obtain ⟨p, hp, hpRange, hpFix⟩ := exists_nonexpansive_retraction_of_complete_convex
|
| 59 |
+
(closedBall z (3 * r)) ⟨z, mem_closedBall_self (by positivity)⟩
|
| 60 |
+
isClosed_closedBall.isComplete (convex_closedBall z (3 * r))
|
| 61 |
+
let g : Fin N → ball (0 : Ambient n) r → Ambient d :=
|
| 62 |
+
fun i => p ∘ (ball (0 : Ambient n) r).domRestrict (F i)
|
| 63 |
+
have hgLip (i : Fin N) : LipschitzWith (lipschitzExtensionConstant (Ambient d) * M) (g i) := by
|
| 64 |
+
simpa only [one_mul] using! hp.comp ((hF i).restrict (ball (0 : Ambient n) r))
|
| 65 |
+
have hgRange (i : Fin N) : Set.range (g i) ⊆ closedBall z (3 * r) := by
|
| 66 |
+
rintro y ⟨u, rfl⟩
|
| 67 |
+
exact hpRange (F i u.val)
|
| 68 |
+
obtain ⟨h, hhLip, hhCover⟩ := exists_ball_lipschitz_cover_of_finite_ball_charts hn N r hr z g
|
| 69 |
+
(lipschitzExtensionConstant (Ambient d) * M) hgLip hgRange
|
| 70 |
+
refine ⟨h, hhLip, ?_⟩
|
| 71 |
+
intro y hy
|
| 72 |
+
obtain ⟨i, u, hu, rfl⟩ := mem_iUnion.mp hy
|
| 73 |
+
apply hhCover
|
| 74 |
+
apply mem_iUnion.mpr
|
| 75 |
+
refine ⟨i, ⟨u, hD i hu⟩, ?_⟩
|
| 76 |
+
change p (F i u) = f i u
|
| 77 |
+
rw [← hEq i hu, hpFix (f i u) (himage i (mem_image_of_mem (f i) hu))]
|
| 78 |
+
|
| 79 |
+
end
|
| 80 |
+
|
| 81 |
+
end RieszRectifiability
|
| 82 |
+
|
| 83 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/FiniteChartParameterPacking.lean
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.MeasureBounds
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open Metric Set
|
| 11 |
+
open scoped NNReal
|
| 12 |
+
|
| 13 |
+
def finiteChartPackingFactor (N : ℕ) : ℝ≥0 := 4 * ((N : ℝ≥0) + 1)
|
| 14 |
+
|
| 15 |
+
def finiteChartParameterCenter {n : ℕ} (e : Ambient n) (r : ℝ) (N : ℕ) (i : Fin N) : Ambient n :=
|
| 16 |
+
(((i.val : ℝ) + 1) * (r / (2 * ((N : ℝ) + 1)))) • e
|
| 17 |
+
|
| 18 |
+
theorem finite_chart_parameter_center_mem {n : ℕ}
|
| 19 |
+
(e : Ambient n) (he : ‖e‖ = 1) (r : ℝ) (hr : 0 < r) (N : ℕ) (i : Fin N) :
|
| 20 |
+
finiteChartParameterCenter e r N i ∈ closedBall (0 : Ambient n) (r / 2) := by
|
| 21 |
+
have hi : (i.val : ℝ) + 1 ≤ (N : ℝ) := by exact_mod_cast Nat.succ_le_of_lt i.isLt
|
| 22 |
+
have hN : 0 ≤ (N : ℝ) := Nat.cast_nonneg N
|
| 23 |
+
rw [mem_closedBall_zero_iff, finiteChartParameterCenter, norm_smul,
|
| 24 |
+
Real.norm_eq_abs, abs_of_nonneg (by positivity), he, mul_one]
|
| 25 |
+
have hden : 0 < 2 * ((N : ℝ) + 1) := by positivity
|
| 26 |
+
rw [← mul_div_assoc, div_le_iff₀ hden]
|
| 27 |
+
nlinarith
|
| 28 |
+
|
| 29 |
+
theorem finite_chart_parameter_centers_separated {n : ℕ}
|
| 30 |
+
(e : Ambient n) (he : ‖e‖ = 1) (r : ℝ) (hr : 0 < r) (N : ℕ)
|
| 31 |
+
(i j : Fin N) (hij : i ≠ j) :
|
| 32 |
+
r + r ≤ (finiteChartPackingFactor N : ℝ) *
|
| 33 |
+
dist (finiteChartParameterCenter e r N i) (finiteChartParameterCenter e r N j) := by
|
| 34 |
+
let δ := r / (2 * ((N : ℝ) + 1))
|
| 35 |
+
have hδ : 0 < δ := by dsimp [δ]; positivity
|
| 36 |
+
have hneq : i.val ≠ j.val := fun h => hij (Fin.ext h)
|
| 37 |
+
have habs : 1 ≤ |(i.val : ℝ) - (j.val : ℝ)| := by
|
| 38 |
+
rcases lt_or_gt_of_ne hneq with hlt | hgt
|
| 39 |
+
· have h : (i.val : ℝ) + 1 ≤ (j.val : ℝ) := by exact_mod_cast Nat.succ_le_of_lt hlt
|
| 40 |
+
rw [abs_of_nonpos (by linarith)]
|
| 41 |
+
linarith
|
| 42 |
+
· have h : (j.val : ℝ) + 1 ≤ (i.val : ℝ) := by exact_mod_cast Nat.succ_le_of_lt hgt
|
| 43 |
+
rw [abs_of_nonneg (by linarith)]
|
| 44 |
+
linarith
|
| 45 |
+
have hdist : δ ≤ dist (finiteChartParameterCenter e r N i) (finiteChartParameterCenter e r N j) := by
|
| 46 |
+
rw [dist_eq_norm, finiteChartParameterCenter, finiteChartParameterCenter,
|
| 47 |
+
← sub_smul, norm_smul, Real.norm_eq_abs, he, mul_one]
|
| 48 |
+
change δ ≤ |((i.val : ℝ) + 1) * δ - ((j.val : ℝ) + 1) * δ|
|
| 49 |
+
rw [show ((i.val : ℝ) + 1) * δ - ((j.val : ℝ) + 1) * δ =
|
| 50 |
+
((i.val : ℝ) - (j.val : ℝ)) * δ by ring, abs_mul, abs_of_pos hδ]
|
| 51 |
+
simpa only [one_mul] using! mul_le_mul_of_nonneg_right habs hδ.le
|
| 52 |
+
have hid : (finiteChartPackingFactor N : ℝ) * δ = r + r := by
|
| 53 |
+
change (4 * ((N : ℝ) + 1)) * (r / (2 * ((N : ℝ) + 1))) = r + r
|
| 54 |
+
have hN : (N : ℝ) + 1 ≠ 0 := by positivity
|
| 55 |
+
field_simp
|
| 56 |
+
ring
|
| 57 |
+
rw [← hid]
|
| 58 |
+
exact mul_le_mul_of_nonneg_left hdist (finiteChartPackingFactor N).coe_nonneg
|
| 59 |
+
|
| 60 |
+
theorem finite_chart_parameter_island_subset {n : ℕ}
|
| 61 |
+
(e : Ambient n) (he : ‖e‖ = 1) (r : ℝ) (hr : 0 < r) (N : ℕ) (i : Fin N) :
|
| 62 |
+
ball (finiteChartParameterCenter e r N i) (r / (4 * (finiteChartPackingFactor N : ℝ))) ⊆
|
| 63 |
+
ball (0 : Ambient n) r := by
|
| 64 |
+
intro u hu
|
| 65 |
+
have hc : dist (finiteChartParameterCenter e r N i) (0 : Ambient n) ≤ r / 2 :=
|
| 66 |
+
finite_chart_parameter_center_mem e he r hr N i
|
| 67 |
+
have hA : 4 ≤ (finiteChartPackingFactor N : ℝ) := by
|
| 68 |
+
change 4 ≤ 4 * ((N : ℝ) + 1)
|
| 69 |
+
have hN := Nat.cast_nonneg (α := ℝ) N
|
| 70 |
+
linarith
|
| 71 |
+
have hden : 0 < 4 * (finiteChartPackingFactor N : ℝ) := by linarith
|
| 72 |
+
have hrad : r / (4 * (finiteChartPackingFactor N : ℝ)) ≤ r / 4 :=
|
| 73 |
+
(div_le_iff₀ hden).mpr (by nlinarith)
|
| 74 |
+
have ht := dist_triangle u (finiteChartParameterCenter e r N i) (0 : Ambient n)
|
| 75 |
+
have hu' : dist u (finiteChartParameterCenter e r N i) <
|
| 76 |
+
r / (4 * (finiteChartPackingFactor N : ℝ)) := hu
|
| 77 |
+
change dist u (0 : Ambient n) < r
|
| 78 |
+
linarith
|
| 79 |
+
|
| 80 |
+
end
|
| 81 |
+
|
| 82 |
+
end RieszRectifiability
|
| 83 |
+
|
| 84 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/FiniteChartUnionBounds.lean
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.FiniteBallChartUnion
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open Metric Set
|
| 11 |
+
open scoped NNReal
|
| 12 |
+
|
| 13 |
+
theorem finiteBallChartUnionConstant_mono (d : ℕ) {N K : ℕ} (hNK : N ≤ K)
|
| 14 |
+
{M L : ℝ≥0} (hML : M ≤ L) :
|
| 15 |
+
finiteBallChartUnionConstant d N M ≤ finiteBallChartUnionConstant d K L := by
|
| 16 |
+
have hNK' : (N : ℝ≥0) ≤ (K : ℝ≥0) := by exact_mod_cast hNK
|
| 17 |
+
unfold finiteBallChartUnionConstant separatedPatchGluingConstant finiteChartPackingFactor
|
| 18 |
+
gcongr
|
| 19 |
+
|
| 20 |
+
theorem exists_ball_lipschitz_cover_of_bounded_finite_family {n d : ℕ} (hn : 0 < n)
|
| 21 |
+
{ι : Type*} [Fintype ι] (N : ℕ) (hN : Fintype.card ι ≤ N)
|
| 22 |
+
(r : ℝ) (hr : 0 < r) (z : Ambient d)
|
| 23 |
+
(f : ι → ball (0 : Ambient n) r → Ambient d)
|
| 24 |
+
(M : ℝ≥0) (hLip : ∀ i, LipschitzWith M (f i))
|
| 25 |
+
(himage : ∀ i, Set.range (f i) ⊆ closedBall z (3 * r)) :
|
| 26 |
+
∃ g : ball (0 : Ambient n) r → Ambient d,
|
| 27 |
+
LipschitzWith (finiteBallChartUnionConstant d N M) g ∧
|
| 28 |
+
(⋃ i : ι, Set.range (f i)) ⊆ Set.range g := by
|
| 29 |
+
let e : Fin (Fintype.card ι) ≃ ι := (Fintype.equivFin ι).symm
|
| 30 |
+
obtain ⟨g, hg, hcover⟩ := exists_ball_lipschitz_cover_of_finite_ball_charts hn
|
| 31 |
+
(Fintype.card ι) r hr z (fun j => f (e j)) M (fun j => hLip (e j)) (fun j => himage (e j))
|
| 32 |
+
refine ⟨g, hg.weaken (finiteBallChartUnionConstant_mono d hN le_rfl), ?_⟩
|
| 33 |
+
intro y hy
|
| 34 |
+
obtain ⟨i, hi⟩ := mem_iUnion.mp hy
|
| 35 |
+
apply hcover
|
| 36 |
+
apply mem_iUnion.mpr
|
| 37 |
+
exact ⟨e.symm i, by simpa only [e.apply_symm_apply] using! hi⟩
|
| 38 |
+
|
| 39 |
+
end
|
| 40 |
+
|
| 41 |
+
end RieszRectifiability
|
| 42 |
+
|
| 43 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/FittingPlaneInputChart.lean
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.InitialAffineCharts
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Input charts on fitting planes
|
| 8 |
+
|
| 9 |
+
A small bilateral plane error bounds the offset of a support center from the fitting
|
| 10 |
+
plane. The located affine chart then gives the input disk, with constant normal component,
|
| 11 |
+
exact projected range, and image contained in the ambient ball of radius `3 * r`.
|
| 12 |
+
-/
|
| 13 |
+
|
| 14 |
+
namespace RieszRectifiability
|
| 15 |
+
|
| 16 |
+
noncomputable section
|
| 17 |
+
|
| 18 |
+
open MeasureTheory Metric Set
|
| 19 |
+
open scoped NNReal
|
| 20 |
+
|
| 21 |
+
theorem exists_fitting_plane_input_chart {n d : ℕ}
|
| 22 |
+
(μ : Measure (Ambient d)) (c : Ambient d) (hc : c ∈ μ.support)
|
| 23 |
+
(r : ℝ) (hr : 0 < r) (ε : ℝ) (hεsmall : ε ≤ 1 / 2048)
|
| 24 |
+
(S : AffineSubspace ℝ (Ambient d)) (hS : IsAffineNPlane n S)
|
| 25 |
+
(hfit : bilateralPlaneError μ c (1024 * r) S < ε) :
|
| 26 |
+
∃ g : closedBall (S.direction.orthogonalProjectionOnto c) ((5 / 2 : ℝ) * r) → Ambient d,
|
| 27 |
+
LipschitzWith 2 g ∧
|
| 28 |
+
LipschitzWith 0 (fun u => (S.directionᗮ : Submodule ℝ (Ambient d)).starProjection (g u)) ∧
|
| 29 |
+
(∀ u, g u ∈ S ∧ S.direction.orthogonalProjectionOnto (g u) = u.val ∧
|
| 30 |
+
g u ∈ closedBall c (3 * r)) ∧
|
| 31 |
+
Set.range g = (S : Set (Ambient d)) ∩ S.direction.orthogonalProjectionOnto ⁻¹'
|
| 32 |
+
closedBall (S.direction.orthogonalProjectionOnto c) ((5 / 2 : ℝ) * r) := by
|
| 33 |
+
have hcenter := (bilateralPlaneError_lt_pointwise μ ⟨c, hc⟩ c (1024 * r) ε
|
| 34 |
+
(by positivity) S hS hfit).1 c (mem_ball_self (by positivity)) hc
|
| 35 |
+
have hoffset : infDist c (S : Set (Ambient d)) ≤ r / 2 := by
|
| 36 |
+
have hm := mul_le_mul_of_nonneg_right hεsmall (show 0 ≤ 1024 * r by positivity)
|
| 37 |
+
linarith
|
| 38 |
+
obtain ⟨g, hLip, hnLip, hcoords, hrange⟩ :=
|
| 39 |
+
exists_located_affine_plane_disk_chart S hS.1 c ((5 / 2 : ℝ) * r)
|
| 40 |
+
refine ⟨g, hLip.weaken (by norm_num), hnLip, ?_, hrange⟩
|
| 41 |
+
intro u
|
| 42 |
+
refine ⟨(hcoords u).1, (hcoords u).2.1, ?_⟩
|
| 43 |
+
have hloc := (hcoords u).2.2
|
| 44 |
+
change dist (g u) c ≤ 3 * r
|
| 45 |
+
linarith
|
| 46 |
+
|
| 47 |
+
end
|
| 48 |
+
|
| 49 |
+
end RieszRectifiability
|
| 50 |
+
|
| 51 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ImmediateChildChartAssembly.lean
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.FiniteChartUnionBounds
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.ImmediateChildChartRescaling
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace RieszRectifiability
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
open MeasureTheory Metric Set
|
| 12 |
+
open scoped NNReal ENNReal
|
| 13 |
+
|
| 14 |
+
def immediateChildAssemblyConstant (d : ℕ) (M : ℝ≥0) : ℝ≥0 :=
|
| 15 |
+
finiteBallChartUnionConstant d (257 ^ d) (M / 64)
|
| 16 |
+
|
| 17 |
+
theorem exists_immediate_child_chart_assembly {n d : ℕ} (hn : 0 < n)
|
| 18 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 19 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 20 |
+
(f : ∀ i : supportImmediateChildren μ R hR k z, ball (0 : Ambient n) i.val.radius → Ambient d)
|
| 21 |
+
(M : ℝ≥0) (hLip : ∀ i, LipschitzWith M (f i))
|
| 22 |
+
(himage : ∀ i, Set.range (f i) ⊆ closedBall i.val.center (2 * i.val.radius)) :
|
| 23 |
+
∃ g : ball (0 : Ambient n) (latticeRadius R k) → Ambient d,
|
| 24 |
+
LipschitzWith (immediateChildAssemblyConstant d M) g ∧
|
| 25 |
+
Set.range g ⊆ closedBall (z : Ambient d) (2 * latticeRadius R k) ∧
|
| 26 |
+
(∀ i, i.val.cell ∩ Set.range (f i) ⊆ Set.range g) ∧
|
| 27 |
+
μ (cleanSupportCell μ R hR k z \ Set.range g) ≤
|
| 28 |
+
∑ i : supportImmediateChildren μ R hR k z, μ (i.val.cell \ Set.range (f i)) := by
|
| 29 |
+
classical
|
| 30 |
+
have hr : 0 < latticeRadius R k := latticeRadius_pos R hR k
|
| 31 |
+
obtain ⟨F, hF, hFRange⟩ := exists_immediate_child_charts_on_parent_ball μ R hR k z f M hLip
|
| 32 |
+
have hcount : Fintype.card (supportImmediateChildren μ R hR k z) ≤ 257 ^ d := by
|
| 33 |
+
simpa using! supportImmediateChildren_card_le μ R hR k z
|
| 34 |
+
have hFImage (i : supportImmediateChildren μ R hR k z) :
|
| 35 |
+
Set.range (F i) ⊆ closedBall (z : Ambient d) (3 * latticeRadius R k) := by
|
| 36 |
+
intro y hy
|
| 37 |
+
have hnear : dist y i.val.center ≤ 2 * i.val.radius := himage i (hFRange i ▸ hy)
|
| 38 |
+
have hc := i.val.center_dist_top
|
| 39 |
+
have ht := dist_triangle y i.val.center (z : Ambient d)
|
| 40 |
+
rw [supportImmediateChild_radius μ R hR k z i] at hnear
|
| 41 |
+
change dist y (z : Ambient d) ≤ 3 * latticeRadius R k
|
| 42 |
+
linarith
|
| 43 |
+
obtain ⟨g, hgLip, hgCover⟩ := exists_ball_lipschitz_cover_of_bounded_finite_family hn
|
| 44 |
+
(257 ^ d) hcount (latticeRadius R k) hr (z : Ambient d) F (M / 64) hF hFImage
|
| 45 |
+
obtain ⟨p, hpLip, hpRange, hpFix⟩ := exists_nonexpansive_retraction_of_complete_convex
|
| 46 |
+
(closedBall (z : Ambient d) (2 * latticeRadius R k))
|
| 47 |
+
⟨(z : Ambient d), mem_closedBall_self (by positivity)⟩ isClosed_closedBall.isComplete
|
| 48 |
+
(convex_closedBall (z : Ambient d) (2 * latticeRadius R k))
|
| 49 |
+
have hcover (i : supportImmediateChildren μ R hR k z) (y : Ambient d)
|
| 50 |
+
(hy : y ∈ i.val.cell) (hyRange : y ∈ Set.range (f i)) : y ∈ Set.range (p ∘ g) := by
|
| 51 |
+
have htop := i.val.cell_subset_top hy
|
| 52 |
+
have hball : y ∈ closedBall (z : Ambient d) (2 * latticeRadius R k) :=
|
| 53 |
+
(supportLatticeCell_bounds μ R hR k z).2 htop.1
|
| 54 |
+
have hyF : y ∈ Set.range (F i) := hFRange i ▸ hyRange
|
| 55 |
+
obtain ⟨u, hu⟩ := hgCover (mem_iUnion.mpr ⟨i, hyF⟩)
|
| 56 |
+
exact ⟨u, by change p (g u) = y; rw [hu, hpFix y hball]⟩
|
| 57 |
+
have hsub : cleanSupportCell μ R hR k z \ Set.range (p ∘ g) ⊆
|
| 58 |
+
⋃ i : supportImmediateChildren μ R hR k z, i.val.cell \ Set.range (f i) := by
|
| 59 |
+
intro y hy
|
| 60 |
+
have hpart : y ∈ ⋃ i : supportImmediateChildren μ R hR k z, i.val.cell :=
|
| 61 |
+
cleanSupportCell_eq_immediate_children μ R hR k z ▸ hy.1
|
| 62 |
+
obtain ⟨i, hi⟩ := mem_iUnion.mp hpart
|
| 63 |
+
exact mem_iUnion.mpr ⟨i, hi, fun h => hy.2 (hcover i y hi h)⟩
|
| 64 |
+
refine ⟨p ∘ g, ?_, ?_, ?_, ?_⟩
|
| 65 |
+
· simpa only [one_mul] using! hpLip.comp hgLip
|
| 66 |
+
· rintro y ⟨u, rfl⟩
|
| 67 |
+
exact hpRange (g u)
|
| 68 |
+
· intro i y hy
|
| 69 |
+
exact hcover i y hy.1 hy.2
|
| 70 |
+
· have h : μ (cleanSupportCell μ R hR k z \ Set.range (p ∘ g)) ≤
|
| 71 |
+
∑' i : supportImmediateChildren μ R hR k z, μ (i.val.cell \ Set.range (f i)) :=
|
| 72 |
+
(measure_mono hsub).trans (measure_iUnion_le _)
|
| 73 |
+
simpa only [tsum_fintype] using! h
|
| 74 |
+
|
| 75 |
+
end
|
| 76 |
+
|
| 77 |
+
end RieszRectifiability
|
| 78 |
+
|
| 79 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ImmediateChildChartRescaling.lean
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.RescaledBallCharts
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Foundations.ImmediateChildPartition
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Immediate-child charts on a parent ball
|
| 9 |
+
|
| 10 |
+
Rescaling immediate-child charts to the parent lattice ball preserves their images and divides
|
| 11 |
+
their Lipschitz bounds by the fixed radius ratio of 64. Restricting the rescaled maps to the open
|
| 12 |
+
parent ball gives a common parameter domain for all children.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open MeasureTheory Metric Set
|
| 20 |
+
open scoped NNReal
|
| 21 |
+
|
| 22 |
+
theorem exists_immediate_child_charts_on_parent_ball {n d : ℕ}
|
| 23 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 24 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 25 |
+
(f : ∀ i : supportImmediateChildren μ R hR k z, ball (0 : Ambient n) i.val.radius → Ambient d)
|
| 26 |
+
(M : ℝ≥0) (hLip : ∀ i, LipschitzWith M (f i)) :
|
| 27 |
+
∃ F : supportImmediateChildren μ R hR k z → ball (0 : Ambient n) (latticeRadius R k) → Ambient d,
|
| 28 |
+
(∀ i, LipschitzWith (M / 64) (F i)) ∧ ∀ i, Set.range (F i) = Set.range (f i) := by
|
| 29 |
+
classical
|
| 30 |
+
have hcharts (i : supportImmediateChildren μ R hR k z) :
|
| 31 |
+
∃ g : Ambient n → Ambient d,
|
| 32 |
+
LipschitzOnWith (M / 64) g (ball (0 : Ambient n) (latticeRadius R k)) ∧
|
| 33 |
+
g '' ball (0 : Ambient n) (latticeRadius R k) = Set.range (f i) := by
|
| 34 |
+
have h := exists_rescaled_ball_chart i.val.radius (0 : Ambient n) (1 / 64)
|
| 35 |
+
(by norm_num) (f i) M (hLip i)
|
| 36 |
+
have hdom : i.val.radius / ((1 / 64 : ℝ≥0) : ℝ) = latticeRadius R k := by
|
| 37 |
+
change i.val.radius / (1 / 64 : ℝ) = latticeRadius R k
|
| 38 |
+
rw [supportImmediateChild_radius μ R hR k z i]
|
| 39 |
+
ring
|
| 40 |
+
rw [hdom] at h
|
| 41 |
+
simpa only [one_div, div_eq_mul_inv, one_mul] using! h
|
| 42 |
+
choose g hg hRange using hcharts
|
| 43 |
+
refine ⟨fun i => (ball (0 : Ambient n) (latticeRadius R k)).domRestrict (g i),
|
| 44 |
+
fun i => (hg i).to_restrict, ?_⟩
|
| 45 |
+
intro i
|
| 46 |
+
apply Set.Subset.antisymm
|
| 47 |
+
· rintro y ⟨u, rfl⟩
|
| 48 |
+
exact hRange i ▸ mem_image_of_mem (g i) u.property
|
| 49 |
+
· intro y hy
|
| 50 |
+
obtain ⟨u, hu, he⟩ := hRange i ▸ hy
|
| 51 |
+
exact ⟨⟨u, hu⟩, he⟩
|
| 52 |
+
|
| 53 |
+
end
|
| 54 |
+
|
| 55 |
+
end RieszRectifiability
|
| 56 |
+
|
| 57 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/InitialAffineCharts.lean
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Restart.ActiveProjectionDiskCoverage
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Projections.CoveredProjectionCharts
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Initial affine-plane charts
|
| 9 |
+
|
| 10 |
+
Orthogonal coordinates parametrize each affine-plane disk by a 1-Lipschitz chart with
|
| 11 |
+
constant normal component and exact range. A distance estimate locates the chart near
|
| 12 |
+
an ambient center, with error given by that center's distance to the plane.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open Metric Set EuclideanGeometry
|
| 20 |
+
open scoped NNReal
|
| 21 |
+
|
| 22 |
+
theorem exists_affine_plane_disk_chart {d : ℕ}
|
| 23 |
+
(S : AffineSubspace ℝ (Ambient d)) (hS : (S : Set (Ambient d)).Nonempty)
|
| 24 |
+
(a : S.direction) (ρ : ℝ) :
|
| 25 |
+
∃ g : closedBall a ρ → Ambient d,
|
| 26 |
+
LipschitzWith 1 g ∧
|
| 27 |
+
LipschitzWith 0 (fun u => (S.directionᗮ : Submodule ℝ (Ambient d)).starProjection (g u)) ∧
|
| 28 |
+
(∀ u, g u ∈ S ∧ S.direction.orthogonalProjectionOnto (g u) = u.val) ∧
|
| 29 |
+
Set.range g = (S : Set (Ambient d)) ∩ S.direction.orthogonalProjectionOnto ⁻¹' closedBall a ρ := by
|
| 30 |
+
let : Nonempty S := hS.to_subtype
|
| 31 |
+
have hcover : closedBall a ρ ⊆ S.direction.orthogonalProjectionOnto '' (S : Set (Ambient d)) := by
|
| 32 |
+
intro v _
|
| 33 |
+
refine ⟨nonemptyAffineProjection S hS (v : Ambient d), ?_, ?_⟩
|
| 34 |
+
· exact orthogonalProjection_mem (v : Ambient d)
|
| 35 |
+
· rw [nonemptyAffineProjection_tangential]
|
| 36 |
+
exact S.direction.orthogonalProjectionOnto_mem_subspace_eq_self v
|
| 37 |
+
have hcone : ∀ x ∈ (S : Set (Ambient d)), ∀ y ∈ (S : Set (Ambient d)),
|
| 38 |
+
‖(S.directionᗮ : Submodule ℝ (Ambient d)).starProjection (x - y)‖ ≤
|
| 39 |
+
((0 : ℝ≥0) : ℝ) * dist (S.direction.starProjection x) (S.direction.starProjection y) := by
|
| 40 |
+
intro x hx y hy
|
| 41 |
+
have hv : x - y ∈ S.direction := AffineSubspace.vsub_mem_direction hx hy
|
| 42 |
+
rw [S.direction.starProjection_orthogonal_val,
|
| 43 |
+
S.direction.starProjection_eq_self_iff.mpr hv, sub_self, norm_zero, NNReal.coe_zero, zero_mul]
|
| 44 |
+
simpa only [add_zero] using!
|
| 45 |
+
exists_chart_on_covered_projection S.direction (S : Set (Ambient d)) 0 (closedBall a ρ) hcover hcone
|
| 46 |
+
|
| 47 |
+
theorem affine_plane_dist_le_projection_add_offset {d : ℕ}
|
| 48 |
+
(S : AffineSubspace ℝ (Ambient d)) (hS : (S : Set (Ambient d)).Nonempty)
|
| 49 |
+
(x c : Ambient d) (hx : x ∈ S) :
|
| 50 |
+
dist x c ≤ dist (S.direction.starProjection x) (S.direction.starProjection c) +
|
| 51 |
+
infDist c (S : Set (Ambient d)) := by
|
| 52 |
+
let : Nonempty S := hS.to_subtype
|
| 53 |
+
have hn := normal_projection_bound_by_plane_distances S x c
|
| 54 |
+
rw [infDist_zero_of_mem hx, zero_add] at hn
|
| 55 |
+
have ht := norm_add_le (S.direction.starProjection (x - c))
|
| 56 |
+
((S.directionᗮ : Submodule ℝ (Ambient d)).starProjection (x - c))
|
| 57 |
+
rw [S.direction.starProjection_add_starProjection_orthogonal] at ht
|
| 58 |
+
rw [map_sub, ← dist_eq_norm x c,
|
| 59 |
+
← dist_eq_norm (S.direction.starProjection x) (S.direction.starProjection c)] at ht
|
| 60 |
+
exact ht.trans (add_le_add le_rfl hn)
|
| 61 |
+
|
| 62 |
+
theorem exists_located_affine_plane_disk_chart {d : ℕ}
|
| 63 |
+
(S : AffineSubspace ℝ (Ambient d)) (hS : (S : Set (Ambient d)).Nonempty)
|
| 64 |
+
(c : Ambient d) (ρ : ℝ) :
|
| 65 |
+
∃ g : closedBall (S.direction.orthogonalProjectionOnto c) ρ → Ambient d,
|
| 66 |
+
LipschitzWith 1 g ∧
|
| 67 |
+
LipschitzWith 0 (fun u => (S.directionᗮ : Submodule ℝ (Ambient d)).starProjection (g u)) ∧
|
| 68 |
+
(∀ u, g u ∈ S ∧ S.direction.orthogonalProjectionOnto (g u) = u.val ∧
|
| 69 |
+
dist (g u) c ≤ ρ + infDist c (S : Set (Ambient d))) ∧
|
| 70 |
+
Set.range g = (S : Set (Ambient d)) ∩ S.direction.orthogonalProjectionOnto ⁻¹'
|
| 71 |
+
closedBall (S.direction.orthogonalProjectionOnto c) ρ := by
|
| 72 |
+
obtain ⟨g, hLip, hnLip, hcoords, hrange⟩ :=
|
| 73 |
+
exists_affine_plane_disk_chart S hS (S.direction.orthogonalProjectionOnto c) ρ
|
| 74 |
+
refine ⟨g, hLip, hnLip, ?_, hrange⟩
|
| 75 |
+
intro u
|
| 76 |
+
refine ⟨(hcoords u).1, (hcoords u).2, ?_⟩
|
| 77 |
+
have hstar : S.direction.starProjection (g u) = (u.val : Ambient d) :=
|
| 78 |
+
congrArg (fun v : S.direction => (v : Ambient d)) (hcoords u).2
|
| 79 |
+
have h := affine_plane_dist_le_projection_add_offset S hS (g u) c (hcoords u).1
|
| 80 |
+
rw [hstar] at h
|
| 81 |
+
have hu : dist (u.val : Ambient d) (S.direction.starProjection c) ≤ ρ := u.property
|
| 82 |
+
exact h.trans (add_le_add hu le_rfl)
|
| 83 |
+
|
| 84 |
+
end
|
| 85 |
+
|
| 86 |
+
end RieszRectifiability
|
| 87 |
+
|
| 88 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/LipschitzChartLift.lean
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.MeasureBounds
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open Set
|
| 11 |
+
open scoped NNReal
|
| 12 |
+
|
| 13 |
+
theorem exists_lipschitz_lift_of_antilipschitz {X U V : Type*}
|
| 14 |
+
[MetricSpace X] [MetricSpace U] [MetricSpace V]
|
| 15 |
+
(F : U → V) (K : ℝ≥0) (hF : AntilipschitzWith K F)
|
| 16 |
+
(g : X → V) (L : ℝ≥0) (hg : LipschitzWith L g)
|
| 17 |
+
(hinto : Set.range g ⊆ Set.range F) :
|
| 18 |
+
∃ h : X → U, LipschitzWith (K * L) h ∧ ∀ x, F (h x) = g x := by
|
| 19 |
+
classical
|
| 20 |
+
have hpre : ∀ x : X, ∃ u : U, F u = g x := fun x => hinto ⟨x, rfl⟩
|
| 21 |
+
choose h hh using hpre
|
| 22 |
+
refine ⟨h, ?_, hh⟩
|
| 23 |
+
apply LipschitzWith.of_dist_le_mul
|
| 24 |
+
intro x y
|
| 25 |
+
have hb := hF.le_mul_dist (h x) (h y)
|
| 26 |
+
rw [hh x, hh y] at hb
|
| 27 |
+
calc
|
| 28 |
+
dist (h x) (h y) ≤ (K : ℝ) * dist (g x) (g y) := hb
|
| 29 |
+
_ ≤ (K : ℝ) * ((L : ℝ) * dist x y) :=
|
| 30 |
+
mul_le_mul_of_nonneg_left (hg.dist_le_mul x y) K.coe_nonneg
|
| 31 |
+
_ = ((K * L : ℝ≥0) : ℝ) * dist x y := by rw [NNReal.coe_mul]; ring
|
| 32 |
+
|
| 33 |
+
end
|
| 34 |
+
|
| 35 |
+
end RieszRectifiability
|
| 36 |
+
|
| 37 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/MatchedSurfaceBallDepthCharts.lean
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.MatchedSurfaceDepthCharts
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.SurfaceBallChartAssembly
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Finite-depth charts on surface balls
|
| 9 |
+
|
| 10 |
+
Finite unions of matched-surface cell charts produce maps from Euclidean balls.
|
| 11 |
+
The construction retains the finite-depth mass-deficit estimate and an explicit
|
| 12 |
+
Lipschitz bound determined by the cell-chart bound and the covering multiplicity.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open MeasureTheory Metric Set Filter Topology
|
| 20 |
+
open scoped NNReal ENNReal
|
| 21 |
+
|
| 22 |
+
variable {n d : ℕ}
|
| 23 |
+
(ν : Measure (Ambient d)) (A : Set (Ambient d)) (hν : ν = nativeSurfaceArea n A)
|
| 24 |
+
(hsupport : ν.support = A)
|
| 25 |
+
(C G : ℝ) (hC : 0 < C) (hG : 0 < G) (hg : GlobalUpperGrowth n G ν)
|
| 26 |
+
(hlower : ∀ x ∈ ν.support, ∀ r : ℝ, AdmissibleRadius ν r →
|
| 27 |
+
ENNReal.ofReal (r ^ n / C) ≤ ν (ball x r))
|
| 28 |
+
(σ κ : ℝ) (hσ : 0 < σ) (hκ : 0 < κ) (hκ1 : κ ≤ 1)
|
| 29 |
+
(hwidth : σ + κ ≤ 1) (hsmall : 2048 * σ * (κ + 1) ≤ κ)
|
| 30 |
+
(hshadow : projectionStopShadowConstant n C σ κ ≤ nativeCoreAreaFraction n G)
|
| 31 |
+
(hgeometry : ∀ p ∈ ν.support, ∀ r : ℝ, 0 < r →
|
| 32 |
+
∃ P : Submodule ℝ (Ambient d), Module.finrank ℝ P = n ∧
|
| 33 |
+
(∀ x ∈ ν.support ∩ closedBall p (1024 * r),
|
| 34 |
+
infDist x (AffineSubspace.mk' p P : Set (Ambient d)) ≤ σ * r) ∧
|
| 35 |
+
closedBall (P.orthogonalProjectionOnto p) (r / 32) ⊆
|
| 36 |
+
P.orthogonalProjectionOnto '' (ν.support ∩ closedBall p (r / 16)))
|
| 37 |
+
(hdiam : ediam ν.support = ⊤)
|
| 38 |
+
|
| 39 |
+
include hν hsupport hC hG hg hlower hσ hκ hκ1 hwidth hsmall hshadow hgeometry hdiam
|
| 40 |
+
|
| 41 |
+
theorem exists_matched_surface_ball_depth_chart (hn : 0 < n) (J : ℕ)
|
| 42 |
+
(r : ℝ) (hr : 0 < r) (a : Ambient d) :
|
| 43 |
+
∃ g : ball (0 : Ambient n) r → Ambient d,
|
| 44 |
+
LipschitzWith (finiteBallChartUnionConstant d (11 ^ d)
|
| 45 |
+
(projectionRegionDepthConstant d (Real.toNNReal (2 / κ)) J)) g ∧
|
| 46 |
+
Set.range g ⊆ closedBall a (3 * r) ∧
|
| 47 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) ((A ∩ closedBall a (3 * r)) \ Set.range g) ≤
|
| 48 |
+
(ENNReal.ofReal (1 - nativeCoreAreaFraction n G)) ^ J * ENNReal.ofReal (G * (8 * r) ^ n) := by
|
| 49 |
+
apply exists_surface_ball_chart_of_cell_deficits hn ν A hν hsupport C G hC hG hg hlower
|
| 50 |
+
r hr a (projectionRegionDepthConstant d (Real.toNNReal (2 / κ)) J)
|
| 51 |
+
((ENNReal.ofReal (1 - nativeCoreAreaFraction n G)) ^ J)
|
| 52 |
+
intro z
|
| 53 |
+
have hlocal := exists_matched_surface_depth_chart ν A hν hsupport C G hC hG hg hlower
|
| 54 |
+
σ κ hσ hκ hκ1 hwidth hsmall hshadow hgeometry hdiam J r hr 0 z.val
|
| 55 |
+
obtain ⟨g₀, hg₀, _, hdef⟩ := hlocal
|
| 56 |
+
let cast : ball (0 : Ambient n) r → ball (0 : Ambient n) (latticeRadius r 0) :=
|
| 57 |
+
fun u => ⟨u.val, by simpa only [latticeRadius_zero] using! u.property⟩
|
| 58 |
+
have hcast : Isometry cast := fun _ _ => rfl
|
| 59 |
+
have hsurj : Function.Surjective cast := by
|
| 60 |
+
intro u
|
| 61 |
+
exact ⟨⟨u.val, by simpa only [latticeRadius_zero] using! u.property⟩, Subtype.ext rfl⟩
|
| 62 |
+
let g := g₀ ∘ cast
|
| 63 |
+
have hrange : Set.range g = Set.range g₀ := by
|
| 64 |
+
apply Set.Subset.antisymm
|
| 65 |
+
· rintro y ⟨u, rfl⟩
|
| 66 |
+
exact Set.mem_range_self (cast u)
|
| 67 |
+
· rintro y ⟨u, rfl⟩
|
| 68 |
+
obtain ⟨v, hv⟩ := hsurj u
|
| 69 |
+
exact ⟨v, congrArg g₀ hv⟩
|
| 70 |
+
refine ⟨g, ?_, ?_⟩
|
| 71 |
+
· simpa only [mul_one] using! hg₀.comp hcast.lipschitzWith
|
| 72 |
+
· rw [hrange]
|
| 73 |
+
exact hdef
|
| 74 |
+
|
| 75 |
+
end
|
| 76 |
+
|
| 77 |
+
end RieszRectifiability
|
| 78 |
+
|
| 79 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/MatchedSurfaceCellPlanes.lean
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Projections.ProjectionConditionedRegions
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Matched planes for support-cell descendants
|
| 8 |
+
|
| 9 |
+
Pointwise geometric fits select an affine plane through every descendant center.
|
| 10 |
+
The root plane retains the projected disk coverage supplied by the same choice.
|
| 11 |
+
-/
|
| 12 |
+
|
| 13 |
+
namespace RieszRectifiability
|
| 14 |
+
|
| 15 |
+
noncomputable section
|
| 16 |
+
|
| 17 |
+
open MeasureTheory Metric Set
|
| 18 |
+
|
| 19 |
+
theorem exists_matched_surface_cell_planes {n d : ℕ}
|
| 20 |
+
(ν : Measure (Ambient d)) (σ : ℝ)
|
| 21 |
+
(hgeometry : ∀ p ∈ ν.support, ∀ r : ℝ, 0 < r →
|
| 22 |
+
∃ P : Submodule ℝ (Ambient d), Module.finrank ℝ P = n ∧
|
| 23 |
+
(∀ x ∈ ν.support ∩ closedBall p (1024 * r),
|
| 24 |
+
infDist x (AffineSubspace.mk' p P : Set (Ambient d)) ≤ σ * r) ∧
|
| 25 |
+
closedBall (P.orthogonalProjectionOnto p) (r / 32) ⊆
|
| 26 |
+
P.orthogonalProjectionOnto '' (ν.support ∩ closedBall p (r / 16)))
|
| 27 |
+
(R : ℝ) (hR : 0 < R) (k : ℕ) (z : (supportLatticeNets ν R hR k).points) :
|
| 28 |
+
∃ S : SupportCellDescendant ν R hR k z → AffineSubspace ℝ (Ambient d),
|
| 29 |
+
(∀ i, IsAffineNPlane n (S i)) ∧ (∀ i, i.center ∈ S i) ∧
|
| 30 |
+
(∀ i, ∀ x ∈ ν.support ∩ closedBall i.center (1024 * i.radius),
|
| 31 |
+
infDist x (S i : Set (Ambient d)) ≤ σ * i.radius) ∧
|
| 32 |
+
let P := (S (supportCellRoot ν R hR k z)).direction
|
| 33 |
+
closedBall (P.orthogonalProjectionOnto z) (latticeRadius R k / 32) ⊆
|
| 34 |
+
P.orthogonalProjectionOnto '' (ν.support ∩ closedBall (z : Ambient d) (latticeRadius R k / 16)) := by
|
| 35 |
+
classical
|
| 36 |
+
have hall (i : SupportCellDescendant ν R hR k z) :=
|
| 37 |
+
hgeometry i.center i.center_mem_support i.radius i.radius_pos
|
| 38 |
+
choose Ps hdim hfit hcover using hall
|
| 39 |
+
let S (i : SupportCellDescendant ν R hR k z) := AffineSubspace.mk' i.center (Ps i)
|
| 40 |
+
have hS : ∀ i, IsAffineNPlane n (S i) := by
|
| 41 |
+
intro i
|
| 42 |
+
refine ⟨AffineSubspace.mk'_nonempty i.center (Ps i), ?_⟩
|
| 43 |
+
rw [AffineSubspace.direction_mk']
|
| 44 |
+
exact hdim i
|
| 45 |
+
refine ⟨S, hS, ?_, hfit, ?_⟩
|
| 46 |
+
· intro i
|
| 47 |
+
apply AffineSubspace.mem_mk'.mpr
|
| 48 |
+
simpa only [vsub_self] using! (Ps i).zero_mem
|
| 49 |
+
· change closedBall ((S (supportCellRoot ν R hR k z)).direction.orthogonalProjectionOnto z) _ ⊆ _
|
| 50 |
+
dsimp only [S]
|
| 51 |
+
rw [AffineSubspace.direction_mk']
|
| 52 |
+
exact hcover (supportCellRoot ν R hR k z)
|
| 53 |
+
|
| 54 |
+
end
|
| 55 |
+
|
| 56 |
+
end RieszRectifiability
|
| 57 |
+
|
| 58 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/MatchedSurfaceDepthCharts.lean
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Projections.ProjectionRegionDepthCharts
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Projections.ContractingProjectionRegions
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Matched surface charts with controlled loss
|
| 9 |
+
|
| 10 |
+
For surfaces of infinite support diameter, contracting projection regions provide
|
| 11 |
+
finite-depth charts with geometric mass loss. Choosing the depth from a positive
|
| 12 |
+
loss tolerance gives one Lipschitz bound valid at every lattice scale and cell.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open MeasureTheory Metric Set Filter Topology
|
| 20 |
+
open scoped NNReal ENNReal
|
| 21 |
+
|
| 22 |
+
variable {n d : ℕ}
|
| 23 |
+
(ν : Measure (Ambient d)) (A : Set (Ambient d)) (hν : ν = nativeSurfaceArea n A)
|
| 24 |
+
(hsupport : ν.support = A)
|
| 25 |
+
(C G : ℝ) (hC : 0 < C) (hG : 0 < G) (hg : GlobalUpperGrowth n G ν)
|
| 26 |
+
(hlower : ∀ x ∈ ν.support, ∀ r : ℝ, AdmissibleRadius ν r →
|
| 27 |
+
ENNReal.ofReal (r ^ n / C) ≤ ν (ball x r))
|
| 28 |
+
(σ κ : ℝ) (hσ : 0 < σ) (hκ : 0 < κ) (hκ1 : κ ≤ 1)
|
| 29 |
+
(hwidth : σ + κ ≤ 1) (hsmall : 2048 * σ * (κ + 1) ≤ κ)
|
| 30 |
+
(hshadow : projectionStopShadowConstant n C σ κ ≤ nativeCoreAreaFraction n G)
|
| 31 |
+
(hgeometry : ∀ p ∈ ν.support, ∀ r : ℝ, 0 < r →
|
| 32 |
+
∃ P : Submodule ℝ (Ambient d), Module.finrank ℝ P = n ∧
|
| 33 |
+
(∀ x ∈ ν.support ∩ closedBall p (1024 * r),
|
| 34 |
+
infDist x (AffineSubspace.mk' p P : Set (Ambient d)) ≤ σ * r) ∧
|
| 35 |
+
closedBall (P.orthogonalProjectionOnto p) (r / 32) ⊆
|
| 36 |
+
P.orthogonalProjectionOnto '' (ν.support ∩ closedBall p (r / 16)))
|
| 37 |
+
(hdiam : ediam ν.support = ⊤)
|
| 38 |
+
|
| 39 |
+
include hν hsupport hC hG hg hlower hσ hκ hκ1 hwidth hsmall hshadow hgeometry hdiam
|
| 40 |
+
|
| 41 |
+
theorem exists_matched_surface_depth_chart (J : ℕ) :
|
| 42 |
+
∀ (R : ℝ) (hR : 0 < R) (k : ℕ) (z : (supportLatticeNets ν R hR k).points),
|
| 43 |
+
∃ g : ball (0 : Ambient n) (latticeRadius R k) → Ambient d,
|
| 44 |
+
LipschitzWith (projectionRegionDepthConstant d (Real.toNNReal (2 / κ)) J) g ∧
|
| 45 |
+
Set.range g ⊆ closedBall (z : Ambient d) (2 * latticeRadius R k) ∧
|
| 46 |
+
ν (cleanSupportCell ν R hR k z \ Set.range g) ≤
|
| 47 |
+
(ENNReal.ofReal (1 - nativeCoreAreaFraction n G)) ^ J * ν (cleanSupportCell ν R hR k z) := by
|
| 48 |
+
have hL : 1 ≤ Real.toNNReal (2 / κ) := by
|
| 49 |
+
have h : (1 : ℝ) ≤ (Real.toNNReal (2 / κ) : ℝ) := by
|
| 50 |
+
rw [Real.coe_toNNReal _ (by positivity)]
|
| 51 |
+
apply (le_div_iff₀ hκ).mpr
|
| 52 |
+
linarith
|
| 53 |
+
exact_mod_cast h
|
| 54 |
+
apply exists_projection_region_depth_chart ν (Real.toNNReal (2 / κ)) hL (nativeCoreAreaFraction n G) ?_ J
|
| 55 |
+
intro R hR k z
|
| 56 |
+
have hcore : AdmissibleRadius ν (latticeRadius R k / 8) := by
|
| 57 |
+
refine ⟨by have hr := latticeRadius_pos R hR k; positivity, ?_⟩
|
| 58 |
+
rw [hdiam]
|
| 59 |
+
exact le_top
|
| 60 |
+
obtain ⟨Good, _, P, hdim, hsep, _, hstop⟩ := exists_contracting_projection_region
|
| 61 |
+
ν A hν hsupport C G hC hG hg hlower σ κ hσ hκ hκ1 hwidth hsmall hshadow hgeometry R hR k hcore z
|
| 62 |
+
refine ⟨Good, P, hdim, ?_, hstop⟩
|
| 63 |
+
simpa only [Real.coe_toNNReal _ (by positivity : 0 ≤ 2 / κ)] using! hsep
|
| 64 |
+
|
| 65 |
+
theorem exists_matched_surface_uniform_small_loss_chart (δ : ℝ) (hδ : 0 < δ) :
|
| 66 |
+
∃ M : ℝ≥0, ∀ (R : ℝ) (hR : 0 < R) (k : ℕ) (z : (supportLatticeNets ν R hR k).points),
|
| 67 |
+
∃ g : ball (0 : Ambient n) (latticeRadius R k) → Ambient d,
|
| 68 |
+
LipschitzWith M g ∧
|
| 69 |
+
Set.range g ⊆ closedBall (z : Ambient d) (2 * latticeRadius R k) ∧
|
| 70 |
+
ν (cleanSupportCell ν R hR k z \ Set.range g) ≤
|
| 71 |
+
ENNReal.ofReal δ * ν (cleanSupportCell ν R hR k z) := by
|
| 72 |
+
have hθ := nativeCoreAreaFraction_pos_le_half n G hG
|
| 73 |
+
have hzero : 0 ≤ 1 - nativeCoreAreaFraction n G := by linarith [hθ.2]
|
| 74 |
+
have hone : 1 - nativeCoreAreaFraction n G < 1 := by linarith [hθ.1]
|
| 75 |
+
have hlim := tendsto_pow_atTop_nhds_zero_of_lt_one hzero hone
|
| 76 |
+
have hevent : ∀ᶠ J : ℕ in atTop, (1 - nativeCoreAreaFraction n G) ^ J < δ :=
|
| 77 |
+
hlim.eventually (gt_mem_nhds hδ)
|
| 78 |
+
obtain ⟨J, hJ⟩ := hevent.exists
|
| 79 |
+
refine ⟨projectionRegionDepthConstant d (Real.toNNReal (2 / κ)) J, ?_⟩
|
| 80 |
+
intro R hR k z
|
| 81 |
+
obtain ⟨g, hg, hrange, hdeficit⟩ := exists_matched_surface_depth_chart
|
| 82 |
+
ν A hν hsupport C G hC hG hg hlower σ κ hσ hκ hκ1 hwidth hsmall hshadow hgeometry hdiam J R hR k z
|
| 83 |
+
refine ⟨g, hg, hrange, hdeficit.trans (mul_le_mul' ?_ le_rfl)⟩
|
| 84 |
+
rw [← ENNReal.ofReal_pow hzero]
|
| 85 |
+
exact ENNReal.ofReal_le_ofReal hJ.le
|
| 86 |
+
|
| 87 |
+
end
|
| 88 |
+
|
| 89 |
+
end RieszRectifiability
|
| 90 |
+
|
| 91 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/MatchedSurfacePrecision.lean
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Restart.ActiveRegionSurfaceModel
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
theorem exists_matched_surface_precision (d : ℕ) (δ : ℝ) (hδ : 0 < δ) :
|
| 11 |
+
∃ ε : ℝ, 0 < ε ∧ ε ≤ 1 / 72057594037927936 ∧
|
| 12 |
+
activeProjectionError d ε ≤ 1 / 4096 ∧
|
| 13 |
+
281474976710656 * (ε + activeProjectionError d ε) ≤ δ := by
|
| 14 |
+
let C : ℝ := 2048 + 1048576 * (9 : ℝ) ^ d
|
| 15 |
+
have hC : 0 < C := by dsimp only [C]; positivity
|
| 16 |
+
let ε : ℝ := min (1 / 72057594037927936) (min (1 / (4096 * C))
|
| 17 |
+
(δ / (281474976710656 * (1 + C))))
|
| 18 |
+
have hε : 0 < ε := lt_min (by norm_num) (lt_min (by positivity) (by positivity))
|
| 19 |
+
have h₁ : ε ≤ 1 / (4096 * C) := (min_le_right _ _).trans (min_le_left _ _)
|
| 20 |
+
have h₂ : ε ≤ δ / (281474976710656 * (1 + C)) := (min_le_right _ _).trans (min_le_right _ _)
|
| 21 |
+
refine ⟨ε, hε, min_le_left _ _, ?_, ?_⟩
|
| 22 |
+
· change C * ε ≤ 1 / 4096
|
| 23 |
+
have heq : C * (1 / (4096 * C)) = 1 / 4096 := by field_simp
|
| 24 |
+
exact (mul_le_mul_of_nonneg_left h₁ hC.le).trans_eq heq
|
| 25 |
+
· change 281474976710656 * (ε + C * ε) ≤ δ
|
| 26 |
+
have h := (le_div_iff₀ (by positivity : 0 < 281474976710656 * (1 + C))).mp h₂
|
| 27 |
+
nlinarith
|
| 28 |
+
|
| 29 |
+
end
|
| 30 |
+
|
| 31 |
+
end RieszRectifiability
|
| 32 |
+
|
| 33 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/NativeCoreAreaFraction.lean
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Packing.LatticeMassPacking
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.PlaneDiskLowerArea
|
| 4 |
+
import OAI.Analysis.RieszRectifiability.Foundations.NativeHausdorffGrowth
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-!
|
| 9 |
+
# A uniform fraction for core area
|
| 10 |
+
|
| 11 |
+
The core-area fraction depends only on the dimension and upper growth
|
| 12 |
+
constant. Its coefficient bound compares lattice-cell mass with the
|
| 13 |
+
Hausdorff measure of a plane disk at the smaller core scale.
|
| 14 |
+
-/
|
| 15 |
+
|
| 16 |
+
namespace RieszRectifiability
|
| 17 |
+
|
| 18 |
+
noncomputable section
|
| 19 |
+
|
| 20 |
+
open MeasureTheory Metric Set
|
| 21 |
+
open scoped ENNReal
|
| 22 |
+
|
| 23 |
+
def nativeCoreAreaFraction (n : ℕ) (G : ℝ) : ℝ :=
|
| 24 |
+
min (1 / 2) ((planeUnitHausdorffMeasure n).toReal /
|
| 25 |
+
(2 * (G * (3 : ℝ) ^ n * (32 : ℝ) ^ n)))
|
| 26 |
+
|
| 27 |
+
theorem nativeCoreAreaFraction_pos_le_half (n : ℕ) (G : ℝ) (hG : 0 < G) :
|
| 28 |
+
0 < nativeCoreAreaFraction n G ∧ nativeCoreAreaFraction n G ≤ 1 / 2 := by
|
| 29 |
+
have hu : 0 < (planeUnitHausdorffMeasure n).toReal :=
|
| 30 |
+
ENNReal.toReal_pos_iff.mpr ⟨planeUnitHausdorffMeasure_pos n, planeUnitHausdorffMeasure_lt_top n⟩
|
| 31 |
+
exact ⟨lt_min (by norm_num) (by positivity), min_le_left _ _⟩
|
| 32 |
+
|
| 33 |
+
theorem nativeCoreAreaFraction_coefficient_bound (n : ℕ) (G : ℝ) (hG : 0 < G) :
|
| 34 |
+
2 * nativeCoreAreaFraction n G * (G * (3 : ℝ) ^ n) ≤
|
| 35 |
+
(planeUnitHausdorffMeasure n).toReal / (32 : ℝ) ^ n := by
|
| 36 |
+
have h := min_le_right (1 / 2 : ℝ)
|
| 37 |
+
((planeUnitHausdorffMeasure n).toReal / (2 * (G * (3 : ℝ) ^ n * (32 : ℝ) ^ n)))
|
| 38 |
+
change nativeCoreAreaFraction n G ≤ _ at h
|
| 39 |
+
have hb := (le_div_iff₀ (by positivity : 0 < 2 * (G * (3 : ℝ) ^ n * (32 : ℝ) ^ n))).mp h
|
| 40 |
+
apply (le_div_iff₀ (by positivity : 0 < (32 : ℝ) ^ n)).mpr
|
| 41 |
+
nlinarith
|
| 42 |
+
|
| 43 |
+
theorem native_core_disk_area_ge_double_fraction {n d : ℕ}
|
| 44 |
+
(ν : Measure (Ambient d)) (G : ℝ) (hG : 0 < G) (hg : GlobalUpperGrowth n G ν)
|
| 45 |
+
(R : ℝ) (hR : 0 < R) (k : ℕ) (z : (supportLatticeNets ν R hR k).points)
|
| 46 |
+
(a : Ambient n) :
|
| 47 |
+
ENNReal.ofReal (2 * nativeCoreAreaFraction n G) * ν (cleanSupportCell ν R hR k z) ≤
|
| 48 |
+
(μH[(n : ℝ)] : Measure (Ambient n)) (closedBall a (latticeRadius R k / 32)) := by
|
| 49 |
+
have hr := latticeRadius_pos R hR k
|
| 50 |
+
have hθ := (nativeCoreAreaFraction_pos_le_half n G hG).1
|
| 51 |
+
have htop : ν (cleanSupportCell ν R hR k z) ≤ ENNReal.ofReal (G * (3 * latticeRadius R k) ^ n) := by
|
| 52 |
+
have hb := (supportLatticeCell_bounds ν R hR k z).2
|
| 53 |
+
have hsub : cleanSupportCell ν R hR k z ⊆ ball (z : Ambient d) (3 * latticeRadius R k) :=
|
| 54 |
+
sdiff_subset.trans (hb.trans (closedBall_subset_ball (by have hr := latticeRadius_pos R hR k; linarith)))
|
| 55 |
+
exact (measure_mono hsub).trans (hg.2 z _ (by positivity))
|
| 56 |
+
have hcoeff := nativeCoreAreaFraction_coefficient_bound n G hG
|
| 57 |
+
have hreal : (2 * nativeCoreAreaFraction n G) * (G * (3 * latticeRadius R k) ^ n) ≤
|
| 58 |
+
(latticeRadius R k / 32) ^ n * (planeUnitHausdorffMeasure n).toReal := by
|
| 59 |
+
have h := mul_le_mul_of_nonneg_right hcoeff (pow_nonneg (latticeRadius_pos R hR k).le n)
|
| 60 |
+
calc
|
| 61 |
+
_ = (2 * nativeCoreAreaFraction n G * (G * (3 : ℝ) ^ n)) * (latticeRadius R k) ^ n := by
|
| 62 |
+
rw [mul_pow]; ring
|
| 63 |
+
_ ≤ ((planeUnitHausdorffMeasure n).toReal / (32 : ℝ) ^ n) * (latticeRadius R k) ^ n := h
|
| 64 |
+
_ = _ := by rw [div_pow]; ring
|
| 65 |
+
calc
|
| 66 |
+
_ ≤ ENNReal.ofReal (2 * nativeCoreAreaFraction n G) *
|
| 67 |
+
ENNReal.ofReal (G * (3 * latticeRadius R k) ^ n) := mul_le_mul' le_rfl htop
|
| 68 |
+
_ = ENNReal.ofReal ((2 * nativeCoreAreaFraction n G) * (G * (3 * latticeRadius R k) ^ n)) :=
|
| 69 |
+
(ENNReal.ofReal_mul (by positivity)).symm
|
| 70 |
+
_ ≤ ENNReal.ofReal ((latticeRadius R k / 32) ^ n * (planeUnitHausdorffMeasure n).toReal) :=
|
| 71 |
+
ENNReal.ofReal_le_ofReal hreal
|
| 72 |
+
_ = _ := by
|
| 73 |
+
rw [ambient_closedBall_hausdorffMeasure n a _ (by positivity),
|
| 74 |
+
ENNReal.ofReal_mul (by positivity),
|
| 75 |
+
ENNReal.ofReal_toReal (planeUnitHausdorffMeasure_lt_top n).ne,
|
| 76 |
+
ENNReal.ofReal_pow (by positivity)]
|
| 77 |
+
|
| 78 |
+
end
|
| 79 |
+
|
| 80 |
+
end RieszRectifiability
|
| 81 |
+
|
| 82 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/NativeSurfaceArea.lean
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Kernel.KernelBasic
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Intrinsic surface-area measures
|
| 8 |
+
|
| 9 |
+
The native surface-area measure is Hausdorff measure restricted to the surface.
|
| 10 |
+
Upper area growth gives local finiteness and regularity, while lower area bounds
|
| 11 |
+
identify the support when the surface is closed.
|
| 12 |
+
-/
|
| 13 |
+
|
| 14 |
+
namespace RieszRectifiability
|
| 15 |
+
|
| 16 |
+
noncomputable section
|
| 17 |
+
|
| 18 |
+
open MeasureTheory Metric Set Topology
|
| 19 |
+
open scoped ENNReal
|
| 20 |
+
|
| 21 |
+
def nativeSurfaceArea {d : ℕ} (n : ℕ) (A : Set (Ambient d)) : Measure (Ambient d) :=
|
| 22 |
+
(μH[(n : ℝ)] : Measure (Ambient d)).restrict A
|
| 23 |
+
|
| 24 |
+
theorem nativeSurfaceArea_apply {n d : ℕ} (A B : Set (Ambient d))
|
| 25 |
+
(hB : MeasurableSet B) :
|
| 26 |
+
nativeSurfaceArea n A B = (μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ B) := by
|
| 27 |
+
rw [nativeSurfaceArea, Measure.restrict_apply hB, inter_comm]
|
| 28 |
+
|
| 29 |
+
theorem nativeSurfaceArea_open_ball_lower {n d : ℕ}
|
| 30 |
+
(A : Set (Ambient d)) (c : ℝ≥0∞)
|
| 31 |
+
(hlower : ∀ p ∈ A, ∀ r : ℝ, 0 < r →
|
| 32 |
+
c * (ENNReal.ofReal r) ^ n ≤
|
| 33 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r))
|
| 34 |
+
(p : Ambient d) (hp : p ∈ A) (r : ℝ) (hr : 0 < r) :
|
| 35 |
+
(c * (ENNReal.ofReal (1 / 2 : ℝ)) ^ n) * (ENNReal.ofReal r) ^ n ≤
|
| 36 |
+
nativeSurfaceArea n A (ball p r) := by
|
| 37 |
+
rw [nativeSurfaceArea_apply A _ measurableSet_ball]
|
| 38 |
+
have h := hlower p hp (r / 2) (by positivity)
|
| 39 |
+
have heq : c * (ENNReal.ofReal (r / 2)) ^ n =
|
| 40 |
+
(c * (ENNReal.ofReal (1 / 2 : ℝ)) ^ n) * (ENNReal.ofReal r) ^ n := by
|
| 41 |
+
rw [show r / 2 = (1 / 2) * r by ring,
|
| 42 |
+
ENNReal.ofReal_mul (by norm_num : (0 : ℝ) ≤ 1 / 2), mul_pow]
|
| 43 |
+
exact (mul_assoc _ _ _).symm
|
| 44 |
+
rw [heq] at h
|
| 45 |
+
exact h.trans (measure_mono (inter_subset_inter_right _
|
| 46 |
+
(closedBall_subset_ball (by linarith : r / 2 < r))))
|
| 47 |
+
|
| 48 |
+
theorem nativeSurfaceArea_global_upper_growth {n d : ℕ}
|
| 49 |
+
(A : Set (Ambient d)) (C : ℝ≥0∞) (hC : C < ⊤)
|
| 50 |
+
(hupper : ∀ (p : Ambient d) (r : ℝ), 0 < r →
|
| 51 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r) ≤
|
| 52 |
+
C * (ENNReal.ofReal r) ^ n) :
|
| 53 |
+
GlobalUpperGrowth n C.toReal (nativeSurfaceArea n A) := by
|
| 54 |
+
refine ⟨ENNReal.toReal_nonneg, ?_⟩
|
| 55 |
+
intro p r hr
|
| 56 |
+
rw [nativeSurfaceArea_apply A _ measurableSet_ball,
|
| 57 |
+
ENNReal.ofReal_mul ENNReal.toReal_nonneg, ENNReal.ofReal_toReal hC.ne,
|
| 58 |
+
ENNReal.ofReal_pow hr.le]
|
| 59 |
+
exact (measure_mono (inter_subset_inter_right _ ball_subset_closedBall)).trans
|
| 60 |
+
(hupper p r hr)
|
| 61 |
+
|
| 62 |
+
theorem nativeSurfaceArea_regular {n d : ℕ}
|
| 63 |
+
(A : Set (Ambient d)) (C : ℝ≥0∞) (hC : C < ⊤)
|
| 64 |
+
(hupper : ∀ (p : Ambient d) (r : ℝ), 0 < r →
|
| 65 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r) ≤
|
| 66 |
+
C * (ENNReal.ofReal r) ^ n) :
|
| 67 |
+
(nativeSurfaceArea n A).Regular := by
|
| 68 |
+
have hg := nativeSurfaceArea_global_upper_growth A C hC hupper
|
| 69 |
+
let : IsLocallyFiniteMeasure (nativeSurfaceArea n A) :=
|
| 70 |
+
⟨fun x => ⟨ball x 1, ball_mem_nhds x (by norm_num),
|
| 71 |
+
(hg.2 x 1 (by norm_num)).trans_lt ENNReal.ofReal_lt_top⟩⟩
|
| 72 |
+
infer_instance
|
| 73 |
+
|
| 74 |
+
theorem nativeSurfaceArea_support {n d : ℕ}
|
| 75 |
+
(A : Set (Ambient d)) (hA : IsClosed A) (c : ℝ≥0∞) (hc : 0 < c)
|
| 76 |
+
(hlower : ∀ p ∈ A, ∀ r : ℝ, 0 < r →
|
| 77 |
+
c * (ENNReal.ofReal r) ^ n ≤
|
| 78 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r)) :
|
| 79 |
+
(nativeSurfaceArea n A).support = A := by
|
| 80 |
+
apply Subset.antisymm
|
| 81 |
+
· exact (nativeSurfaceArea n A).support_subset_of_isClosed hA
|
| 82 |
+
(ae_restrict_mem hA.measurableSet)
|
| 83 |
+
· intro p hp
|
| 84 |
+
apply ((nativeSurfaceArea n A).mem_support_iff_forall p).mpr
|
| 85 |
+
intro U hU
|
| 86 |
+
obtain ⟨r, hr, hsub⟩ := Metric.mem_nhds_iff.mp hU
|
| 87 |
+
have hpos : 0 < (c * (ENNReal.ofReal (1 / 2 : ℝ)) ^ n) * (ENNReal.ofReal r) ^ n := by
|
| 88 |
+
positivity
|
| 89 |
+
exact (hpos.trans_le (nativeSurfaceArea_open_ball_lower A c hlower p hp r hr)).trans_le
|
| 90 |
+
(measure_mono hsub)
|
| 91 |
+
|
| 92 |
+
end
|
| 93 |
+
|
| 94 |
+
end RieszRectifiability
|
| 95 |
+
|
| 96 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/NativeSurfaceRegularity.lean
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Flatness.PlaneBoxGrowth
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.NativeSurfaceArea
|
| 4 |
+
import OAI.Analysis.RieszRectifiability.Foundations.GlobalLowerDiameter
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-!
|
| 9 |
+
Two-sided Hausdorff measure bounds yield a single AD constant for native surface area.
|
| 10 |
+
Global positive-dimensional lower growth also forces infinite support diameter.
|
| 11 |
+
-/
|
| 12 |
+
|
| 13 |
+
namespace RieszRectifiability
|
| 14 |
+
|
| 15 |
+
noncomputable section
|
| 16 |
+
|
| 17 |
+
open MeasureTheory Metric Set Topology
|
| 18 |
+
open scoped ENNReal
|
| 19 |
+
|
| 20 |
+
def nativeSurfaceADConstant (n : ℕ) (c C : ℝ≥0∞) : ℝ :=
|
| 21 |
+
1 + C.toReal + (c * (ENNReal.ofReal (1 / 2 : ℝ)) ^ n).toReal⁻¹
|
| 22 |
+
|
| 23 |
+
theorem nativeSurfaceArea_uniform_bounds {n d : ℕ}
|
| 24 |
+
(A : Set (Ambient d)) (c C : ℝ≥0∞) (hc : 0 < c) (hcfin : c < ⊤) (hC : C < ⊤)
|
| 25 |
+
(hlower : ∀ p ∈ A, ∀ r : ℝ, 0 < r →
|
| 26 |
+
c * (ENNReal.ofReal r) ^ n ≤
|
| 27 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r))
|
| 28 |
+
(hupper : ∀ (p : Ambient d) (r : ℝ), 0 < r →
|
| 29 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r) ≤
|
| 30 |
+
C * (ENNReal.ofReal r) ^ n) :
|
| 31 |
+
1 ≤ nativeSurfaceADConstant n c C ∧
|
| 32 |
+
GlobalUpperGrowth n (nativeSurfaceADConstant n c C) (nativeSurfaceArea n A) ∧
|
| 33 |
+
∀ p ∈ A, ∀ r : ℝ, 0 < r →
|
| 34 |
+
ENNReal.ofReal (r ^ n / nativeSurfaceADConstant n c C) ≤
|
| 35 |
+
nativeSurfaceArea n A (ball p r) := by
|
| 36 |
+
let l : ℝ≥0∞ := c * (ENNReal.ofReal (1 / 2 : ℝ)) ^ n
|
| 37 |
+
have hlpos : 0 < l := by dsimp only [l]; positivity
|
| 38 |
+
have hlfin : l < ⊤ := ENNReal.mul_lt_top hcfin (ENNReal.pow_lt_top ENNReal.ofReal_lt_top)
|
| 39 |
+
have hlreal : 0 < l.toReal := ENNReal.toReal_pos_iff.mpr ⟨hlpos, hlfin⟩
|
| 40 |
+
have hCnonneg : 0 ≤ C.toReal := ENNReal.toReal_nonneg
|
| 41 |
+
have hK1 : 1 ≤ nativeSurfaceADConstant n c C := by
|
| 42 |
+
change 1 ≤ 1 + C.toReal + l.toReal⁻¹
|
| 43 |
+
have : 0 ≤ l.toReal⁻¹ := (inv_pos.mpr hlreal).le
|
| 44 |
+
linarith
|
| 45 |
+
have hKC : C.toReal ≤ nativeSurfaceADConstant n c C := by
|
| 46 |
+
change C.toReal ≤ 1 + C.toReal + l.toReal⁻¹
|
| 47 |
+
have : 0 ≤ l.toReal⁻¹ := (inv_pos.mpr hlreal).le
|
| 48 |
+
linarith
|
| 49 |
+
have hKinv : l.toReal⁻¹ ≤ nativeSurfaceADConstant n c C := by
|
| 50 |
+
change l.toReal⁻¹ ≤ 1 + C.toReal + l.toReal⁻¹
|
| 51 |
+
linarith
|
| 52 |
+
refine ⟨hK1, (nativeSurfaceArea_global_upper_growth A C hC hupper).mono_constant hKC, ?_⟩
|
| 53 |
+
intro p hp r hr
|
| 54 |
+
have hKpos : 0 < nativeSurfaceADConstant n c C := zero_lt_one.trans_le hK1
|
| 55 |
+
have hprod : 1 ≤ l.toReal * nativeSurfaceADConstant n c C := by
|
| 56 |
+
have h := mul_le_mul_of_nonneg_left hKinv hlreal.le
|
| 57 |
+
simpa only [mul_inv_cancel₀ hlreal.ne'] using! h
|
| 58 |
+
have hdiv : r ^ n / nativeSurfaceADConstant n c C ≤ l.toReal * r ^ n := by
|
| 59 |
+
apply (div_le_iff₀ hKpos).mpr
|
| 60 |
+
calc
|
| 61 |
+
r ^ n = 1 * r ^ n := (one_mul _).symm
|
| 62 |
+
_ ≤ (l.toReal * nativeSurfaceADConstant n c C) * r ^ n :=
|
| 63 |
+
mul_le_mul_of_nonneg_right hprod (pow_nonneg hr.le n)
|
| 64 |
+
_ = (l.toReal * r ^ n) * nativeSurfaceADConstant n c C := by ring
|
| 65 |
+
have h := nativeSurfaceArea_open_ball_lower A c hlower p hp r hr
|
| 66 |
+
have heq : ENNReal.ofReal (l.toReal * r ^ n) = l * (ENNReal.ofReal r) ^ n := by
|
| 67 |
+
rw [ENNReal.ofReal_mul hlreal.le, ENNReal.ofReal_toReal hlfin.ne, ENNReal.ofReal_pow hr.le]
|
| 68 |
+
exact (ENNReal.ofReal_le_ofReal hdiv).trans (heq.symm ▸ h)
|
| 69 |
+
|
| 70 |
+
theorem nativeSurfaceArea_adRegular {n d : ℕ}
|
| 71 |
+
(A : Set (Ambient d)) (hA : IsClosed A)
|
| 72 |
+
(c C : ℝ≥0∞) (hc : 0 < c) (hcfin : c < ⊤) (hC : C < ⊤)
|
| 73 |
+
(hlower : ∀ p ∈ A, ∀ r : ℝ, 0 < r →
|
| 74 |
+
c * (ENNReal.ofReal r) ^ n ≤
|
| 75 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r))
|
| 76 |
+
(hupper : ∀ (p : Ambient d) (r : ℝ), 0 < r →
|
| 77 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r) ≤
|
| 78 |
+
C * (ENNReal.ofReal r) ^ n) :
|
| 79 |
+
ADRegular n (nativeSurfaceArea n A) := by
|
| 80 |
+
obtain ⟨hK, hg, hl⟩ := nativeSurfaceArea_uniform_bounds A c C hc hcfin hC hlower hupper
|
| 81 |
+
refine ⟨nativeSurfaceADConstant n c C, hK, ?_⟩
|
| 82 |
+
intro p hp r hr
|
| 83 |
+
rw [nativeSurfaceArea_support A hA c hc hlower] at hp
|
| 84 |
+
exact ⟨hl p hp r hr.1, hg.2 p r hr.1⟩
|
| 85 |
+
|
| 86 |
+
theorem nativeSurfaceArea_support_ediam_top {n d : ℕ} (hn : 0 < n)
|
| 87 |
+
(A : Set (Ambient d)) (hA : IsClosed A) (hne : A.Nonempty)
|
| 88 |
+
(c C : ℝ≥0∞) (hc : 0 < c) (hcfin : c < ⊤) (hC : C < ⊤)
|
| 89 |
+
(hlower : ∀ p ∈ A, ∀ r : ℝ, 0 < r →
|
| 90 |
+
c * (ENNReal.ofReal r) ^ n ≤
|
| 91 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r))
|
| 92 |
+
(hupper : ∀ (p : Ambient d) (r : ℝ), 0 < r →
|
| 93 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (A ∩ closedBall p r) ≤
|
| 94 |
+
C * (ENNReal.ofReal r) ^ n) :
|
| 95 |
+
ediam (nativeSurfaceArea n A).support = ⊤ := by
|
| 96 |
+
let : (nativeSurfaceArea n A).Regular := nativeSurfaceArea_regular A C hC hupper
|
| 97 |
+
have hs := nativeSurfaceArea_support A hA c hc hlower
|
| 98 |
+
obtain ⟨hK, _, hl⟩ := nativeSurfaceArea_uniform_bounds A c C hc hcfin hC hlower hupper
|
| 99 |
+
have hKpos : 0 < nativeSurfaceADConstant n c C := zero_lt_one.trans_le hK
|
| 100 |
+
have hnz : nativeSurfaceArea n A ≠ 0 := by
|
| 101 |
+
intro hz
|
| 102 |
+
obtain ⟨p, hp⟩ := hne
|
| 103 |
+
have h := hl p hp 1 (by norm_num)
|
| 104 |
+
rw [hz] at h
|
| 105 |
+
have hpos : 0 < ENNReal.ofReal ((1 : ℝ) ^ n / nativeSurfaceADConstant n c C) :=
|
| 106 |
+
ENNReal.ofReal_pos.mpr (by positivity)
|
| 107 |
+
exact (not_le_of_gt hpos) (by simpa using! h)
|
| 108 |
+
exact global_lower_growth_support_ediam_top n hn (nativeSurfaceArea n A) hnz
|
| 109 |
+
(nativeSurfaceADConstant n c C) hKpos (fun p hp r hr => hl p (hs ▸ hp) r hr)
|
| 110 |
+
|
| 111 |
+
end
|
| 112 |
+
|
| 113 |
+
end RieszRectifiability
|
| 114 |
+
|
| 115 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/OriginalADMatchedSurfaceModels.lean
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.OriginalADUniformPrecisionAreaModels
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.ActualNativeSurfaceGeometry
|
| 4 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.MatchedSurfacePrecision
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-!
|
| 9 |
+
# Matched surface models for an AD-regular measure
|
| 10 |
+
|
| 11 |
+
Uniform-precision area models combine with the native surface geometry to give
|
| 12 |
+
matched projection coverage at every scale. The top-mass and AD constants are
|
| 13 |
+
chosen before the precision and support cell, while the resulting surface keeps
|
| 14 |
+
its exact support, infinite support diameter, and two-sided growth bounds.
|
| 15 |
+
-/
|
| 16 |
+
|
| 17 |
+
namespace RieszRectifiability
|
| 18 |
+
|
| 19 |
+
noncomputable section
|
| 20 |
+
|
| 21 |
+
open MeasureTheory Metric Set Topology
|
| 22 |
+
open scoped ENNReal
|
| 23 |
+
|
| 24 |
+
theorem exists_original_AD_matched_surface_models {n d : ℕ} (hn : 0 < n) (hnd : n ≤ d)
|
| 25 |
+
(μ : Measure (Ambient d)) [μ.Regular] (hAD : ADRegular n μ) :
|
| 26 |
+
∃ Ktop : ℝ≥0∞, Ktop < ⊤ ∧ ∃ K : ℝ, 1 ≤ K ∧
|
| 27 |
+
∀ ε : ℝ, 0 < ε → ε ≤ 1 / 72057594037927936 → activeProjectionError d ε ≤ 1 / 4096 →
|
| 28 |
+
∀ (R : ℝ) (hR : 0 < R) (k : ℕ) (z : (supportLatticeNets μ R hR k).points),
|
| 29 |
+
AdmissibleRadius μ (latticeRadius R k / 8) →
|
| 30 |
+
let Good := fun q : SupportCellDescendant μ R hR k z =>
|
| 31 |
+
bilateralBeta n μ q.center (1024 * q.radius) < ε
|
| 32 |
+
∃ (S : SupportCellDescendant μ R hR k z → AffineSubspace ℝ (Ambient d))
|
| 33 |
+
(hS : ∀ i, IsAffineNPlane n (S i)),
|
| 34 |
+
(∀ i, activeRegionCell Good i → bilateralPlaneError μ i.center (1024 * i.radius) (S i) < ε) ∧
|
| 35 |
+
∃ f : S (supportCellRoot μ R hR k z) → Ambient d,
|
| 36 |
+
IsActiveRegionLimitModel μ R hR k z Good S hS ε f ∧
|
| 37 |
+
(μH[(n : ℝ)] : Measure (Ambient d))
|
| 38 |
+
(Set.range f ∩ closedBall (z : Ambient d) (2 * latticeRadius R k)) ≤
|
| 39 |
+
Ktop * μ (cleanSupportCell μ R hR k z) ∧
|
| 40 |
+
let ν := nativeSurfaceArea n (Set.range f)
|
| 41 |
+
ν.Regular ∧ ν.support = Set.range f ∧ ADRegular n ν ∧ ediam ν.support = ⊤ ∧
|
| 42 |
+
GlobalUpperGrowth n K ν ∧
|
| 43 |
+
(∀ p ∈ ν.support, ∀ r : ℝ, 0 < r →
|
| 44 |
+
ENNReal.ofReal (r ^ n / K) ≤ ν (ball p r)) ∧
|
| 45 |
+
∀ p ∈ ν.support, ∀ r : ℝ, 0 < r →
|
| 46 |
+
∃ P : Submodule ℝ (Ambient d), Module.finrank ℝ P = n ∧
|
| 47 |
+
(∀ x ∈ ν.support ∩ closedBall p (1024 * r),
|
| 48 |
+
infDist x (AffineSubspace.mk' p P : Set (Ambient d)) ≤
|
| 49 |
+
(281474976710656 * (ε + activeProjectionError d ε)) * r) ∧
|
| 50 |
+
closedBall (P.orthogonalProjectionOnto p) (r / 32) ⊆
|
| 51 |
+
P.orthogonalProjectionOnto '' (ν.support ∩ closedBall p (r / 16)) := by
|
| 52 |
+
obtain ⟨Ktop, hKtop, C, hC, c, hc, hcfin, hmodels⟩ :=
|
| 53 |
+
exists_actual_AD_uniform_precision_area_models hn hnd μ hAD
|
| 54 |
+
have hK1 : 1 ≤ nativeSurfaceADConstant n c C := by
|
| 55 |
+
have hCnonneg : 0 ≤ C.toReal := ENNReal.toReal_nonneg
|
| 56 |
+
have hinv : 0 ≤ (c * (ENNReal.ofReal (1 / 2 : ℝ)) ^ n).toReal⁻¹ :=
|
| 57 |
+
inv_nonneg.mpr ENNReal.toReal_nonneg
|
| 58 |
+
dsimp only [nativeSurfaceADConstant]
|
| 59 |
+
linarith
|
| 60 |
+
refine ⟨Ktop, hKtop, nativeSurfaceADConstant n c C, hK1, ?_⟩
|
| 61 |
+
intro ε hε hεfine hsmall R hR k z hcore
|
| 62 |
+
let Good := fun q : SupportCellDescendant μ R hR k z =>
|
| 63 |
+
bilateralBeta n μ q.center (1024 * q.radius) < ε
|
| 64 |
+
obtain ⟨S, hS, hfit, f, hmodel, hembed, htop, hupper, hlower⟩ :=
|
| 65 |
+
hmodels ε hε (by linarith) (by linarith) R hR k z hcore
|
| 66 |
+
obtain ⟨hreg, hs, hADν, hdiam, _, hg, hl, hplanes⟩ :=
|
| 67 |
+
active_region_native_surface_geometry hn μ R hR k z Good S hS ε hε hεfine hsmall hfit
|
| 68 |
+
f hmodel hembed c C hc hcfin hC hlower hupper
|
| 69 |
+
exact ⟨S, hS, hfit, f, hmodel, htop, hreg, hs, hADν, hdiam, hg, hl, hplanes⟩
|
| 70 |
+
|
| 71 |
+
end
|
| 72 |
+
|
| 73 |
+
end RieszRectifiability
|
| 74 |
+
|
| 75 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/OriginalADUniformPrecisionAreaModels.lean
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Restart.OriginalADActiveRegionAllRadiusAreaModel
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open MeasureTheory Metric Set Topology
|
| 11 |
+
open scoped ENNReal
|
| 12 |
+
|
| 13 |
+
theorem exists_actual_AD_uniform_precision_area_models {n d : ℕ} (hn : 0 < n) (hnd : n ≤ d)
|
| 14 |
+
(μ : Measure (Ambient d)) [μ.Regular] (hAD : ADRegular n μ) :
|
| 15 |
+
∃ Ktop : ℝ≥0∞, Ktop < ⊤ ∧ ∃ Kupper : ℝ≥0∞, Kupper < ⊤ ∧
|
| 16 |
+
∃ Klower : ℝ≥0∞, 0 < Klower ∧ Klower < ⊤ ∧
|
| 17 |
+
∀ ε : ℝ, 0 < ε → ε ≤ 1 / 281474976710656 → activeProjectionError d ε ≤ 1 / 128 →
|
| 18 |
+
∀ (R : ℝ) (hR : 0 < R) (k : ℕ) (z : (supportLatticeNets μ R hR k).points),
|
| 19 |
+
AdmissibleRadius μ (latticeRadius R k / 8) →
|
| 20 |
+
let Good := fun q : SupportCellDescendant μ R hR k z =>
|
| 21 |
+
bilateralBeta n μ q.center (1024 * q.radius) < ε
|
| 22 |
+
∃ (S : SupportCellDescendant μ R hR k z → AffineSubspace ℝ (Ambient d))
|
| 23 |
+
(hS : ∀ i, IsAffineNPlane n (S i)),
|
| 24 |
+
(∀ i, activeRegionCell Good i → bilateralPlaneError μ i.center (1024 * i.radius) (S i) < ε) ∧
|
| 25 |
+
∃ f : S (supportCellRoot μ R hR k z) → Ambient d,
|
| 26 |
+
IsActiveRegionLimitModel μ R hR k z Good S hS ε f ∧ IsClosedEmbedding f ∧
|
| 27 |
+
(μH[(n : ℝ)] : Measure (Ambient d))
|
| 28 |
+
(Set.range f ∩ closedBall (z : Ambient d) (2 * latticeRadius R k)) ≤
|
| 29 |
+
Ktop * μ (cleanSupportCell μ R hR k z) ∧
|
| 30 |
+
(∀ (p : Ambient d) (r : ℝ), 0 < r →
|
| 31 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (Set.range f ∩ closedBall p r) ≤
|
| 32 |
+
Kupper * (ENNReal.ofReal r) ^ n) ∧
|
| 33 |
+
∀ p ∈ Set.range f, ∀ (r : ℝ), 0 < r →
|
| 34 |
+
Klower * (ENNReal.ofReal r) ^ n ≤
|
| 35 |
+
(μH[(n : ℝ)] : Measure (Ambient d)) (Set.range f ∩ closedBall p r) := by
|
| 36 |
+
by_cases hsupport : μ.support.Nontrivial
|
| 37 |
+
· obtain ⟨G, hg⟩ := globalGrowth_of_ADRegular_nontrivial n μ hAD hsupport
|
| 38 |
+
have hG : 0 < G + 1 := by linarith [hg.1]
|
| 39 |
+
have hg' : GlobalUpperGrowth n (G + 1) μ := hg.mono_constant (by linarith)
|
| 40 |
+
obtain ⟨C, hC, hballs⟩ := hAD
|
| 41 |
+
have hCpos : 0 < C := zero_lt_one.trans_le hC
|
| 42 |
+
refine ⟨activeRegionUniformAreaConstant n d C (G + 1),
|
| 43 |
+
activeRegionUniformAreaConstant_lt_top n d C (G + 1),
|
| 44 |
+
activeRegionLocalUpperAreaConstant n d C (G + 1),
|
| 45 |
+
activeRegionLocalUpperAreaConstant_lt_top n d C (G + 1),
|
| 46 |
+
activeRegionAllRadiusLowerAreaConstant n C (G + 1),
|
| 47 |
+
activeRegionAllRadiusLowerAreaConstant_pos n C (G + 1),
|
| 48 |
+
activeRegionAllRadiusLowerAreaConstant_lt_top n C (G + 1), ?_⟩
|
| 49 |
+
intro ε hε hεfine hsmall R hR k z hcore
|
| 50 |
+
let Good := fun q : SupportCellDescendant μ R hR k z =>
|
| 51 |
+
bilateralBeta n μ q.center (1024 * q.radius) < ε
|
| 52 |
+
have hεtiny : ε ≤ 1 / 268435456 := by linarith
|
| 53 |
+
obtain ⟨S, hS, hfit, _⟩ := exists_active_level_projection_maps μ R hR k z hnd ε hε
|
| 54 |
+
obtain ⟨f, hmodel⟩ := exists_active_region_limit_model μ R hR k z Good S hS ε hε hεtiny hsmall hfit
|
| 55 |
+
refine ⟨S, hS, hfit, f, hmodel,
|
| 56 |
+
active_region_limit_isClosedEmbedding μ R hR k z Good S hS ε hε hεtiny hsmall hfit f hmodel,
|
| 57 |
+
active_region_limit_area_le_original_top μ C (G + 1) hCpos hG hg'
|
| 58 |
+
(fun x hx r hr => (hballs x hx r hr).1) R hR k hcore z Good S hS ε hε hεfine hsmall hfit f hmodel,
|
| 59 |
+
?_, ?_⟩
|
| 60 |
+
· intro p r hr
|
| 61 |
+
exact active_region_limit_local_ball_area_le μ C (G + 1) hCpos hG hg'
|
| 62 |
+
(fun x hx s hs => (hballs x hx s hs).1) R hR k hcore z Good S hS
|
| 63 |
+
ε hε hεfine hsmall hfit f hmodel p r hr
|
| 64 |
+
· intro p hp r hr
|
| 65 |
+
exact active_region_limit_all_radius_ball_area_ge hn μ C (G + 1) hCpos hG hg'
|
| 66 |
+
(fun x hx s hs => (hballs x hx s hs).1) R hR k hcore z Good S hS
|
| 67 |
+
ε hε hεfine hsmall hfit f hmodel p hp r hr
|
| 68 |
+
· refine ⟨0, by norm_num, 0, by norm_num, 1, by norm_num, by norm_num, ?_⟩
|
| 69 |
+
intro ε hε hεfine hsmall R hR k z hcore
|
| 70 |
+
have hdiam : ediam μ.support = 0 := ediam_eq_zero_iff.mpr (Set.not_nontrivial_iff.mp hsupport)
|
| 71 |
+
have hzero : ENNReal.ofReal (latticeRadius R k / 8) = 0 :=
|
| 72 |
+
le_antisymm (hdiam ▸ hcore.2) (zero_le)
|
| 73 |
+
exact ((ENNReal.ofReal_pos.mpr hcore.1).ne' hzero).elim
|
| 74 |
+
|
| 75 |
+
end
|
| 76 |
+
|
| 77 |
+
end RieszRectifiability
|
| 78 |
+
|
| 79 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/OriginalADUniformSurfaceBallCharts.lean
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.OriginalADMatchedSurfaceModels
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.SurfaceBallTransferFoundations
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Uniform ball charts for active-region surfaces
|
| 9 |
+
|
| 10 |
+
Matched surface models give a precision independent of the support cell. For
|
| 11 |
+
each positive loss tolerance, a finite-depth ball chart covers the model up to
|
| 12 |
+
weighted Hausdorff area bounded by that tolerance times the original cell mass.
|
| 13 |
+
Its Lipschitz constant is chosen before the cell scale and center.
|
| 14 |
+
-/
|
| 15 |
+
|
| 16 |
+
namespace RieszRectifiability
|
| 17 |
+
|
| 18 |
+
noncomputable section
|
| 19 |
+
|
| 20 |
+
open MeasureTheory Metric Set
|
| 21 |
+
open scoped NNReal ENNReal
|
| 22 |
+
|
| 23 |
+
theorem exists_original_AD_uniform_surface_ball_charts {n d : ℕ} (hn : 0 < n) (hnd : n ≤ d)
|
| 24 |
+
(μ : Measure (Ambient d)) [μ.Regular] (hAD : ADRegular n μ)
|
| 25 |
+
(G : ℝ) (hG : 0 < G) (hg : GlobalUpperGrowth n G μ) :
|
| 26 |
+
∃ ε : ℝ, 0 < ε ∧ ε ≤ 1 / 281474976710656 ∧ activeProjectionError d ε ≤ 1 / 128 ∧
|
| 27 |
+
∀ δ : ℝ, 0 < δ → ∃ M : ℝ≥0,
|
| 28 |
+
∀ (R : ℝ) (hR : 0 < R) (k : ℕ) (z : (supportLatticeNets μ R hR k).points),
|
| 29 |
+
AdmissibleRadius μ (latticeRadius R k / 8) →
|
| 30 |
+
let Good := fun q : SupportCellDescendant μ R hR k z =>
|
| 31 |
+
bilateralBeta n μ q.center (1024 * q.radius) < ε
|
| 32 |
+
∃ (S : SupportCellDescendant μ R hR k z → AffineSubspace ℝ (Ambient d))
|
| 33 |
+
(hS : ∀ i, IsAffineNPlane n (S i)),
|
| 34 |
+
(∀ i, activeRegionCell Good i → bilateralPlaneError μ i.center (1024 * i.radius) (S i) < ε) ∧
|
| 35 |
+
∃ f : S (supportCellRoot μ R hR k z) → Ambient d,
|
| 36 |
+
IsActiveRegionLimitModel μ R hR k z Good S hS ε f ∧
|
| 37 |
+
∃ g : ball (0 : Ambient n) (latticeRadius R k) → Ambient d,
|
| 38 |
+
LipschitzWith M g ∧ Set.range g ⊆ closedBall (z : Ambient d) (3 * latticeRadius R k) ∧
|
| 39 |
+
(ENNReal.ofReal G + activeRegionStopMassAreaConstant n G) *
|
| 40 |
+
(μH[(n : ℝ)] : Measure (Ambient d))
|
| 41 |
+
((Set.range f ∩ closedBall (z : Ambient d) (3 * latticeRadius R k)) \ Set.range g) ≤
|
| 42 |
+
ENNReal.ofReal δ * μ (cleanSupportCell μ R hR k z) := by
|
| 43 |
+
obtain ⟨Ktop, hKtop, K, hK, hmodels⟩ := exists_original_AD_matched_surface_models hn hnd μ hAD
|
| 44 |
+
have hKpos : 0 < K := zero_lt_one.trans_le hK
|
| 45 |
+
obtain ⟨κ, hκ, hκquarter, σ, hσ, hwidth, hpair, hshadow⟩ := exists_projection_region_thresholds n K K hKpos hKpos
|
| 46 |
+
obtain ⟨ε, hε, hεfine, hsmall, hprecision⟩ := exists_matched_surface_precision d σ hσ
|
| 47 |
+
refine ⟨ε, hε, by linarith, by linarith, ?_⟩
|
| 48 |
+
intro δ hδ
|
| 49 |
+
obtain ⟨C, hC, hballs⟩ := hAD
|
| 50 |
+
have hCpos : 0 < C := zero_lt_one.trans_le hC
|
| 51 |
+
let W := ENNReal.ofReal G + activeRegionStopMassAreaConstant n G
|
| 52 |
+
have hW : W < ⊤ := by
|
| 53 |
+
have hstop := activeRegionStopMassAreaConstant_lt_top n G
|
| 54 |
+
exact ENNReal.add_lt_top.mpr ⟨ENNReal.ofReal_lt_top, hstop⟩
|
| 55 |
+
have hθ := nativeCoreAreaFraction_pos_le_half n K hKpos
|
| 56 |
+
have hzero : 0 ≤ 1 - nativeCoreAreaFraction n K := by linarith [hθ.2]
|
| 57 |
+
have hone : 1 - nativeCoreAreaFraction n K < 1 := by linarith [hθ.1]
|
| 58 |
+
obtain ⟨J, hJ⟩ := exists_depth_for_weighted_geometric_loss
|
| 59 |
+
(1 - nativeCoreAreaFraction n K) hzero hone W hW (K * C * (64 : ℝ) ^ n) (by positivity) δ hδ
|
| 60 |
+
let M := finiteBallChartUnionConstant d (11 ^ d) (projectionRegionDepthConstant d (Real.toNNReal (2 / κ)) J)
|
| 61 |
+
refine ⟨M, ?_⟩
|
| 62 |
+
intro R hR k z hcore
|
| 63 |
+
let Good := fun q : SupportCellDescendant μ R hR k z =>
|
| 64 |
+
bilateralBeta n μ q.center (1024 * q.radius) < ε
|
| 65 |
+
obtain ⟨S, hS, hfit, f, hmodel, _, hreg, hs, _, hdiam, hgν, hlν, hplanes⟩ :=
|
| 66 |
+
hmodels ε hε hεfine hsmall R hR k z hcore
|
| 67 |
+
let ν := nativeSurfaceArea n (Set.range f)
|
| 68 |
+
have hgeometry : ∀ p ∈ ν.support, ∀ r : ℝ, 0 < r →
|
| 69 |
+
∃ P : Submodule ℝ (Ambient d), Module.finrank ℝ P = n ∧
|
| 70 |
+
(∀ x ∈ ν.support ∩ closedBall p (1024 * r),
|
| 71 |
+
infDist x (AffineSubspace.mk' p P : Set (Ambient d)) ≤ σ * r) ∧
|
| 72 |
+
closedBall (P.orthogonalProjectionOnto p) (r / 32) ⊆
|
| 73 |
+
P.orthogonalProjectionOnto '' (ν.support ∩ closedBall p (r / 16)) := by
|
| 74 |
+
intro p hp r hr
|
| 75 |
+
obtain ⟨P, hP, hheight, hcover⟩ := hplanes p hp r hr
|
| 76 |
+
exact ⟨P, hP, fun x hx => (hheight x hx).trans (mul_le_mul_of_nonneg_right hprecision hr.le), hcover⟩
|
| 77 |
+
obtain ⟨g, hglip, hgrange, harea⟩ := exists_matched_surface_ball_depth_chart ν (Set.range f) rfl hs
|
| 78 |
+
K K hKpos hKpos hgν (fun p hp r hr => hlν p hp r hr.1) σ κ hσ hκ (by linarith) hwidth hpair hshadow
|
| 79 |
+
hgeometry hdiam hn J (latticeRadius R k) (latticeRadius_pos R hR k) z
|
| 80 |
+
have hmass := radius_eight_growth_le_original_cell_mass μ C G hCpos hG hg
|
| 81 |
+
(fun p hp r hr => (hballs p hp r hr).1) R hR k hcore z K hKpos.le
|
| 82 |
+
refine ⟨S, hS, hfit, f, hmodel, g, hglip, hgrange, ?_⟩
|
| 83 |
+
calc
|
| 84 |
+
_ ≤ W * ((ENNReal.ofReal (1 - nativeCoreAreaFraction n K)) ^ J *
|
| 85 |
+
(ENNReal.ofReal (K * C * (64 : ℝ) ^ n) * μ (cleanSupportCell �� R hR k z))) :=
|
| 86 |
+
mul_le_mul' le_rfl (harea.trans (mul_le_mul' le_rfl hmass))
|
| 87 |
+
_ = (W * (ENNReal.ofReal (1 - nativeCoreAreaFraction n K)) ^ J *
|
| 88 |
+
ENNReal.ofReal (K * C * (64 : ℝ) ^ n)) * μ (cleanSupportCell μ R hR k z) := by ring
|
| 89 |
+
_ ≤ _ := mul_le_mul' hJ le_rfl
|
| 90 |
+
|
| 91 |
+
end
|
| 92 |
+
|
| 93 |
+
end RieszRectifiability
|
| 94 |
+
|
| 95 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/OriginalTopAreaCharges.lean
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Restart.ActiveLevelOriginalMass
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Nets.SupportCellRoot
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace RieszRectifiability
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
open MeasureTheory Metric Set
|
| 12 |
+
open scoped ENNReal
|
| 13 |
+
|
| 14 |
+
def enlargedTopMassConstant (n : ℕ) (C G : ℝ) : ℝ≥0∞ :=
|
| 15 |
+
ENNReal.ofReal (G * 4 ^ n) * ENNReal.ofReal (C * 8 ^ n)
|
| 16 |
+
|
| 17 |
+
theorem enlargedTopMassConstant_lt_top (n : ℕ) (C G : ℝ) :
|
| 18 |
+
enlargedTopMassConstant n C G < ⊤ := by
|
| 19 |
+
exact ENNReal.mul_lt_top ENNReal.ofReal_lt_top ENNReal.ofReal_lt_top
|
| 20 |
+
|
| 21 |
+
theorem clean_top_radius_power_le_mass {n d : ℕ}
|
| 22 |
+
(μ : Measure (Ambient d)) (C G : ℝ) (hC : 0 < C) (hG : 0 < G)
|
| 23 |
+
(hg : GlobalUpperGrowth n G μ)
|
| 24 |
+
(hlower : ∀ x ∈ μ.support, ∀ r : ℝ, AdmissibleRadius μ r →
|
| 25 |
+
ENNReal.ofReal (r ^ n / C) ≤ μ (ball x r))
|
| 26 |
+
(R : ℝ) (hR : 0 < R) (k : ℕ) (hcore : AdmissibleRadius μ (latticeRadius R k / 8))
|
| 27 |
+
(z : (supportLatticeNets μ R hR k).points) :
|
| 28 |
+
(ENNReal.ofReal (latticeRadius R k)) ^ n ≤
|
| 29 |
+
ENNReal.ofReal (C * 8 ^ n) * μ (cleanSupportCell μ R hR k z) := by
|
| 30 |
+
simpa only [SupportCellDescendant.radius, SupportCellDescendant.cell, supportCellRoot, Nat.add_zero]
|
| 31 |
+
using! SupportCellDescendant.radius_power_le_mass μ C G hC hG hg hlower R hR k hcore z
|
| 32 |
+
(supportCellRoot μ R hR k z)
|
| 33 |
+
|
| 34 |
+
theorem enlarged_top_ball_mass_le_clean_top {n d : ℕ}
|
| 35 |
+
(μ : Measure (Ambient d)) (C G : ℝ) (hC : 0 < C) (hG : 0 < G)
|
| 36 |
+
(hg : GlobalUpperGrowth n G μ)
|
| 37 |
+
(hlower : ∀ x ∈ μ.support, ∀ r : ℝ, AdmissibleRadius μ r →
|
| 38 |
+
ENNReal.ofReal (r ^ n / C) ≤ μ (ball x r))
|
| 39 |
+
(R : ℝ) (hR : 0 < R) (k : ℕ) (hcore : AdmissibleRadius μ (latticeRadius R k / 8))
|
| 40 |
+
(z : (supportLatticeNets μ R hR k).points) :
|
| 41 |
+
μ (closedBall (z : Ambient d) (3 * latticeRadius R k)) ≤
|
| 42 |
+
enlargedTopMassConstant n C G * μ (cleanSupportCell μ R hR k z) := by
|
| 43 |
+
have hr := latticeRadius_pos R hR k
|
| 44 |
+
have hupper : μ (closedBall (z : Ambient d) (3 * latticeRadius R k)) ≤
|
| 45 |
+
ENNReal.ofReal (G * 4 ^ n) * (ENNReal.ofReal (latticeRadius R k)) ^ n := by
|
| 46 |
+
calc
|
| 47 |
+
_ ≤ μ (ball (z : Ambient d) (4 * latticeRadius R k)) :=
|
| 48 |
+
measure_mono (closedBall_subset_ball (by linarith))
|
| 49 |
+
_ ≤ ENNReal.ofReal (G * (4 * latticeRadius R k) ^ n) :=
|
| 50 |
+
hg.2 (z : Ambient d) (4 * latticeRadius R k) (by positivity)
|
| 51 |
+
_ = _ := by
|
| 52 |
+
rw [mul_pow, ← mul_assoc, ENNReal.ofReal_mul (by positivity : 0 ≤ G * 4 ^ n),
|
| 53 |
+
ENNReal.ofReal_pow hr.le]
|
| 54 |
+
have hlowerTop := clean_top_radius_power_le_mass μ C G hC hG hg hlower R hR k hcore z
|
| 55 |
+
calc
|
| 56 |
+
_ ≤ ENNReal.ofReal (G * 4 ^ n) * (ENNReal.ofReal (latticeRadius R k)) ^ n := hupper
|
| 57 |
+
_ ≤ ENNReal.ofReal (G * 4 ^ n) *
|
| 58 |
+
(ENNReal.ofReal (C * 8 ^ n) * μ (cleanSupportCell μ R hR k z)) := mul_le_mul_right hlowerTop _
|
| 59 |
+
_ = _ := by unfold enlargedTopMassConstant; rw [mul_assoc]
|
| 60 |
+
|
| 61 |
+
end
|
| 62 |
+
|
| 63 |
+
end RieszRectifiability
|
| 64 |
+
|
| 65 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ParentChartPlaneHeight.lean
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Projections.NeighborProjectionEstimates
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Transferring parent-chart height bounds
|
| 8 |
+
|
| 9 |
+
For adjacent cell scales, neighboring-plane projection estimates transfer a height bound
|
| 10 |
+
relative to the parent plane to a quantitative bound relative to the child plane.
|
| 11 |
+
-/
|
| 12 |
+
|
| 13 |
+
namespace RieszRectifiability
|
| 14 |
+
|
| 15 |
+
noncomputable section
|
| 16 |
+
|
| 17 |
+
open MeasureTheory Metric Set EuclideanGeometry
|
| 18 |
+
|
| 19 |
+
theorem parent_chart_plane_height_transfer {n d : ℕ}
|
| 20 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 21 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 22 |
+
(i q : SupportCellDescendant μ R hR k z)
|
| 23 |
+
(hscale : q.radius = 64 * i.radius)
|
| 24 |
+
(hnear : dist i.center q.center ≤ 2 * q.radius)
|
| 25 |
+
(ε : ℝ) (hε : 0 < ε) (hεsmall : ε ≤ 1 / 1024)
|
| 26 |
+
(S W : AffineSubspace ℝ (Ambient d)) (hS : IsAffineNPlane n S) (hW : IsAffineNPlane n W)
|
| 27 |
+
(hSi : bilateralPlaneError μ i.center (1024 * i.radius) S < ε)
|
| 28 |
+
(hWq : bilateralPlaneError μ q.center (1024 * q.radius) W < ε)
|
| 29 |
+
(x : Ambient d) (hx : x ∈ closedBall q.center (3 * q.radius))
|
| 30 |
+
(hheight : infDist x (W : Set (Ambient d)) ≤ (262144 * ε) * q.radius) :
|
| 31 |
+
infDist x (S : Set (Ambient d)) ≤ (524288 * ε) * q.radius := by
|
| 32 |
+
let : Nonempty S := hS.1.to_subtype
|
| 33 |
+
let : Nonempty W := hW.1.to_subtype
|
| 34 |
+
have hri := i.radius_pos
|
| 35 |
+
have hrq := q.radius_pos
|
| 36 |
+
have hsmall : i.radius ≤ q.radius := by rw [hscale]; linarith
|
| 37 |
+
have hlarge : q.radius ≤ 64 * i.radius := hscale.le
|
| 38 |
+
have hneighbor : dist i.center q.center ≤ 128 * q.radius := by linarith
|
| 39 |
+
have hop := neighbor_cell_projection_operator_norm_le μ R hR k z i q
|
| 40 |
+
hsmall hlarge hneighbor ε hε hεsmall S W hS hW hSi hWq
|
| 41 |
+
have hScenter := (bilateralPlaneError_lt_pointwise μ ⟨i.center, i.center_mem_support⟩
|
| 42 |
+
i.center (1024 * i.radius) ε (by positivity) S hS hSi).1 i.center
|
| 43 |
+
(mem_ball_self (by positivity)) i.center_mem_support
|
| 44 |
+
have hWcenter := (bilateralPlaneError_lt_pointwise μ ⟨i.center, i.center_mem_support⟩
|
| 45 |
+
q.center (1024 * q.radius) ε (by positivity) W hW hWq).1 i.center
|
| 46 |
+
(by change dist i.center q.center < 1024 * q.radius; linarith) i.center_mem_support
|
| 47 |
+
have hdx : dist x i.center ≤ 5 * q.radius := by
|
| 48 |
+
have ht := dist_triangle x q.center i.center
|
| 49 |
+
rw [dist_comm q.center i.center] at ht
|
| 50 |
+
have hx' : dist x q.center ≤ 3 * q.radius := hx
|
| 51 |
+
linarith
|
| 52 |
+
have hpair := affine_projection_pair_dist_bound S W i.center x (2048 * ε) hop
|
| 53 |
+
have hm := mul_le_mul_of_nonneg_left hdx (show 0 ≤ 2048 * ε by positivity)
|
| 54 |
+
have ht := dist_triangle (orthogonalProjection S x : Ambient d)
|
| 55 |
+
(orthogonalProjection W x : Ambient d) x
|
| 56 |
+
rw [dist_comm (orthogonalProjection S x : Ambient d) x,
|
| 57 |
+
dist_orthogonalProjection_eq_infDist S x,
|
| 58 |
+
dist_comm (orthogonalProjection W x : Ambient d) x,
|
| 59 |
+
dist_orthogonalProjection_eq_infDist W x] at ht
|
| 60 |
+
have hscaleError := mul_le_mul_of_nonneg_left hsmall hε.le
|
| 61 |
+
nlinarith [mul_pos hε hrq]
|
| 62 |
+
|
| 63 |
+
end
|
| 64 |
+
|
| 65 |
+
end RieszRectifiability
|
| 66 |
+
|
| 67 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/ParentToChildInputChart.lean
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.RecenteredDiskCharts
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Projections.ProjectionTubeLocation
|
| 4 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.ParentChartPlaneHeight
|
| 5 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.PlaneChangeCharts
|
| 6 |
+
|
| 7 |
+
namespace OAI
|
| 8 |
+
|
| 9 |
+
/-!
|
| 10 |
+
# Parent-to-child input charts
|
| 11 |
+
|
| 12 |
+
A parent chart is reparametrized over the nearby child plane and restricted to the child
|
| 13 |
+
disk. Projection and height estimates preserve the exact restricted range, the Lipschitz
|
| 14 |
+
and normal-component bounds, and containment in the physical child ball.
|
| 15 |
+
-/
|
| 16 |
+
|
| 17 |
+
namespace RieszRectifiability
|
| 18 |
+
|
| 19 |
+
noncomputable section
|
| 20 |
+
|
| 21 |
+
open MeasureTheory Metric Set
|
| 22 |
+
open scoped NNReal
|
| 23 |
+
|
| 24 |
+
theorem exists_parent_to_child_input_chart {n d : ℕ}
|
| 25 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 26 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 27 |
+
(i q : SupportCellDescendant μ R hR k z)
|
| 28 |
+
(hscale : q.radius = 64 * i.radius)
|
| 29 |
+
(hnear : dist i.center q.center ≤ 2 * q.radius)
|
| 30 |
+
(ε : ℝ) (hε : 0 < ε) (hεtiny : ε ≤ 1 / 268435456)
|
| 31 |
+
(S W : AffineSubspace ℝ (Ambient d)) (hS : IsAffineNPlane n S) (hW : IsAffineNPlane n W)
|
| 32 |
+
(hSi : bilateralPlaneError μ i.center (1024 * i.radius) S < ε)
|
| 33 |
+
(hWq : bilateralPlaneError μ q.center (1024 * q.radius) W < ε)
|
| 34 |
+
(g : closedBall (W.direction.orthogonalProjectionOnto q.center) ((5 / 2 : ℝ) * q.radius) → Ambient d)
|
| 35 |
+
(L : ℝ≥0) (hsmall : (L : ℝ) + 2048 * ε ≤ 1 / 8)
|
| 36 |
+
(hcoordinates : ∀ u, W.direction.orthogonalProjectionOnto (g u) = u.val)
|
| 37 |
+
(hnormal : LipschitzWith L
|
| 38 |
+
(fun u => (W.directionᗮ : Submodule ℝ (Ambient d)).starProjection (g u)))
|
| 39 |
+
(hheight : ∀ u, infDist (g u) (W : Set (Ambient d)) ≤ (262144 * ε) * q.radius)
|
| 40 |
+
(hphysical : ∀ u, g u ∈ closedBall q.center (3 * q.radius)) :
|
| 41 |
+
∃ h : closedBall (S.direction.orthogonalProjectionOnto i.center) ((11 / 4 : ℝ) * i.radius) → Ambient d,
|
| 42 |
+
LipschitzWith 2 h ∧
|
| 43 |
+
LipschitzWith (2 * (L + Real.toNNReal (2048 * ε)))
|
| 44 |
+
(fun u => (S.directionᗮ : Submodule ℝ (Ambient d)).starProjection (h u)) ∧
|
| 45 |
+
(∀ u, h u ∈ Set.range g ∧ S.direction.orthogonalProjectionOnto (h u) = u.val ∧
|
| 46 |
+
h u ∈ closedBall i.center (3 * i.radius)) ∧
|
| 47 |
+
Set.range h = Set.range g ∩ S.direction.orthogonalProjectionOnto ⁻¹'
|
| 48 |
+
closedBall (S.direction.orthogonalProjectionOnto i.center) ((11 / 4 : ℝ) * i.radius) := by
|
| 49 |
+
let P := W.direction
|
| 50 |
+
let Q := S.direction
|
| 51 |
+
let a := P.orthogonalProjectionOnto q.center
|
| 52 |
+
let ac := Q.orthogonalProjectionOnto i.center
|
| 53 |
+
let ρ := (5 / 2 : ℝ) * q.radius
|
| 54 |
+
have hri := i.radius_pos
|
| 55 |
+
have hrq := q.radius_pos
|
| 56 |
+
have hρ : 0 < ρ := by dsimp [ρ]; positivity
|
| 57 |
+
let u0 : closedBall a ρ := ⟨a, mem_closedBall_self hρ.le⟩
|
| 58 |
+
let b := Q.orthogonalProjectionOnto (g u0)
|
| 59 |
+
let α : ℝ≥0 := ⟨2048 * ε, by positivity⟩
|
| 60 |
+
have hα : α = Real.toNNReal (2048 * ε) := by
|
| 61 |
+
apply Subtype.ext
|
| 62 |
+
exact (Real.coe_toNNReal _ (by positivity : 0 ≤ 2048 * ε)).symm
|
| 63 |
+
have hεsmall : ε ≤ 1 / 1024 := by linarith
|
| 64 |
+
have hop := neighbor_cell_projection_operator_norm_le μ R hR k z i q
|
| 65 |
+
(by rw [hscale]; linarith) hscale.le (by linarith)
|
| 66 |
+
ε hε hεsmall S W hS hW hSi hWq
|
| 67 |
+
have hop' : ‖P.starProjection - Q.starProjection‖ ≤ (α : ℝ) := by
|
| 68 |
+
rw [norm_sub_rev]
|
| 69 |
+
exact hop
|
| 70 |
+
have hsmall' : (L : ℝ) + (α : ℝ) ≤ 1 / 4 := by
|
| 71 |
+
change (L : ℝ) + 2048 * ε ≤ 1 / 4
|
| 72 |
+
linarith
|
| 73 |
+
have hcq := (bilateralPlaneError_lt_pointwise μ ⟨q.center, q.center_mem_support⟩
|
| 74 |
+
q.center (1024 * q.radius) ε (by positivity) W hW hWq).1 q.center
|
| 75 |
+
(mem_ball_self (by positivity)) q.center_mem_support
|
| 76 |
+
have hci := (bilateralPlaneError_lt_pointwise μ ⟨i.center, i.center_mem_support⟩
|
| 77 |
+
i.center (1024 * i.radius) ε (by positivity) S hS hSi).1 i.center
|
| 78 |
+
(mem_ball_self (by positivity)) i.center_mem_support
|
| 79 |
+
have hx0 : dist (g u0) q.center ≤ (263168 * ε) * q.radius := by
|
| 80 |
+
have h := dist_le_projection_add_plane_distances W hW.1 (g u0) q.center
|
| 81 |
+
have hc : P.starProjection (g u0) = P.starProjection q.center :=
|
| 82 |
+
congrArg (fun v : P => (v : Ambient d)) (hcoordinates u0)
|
| 83 |
+
change dist (g u0) q.center ≤ dist (P.starProjection (g u0)) (P.starProjection q.center) +
|
| 84 |
+
infDist (g u0) (W : Set (Ambient d)) + infDist q.center (W : Set (Ambient d)) at h
|
| 85 |
+
rw [hc, dist_self, zero_add] at h
|
| 86 |
+
nlinarith [hheight u0]
|
| 87 |
+
have hx0small : dist (g u0) q.center ≤ q.radius / 16 := by
|
| 88 |
+
have hm := mul_le_mul_of_nonneg_right hεtiny hrq.le
|
| 89 |
+
nlinarith
|
| 90 |
+
have hb : dist ac b ≤ 2 * q.radius + q.radius / 16 := by
|
| 91 |
+
have hp := Q.norm_starProjection_apply_le (i.center - g u0)
|
| 92 |
+
rw [map_sub, ← dist_eq_norm, ← dist_eq_norm] at hp
|
| 93 |
+
have ht := dist_triangle i.center q.center (g u0)
|
| 94 |
+
rw [dist_comm q.center (g u0)] at ht
|
| 95 |
+
change dist (Q.starProjection i.center) (Q.starProjection (g u0)) ≤ _
|
| 96 |
+
linarith
|
| 97 |
+
obtain ⟨hradius, j, hjLip, hjNormal, hjCoords, hjRange⟩ :=
|
| 98 |
+
exists_chart_over_nearby_plane P Q a ρ hρ g L α hsmall' hcoordinates hnormal hop'
|
| 99 |
+
have hcontain : dist ac b + (11 / 4 : ℝ) * i.radius ≤
|
| 100 |
+
ρ - ((L : ℝ) + (α : ℝ)) * ρ := by
|
| 101 |
+
have hm := mul_le_mul_of_nonneg_right hsmall hrq.le
|
| 102 |
+
change dist ac b + (11 / 4 : ℝ) * i.radius ≤
|
| 103 |
+
(5 / 2 : ℝ) * q.radius - ((L : ℝ) + 2048 * ε) * ((5 / 2 : ℝ) * q.radius)
|
| 104 |
+
nlinarith
|
| 105 |
+
obtain ⟨h, hhLip, hhNormal, hhCoords, hhRange⟩ :=
|
| 106 |
+
exists_recentered_disk_chart Q b (ρ - ((L : ℝ) + (α : ℝ)) * ρ) j (2 * (L + α))
|
| 107 |
+
(fun u => (hjCoords u).2) hjNormal ac ((11 / 4 : ℝ) * i.radius) hcontain
|
| 108 |
+
have hL : 1 + 2 * (L + α) ≤ (2 : ℝ≥0) := by
|
| 109 |
+
have hreal : ((1 + 2 * (L + α) : ℝ≥0) : ℝ) ≤ 2 := by
|
| 110 |
+
change 1 + 2 * ((L : ℝ) + 2048 * ε) ≤ 2
|
| 111 |
+
linarith
|
| 112 |
+
exact_mod_cast hreal
|
| 113 |
+
have hrange : Set.range h = Set.range g ∩ Q.orthogonalProjectionOnto ⁻¹'
|
| 114 |
+
closedBall ac ((11 / 4 : ℝ) * i.radius) := by
|
| 115 |
+
rw [hhRange, hjRange]
|
| 116 |
+
ext y
|
| 117 |
+
constructor
|
| 118 |
+
· intro hy
|
| 119 |
+
exact ⟨hy.1.1, hy.2⟩
|
| 120 |
+
· intro hy
|
| 121 |
+
refine ⟨⟨hy.1, ?_⟩, hy.2⟩
|
| 122 |
+
have hy' : dist (Q.orthogonalProjectionOnto y) ac ≤ (11 / 4 : ℝ) * i.radius := hy.2
|
| 123 |
+
have ht := dist_triangle (Q.orthogonalProjectionOnto y) ac b
|
| 124 |
+
change dist (Q.orthogonalProjectionOnto y) b ≤ ρ - ((L : ℝ) + (α : ℝ)) * ρ
|
| 125 |
+
linarith
|
| 126 |
+
have hhg : ∀ u, h u ∈ Set.range g := by
|
| 127 |
+
intro u
|
| 128 |
+
exact (hrange ▸ (show h u ∈ Set.range h from ⟨u, rfl⟩)).1
|
| 129 |
+
have hhheight : ∀ u, infDist (h u) (S : Set (Ambient d)) ≤ (524288 * ε) * q.radius := by
|
| 130 |
+
intro u
|
| 131 |
+
obtain ⟨v, hv⟩ := hhg u
|
| 132 |
+
rw [← hv]
|
| 133 |
+
exact parent_chart_plane_height_transfer μ R hR k z i q hscale hnear ε hε hεsmall
|
| 134 |
+
S W hS hW hSi hWq (g v) (hphysical v) (hheight v)
|
| 135 |
+
have hhphysical : ∀ u, h u ∈ closedBall i.center (3 * i.radius) := by
|
| 136 |
+
intro u
|
| 137 |
+
have hloc := plane_chart_location_of_height S hS.1 i.center ((11 / 4 : ℝ) * i.radius)
|
| 138 |
+
((524288 * ε) * q.radius) h (fun v => (hhCoords v).2) hhheight u
|
| 139 |
+
have hm := mul_le_mul_of_nonneg_right hεtiny hri.le
|
| 140 |
+
rw [hscale] at hloc
|
| 141 |
+
change dist (h u) i.center ≤ 3 * i.radius
|
| 142 |
+
nlinarith
|
| 143 |
+
refine ⟨h, hhLip.weaken hL, ?_, ?_, hrange⟩
|
| 144 |
+
· rwa [← hα]
|
| 145 |
+
· intro u
|
| 146 |
+
exact ⟨hhg u, (hhCoords u).2, hhphysical u⟩
|
| 147 |
+
|
| 148 |
+
end
|
| 149 |
+
|
| 150 |
+
end RieszRectifiability
|
| 151 |
+
|
| 152 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/PerturbedBallCoverage.lean
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.MeasureBounds
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Ball coverage by a Lipschitz perturbation
|
| 8 |
+
|
| 9 |
+
A map with bounded displacement whose error from the identity is a strict
|
| 10 |
+
contraction covers a smaller concentric closed ball. A fixed point of the
|
| 11 |
+
associated correction map provides the preimage of each target point.
|
| 12 |
+
-/
|
| 13 |
+
|
| 14 |
+
namespace RieszRectifiability
|
| 15 |
+
|
| 16 |
+
noncomputable section
|
| 17 |
+
|
| 18 |
+
open Metric Set
|
| 19 |
+
open scoped NNReal
|
| 20 |
+
|
| 21 |
+
theorem closedBall_covered_by_lipschitz_perturbation {X : Type*}
|
| 22 |
+
[NormedAddCommGroup X] [CompleteSpace X]
|
| 23 |
+
(a : X) (r δ : ℝ) (hr : 0 ≤ r) (K : ℝ≥0) (hK : K < 1)
|
| 24 |
+
(f : closedBall a r → X)
|
| 25 |
+
(hdisp : ∀ x, dist (f x) x.val ≤ δ)
|
| 26 |
+
(herr : LipschitzWith K (fun x : closedBall a r => f x - x.val)) :
|
| 27 |
+
closedBall a (r - δ) ⊆ Set.range f := by
|
| 28 |
+
intro z hz
|
| 29 |
+
have hz' : ‖z - a‖ ≤ r - δ := by simpa only [mem_closedBall, dist_eq_norm] using! hz
|
| 30 |
+
have hmaps (x : closedBall a r) : z - (f x - x.val) ∈ closedBall a r := by
|
| 31 |
+
change dist (z - (f x - x.val)) a ≤ r
|
| 32 |
+
calc
|
| 33 |
+
_ = ‖(z - a) - (f x - x.val)‖ := by
|
| 34 |
+
rw [dist_eq_norm]
|
| 35 |
+
congr 1
|
| 36 |
+
abel
|
| 37 |
+
_ ≤ ‖z - a‖ + ‖f x - x.val‖ := norm_sub_le _ _
|
| 38 |
+
_ ≤ (r - δ) + δ := add_le_add hz' (by simpa only [dist_eq_norm] using! hdisp x)
|
| 39 |
+
_ = r := by ring
|
| 40 |
+
let T : closedBall a r → closedBall a r :=
|
| 41 |
+
fun x => ⟨z - (f x - x.val), hmaps x⟩
|
| 42 |
+
have hLip : LipschitzWith K T := by
|
| 43 |
+
apply LipschitzWith.of_dist_le_mul
|
| 44 |
+
intro x y
|
| 45 |
+
change dist (z - (f x - x.val)) (z - (f y - y.val)) ≤ K * dist x y
|
| 46 |
+
have heq : (z - (f x - x.val)) - (z - (f y - y.val)) =
|
| 47 |
+
-((f x - x.val) - (f y - y.val)) := by abel
|
| 48 |
+
rw [dist_eq_norm, heq, norm_neg]
|
| 49 |
+
simpa only [dist_eq_norm] using! herr.dist_le_mul x y
|
| 50 |
+
let : CompleteSpace (closedBall a r) :=
|
| 51 |
+
(show IsClosed (closedBall a r) from isClosed_closedBall).isComplete.completeSpace_coe
|
| 52 |
+
have hT : ContractingWith K T := ⟨hK, hLip⟩
|
| 53 |
+
obtain ⟨u, hu, _, _⟩ := hT.exists_fixedPoint ⟨a, mem_closedBall_self hr⟩ (edist_ne_top _ _)
|
| 54 |
+
have heq := congrArg (fun x : closedBall a r => x.val) hu
|
| 55 |
+
change z - (f u - u.val) = u.val at heq
|
| 56 |
+
refine ⟨u, ?_⟩
|
| 57 |
+
calc
|
| 58 |
+
f u = (f u - u.val) + u.val := (sub_add_cancel _ _).symm
|
| 59 |
+
_ = (f u - u.val) + (z - (f u - u.val)) :=
|
| 60 |
+
congrArg (fun w => (f u - u.val) + w) heq.symm
|
| 61 |
+
_ = z := by abel
|
| 62 |
+
|
| 63 |
+
end
|
| 64 |
+
|
| 65 |
+
end RieszRectifiability
|
| 66 |
+
|
| 67 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/PlaneChangeCharts.lean
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Projections.CoveredProjectionCharts
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Flatness.PlaneChangeCoverage
|
| 4 |
+
import OAI.Analysis.RieszRectifiability.Projections.ProjectionConeTransfer
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-!
|
| 9 |
+
# Reparameterizing a chart over a nearby plane
|
| 10 |
+
|
| 11 |
+
Small normal slope and a small change of projection leave a positive disk
|
| 12 |
+
covered in the new plane. The projection inverse defines a chart on this disk,
|
| 13 |
+
with quantitative Lipschitz bounds for the chart and its normal component.
|
| 14 |
+
-/
|
| 15 |
+
|
| 16 |
+
namespace RieszRectifiability
|
| 17 |
+
|
| 18 |
+
noncomputable section
|
| 19 |
+
|
| 20 |
+
open Metric Set
|
| 21 |
+
open scoped NNReal
|
| 22 |
+
|
| 23 |
+
theorem exists_chart_over_nearby_plane {d : ℕ}
|
| 24 |
+
(P Q : Submodule ℝ (Ambient d)) (a : P) (ρ : ℝ) (hρ : 0 < ρ)
|
| 25 |
+
(g : closedBall a ρ → Ambient d) (L α : ℝ≥0)
|
| 26 |
+
(hsmall : (L : ℝ) + (α : ℝ) ≤ 1 / 4)
|
| 27 |
+
(hcoordinates : ∀ v, P.orthogonalProjectionOnto (g v) = v.val)
|
| 28 |
+
(hnormal : LipschitzWith L
|
| 29 |
+
(fun v => (Pᗮ : Submodule ℝ (Ambient d)).starProjection (g v)))
|
| 30 |
+
(hop : ‖P.starProjection - Q.starProjection‖ ≤ (α : ℝ)) :
|
| 31 |
+
let b := Q.orthogonalProjectionOnto (g ⟨a, mem_closedBall_self hρ.le⟩)
|
| 32 |
+
let r := ρ - ((L : ℝ) + (α : ℝ)) * ρ
|
| 33 |
+
let D := closedBall b r
|
| 34 |
+
0 < r ∧ ∃ h : D → Ambient d,
|
| 35 |
+
LipschitzWith 2 h ∧
|
| 36 |
+
LipschitzWith (2 * (L + α))
|
| 37 |
+
(fun u => (Qᗮ : Submodule ℝ (Ambient d)).starProjection (h u)) ∧
|
| 38 |
+
(∀ u, h u ∈ Set.range g ∧ Q.orthogonalProjectionOnto (h u) = u.val) ∧
|
| 39 |
+
Set.range h = Set.range g ∩ Q.orthogonalProjectionOnto ⁻¹' D := by
|
| 40 |
+
let b := Q.orthogonalProjectionOnto (g ⟨a, mem_closedBall_self hρ.le⟩)
|
| 41 |
+
let r := ρ - ((L : ℝ) + (α : ℝ)) * ρ
|
| 42 |
+
let D := closedBall b r
|
| 43 |
+
have hr : 0 < r := by
|
| 44 |
+
have hm := mul_le_mul_of_nonneg_right hsmall hρ.le
|
| 45 |
+
dsimp only [r]
|
| 46 |
+
linarith
|
| 47 |
+
have hcontract : L + α < 1 := by
|
| 48 |
+
have h : ((L + α : ℝ≥0) : ℝ) < 1 := by
|
| 49 |
+
rw [NNReal.coe_add]
|
| 50 |
+
linarith
|
| 51 |
+
exact_mod_cast h
|
| 52 |
+
have hcover : D ⊆ Q.orthogonalProjectionOnto '' Set.range g :=
|
| 53 |
+
graph_covers_changed_plane_disk P Q a ρ hρ.le g L α hcontract hcoordinates hnormal hop
|
| 54 |
+
have hstar (u : closedBall a ρ) : P.starProjection (g u) = (u.val : Ambient d) :=
|
| 55 |
+
congrArg (fun v : P => (v : Ambient d)) (hcoordinates u)
|
| 56 |
+
have hcone : ∀ x ∈ Set.range g, ∀ y ∈ Set.range g,
|
| 57 |
+
‖(Pᗮ : Submodule ℝ (Ambient d)).starProjection (x - y)‖ ≤
|
| 58 |
+
(L : ℝ) * dist (P.starProjection x) (P.starProjection y) := by
|
| 59 |
+
rintro x ⟨u, rfl⟩ y ⟨v, rfl⟩
|
| 60 |
+
have h := hnormal.dist_le_mul u v
|
| 61 |
+
rw [dist_eq_norm, ← map_sub] at h
|
| 62 |
+
rw [hstar u, hstar v]
|
| 63 |
+
exact h
|
| 64 |
+
have hconeQ : ∀ x ∈ Set.range g, ∀ y ∈ Set.range g,
|
| 65 |
+
‖(Qᗮ : Submodule ℝ (Ambient d)).starProjection (x - y)‖ ≤
|
| 66 |
+
((2 * (L + α) : ℝ≥0) : ℝ) * dist (Q.starProjection x) (Q.starProjection y) := by
|
| 67 |
+
intro x hx y hy
|
| 68 |
+
simpa only [NNReal.coe_mul, NNReal.coe_ofNat, NNReal.coe_add] using!
|
| 69 |
+
projection_cone_transfer P Q (Set.range g) L α (hsmall.trans (by norm_num)) hop hcone x hx y hy
|
| 70 |
+
obtain ⟨h, hLip, hnLip, hcoords, hrange⟩ :=
|
| 71 |
+
exists_chart_on_covered_projection Q (Set.range g) (2 * (L + α)) D hcover hconeQ
|
| 72 |
+
have hL : 1 + 2 * (L + α) ≤ (2 : ℝ≥0) := by
|
| 73 |
+
have hh : ((1 + 2 * (L + α) : ℝ≥0) : ℝ) ≤ 2 := by
|
| 74 |
+
rw [NNReal.coe_add, NNReal.coe_one, NNReal.coe_mul, NNReal.coe_ofNat, NNReal.coe_add]
|
| 75 |
+
linarith
|
| 76 |
+
exact_mod_cast hh
|
| 77 |
+
exact ⟨hr, h, hLip.weaken hL, hnLip, hcoords, hrange⟩
|
| 78 |
+
|
| 79 |
+
end
|
| 80 |
+
|
| 81 |
+
end RieszRectifiability
|
| 82 |
+
|
| 83 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/PlaneChartBallArea.lean
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Flatness.PlaneDiskHausdorffMeasure
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open MeasureTheory Metric Set
|
| 11 |
+
open scoped NNReal ENNReal
|
| 12 |
+
|
| 13 |
+
def planeChartBallAreaConstant (n : ℕ) (K L : ℝ≥0) : ℝ≥0∞ :=
|
| 14 |
+
((2 : ℝ≥0∞) * (K : ℝ≥0∞) * (L : ℝ≥0∞)) ^ n * planeUnitHausdorffMeasure n
|
| 15 |
+
|
| 16 |
+
theorem planeChartBallAreaConstant_lt_top (n : ℕ) (K L : ℝ≥0) :
|
| 17 |
+
planeChartBallAreaConstant n K L < ⊤ := by
|
| 18 |
+
exact ENNReal.mul_lt_top (by finiteness) (planeUnitHausdorffMeasure_lt_top n)
|
| 19 |
+
|
| 20 |
+
theorem plane_chart_ball_hausdorffMeasure_le {n d e : ℕ}
|
| 21 |
+
(P : Submodule ℝ (Ambient d)) (hdim : Module.finrank ℝ P = n)
|
| 22 |
+
(C : Set P) (g : C → Ambient e) (K L : ℝ≥0) (hL : 0 < L)
|
| 23 |
+
(hg : LipschitzWith K g) (hsep : AntilipschitzWith L g)
|
| 24 |
+
(p : Ambient e) (r : ℝ) (hr : 0 < r) :
|
| 25 |
+
(μH[(n : ℝ)] : Measure (Ambient e)) (Set.range g ∩ closedBall p r) ≤
|
| 26 |
+
planeChartBallAreaConstant n K L * (ENNReal.ofReal r) ^ n := by
|
| 27 |
+
classical
|
| 28 |
+
by_cases hempty : Set.range g ∩ closedBall p r = ∅
|
| 29 |
+
· rw [hempty, measure_empty]
|
| 30 |
+
exact zero_le
|
| 31 |
+
obtain ⟨y, hy⟩ := Set.nonempty_iff_ne_empty.mpr hempty
|
| 32 |
+
obtain ⟨a, ha⟩ := hy.1
|
| 33 |
+
let T := g ⁻¹' closedBall p r
|
| 34 |
+
have hdomain : (Subtype.val : C → P) '' T ⊆ closedBall a.val (2 * (L : ℝ) * r) := by
|
| 35 |
+
rintro _ ⟨x, hx, rfl⟩
|
| 36 |
+
have hxball : dist (g x) p ≤ r := hx
|
| 37 |
+
have hyball : dist (g a) p ≤ r := by rw [ha]; exact hy.2
|
| 38 |
+
have ht := dist_triangle_right (g x) (g a) p
|
| 39 |
+
have hpair : dist (g x) (g a) ≤ 2 * r := by linarith
|
| 40 |
+
have h := (hsep.le_mul_dist x a).trans (mul_le_mul_of_nonneg_left hpair L.coe_nonneg)
|
| 41 |
+
change dist x.val a.val ≤ 2 * (L : ℝ) * r
|
| 42 |
+
change dist x.val a.val ≤ (L : ℝ) * (2 * r) at h
|
| 43 |
+
linarith
|
| 44 |
+
have hrad : 0 < 2 * (L : ℝ) * r := by
|
| 45 |
+
have hLreal : 0 < (L : ℝ) := hL
|
| 46 |
+
positivity
|
| 47 |
+
have hdom : (μH[(n : ℝ)] : Measure C) T ≤
|
| 48 |
+
(ENNReal.ofReal (2 * (L : ℝ) * r)) ^ n * planeUnitHausdorffMeasure n := by
|
| 49 |
+
have hiso := (isometry_subtype_coe (s := C)).hausdorffMeasure_image
|
| 50 |
+
(Or.inl (show 0 ≤ (n : ℝ) by positivity)) T
|
| 51 |
+
rw [← hiso]
|
| 52 |
+
exact (measure_mono hdomain).trans_eq (plane_closedBall_hausdorffMeasure P hdim a.val _ hrad)
|
| 53 |
+
have himage : g '' T = Set.range g ∩ closedBall p r := by
|
| 54 |
+
ext x
|
| 55 |
+
constructor
|
| 56 |
+
· rintro ⟨u, hu, rfl⟩
|
| 57 |
+
exact ⟨⟨u, rfl⟩, hu⟩
|
| 58 |
+
· rintro ⟨⟨u, rfl⟩, hu⟩
|
| 59 |
+
exact ⟨u, hu, rfl⟩
|
| 60 |
+
have harea := hg.hausdorffMeasure_image_le (show 0 ≤ (n : ℝ) by positivity) T
|
| 61 |
+
rw [himage, ENNReal.rpow_natCast] at harea
|
| 62 |
+
calc
|
| 63 |
+
_ ≤ (K : ℝ≥0∞) ^ n * (μH[(n : ℝ)] : Measure C) T := harea
|
| 64 |
+
_ ≤ (K : ℝ≥0∞) ^ n *
|
| 65 |
+
((ENNReal.ofReal (2 * (L : ℝ) * r)) ^ n * planeUnitHausdorffMeasure n) :=
|
| 66 |
+
mul_le_mul_right hdom _
|
| 67 |
+
_ = planeChartBallAreaConstant n K L * (ENNReal.ofReal r) ^ n := by
|
| 68 |
+
rw [ENNReal.ofReal_mul (by positivity : 0 ≤ 2 * (L : ℝ)),
|
| 69 |
+
ENNReal.ofReal_mul (by norm_num : (0 : ℝ) ≤ 2),
|
| 70 |
+
ENNReal.ofReal_ofNat, ENNReal.ofReal_coe_nnreal]
|
| 71 |
+
unfold planeChartBallAreaConstant
|
| 72 |
+
simp only [mul_pow]
|
| 73 |
+
ring
|
| 74 |
+
|
| 75 |
+
end
|
| 76 |
+
|
| 77 |
+
end RieszRectifiability
|
| 78 |
+
|
| 79 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/PlaneDiskLowerArea.lean
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Flatness.PlaneDiskHausdorffMeasure
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open MeasureTheory Metric Set
|
| 11 |
+
open scoped NNReal ENNReal
|
| 12 |
+
|
| 13 |
+
theorem planeUnitHausdorffMeasure_pos (n : ℕ) :
|
| 14 |
+
0 < planeUnitHausdorffMeasure n := by
|
| 15 |
+
have h := measure_closedBall_pos
|
| 16 |
+
(μH[(Module.finrank ℝ (Ambient n) : ℝ)] : Measure (Ambient n))
|
| 17 |
+
(0 : Ambient n) (by norm_num : (0 : ℝ) < 1)
|
| 18 |
+
simpa only [finrank_euclideanSpace_fin, planeUnitHausdorffMeasure] using! h
|
| 19 |
+
|
| 20 |
+
def planeDiskLowerAreaConstant (n : ℕ) (L : ℝ≥0) : ℝ≥0∞ :=
|
| 21 |
+
planeUnitHausdorffMeasure n / (L : ℝ≥0∞) ^ n
|
| 22 |
+
|
| 23 |
+
theorem planeDiskLowerAreaConstant_pos (n : ℕ) (L : ℝ≥0) :
|
| 24 |
+
0 < planeDiskLowerAreaConstant n L := by
|
| 25 |
+
exact ENNReal.div_pos (planeUnitHausdorffMeasure_pos n).ne' (by finiteness)
|
| 26 |
+
|
| 27 |
+
theorem planeDiskLowerAreaConstant_lt_top (n : ℕ) (L : ℝ≥0) (hL : 0 < L) :
|
| 28 |
+
planeDiskLowerAreaConstant n L < ⊤ := by
|
| 29 |
+
have hL0 : (L : ℝ≥0∞) ≠ 0 := by exact_mod_cast hL.ne'
|
| 30 |
+
exact ENNReal.div_lt_top (planeUnitHausdorffMeasure_lt_top n).ne
|
| 31 |
+
(pow_ne_zero n hL0)
|
| 32 |
+
|
| 33 |
+
theorem plane_disk_antilipschitz_range_hausdorffMeasure_ge {n d e : ℕ}
|
| 34 |
+
(P : Submodule ℝ (Ambient d)) (hdim : Module.finrank ℝ P = n)
|
| 35 |
+
(a : P) (r : ℝ) (hr : 0 < r) (L : ℝ≥0) (hL : 0 < L)
|
| 36 |
+
(g : closedBall a r → Ambient e) (hg : AntilipschitzWith L g) :
|
| 37 |
+
planeDiskLowerAreaConstant n L * (ENNReal.ofReal r) ^ n ≤
|
| 38 |
+
(μH[(n : ℝ)] : Measure (Ambient e)) (Set.range g) := by
|
| 39 |
+
have h := hg.le_hausdorffMeasure_image (show 0 ≤ (n : ℝ) by positivity) Set.univ
|
| 40 |
+
simp only [Set.image_univ, ENNReal.rpow_natCast,
|
| 41 |
+
plane_closedBall_subtype_hausdorffMeasure P hdim a r hr] at h
|
| 42 |
+
have hL0 : (L : ℝ≥0∞) ^ n ≠ 0 := pow_ne_zero n (by exact_mod_cast hL.ne')
|
| 43 |
+
have hLt : (L : ℝ≥0∞) ^ n ≠ ⊤ := by finiteness
|
| 44 |
+
have hdiv := (ENNReal.div_le_iff' hL0 hLt).mpr h
|
| 45 |
+
convert! hdiv using 1
|
| 46 |
+
unfold planeDiskLowerAreaConstant
|
| 47 |
+
simp only [div_eq_mul_inv]
|
| 48 |
+
ring
|
| 49 |
+
|
| 50 |
+
end
|
| 51 |
+
|
| 52 |
+
end RieszRectifiability
|
| 53 |
+
|
| 54 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/QuantitativeConvexChartContraction.lean
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.ConvexChartContraction
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace RieszRectifiability
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
open Metric Set Topology
|
| 11 |
+
open scoped NNReal
|
| 12 |
+
|
| 13 |
+
theorem exists_bounded_contraction_in_bilipschitz_convex_chart {E V : Type*}
|
| 14 |
+
[NormedAddCommGroup E] [NormedSpace ℝ E] [MetricSpace V]
|
| 15 |
+
(C : Set E) (hC : Convex ℝ C) (H : C → V) (K L : ℝ≥0)
|
| 16 |
+
(hLip : LipschitzWith K H) (hsep : AntilipschitzWith L H)
|
| 17 |
+
(A : Set V) (hA : A ⊆ Set.range H) (p : V) (hp : p ∈ A)
|
| 18 |
+
(r : ℝ) (hball : A ⊆ closedBall p r) :
|
| 19 |
+
∃ F : unitInterval × A → V, Continuous F ∧
|
| 20 |
+
(∀ x, F (0, x) = x.val) ∧ (∀ x, F (1, x) = p) ∧
|
| 21 |
+
(∀ s, F (s, ⟨p, hp⟩) = p) ∧
|
| 22 |
+
(∀ w, F w ∈ Set.range H ∩ closedBall p ((K : ℝ) * (L : ℝ) * r)) := by
|
| 23 |
+
classical
|
| 24 |
+
have hH : IsEmbedding H := hsep.isEmbedding hLip.continuous
|
| 25 |
+
have hpre : ∀ x : A, ∃ u : C, H u = x.val := fun x => hA x.property
|
| 26 |
+
choose j hj using hpre
|
| 27 |
+
have hjcont : Continuous j := hH.continuous_iff.mpr (by
|
| 28 |
+
have hid : H ∘ j = (Subtype.val : A → V) := funext hj
|
| 29 |
+
rw [hid]
|
| 30 |
+
exact continuous_subtype_val)
|
| 31 |
+
let u0 : C := j ⟨p, hp⟩
|
| 32 |
+
have hH0 : H u0 = p := hj ⟨p, hp⟩
|
| 33 |
+
let T : unitInterval × A → C := fun w =>
|
| 34 |
+
⟨(1 - (w.1 : ℝ)) • (j w.2 : E) + (w.1 : ℝ) • (u0 : E),
|
| 35 |
+
hC (j w.2).property u0.property (sub_nonneg.mpr w.1.property.2)
|
| 36 |
+
w.1.property.1 (by ring)⟩
|
| 37 |
+
have hs : Continuous (fun w : unitInterval × A => (w.1 : ℝ)) :=
|
| 38 |
+
continuous_subtype_val.comp continuous_fst
|
| 39 |
+
have hjv : Continuous (fun w : unitInterval × A => (j w.2 : E)) :=
|
| 40 |
+
continuous_subtype_val.comp (hjcont.comp continuous_snd)
|
| 41 |
+
have hT : Continuous T :=
|
| 42 |
+
(((continuous_const.sub hs).smul hjv).add (hs.smul continuous_const)).subtype_mk _
|
| 43 |
+
let F := H ∘ T
|
| 44 |
+
refine ⟨F, hLip.continuous.comp hT, ?_, ?_, ?_, ?_⟩
|
| 45 |
+
· intro x
|
| 46 |
+
have ht : T (0, x) = j x := by apply Subtype.ext; simp [T]
|
| 47 |
+
change H (T (0, x)) = x.val
|
| 48 |
+
rw [ht]
|
| 49 |
+
exact hj x
|
| 50 |
+
· intro x
|
| 51 |
+
have ht : T (1, x) = u0 := by apply Subtype.ext; simp [T]
|
| 52 |
+
change H (T (1, x)) = p
|
| 53 |
+
rw [ht]
|
| 54 |
+
exact hH0
|
| 55 |
+
· intro s
|
| 56 |
+
have ht : T (s, ⟨p, hp⟩) = u0 := by
|
| 57 |
+
apply Subtype.ext
|
| 58 |
+
change (1 - (s : ℝ)) • (u0 : E) + (s : ℝ) • (u0 : E) = (u0 : E)
|
| 59 |
+
rw [← add_smul]
|
| 60 |
+
simp
|
| 61 |
+
change H (T (s, ⟨p, hp⟩)) = p
|
| 62 |
+
rw [ht]
|
| 63 |
+
exact hH0
|
| 64 |
+
· intro w
|
| 65 |
+
refine ⟨⟨T w, rfl⟩, ?_⟩
|
| 66 |
+
have hseg : dist (T w) u0 ≤ dist (j w.2) u0 := by
|
| 67 |
+
calc
|
| 68 |
+
dist (T w) u0 = (1 - (w.1 : ℝ)) * dist (j w.2) u0 := by
|
| 69 |
+
simp only [Subtype.dist_eq, dist_eq_norm]
|
| 70 |
+
change ‖((1 - (w.1 : ℝ)) • (j w.2 : E) + (w.1 : ℝ) • (u0 : E)) - (u0 : E)‖ =
|
| 71 |
+
(1 - (w.1 : ℝ)) * ‖(j w.2 : E) - (u0 : E)‖
|
| 72 |
+
rw [show ((1 - (w.1 : ℝ)) • (j w.2 : E) + (w.1 : ℝ) • (u0 : E)) - (u0 : E) =
|
| 73 |
+
(1 - (w.1 : ℝ)) • ((j w.2 : E) - (u0 : E)) by module]
|
| 74 |
+
rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr w.1.property.2)]
|
| 75 |
+
_ ≤ dist (j w.2) u0 := mul_le_of_le_one_left dist_nonneg (by linarith [w.1.property.1])
|
| 76 |
+
have hjdist : dist (j w.2) u0 ≤ (L : ℝ) * r := by
|
| 77 |
+
have h := hsep.le_mul_dist (j w.2) u0
|
| 78 |
+
rw [hj w.2, hH0] at h
|
| 79 |
+
exact h.trans (mul_le_mul_of_nonneg_left (hball w.2.property) L.coe_nonneg)
|
| 80 |
+
change dist (H (T w)) p ≤ (K : ℝ) * (L : ℝ) * r
|
| 81 |
+
rw [← hH0]
|
| 82 |
+
calc
|
| 83 |
+
dist (H (T w)) (H u0) ≤ (K : ℝ) * dist (T w) u0 := hLip.dist_le_mul _ _
|
| 84 |
+
_ ≤ (K : ℝ) * ((L : ℝ) * r) :=
|
| 85 |
+
mul_le_mul_of_nonneg_left (hseg.trans hjdist) K.coe_nonneg
|
| 86 |
+
_ = (K : ℝ) * (L : ℝ) * r := by ring
|
| 87 |
+
|
| 88 |
+
end
|
| 89 |
+
|
| 90 |
+
end RieszRectifiability
|
| 91 |
+
|
| 92 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/RecenteredDiskCharts.lean
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Projections.CoveredProjectionCharts
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Recentering disk charts
|
| 8 |
+
|
| 9 |
+
A chart whose projection is the identity restricts to any closed disk contained in
|
| 10 |
+
its parameter disk. The recentered chart preserves the normal Lipschitz bound and
|
| 11 |
+
parametrizes exactly the part of the original range over the smaller disk.
|
| 12 |
+
-/
|
| 13 |
+
|
| 14 |
+
namespace RieszRectifiability
|
| 15 |
+
|
| 16 |
+
noncomputable section
|
| 17 |
+
|
| 18 |
+
open Metric Set
|
| 19 |
+
open scoped NNReal
|
| 20 |
+
|
| 21 |
+
theorem exists_recentered_disk_chart {d : ℕ}
|
| 22 |
+
(P : Submodule ℝ (Ambient d)) (a : P) (ρ : ℝ)
|
| 23 |
+
(g : closedBall a ρ → Ambient d) (L : ℝ≥0)
|
| 24 |
+
(hcoordinates : ∀ v, P.orthogonalProjectionOnto (g v) = v.val)
|
| 25 |
+
(hnormal : LipschitzWith L
|
| 26 |
+
(fun v => (Pᗮ : Submodule ℝ (Ambient d)).starProjection (g v)))
|
| 27 |
+
(b : P) (r : ℝ) (hcontain : dist b a + r ≤ ρ) :
|
| 28 |
+
∃ h : closedBall b r → Ambient d,
|
| 29 |
+
LipschitzWith (1 + L) h ∧
|
| 30 |
+
LipschitzWith L (fun u => (Pᗮ : Submodule ℝ (Ambient d)).starProjection (h u)) ∧
|
| 31 |
+
(∀ u, h u ∈ Set.range g ∧ P.orthogonalProjectionOnto (h u) = u.val) ∧
|
| 32 |
+
Set.range h = Set.range g ∩ P.orthogonalProjectionOnto ⁻¹' closedBall b r := by
|
| 33 |
+
have hcover : closedBall b r ⊆ P.orthogonalProjectionOnto '' Set.range g := by
|
| 34 |
+
intro v hv
|
| 35 |
+
have hnear : v ∈ closedBall a ρ := by
|
| 36 |
+
have ht := dist_triangle v b a
|
| 37 |
+
have hv' : dist v b ≤ r := hv
|
| 38 |
+
change dist v a ≤ ρ
|
| 39 |
+
linarith
|
| 40 |
+
let u : closedBall a ρ := ⟨v, hnear⟩
|
| 41 |
+
exact ⟨g u, ⟨u, rfl⟩, hcoordinates u⟩
|
| 42 |
+
have hstar (u : closedBall a ρ) : P.starProjection (g u) = (u.val : Ambient d) :=
|
| 43 |
+
congrArg (fun v : P => (v : Ambient d)) (hcoordinates u)
|
| 44 |
+
have hcone : ∀ x ∈ Set.range g, ∀ y ∈ Set.range g,
|
| 45 |
+
‖(Pᗮ : Submodule ℝ (Ambient d)).starProjection (x - y)‖ ≤
|
| 46 |
+
(L : ℝ) * dist (P.starProjection x) (P.starProjection y) := by
|
| 47 |
+
rintro x ⟨u, rfl⟩ y ⟨v, rfl⟩
|
| 48 |
+
have h := hnormal.dist_le_mul u v
|
| 49 |
+
rw [dist_eq_norm, ← map_sub] at h
|
| 50 |
+
rw [hstar u, hstar v]
|
| 51 |
+
exact h
|
| 52 |
+
exact exists_chart_on_covered_projection P (Set.range g) L (closedBall b r) hcover hcone
|
| 53 |
+
|
| 54 |
+
end
|
| 55 |
+
|
| 56 |
+
end RieszRectifiability
|
| 57 |
+
|
| 58 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/RegionRepresentativeCharts.lean
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.RegionRepresentativeGeometry
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Lipschitz charts for region representatives
|
| 8 |
+
|
| 9 |
+
Good cells at the scale of each pair provide affine-plane tube and angle bounds.
|
| 10 |
+
These bounds make projection onto the reference plane separate region representatives
|
| 11 |
+
with inverse Lipschitz constant two. A Lipschitz extension then covers the representatives
|
| 12 |
+
by the image of a ball in the Euclidean space of the plane's dimension.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open MeasureTheory Metric Set
|
| 20 |
+
open scoped NNReal
|
| 21 |
+
|
| 22 |
+
theorem projection_separates_region_representatives {n d : ℕ}
|
| 23 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 24 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 25 |
+
(Good : SupportCellDescendant μ R hR k z → Prop)
|
| 26 |
+
(hroot : ∀ i : SupportCellDescendant μ R hR k z, i.depth = 0 → Good i)
|
| 27 |
+
(P : Submodule ℝ (Ambient d))
|
| 28 |
+
(hfit : ∀ i : SupportCellDescendant μ R hR k z, Good i →
|
| 29 |
+
∃ S : AffineSubspace ℝ (Ambient d), IsAffineNPlane n S ∧
|
| 30 |
+
(∀ w ∈ ball i.center (1024 * i.radius), w ∈ μ.support →
|
| 31 |
+
infDist w (S : Set (Ambient d)) ≤ i.radius / 16384) ∧
|
| 32 |
+
∀ v ∈ S.direction,
|
| 33 |
+
‖(Pᗮ : Submodule ℝ (Ambient d)).starProjection v‖ ≤ (1 / 4 : ℝ) * ‖v‖) :
|
| 34 |
+
∀ x ∈ cellRegionRepresentatives μ R hR k z Good,
|
| 35 |
+
∀ y ∈ cellRegionRepresentatives μ R hR k z Good,
|
| 36 |
+
dist x y ≤ 2 * dist (P.starProjection x) (P.starProjection y) := by
|
| 37 |
+
intro x hx y hy
|
| 38 |
+
by_cases hxy : x = y
|
| 39 |
+
· simp only [hxy, dist_self, mul_zero, le_refl]
|
| 40 |
+
obtain ⟨q, hgood, _, hupper, _, hxball, hyball⟩ :=
|
| 41 |
+
exists_good_pair_cell_for_representatives μ R hR k z Good hroot x y hx hy hxy
|
| 42 |
+
obtain ⟨S, hS, htube, hangle⟩ := hfit q hgood
|
| 43 |
+
let : Nonempty S := hS.1.to_subtype
|
| 44 |
+
have hxμ := supportLatticeCell_subset_support μ R hR k z
|
| 45 |
+
(cellRegionRepresentatives_subset_top μ R hR k z Good hx).1
|
| 46 |
+
have hyμ := supportLatticeCell_subset_support μ R hR k z
|
| 47 |
+
(cellRegionRepresentatives_subset_top μ R hR k z Good hy).1
|
| 48 |
+
have hxS : infDist x (S : Set (Ambient d)) ≤ (1 / 32 : ℝ) * dist x y := by
|
| 49 |
+
have h := htube x hxball hxμ
|
| 50 |
+
linarith
|
| 51 |
+
have hyS : infDist y (S : Set (Ambient d)) ≤ (1 / 32 : ℝ) * dist x y := by
|
| 52 |
+
have h := htube y hyball hyμ
|
| 53 |
+
linarith
|
| 54 |
+
exact projection_separates_of_pairwise_plane P S x y (1 / 32) (1 / 4)
|
| 55 |
+
(by norm_num) (by norm_num) hxS hyS hangle
|
| 56 |
+
|
| 57 |
+
theorem exists_ball_lipschitz_cover_of_region_representatives {n d : ℕ}
|
| 58 |
+
(μ : Measure (Ambient d)) (R : ℝ) (hR : 0 < R) (k : ℕ)
|
| 59 |
+
(z : (supportLatticeNets μ R hR k).points)
|
| 60 |
+
(Good : SupportCellDescendant μ R hR k z → Prop)
|
| 61 |
+
(hroot : ∀ i : SupportCellDescendant μ R hR k z, i.depth = 0 → Good i)
|
| 62 |
+
(P : Submodule ℝ (Ambient d)) (hdim : Module.finrank ℝ P = n)
|
| 63 |
+
(hfit : ∀ i : SupportCellDescendant μ R hR k z, Good i →
|
| 64 |
+
∃ S : AffineSubspace ℝ (Ambient d), IsAffineNPlane n S ∧
|
| 65 |
+
(∀ w ∈ ball i.center (1024 * i.radius), w ∈ μ.support →
|
| 66 |
+
infDist w (S : Set (Ambient d)) ≤ i.radius / 16384) ∧
|
| 67 |
+
∀ v ∈ S.direction,
|
| 68 |
+
‖(Pᗮ : Submodule ℝ (Ambient d)).starProjection v‖ ≤ (1 / 4 : ℝ) * ‖v‖) :
|
| 69 |
+
∃ g : (ball (0 : Ambient n) (3 * latticeRadius R k)) → Ambient d,
|
| 70 |
+
LipschitzWith (lipschitzExtensionConstant (Ambient d) * 2) g ∧
|
| 71 |
+
cellRegionRepresentatives μ R hR k z Good ⊆ range g := by
|
| 72 |
+
have hball : cellRegionRepresentatives μ R hR k z Good ⊆
|
| 73 |
+
ball (z : Ambient d) (3 * latticeRadius R k) := by
|
| 74 |
+
intro x hx
|
| 75 |
+
have hb := (supportLatticeCell_bounds μ R hR k z).2
|
| 76 |
+
(cellRegionRepresentatives_subset_top μ R hR k z Good hx).1
|
| 77 |
+
change dist x (z : Ambient d) ≤ 2 * latticeRadius R k at hb
|
| 78 |
+
rw [mem_ball]
|
| 79 |
+
have hr := latticeRadius_pos R hR k
|
| 80 |
+
linarith
|
| 81 |
+
exact exists_ball_lipschitz_cover_of_projection _ _ _ hball P hdim 2
|
| 82 |
+
(projection_separates_region_representatives μ R hR k z Good hroot P hfit)
|
| 83 |
+
|
| 84 |
+
end
|
| 85 |
+
|
| 86 |
+
end RieszRectifiability
|
| 87 |
+
|
| 88 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/RescaledBallCharts.lean
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.MeasureBounds
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
A Lipschitz chart on a centered ball can be translated and rescaled without changing its image.
|
| 8 |
+
Rescaling the parameter ball by the inverse factor multiplies the Lipschitz bound by that factor.
|
| 9 |
+
-/
|
| 10 |
+
|
| 11 |
+
namespace RieszRectifiability
|
| 12 |
+
|
| 13 |
+
noncomputable section
|
| 14 |
+
|
| 15 |
+
open Metric Set
|
| 16 |
+
open scoped NNReal
|
| 17 |
+
|
| 18 |
+
theorem exists_rescaled_ball_chart {n d : ℕ}
|
| 19 |
+
(r : ℝ) (a : Ambient n) (s : ℝ≥0) (hs : 0 < s)
|
| 20 |
+
(f : ball (0 : Ambient n) r → Ambient d) (M : ℝ≥0) (hf : LipschitzWith M f) :
|
| 21 |
+
∃ g : Ambient n → Ambient d,
|
| 22 |
+
LipschitzOnWith (M * s) g (ball a (r / (s : ℝ))) ∧
|
| 23 |
+
g '' ball a (r / (s : ℝ)) = Set.range f := by
|
| 24 |
+
classical
|
| 25 |
+
have hsr : 0 < (s : ℝ) := hs
|
| 26 |
+
have hnorm (u : Ambient n) : ‖(s : ℝ) • (u - a)‖ = (s : ℝ) * dist u a := by
|
| 27 |
+
rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg s.coe_nonneg, dist_eq_norm]
|
| 28 |
+
have hmem (u : Ambient n) (hu : u ∈ ball a (r / (s : ℝ))) :
|
| 29 |
+
(s : ℝ) • (u - a) ∈ ball (0 : Ambient n) r := by
|
| 30 |
+
rw [mem_ball_zero_iff]
|
| 31 |
+
rw [hnorm]
|
| 32 |
+
have h := (lt_div_iff₀ hsr).mp hu
|
| 33 |
+
simpa only [mul_comm] using! h
|
| 34 |
+
let T : ball a (r / (s : ℝ)) → ball (0 : Ambient n) r :=
|
| 35 |
+
fun u => ⟨(s : ℝ) • (u.val - a), hmem u.val u.property⟩
|
| 36 |
+
have hTdist (u v : ball a (r / (s : ℝ))) :
|
| 37 |
+
dist (T u) (T v) = (s : ℝ) * dist u v := by
|
| 38 |
+
change dist ((s : ℝ) • (u.val - a)) ((s : ℝ) • (v.val - a)) =
|
| 39 |
+
(s : ℝ) * dist u.val v.val
|
| 40 |
+
rw [dist_smul₀, Real.norm_eq_abs, abs_of_nonneg s.coe_nonneg]
|
| 41 |
+
congr 1
|
| 42 |
+
simp only [dist_eq_norm]
|
| 43 |
+
congr 1
|
| 44 |
+
abel
|
| 45 |
+
have hsurj : Function.Surjective T := by
|
| 46 |
+
intro v
|
| 47 |
+
let u : Ambient n := a + (s : ℝ)⁻¹ • v.val
|
| 48 |
+
have hu : u ∈ ball a (r / (s : ℝ)) := by
|
| 49 |
+
change dist (a + (s : ℝ)⁻¹ • v.val) a < r / (s : ℝ)
|
| 50 |
+
rw [dist_eq_norm, add_sub_cancel_left, norm_smul, Real.norm_eq_abs,
|
| 51 |
+
abs_of_pos (inv_pos.mpr hsr)]
|
| 52 |
+
have hv : ‖v.val‖ < r := mem_ball_zero_iff.mp v.property
|
| 53 |
+
have h := mul_lt_mul_of_pos_left hv (inv_pos.mpr hsr)
|
| 54 |
+
simpa only [div_eq_mul_inv, mul_comm] using! h
|
| 55 |
+
refine ⟨⟨u, hu⟩, ?_⟩
|
| 56 |
+
apply Subtype.ext
|
| 57 |
+
change (s : ℝ) • ((a + (s : ℝ)⁻¹ • v.val) - a) = v.val
|
| 58 |
+
rw [add_sub_cancel_left, smul_smul, mul_inv_cancel₀ hsr.ne', one_smul]
|
| 59 |
+
let g : Ambient n → Ambient d := fun u =>
|
| 60 |
+
if hu : u ∈ ball a (r / (s : ℝ)) then f (T ⟨u, hu⟩) else 0
|
| 61 |
+
have hg (u : Ambient n) (hu : u ∈ ball a (r / (s : ℝ))) : g u = f (T ⟨u, hu⟩) := by
|
| 62 |
+
simp only [g, dite_eq_left hu]
|
| 63 |
+
refine ⟨g, ?_, ?_⟩
|
| 64 |
+
· apply LipschitzOnWith.of_dist_le_mul
|
| 65 |
+
intro u hu v hv
|
| 66 |
+
rw [hg u hu, hg v hv]
|
| 67 |
+
have h := hf.dist_le_mul (T ⟨u, hu⟩) (T ⟨v, hv⟩)
|
| 68 |
+
rw [hTdist] at h
|
| 69 |
+
simpa only [NNReal.coe_mul, Subtype.dist_eq, mul_assoc] using! h
|
| 70 |
+
· apply Set.Subset.antisymm
|
| 71 |
+
· rintro y ⟨u, hu, rfl⟩
|
| 72 |
+
exact ⟨T ⟨u, hu⟩, (hg u hu).symm⟩
|
| 73 |
+
· rintro y ⟨v, rfl⟩
|
| 74 |
+
obtain ⟨u, hu⟩ := hsurj v
|
| 75 |
+
exact ⟨u.val, u.property, (hg u.val u.property).trans (congrArg f hu)⟩
|
| 76 |
+
|
| 77 |
+
end
|
| 78 |
+
|
| 79 |
+
end RieszRectifiability
|
| 80 |
+
|
| 81 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/RescaledChildChartGluing.lean
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Foundations.SeparatedParameterPatchGluing
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Surfaces.RescaledBallCharts
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace RieszRectifiability
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
open Metric Set
|
| 12 |
+
open scoped NNReal
|
| 13 |
+
|
| 14 |
+
theorem exists_ball_lipschitz_cover_of_rescaled_children {n d : ℕ} {ι : Type*}
|
| 15 |
+
(a : ι → Ambient n) (c : ι → Ambient d) (r : ι → ℝ)
|
| 16 |
+
(f : ∀ i : ι, ball (0 : Ambient n) (r i) → Ambient d)
|
| 17 |
+
(M A L : ℝ≥0) (hA : 0 < A)
|
| 18 |
+
(hsep : ∀ i j : ι, i ≠ j → r i + r j ≤ (A : ℝ) * dist (a i) (a j))
|
| 19 |
+
(hcenters : ∀ i j : ι, dist (c i) (c j) ≤ (L : ℝ) * dist (a i) (a j))
|
| 20 |
+
(himage : ∀ i : ι, Set.range (f i) ⊆ closedBall (c i) (3 * r i))
|
| 21 |
+
(hLip : ∀ i : ι, LipschitzWith M (f i))
|
| 22 |
+
(ρ : ℝ) (hball : ∀ i : ι, ball (a i) (r i / (4 * (A : ℝ))) ⊆ ball (0 : Ambient n) ρ) :
|
| 23 |
+
∃ F : ball (0 : Ambient n) ρ → Ambient d,
|
| 24 |
+
LipschitzWith (lipschitzExtensionConstant (Ambient d) *
|
| 25 |
+
separatedPatchGluingConstant (M * (4 * A)) A L) F ∧
|
| 26 |
+
(⋃ i : ι, Set.range (f i)) ⊆ Set.range F := by
|
| 27 |
+
classical
|
| 28 |
+
have hs : 0 < 4 * A := by positivity
|
| 29 |
+
have hc (i : ι) := exists_rescaled_ball_chart (r i) (a i) (4 * A) hs (f i) M (hLip i)
|
| 30 |
+
choose g hg hrange using hc
|
| 31 |
+
have hrange' (i : ι) : g i '' ball (a i) (r i / (4 * (A : ℝ))) = Set.range (f i) := by
|
| 32 |
+
simpa only [NNReal.coe_mul, NNReal.coe_ofNat] using! hrange i
|
| 33 |
+
have hg' (i : ι) : LipschitzOnWith (M * (4 * A)) (g i)
|
| 34 |
+
(ball (a i) (r i / (4 * (A : ℝ)))) := by
|
| 35 |
+
simpa only [NNReal.coe_mul, NNReal.coe_ofNat] using! hg i
|
| 36 |
+
obtain ⟨F, hF, hcover⟩ := exists_ball_lipschitz_cover_of_separated_parameter_patches
|
| 37 |
+
a c r (fun i => ball (a i) (r i / (4 * (A : ℝ)))) g (M * (4 * A)) A L hA hsep hcenters
|
| 38 |
+
(fun _ _ hu => le_of_lt hu)
|
| 39 |
+
(fun i u hu => himage i (hrange' i ▸ mem_image_of_mem (g i) hu)) hg'
|
| 40 |
+
ρ (iUnion_subset hball)
|
| 41 |
+
refine ⟨F, hF, ?_⟩
|
| 42 |
+
intro y hy
|
| 43 |
+
obtain ⟨i, hi⟩ := mem_iUnion.mp hy
|
| 44 |
+
exact hcover (mem_iUnion.mpr ⟨i, hrange' i ▸ hi⟩)
|
| 45 |
+
|
| 46 |
+
theorem small_parameter_ball_subset_double_ball {n : ℕ}
|
| 47 |
+
(a : Ambient n) (ρ r : ℝ) (hρ : 0 < ρ) (ha : a ∈ closedBall (0 : Ambient n) ρ)
|
| 48 |
+
(s : ℝ≥0) (hs : 1 ≤ s) (hr : r ≤ ρ) :
|
| 49 |
+
ball a (r / (s : ℝ)) ⊆ ball (0 : Ambient n) (2 * ρ) := by
|
| 50 |
+
intro u hu
|
| 51 |
+
have hs' : 1 ≤ (s : ℝ) := hs
|
| 52 |
+
have hsp : 0 < (s : ℝ) := lt_of_lt_of_le zero_lt_one hs'
|
| 53 |
+
have hrad : r / (s : ℝ) ≤ ρ := (div_le_iff₀ hsp).mpr (by nlinarith)
|
| 54 |
+
have hnear : dist u a < r / (s : ℝ) := hu
|
| 55 |
+
have hac : dist a (0 : Ambient n) ≤ ρ := ha
|
| 56 |
+
have ht := dist_triangle u a (0 : Ambient n)
|
| 57 |
+
change dist u (0 : Ambient n) < 2 * ρ
|
| 58 |
+
linarith
|
| 59 |
+
|
| 60 |
+
end
|
| 61 |
+
|
| 62 |
+
end RieszRectifiability
|
| 63 |
+
|
| 64 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/RieszFromUniformSurfacePieces.lean
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Restart.CleanCellChartTargetBridge
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-!
|
| 7 |
+
# Uniform rectifiability from restart surface pieces
|
| 8 |
+
|
| 9 |
+
`HasUniformRestartSurfacePieces` uniformly bounds the number and Lipschitz
|
| 10 |
+
constants of pieces covering restart models up to a prescribed weighted area
|
| 11 |
+
loss. Combining this data with AD regularity and the Riesz bound gives clean-cell
|
| 12 |
+
charts with half-mass deficit, and hence uniform rectifiability.
|
| 13 |
+
-/
|
| 14 |
+
|
| 15 |
+
namespace RieszRectifiability
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
open MeasureTheory Metric Set
|
| 20 |
+
open scoped NNReal ENNReal
|
| 21 |
+
|
| 22 |
+
def HasUniformRestartSurfacePieces {d : ℕ} (n : ℕ)
|
| 23 |
+
(μ : Measure (Ambient d)) (G ε : ℝ) : Prop :=
|
| 24 |
+
∀ δ : ℝ, 0 < δ → ∃ (N : ℕ) (P : ℝ≥0),
|
| 25 |
+
∀ (R : ℝ) (hR : 0 < R) (k : ℕ) (z : (supportLatticeNets μ R hR k).points),
|
| 26 |
+
AdmissibleRadius μ (latticeRadius R k / 8) →
|
| 27 |
+
let Bad := fun i : SupportCellDescendant μ R hR k z =>
|
| 28 |
+
ε ≤ bilateralBeta n μ i.center (1024 * i.radius)
|
| 29 |
+
∃ (E : {q : SupportCellDescendant μ R hR k z // cellRestartsAfter Bad q} → Set (Ambient d))
|
| 30 |
+
(data : ∀ q : {q : SupportCellDescendant μ R hR k z // cellRestartsAfter Bad q},
|
| 31 |
+
¬ Bad q.val → SelectedRestartSurfaceData n Bad q.val (E q) ε N P),
|
| 32 |
+
∀ q hq, (ENNReal.ofReal G + activeRegionStopMassAreaConstant n G) *
|
| 33 |
+
(μH[(n : ℝ)] : Measure (Ambient d))
|
| 34 |
+
((Set.range (data q hq).model ∩ closedBall q.val.center (3 * q.val.radius)) \ E q) ≤
|
| 35 |
+
ENNReal.ofReal δ * μ q.val.cell
|
| 36 |
+
|
| 37 |
+
theorem uniformlyRectifiable_of_Riesz_and_uniform_restart_surface_pieces
|
| 38 |
+
{p d : ℕ} (hnd : p + 1 ≤ d) (μ : Measure (Ambient d)) [μ.Regular]
|
| 39 |
+
(hAD : ADRegular (p + 1) μ) (hRiesz : RieszL2Bounded (p + 1) μ)
|
| 40 |
+
(G : ℝ) (hG : 0 < G) (hg : GlobalUpperGrowth (p + 1) G μ)
|
| 41 |
+
(ε : ℝ) (hε : 0 < ε) (hεfine : ε ≤ 1 / 281474976710656)
|
| 42 |
+
(hsmall : activeProjectionError d ε ≤ 1 / 128)
|
| 43 |
+
(hpieces : HasUniformRestartSurfacePieces (p + 1) μ G ε) :
|
| 44 |
+
UniformlyRectifiable (p + 1) μ := by
|
| 45 |
+
obtain ⟨δ, hδ, b, _, hcharts⟩ := original_AD_Riesz_recursive_chart_from_surface_pieces
|
| 46 |
+
hnd μ hAD hRiesz G hG hg 1024 ε (by norm_num) hε hεfine hsmall (1 / 2) (by norm_num)
|
| 47 |
+
obtain ⟨N, P, hdata⟩ := hpieces δ hδ
|
| 48 |
+
apply uniformlyRectifiable_of_uniform_clean_cell_deficits μ hAD G hG hg
|
| 49 |
+
(1 / 2) (by norm_num) (by norm_num)
|
| 50 |
+
(badBudgetChartConstant (fun M => restartChartStepConstant d N P (restartChartStepConstant d N P M)) b)
|
| 51 |
+
intro R hR k z hcore
|
| 52 |
+
obtain ⟨E, data, hloss⟩ := hdata R hR k z hcore
|
| 53 |
+
obtain ⟨g, hg, _, hdeficit⟩ := hcharts N P R hR k z hcore E data hloss
|
| 54 |
+
exact ⟨g, hg, hdeficit⟩
|
| 55 |
+
|
| 56 |
+
end
|
| 57 |
+
|
| 58 |
+
end RieszRectifiability
|
| 59 |
+
|
| 60 |
+
end OAI
|
lean/OAI/Analysis/RieszRectifiability/Surfaces/SurfaceBallCellCover.lean
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.RieszRectifiability.Restart.CleanSupportPartition
|
| 3 |
+
import OAI.Analysis.RieszRectifiability.Packing.EuclideanPackingBound
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-!
|
| 8 |
+
# Finite cell centers near a surface ball
|
| 9 |
+
|
| 10 |
+
Compactness makes the separated lattice centers near a ball finite. A Euclidean packing
|
| 11 |
+
estimate bounds their number uniformly in the ball center and radius.
|
| 12 |
+
-/
|
| 13 |
+
|
| 14 |
+
namespace RieszRectifiability
|
| 15 |
+
|
| 16 |
+
noncomputable section
|
| 17 |
+
|
| 18 |
+
open MeasureTheory Metric Set
|
| 19 |
+
|
| 20 |
+
theorem surface_ball_cell_centers_finite {d : ℕ} (ν : Measure (Ambient d))
|
| 21 |
+
(r : ℝ) (hr : 0 < r) (a : Ambient d) :
|
| 22 |
+
{z : (supportLatticeNets ν r hr 0).points | dist (z : Ambient d) a ≤ 5 * r}.Finite := by
|
| 23 |
+
have hf := separated_set_finite_inter_compact (supportLatticeNets ν r hr 0).points
|
| 24 |
+
(closedBall a (5 * r)) (latticeRadius r 0) (latticeRadius_pos r hr 0)
|
| 25 |
+
(supportLatticeNets ν r hr 0).separated (isCompact_closedBall _ _)
|
| 26 |
+
have hpre := hf.preimage (f := fun z : (supportLatticeNets ν r hr 0).points => (z : Ambient d))
|
| 27 |
+
Subtype.val_injective.injOn
|
| 28 |
+
apply hpre.subset
|
| 29 |
+
intro z hz
|
| 30 |
+
exact ⟨z.property, hz⟩
|
| 31 |
+
|
| 32 |
+
def surfaceBallCellCenters {d : ℕ} (ν : Measure (Ambient d))
|
| 33 |
+
(r : ℝ) (hr : 0 < r) (a : Ambient d) : Finset (supportLatticeNets ν r hr 0).points :=
|
| 34 |
+
(surface_ball_cell_centers_finite ν r hr a).toFinset
|
| 35 |
+
|
| 36 |
+
theorem mem_surfaceBallCellCenters {d : ℕ} (ν : Measure (Ambient d))
|
| 37 |
+
(r : ℝ) (hr : 0 < r) (a : Ambient d) (z : (supportLatticeNets ν r hr 0).points) :
|
| 38 |
+
z ∈ surfaceBallCellCenters ν r hr a ↔ dist (z : Ambient d) a ≤ 5 * r := by
|
| 39 |
+
simp only [surfaceBallCellCenters, Set.Finite.mem_toFinset, mem_ofPred_eq]
|
| 40 |
+
|
| 41 |
+
theorem surfaceBallCellCenters_card_le {d : ℕ} (ν : Measure (Ambient d))
|
| 42 |
+
(r : ℝ) (hr : 0 < r) (a : Ambient d) :
|
| 43 |
+
(surfaceBallCellCenters ν r hr a).card ≤ 11 ^ d := by
|
| 44 |
+
classical
|
| 45 |
+
let F := surfaceBallCellCenters ν r hr a
|
| 46 |
+
let f : (supportLatticeNets ν r hr 0).points → Ambient d := fun z => z.val - a
|
| 47 |
+
have hinj : Set.InjOn f F := by
|
| 48 |
+
intro z hz w hw heq
|
| 49 |
+
apply Subtype.ext
|
| 50 |
+
have h := congrArg (fun v : Ambient d => v + a) heq
|
| 51 |
+
simpa only [f, sub_add_cancel] using! h
|
| 52 |
+
have hbound : ∀ x ∈ F.image f, ‖x‖ ≤ 5 * r := by
|
| 53 |
+
intro x hx
|
| 54 |
+
obtain ⟨z, hz, rfl⟩ := Finset.mem_image.mp hx
|
| 55 |
+
simpa only [f, ← dist_eq_norm] using! (mem_surfaceBallCellCenters ν r hr a z).mp hz
|
| 56 |
+
have hsep : ∀ x ∈ F.image f, ∀ y ∈ F.image f, x ≠ y → 2 * (r / 2) ≤ dist x y := by
|
| 57 |
+
intro x hx y hy hxy
|
| 58 |
+
obtain ⟨z, hz, rfl⟩ := Finset.mem_image.mp hx
|
| 59 |
+
obtain ⟨w, hw, rfl⟩ := Finset.mem_image.mp hy
|
| 60 |
+
have hzw : (z : Ambient d) ≠ (w : Ambient d) := fun h => hxy (congrArg (fun v => v - a) h)
|
| 61 |
+
have h := (supportLatticeNets ν r hr 0).separated z.property w.property hzw
|
| 62 |
+
simpa only [f, dist_sub_right, latticeRadius_zero,
|
| 63 |
+
mul_div_cancel₀ _ (by norm_num : (2 : ℝ) ≠ 0)] using! h
|
| 64 |
+
have hcard := euclidean_separated_card_le (F.image f) (5 * r) (r / 2)
|
| 65 |
+
(by positivity) (by positivity) hbound hsep
|
| 66 |
+
have heq : (5 * r + r / 2) / (r / 2) = 11 := by
|
| 67 |
+
apply (div_eq_iff (show r / 2 ≠ 0 by positivity)).mpr
|
| 68 |
+
ring
|
| 69 |
+
rw [Finset.card_image_iff.mpr hinj, heq] at hcard
|
| 70 |
+
exact_mod_cast hcard
|
| 71 |
+
|
| 72 |
+
theorem surface_ball_covered_by_selected_cells_off_exceptional {d : ℕ}
|
| 73 |
+
(ν : Measure (Ambient d)) (r : ℝ) (hr : 0 < r) (a : Ambient d)
|
| 74 |
+
(x : Ambient d) (hx : x ∈ ν.support ∩ closedBall a (3 * r))
|
| 75 |
+
(hnot : x ∉ supportLatticeExceptional ν r hr) :
|
| 76 |
+
∃ z ∈ surfaceBallCellCenters ν r hr a, x ∈ cleanSupportCell ν r hr 0 z := by
|
| 77 |
+
obtain ⟨z, hz⟩ := cleanSupportCell_cover ν r hr 0 x hx.1 hnot
|
| 78 |
+
refine ⟨z, (mem_surfaceBallCellCenters ν r hr a z).mpr ?_, hz⟩
|
| 79 |
+
have hnear := (supportLatticeCell_bounds ν r hr 0 z).2 hz.1
|
| 80 |
+
simp only [latticeRadius_zero] at hnear
|
| 81 |
+
have hnear' : dist (z : Ambient d) x ≤ 2 * r := by simpa only [mem_closedBall, dist_comm] using! hnear
|
| 82 |
+
have ha : dist x a ≤ 3 * r := hx.2
|
| 83 |
+
exact (dist_triangle _ x a).trans (by linarith)
|
| 84 |
+
|
| 85 |
+
theorem selected_surface_ball_cell_subset_seven_ball {d : ℕ}
|
| 86 |
+
(ν : Measure (Ambient d)) (r : ℝ) (hr : 0 < r) (a : Ambient d)
|
| 87 |
+
(z : (supportLatticeNets ν r hr 0).points) (hz : z ∈ surfaceBallCellCenters ν r hr a) :
|
| 88 |
+
cleanSupportCell ν r hr 0 z ⊆ closedBall a (7 * r) := by
|
| 89 |
+
intro x hx
|
| 90 |
+
have hnear := (supportLatticeCell_bounds ν r hr 0 z).2 hx.1
|
| 91 |
+
simp only [latticeRadius_zero] at hnear
|
| 92 |
+
have hxz : dist x (z : Ambient d) ≤ 2 * r := hnear
|
| 93 |
+
have hza := (mem_surfaceBallCellCenters ν r hr a z).mp hz
|
| 94 |
+
change dist x a ≤ 7 * r
|
| 95 |
+
exact (dist_triangle x (z : Ambient d) a).trans (by linarith)
|
| 96 |
+
|
| 97 |
+
end
|
| 98 |
+
|
| 99 |
+
end RieszRectifiability
|
| 100 |
+
|
| 101 |
+
end OAI
|