Download data/lean/ComparatorChallenges/BernoulliNonflatInSeven.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.47 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/ComparatorChallenges/BernoulliNonflatInSeven.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/ComparatorChallenges/BernoulliNonflatInSeven.lean
-
curl -L -o BernoulliNonflatInSeven.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/ComparatorChallenges/BernoulliNonflatInSeven.lean
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 | |