math / data /lean /ComparatorChallenges /BernoulliNonflatInSeven.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.47 kB
import Mathlib
namespace OAI
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal Topology ContDiff
namespace Bernoulli
open scoped _root_.Bernoulli
abbrev Space (d : β„•) := EuclideanSpace ℝ (Fin d)
/-- Compactly supported smooth real tests in the open set. -/
def Test {d : β„•} (D : Set (Space d)) (Ο† : Space d β†’ ℝ) : Prop :=
ContDiff ℝ ∞ Ο† ∧ HasCompactSupport Ο† ∧ tsupport Ο† βŠ† D
/-- Distributional gradient, tested in every constant direction. -/
def WeakGradient {d : β„•} (D : Set (Space d))
(u : Space d β†’ ℝ) (G : Space d β†’ Space d) : Prop :=
βˆ€ Ο†, Test D Ο† β†’ βˆ€ h : Space d,
(∫ x in D, u x * (fderiv ℝ Ο† x) h) =
-(∫ x in D, inner ℝ (G x) h * Ο† x)
/-- HΒΉ(D), with its weak gradient. -/
def H1 {d : β„•} (D : Set (Space d))
(u : Space d β†’ ℝ) (G : Space d β†’ Space d) : Prop :=
MemLp u 2 (volume.restrict D) ∧
MemLp G 2 (volume.restrict D) ∧ WeakGradient D u G
/-- HΒΉβ‚€(D) is HΒΉ-closure of C∞ compactly supported functions.
Both LΒ² errors tend to zero. This does not restrict competitors to smooth ones. -/
def H10 {d : β„•} (D : Set (Space d))
(u : Space d β†’ ℝ) (G : Space d β†’ Space d) : Prop :=
H1 D u G ∧ βˆ€ Ξ΅ : ℝ, 0 < Ξ΅ β†’ βˆƒ Ο† : Space d β†’ ℝ,
Test D Ο† ∧
eLpNorm (fun x => u x - Ο† x) 2 (volume.restrict D) < ENNReal.ofReal Ξ΅ ∧
eLpNorm (fun x => G x - gradient Ο† x) 2 (volume.restrict D) < ENNReal.ofReal Ξ΅
/-- Ballwise HΒΉ_loc, on an open set (balls have compact closure inside D). -/
def H1Loc {d : β„•} (D : Set (Space d))
(u : Space d β†’ ℝ) (G : Space d β†’ Space d) : Prop :=
βˆ€ c : Space d, βˆ€ r : ℝ, 0 < r β†’ Metric.closedBall c r βŠ† D β†’
H1 (Metric.ball c r) u G
/-- The exact volume-one Bernoulli energy, not just Dirichlet energy. -/
def energy {d : β„•} (D : Set (Space d))
(u : Space d β†’ ℝ) (G : Space d β†’ Space d) : ℝ :=
∫ x in D, β€–G xβ€– ^ 2 + if 0 < u x then (1 : ℝ) else 0
/-- Full ballwise local comparison. Competitor and gradient are arbitrary
Sobolev representatives on the ball, with zero-trace difference. -/
def LocalMinimizer {d : β„•} (D : Set (Space d)) (u : Space d β†’ ℝ) : Prop :=
IsOpen D ∧ βˆƒ G : Space d β†’ Space d,
H1Loc D u G ∧ (βˆ€α΅ x βˆ‚volume.restrict D, 0 ≀ u x) ∧
βˆ€ c : Space d, βˆ€ r : ℝ, 0 < r β†’ Metric.closedBall c r βŠ† D β†’
βˆ€ (v : Space d β†’ ℝ) (V : Space d β†’ Space d),
H1 (Metric.ball c r) v V β†’
(βˆ€α΅ x βˆ‚volume.restrict (Metric.ball c r), 0 ≀ v x) β†’
H10 (Metric.ball c r) (fun x => v x - u x) (fun x => V x - G x) β†’
energy (Metric.ball c r) u G ≀ energy (Metric.ball c r) v V
/-- Nonnegative global minimizer, with all centers and all positive radii. -/
def GlobalMinimizer {d : β„•} (u : Space d β†’ ℝ) : Prop :=
LocalMinimizer Set.univ u
def OneHomogeneous {d : β„•} (u : Space d β†’ ℝ) : Prop :=
βˆ€ r : ℝ, 0 < r β†’ βˆ€α΅ x βˆ‚volume, u (r β€’ x) = r * u x
def Nonzero {d : β„•} (u : Space d β†’ ℝ) : Prop :=
¬ (u =ᡐ[volume] fun _ => 0)
/-- Flatness is a.e. equality of HΒΉ representatives. -/
def Flat {d : β„•} (u : Space d β†’ ℝ) : Prop :=
βˆƒ e : Space d, β€–eβ€– = 1 ∧ βˆ€α΅ x βˆ‚volume, u x = max (inner ℝ x e) 0
theorem nonflat_in_seven : βˆƒ u : Space 7 β†’ ℝ,
GlobalMinimizer u ∧ Nonzero u ∧ OneHomogeneous u ∧ ¬ Flat u := by
sorry
end Bernoulli
end
end OAI