File size: 3,751 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | import Mathlib
namespace OAI
noncomputable section
open MeasureTheory Set
open scoped ENNReal
namespace CubicTorus
abbrev Cover := EuclideanSpace β (Fin 3)
abbrev Torus := PiLp 2 (fun _ : Fin 3 => AddCircle (1 : β))
/-- The quotient RΒ³ β RΒ³/ZΒ³ in orthonormal coordinates. -/
def quotientMap (x : Cover) : Torus :=
WithLp.toLp 2 (fun i => (x i : AddCircle (1 : β)))
/-- One unit-volume fundamental domain; its boundary is immaterial to integration. -/
def fundamentalCube : Set Cover := {x | β i, 0 β€ x i β§ x i < 1}
/-- The Riemannian volume measure of the unit flat torus. -/
def torusVolume : Measure Torus :=
Measure.map quotientMap (volume.restrict fundamentalCube)
/-- An integer lattice vector in the Euclidean cover. -/
def latticeVector (n : Fin 3 β β€) : Cover := WithLp.toLp 2 (fun i => (n i : β))
/-- The smooth vector fields on the flat torus with pointwise length at most one,
expressed as ZΒ³-periodic fields on its Euclidean cover. The explicit ββ index
is C^β; top of WithTop ββ would instead mean analytic in this Mathlib. -/
def AdmissibleField (F : Cover β Cover) : Prop :=
ContDiff β (β€ : ββ) F β§
(β (n : Fin 3 β β€) (x : Cover), F (x + latticeVector n) = F x) β§
β x, βF xβ β€ 1
/-- Euclidean divergence in the orthonormal coordinate frame. -/
def divergence (F : Cover β Cover) (x : Cover) : β :=
β i : Fin 3, (fderiv β F x (EuclideanSpace.single i 1)) i
/-- De Giorgi perimeter, allowed to be infinite; no regularity of E is imposed. -/
def perimeter (E : Set Torus) : ββ₯0β :=
β¨ (F : Cover β Cover) (_ : AdmissibleField F),
ENNReal.ofReal (β« x in fundamentalCube β© quotientMap β»ΒΉ' E, divergence F x)
/-- Finite-perimeter measurable regions, including all null-set modifications. -/
def FinitePerimeter (E : Set Torus) : Prop :=
NullMeasurableSet E torusVolume β§ perimeter E < β€
/-- A global perimeter minimizer under the prescribed volume constraint. -/
def IsMinimizerAt (V : β) (E : Set Torus) : Prop :=
FinitePerimeter E β§ torusVolume E = ENNReal.ofReal V β§
β F : Set Torus, FinitePerimeter F β torusVolume F = ENNReal.ofReal V β
perimeter E β€ perimeter F
/-- The candidate unit-torus isoperimetric profile. -/
def candidateProfile (V : β) : β :=
let v := min V (1 - V)
min ((36 * Real.pi) ^ (1 / 3 : β) * v ^ (2 / 3 : β))
(min (2 * Real.sqrt (Real.pi * v)) 2)
/-- Canonical centered ball. Its radius on the listed branch is below 1/2. -/
def canonicalBall (V : β) : Set Torus :=
Metric.ball 0 ((3 * V / (4 * Real.pi)) ^ (1 / 3 : β))
/-- Canonical tube around the shortest closed geodesic in coordinate direction 0. -/
def canonicalTube (V : β) : Set Torus :=
{x | βx 1β ^ 2 + βx 2β ^ 2 < (Real.sqrt (V / Real.pi)) ^ 2}
/-- Canonical slab of width V between two parallel coordinate tori. -/
def canonicalSlab (V : β) : Set Torus := {x | βx 0β < V / 2}
/-- Equality of regions up to ambient flat isometry and a null set. -/
def CongruentAE (E F : Set Torus) : Prop :=
β Ο : Torus βα΅’ Torus, E =α΅[torusVolume] (Ο '' F)
/-- Exactly the closed phase ranges, so adjacent types are BOTH included at ties. -/
def SmallStandardRegion (V : β) (E : Set Torus) : Prop :=
(V β€ 4 * Real.pi / 81 β§ CongruentAE E (canonicalBall V)) β¨
(4 * Real.pi / 81 β€ V β§ V β€ 1 / Real.pi β§ CongruentAE E (canonicalTube V)) β¨
(1 / Real.pi β€ V β§ CongruentAE E (canonicalSlab V))
/-- The equality class at every interior volume, including complementation. -/
def StandardRegionAt (V : β) (E : Set Torus) : Prop :=
if V β€ 1 / 2 then SmallStandardRegion V E
else SmallStandardRegion (1 - V) EαΆ
end CubicTorus
end
end OAI
|