math / data /lean /OAI /Geometry /CAT0Fillings /Model.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
5.39 kB
import Mathlib
namespace OAI
open Set Filter MeasureTheory
open scoped Topology ENNReal NNReal
namespace CAT0Fillings
attribute [local instance] Classical.propDecidable
universe u
abbrev Euc (k : β„•) := EuclideanSpace ℝ (Fin k)
abbrev Functional (X : Type u) (k : β„•) := (X β†’ ℝ) β†’ (Fin k β†’ X β†’ ℝ) β†’ ℝ
section MetricCurrents
variable {X : Type u} [MetricSpace X] [MeasurableSpace X] [BorelSpace X]
def BoundedLip (b : X β†’ ℝ) : Prop :=
(βˆƒ K : ℝβ‰₯0, LipschitzWith K b) ∧ βˆƒ M : ℝ, βˆ€ x, |b x| ≀ M
def Admissible {k : β„•} (b : X β†’ ℝ) (Ο€ : Fin k β†’ X β†’ ℝ) : Prop :=
BoundedLip b ∧ βˆ€ i, βˆƒ K : ℝβ‰₯0, LipschitzWith K (Ο€ i)
def Controls {k : β„•} (T : Functional X k) (ΞΌ : Measure X) : Prop :=
βˆ€ (b : X β†’ ℝ) (Ο€ : Fin k β†’ X β†’ ℝ), BoundedLip b β†’
(βˆ€ i, LipschitzWith 1 (Ο€ i)) β†’
|T b Ο€| ≀ ∫ x, |b x| βˆ‚ΞΌ
noncomputable def mass {k : β„•} (T : Functional X k) : ℝ :=
sInf {r : ℝ | βˆƒ ΞΌ : Measure X,
IsFiniteMeasure μ ∧ Controls T μ ∧ r = μ.real univ}
structure IsMetricCurrent {k : β„•} (T : Functional X k) : Prop where
offDomain : βˆ€ b Ο€, Β¬Admissible b Ο€ β†’ T b Ο€ = 0
linearFirst : βˆ€ b₁ bβ‚‚ Ο€ (a c : ℝ), BoundedLip b₁ β†’ BoundedLip bβ‚‚ β†’
(βˆ€ i, βˆƒ K : ℝβ‰₯0, LipschitzWith K (Ο€ i)) β†’
T (fun x => a * b₁ x + c * bβ‚‚ x) Ο€ = a * T b₁ Ο€ + c * T bβ‚‚ Ο€
linearCoord : βˆ€ b Ο€ i f (a c : ℝ), Admissible b Ο€ β†’
(βˆƒ K : ℝβ‰₯0, LipschitzWith K f) β†’
T b (Function.update Ο€ i (fun x => a * Ο€ i x + c * f x)) =
a * T b Ο€ + c * T b (Function.update Ο€ i f)
sequentialContinuity : βˆ€ b Ο€ (Ο€s : β„• β†’ Fin k β†’ X β†’ ℝ), BoundedLip b β†’
(βˆ€ i, βˆƒ K : ℝβ‰₯0, βˆ€ j, LipschitzWith K (Ο€s j i)) β†’
(βˆ€ i x, Tendsto (fun j => Ο€s j i x) atTop (𝓝 (Ο€ i x))) β†’
Tendsto (fun j => T b (Ο€s j)) atTop (𝓝 (T b Ο€))
locality : βˆ€ b Ο€, Admissible b Ο€ β†’
(βˆƒ (i : Fin k) (U : Set X) (c : ℝ), IsOpen U ∧ Function.support b βŠ† U ∧
βˆ€ x ∈ U, Ο€ i x = c) β†’ T b Ο€ = 0
finiteMass : βˆƒ ΞΌ : Measure X, IsFiniteMeasure ΞΌ ∧ Controls T ΞΌ
noncomputable def boundarySucc {k : β„•} (T : Functional X (k + 1)) : Functional X k :=
fun b Ο€ => if Admissible b Ο€ then T (fun _ => 1) (Matrix.vecCons b Ο€) else 0
noncomputable def boundary : {k : β„•} β†’ Functional X k β†’ Functional X (k - 1)
| 0, _ => fun _ _ => 0
| _ + 1, T => boundarySucc T
structure IntegerChart (X : Type u) [MetricSpace X] (k : β„•) where
domain : Set (Euc k)
borel : MeasurableSet domain
bounded : Bornology.IsBounded domain
param : domain β†’ X
bilipschitz : βˆƒ L U : ℝβ‰₯0, LipschitzWith L param ∧ AntilipschitzWith U param
multiplicity : Euc k β†’ β„€
integrable : Integrable (fun z => (multiplicity z : ℝ)) (volume.restrict domain)
namespace IntegerChart
variable {k : β„•} (C : IntegerChart X k)
noncomputable def scalar (f : X β†’ ℝ) (z : Euc k) : ℝ :=
if hz : z ∈ C.domain then f (C.param ⟨z, hz⟩) else 0
noncomputable def jacobian (Ο€ : Fin k β†’ X β†’ ℝ) (z : Euc k) : ℝ :=
Matrix.det (fun i j =>
(fderivWithin ℝ (C.scalar (Ο€ i)) C.domain z) (EuclideanSpace.single j 1))
noncomputable def action : Functional X k :=
fun b Ο€ => if Admissible b Ο€ then
∫ z in C.domain, (C.multiplicity z : ℝ) * C.scalar b z * C.jacobian Ο€ z
else 0
def image : Set X := Set.range C.param
end IntegerChart
def IntegerRectifiable {k : β„•} (T : Functional X k) : Prop :=
βˆƒ C : β„• β†’ IntegerChart X k,
Pairwise (fun i j => Disjoint (C i).image (C j).image) ∧
(βˆ€ i, IsMetricCurrent (C i).action) ∧
Summable (fun i => mass (C i).action) ∧
βˆ€ b Ο€, T b Ο€ = βˆ‘' i, (C i).action b Ο€
def IsIntegral : (k : β„•) β†’ Functional X k β†’ Prop
| 0, T => IsMetricCurrent T ∧ IntegerRectifiable T
| _ + 1, T => IsMetricCurrent T ∧ IntegerRectifiable T ∧
IsMetricCurrent (boundarySucc T) ∧ IntegerRectifiable (boundarySucc T)
abbrev IntegralCurrent (X : Type u) [MetricSpace X] [MeasurableSpace X] [BorelSpace X]
(k : β„•) := { T : Functional X k // IsIntegral k T }
def CompactlySupported {k : β„•} (T : Functional X k) : Prop :=
βˆƒ K : Set X, IsCompact K ∧
βˆ€ b Ο€, Admissible b Ο€ β†’ (βˆ€ x ∈ K, b x = 0) β†’ T b Ο€ = 0
def IsCycle {k : β„•} (T : Functional X k) : Prop := boundary T = fun _ _ => 0
end MetricCurrents
section Geometry
variable (X : Type u) [MetricSpace X]
def IsCAT0 : Prop :=
βˆƒ segment : X β†’ X β†’ ℝ β†’ X,
(βˆ€ x y, segment x y 0 = x ∧ segment x y 1 = y) ∧
(βˆ€ x y s t, s ∈ Icc (0 : ℝ) 1 β†’ t ∈ Icc (0 : ℝ) 1 β†’
dist (segment x y s) (segment x y t) = |s - t| * dist x y) ∧
(βˆ€ o x y s t, s ∈ Icc (0 : ℝ) 1 β†’ t ∈ Icc (0 : ℝ) 1 β†’
dist (segment o x s) (segment o y t) ^ 2 ≀
(s * dist o x - t * dist o y) ^ 2 +
s * t * ((dist x y) ^ 2 - (dist o x - dist o y) ^ 2))
end Geometry
noncomputable def omega (k : β„•) : ℝ :=
(volume (Metric.ball (0 : Euc k) 1)).toReal
noncomputable def sphereArea (n : β„•) : ℝ := (n + 1 : ℝ) * omega (n + 1)
noncomputable def fillingCoefficient (n : β„•) : ℝ :=
1 / ((n + 1 : ℝ) * (sphereArea n) ^ (1 / (n : ℝ)))
noncomputable def fillingPower (n : β„•) : ℝ := (n + 1 : ℝ) / (n : ℝ)
end CAT0Fillings
end OAI