math / data /lean /ComparatorChallenges /SignedFiniteBand.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.75 kB
import Mathlib
namespace OAI
noncomputable section
namespace SignedDisk
open MeasureTheory Set
open scoped ENNReal NNReal Topology ContDiff
namespace CenteredDiskEndpoint
/-- The Euclidean plane, with its Euclidean norm. -/
abbrev Plane := EuclideanSpace ℝ (Fin 2)
def diskAverage (f : Plane β†’ ℝ) (x : Plane) (r : ℝ) : ℝ :=
(∫ y in Metric.ball x r, f y) / (Real.pi * r ^ 2)
/-- The i-th coordinate derivative of a smooth test function. -/
def testPartial (Ο† : Plane β†’ ℝ) (i : Fin 2) (x : Plane) : ℝ :=
fderiv ℝ Ο† x (EuclideanSpace.single i 1)
/-- Distributional first derivatives represented by a vector-valued function. -/
def HasWeakGradient (f : Plane β†’ ℝ) (g : Plane β†’ Plane) : Prop :=
βˆ€ (Ο† : Plane β†’ ℝ), ContDiff ℝ ∞ Ο† β†’ HasCompactSupport Ο† β†’
βˆ€ i : Fin 2, (∫ x, f x * testPartial Ο† i x) = -∫ x, g x i * Ο† x
/-- The gradient L1 norm in Euclidean norm. -/
def gradientNorm (g : Plane β†’ Plane) : ℝ := ∫ x, β€–g xβ€–
/-- Signed envelope over all real radii in the closed band, including its endpoints. -/
def signedBand (f : Plane β†’ ℝ) (a b : ℝ) (x : Plane) : ℝ :=
sSup ((fun r => diskAverage f x r) '' Icc a b)
def SignedFiniteBandStatement : Prop :=
βˆƒ C : ℝ, 0 ≀ C ∧
βˆ€ (f : Plane β†’ ℝ), ContDiff ℝ ∞ f β†’ HasCompactSupport f β†’
βˆ€ (a : ℝ), 0 < a β†’ βˆ€ m : β„•,
LocallyIntegrable (signedBand f a ((2 : ℝ)^m * a)) ∧
βˆƒ G : Plane β†’ Plane, Integrable G ∧
HasWeakGradient (signedBand f a ((2 : ℝ)^m * a)) G ∧
gradientNorm G ≀ C * gradientNorm (gradient f)
theorem main_signed_finite_band : SignedFiniteBandStatement := by
sorry
end CenteredDiskEndpoint
end SignedDisk
end
end OAI