Pith. sign in

IndisputableMonolith.Gravity.NonlinearConvergence

IndisputableMonolith/Gravity/NonlinearConvergence.lean · 298 lines · 16 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: pending · generated 2026-07-01 16:31:39.061229+00:00

   1import Mathlib
   2import IndisputableMonolith.Constants
   3import IndisputableMonolith.Gravity.ReggeCalculus
   4
   5/-!
   6# Nonlinear Convergence: Regge Action -> Einstein-Hilbert
   7
   8Records the convergence inputs used when passing from Regge calculus to
   9Einstein-Hilbert geometry.
  10
  11## 2026-05-13 correction: what CMS actually proves
  12
  13Philip Beltracchi caught an overstatement in the previous comments in this
  14file.  We had described Cheeger-Müller-Schrader (1984) as an `O(a^2)` theorem.
  15That is too strong for the general theorem cited from CMS.
  16
  17CMS Theorem 5.1, in Cheeger's 2016 notation, gives a curvature-measure bound
  18of the form
  19
  20`|R_i(U) - R_{i,η}(U)| ≤ c · (Vol(U) · η^(1/2) + Vol(B_{η^(1/2)}(∂U)))`.
  21
  22That is a measure-convergence theorem with an `η^(1/2)` bulk term plus a
  23boundary-tube term.  It is not the same statement as a plain
  24`|S_Regge - S_EH| ≤ C · a^2` bound.
  25
  26This file now separates:
  27
  28* `cms_theorem_5_1_measure_bound`: the CMS-style general Riemannian
  29  curvature-measure convergence input;
  30* `special_quadratic_regge_to_eh_convergence_hypothesis`: the stronger
  31  `O(a^2)` action/curvature-rate hypothesis used by some weak-field or
  32  numerical lattice modules.
  33
  34The old name `regge_to_eh_convergence_axiom` is retained as an abbreviation
  35for the stronger special hypothesis so downstream code keeps compiling, but
  36it should no longer be cited as "the CMS theorem" without qualification.
  37
  38## Mathematical Status
  39
  40This is NOT a new result. The convergence of Regge calculus to GR
  41is established in the literature:
  42
  43- Cheeger, Müller, Schrader (1984): curvature-measure convergence for
  44  piecewise-flat spaces, with the Theorem 5.1 bound recorded below.
  45- Gentle, Miller (1998): explicit second-order convergence in special
  46  numerical settings such as Kasner-type tests.
  47- Brewin, Gentle (2001): reconciliation of convergence behavior in
  48  numerical Regge calculus.
  49- Christiansen (2011): spectral analysis of linearized Regge.
  50
  51We axiomatize these results so that the RS framework can build on
  52them without reproving 40 years of Regge calculus from scratch.
  53The axioms are clearly labeled and can be replaced by full proofs
  54if/when Regge convergence is formalized in Mathlib.
  55
  56## Key hypotheses
  57
  58- `cms_theorem_5_1_measure_bound`: CMS-style `η^(1/2)` measure convergence.
  59- `special_quadratic_regge_to_eh_convergence_hypothesis`: stronger `O(a^2)`
  60  action convergence, used only where a special weak-field/numerical argument
  61  supplies it.
  62- `regge_ricci_convergence_axiom` / `regge_riemann_convergence_axiom`:
  63  retained stronger hypotheses for modules that explicitly assume them.
  64-/
  65
  66namespace IndisputableMonolith
  67namespace Gravity
  68namespace NonlinearConvergence
  69
  70open Constants ReggeCalculus
  71
  72noncomputable section
  73
  74/-! ## CMS Theorem 5.1: general measure convergence -/
  75
  76/-- **CMS Theorem 5.1 shape, scalar real abstraction.**
  77
  78For a smooth Riemannian manifold `M`, a sufficiently fine `Θ`-fat
  79triangulation with mesh `η`, and a submanifold `U` with smooth boundary, CMS
  80prove a curvature-measure estimate of the form
  81
  82`|R_i(U) - R_{i,η}(U)| ≤ c · (Vol(U) · sqrt η + Vol(B_{sqrt η}(∂U)))`.
  83
  84The real variables here are the scalar placeholders for those geometric
  85quantities:
  86
  87* `RiU`: smooth Lipschitz-Killing curvature measure on `U`;
  88* `RiEtaU`: piecewise-flat / Regge curvature measure on `U`;
  89* `VolU`: volume of `U`;
  90* `boundaryTubeVol`: volume of the `sqrt η`-tubular neighborhood of `∂U`;
  91* `η`: mesh size;
  92* `c`: the CMS constant depending on curvature bounds and fatness.
  93
  94This is deliberately **not** an `O(η^2)` statement. -/
  95def cms_theorem_5_1_measure_bound : Prop :=
  96  ∀ (RiU RiEtaU VolU boundaryTubeVol η c : ℝ),
  97    0 ≤ VolU → 0 ≤ boundaryTubeVol → 0 < η → η < 1 → 0 < c →
  98      |RiU - RiEtaU| ≤ c * (VolU * Real.sqrt η + boundaryTubeVol)
  99
 100/-- Package form of the CMS Theorem 5.1-style input. -/
 101structure CMSTheorem51 where
 102  measure_bound : cms_theorem_5_1_measure_bound
 103
 104/-! ## Stronger special-purpose quadratic hypotheses -/
 105
 106/-- **Special stronger hypothesis (not CMS Theorem 5.1 in general).**
 107
 108Some weak-field cubic-lattice or numerical Regge settings can carry
 109second-order truncation/convergence estimates.  That is a separate input from
 110the general CMS curvature-measure theorem above.
 111
 112This is the old `regge_to_eh_convergence_axiom` statement, retained under a
 113more honest name. -/
 114def special_quadratic_regge_to_eh_convergence_hypothesis : Prop :=
 115  ∀ (S_EH : ℝ) (a : ℝ), 0 < a → a < 1 →
 116    ∃ (S_Regge : ℝ) (C : ℝ), 0 < C ∧
 117      |S_Regge - S_EH| ≤ C * a ^ 2
 118
 119/-- Backward-compatible name.  Do not cite this as the CMS theorem without the
 120qualification that it is a stronger special-purpose `O(a^2)` hypothesis. -/
 121abbrev regge_to_eh_convergence_axiom : Prop :=
 122  special_quadratic_regge_to_eh_convergence_hypothesis
 123
 124/-- **AXIOM (Regge Ricci convergence)**:
 125    The Regge curvature (sum of deficit angles / dual volumes)
 126    converges to the Ricci scalar at `O(a^2)`.
 127
 128    This is a stronger special-purpose hypothesis, not the general CMS
 129    Theorem 5.1 measure estimate above.
 130
 131    For a smooth metric g at point x:
 132      |R_Regge(x, a) - R(x)| <= C * a^2
 133
 134    This follows from the action convergence by the fundamental
 135    theorem of calculus of variations. -/
 136def regge_ricci_convergence_axiom : Prop :=
 137  ∀ (R_continuum : ℝ) (a : ℝ), 0 < a → a < 1 →
 138    ∃ (R_Regge : ℝ) (C : ℝ), 0 < C ∧
 139      |R_Regge - R_continuum| ≤ C * a ^ 2
 140
 141/-- **AXIOM (Regge Riemann convergence)**:
 142    The holonomy around a plaquette of the simplicial complex
 143    converges to the Riemann curvature tensor at the dual point.
 144
 145    This local holonomy estimate is a special-purpose hypothesis for modules
 146    that need component-level curvature control; it is not the scalar CMS
 147    Theorem 5.1 measure statement.
 148
 149    For a smooth metric g, coordinates x^mu, and small loop
 150    of area ~ a^2 in the (mu, nu) plane:
 151      Holonomy = I + a^2 R^rho_sigma_mu_nu + O(a^4)
 152
 153    This is the geometric content of the deficit angle:
 154    delta_h / A_h -> sectional curvature K(Pi) where Pi is
 155    the 2-plane dual to the hinge h. -/
 156def regge_riemann_convergence_axiom : Prop :=
 157  ∀ (R_component : ℝ) (a : ℝ), 0 < a → a < 1 →
 158    ∃ (holonomy_deviation : ℝ) (C : ℝ), 0 < C ∧
 159      |holonomy_deviation - a ^ 2 * R_component| ≤ C * a ^ 4
 160
 161/-! ## Rate comparisons and vanishing bounds -/
 162
 163/-- The CMS bulk term `sqrt η` vanishes as `η -> 0`. -/
 164theorem cms_sqrt_bulk_vanishes (C VolU : ℝ) :
 165    Filter.Tendsto (fun η : ℝ => C * (VolU * Real.sqrt η)) (nhds 0) (nhds 0) := by
 166  have hsqrt : Filter.Tendsto (fun η : ℝ => Real.sqrt η) (nhds 0) (nhds 0) := by
 167    simpa using (Real.continuous_sqrt.tendsto 0)
 168  have hVol : Filter.Tendsto (fun η : ℝ => VolU * Real.sqrt η) (nhds 0) (nhds 0) := by
 169    have hconst : Filter.Tendsto (fun _ : ℝ => VolU) (nhds 0) (nhds VolU) :=
 170      tendsto_const_nhds
 171    simpa using hconst.mul hsqrt
 172  have hC : Filter.Tendsto (fun _ : ℝ => C) (nhds 0) (nhds C) := tendsto_const_nhds
 173  simpa using hC.mul hVol
 174
 175/-- If the boundary-tube volume also vanishes as `η -> 0`, then the whole
 176CMS Theorem 5.1 right-hand side vanishes. -/
 177theorem cms_bound_vanishes
 178    (C VolU : ℝ) (boundaryTubeVol : ℝ → ℝ)
 179    (hBoundary : Filter.Tendsto boundaryTubeVol (nhds 0) (nhds 0)) :
 180    Filter.Tendsto
 181      (fun η : ℝ => C * (VolU * Real.sqrt η + boundaryTubeVol η))
 182      (nhds 0) (nhds 0) := by
 183  have hbulk : Filter.Tendsto (fun η : ℝ => VolU * Real.sqrt η) (nhds 0) (nhds 0) := by
 184    have hsqrt : Filter.Tendsto (fun η : ℝ => Real.sqrt η) (nhds 0) (nhds 0) := by
 185      simpa using (Real.continuous_sqrt.tendsto 0)
 186    have hconst : Filter.Tendsto (fun _ : ℝ => VolU) (nhds 0) (nhds VolU) :=
 187      tendsto_const_nhds
 188    simpa using hconst.mul hsqrt
 189  have hsum :
 190      Filter.Tendsto (fun η : ℝ => VolU * Real.sqrt η + boundaryTubeVol η)
 191        (nhds 0) (nhds (0 + 0)) := hbulk.add hBoundary
 192  have hC : Filter.Tendsto (fun _ : ℝ => C) (nhds 0) (nhds C) := tendsto_const_nhds
 193  simpa [mul_add] using hC.mul hsum
 194
 195/-- The convergence rate is second order: error = O(a^2).
 196    This is a property of the stronger special-purpose quadratic hypothesis,
 197    not the general CMS Theorem 5.1 bound. -/
 198theorem convergence_is_second_order (a : ℝ) (_ha : 0 < a) (_ha1 : a < 1) :
 199    (a / 2) ^ 2 = a ^ 2 / 4 := by ring
 200
 201/-- Second-order convergence implies the special quadratic error vanishes as
 202`a -> 0`. -/
 203theorem quadratic_error_vanishes (C : ℝ) (_hC : 0 < C) :
 204    Filter.Tendsto (fun a => C * a ^ 2) (nhds 0) (nhds 0) := by
 205  have h : Continuous (fun a : ℝ => C * a ^ 2) := by continuity
 206  have := h.tendsto (0 : ℝ)
 207  simp at this
 208  exact this
 209
 210/-- Backward-compatible old theorem name. -/
 211theorem error_vanishes (C : ℝ) (hC : 0 < C) :
 212    Filter.Tendsto (fun a => C * a ^ 2) (nhds 0) (nhds 0) :=
 213  quadratic_error_vanishes C hC
 214
 215/-! ## Connection to RS -/
 216
 217/-- In the RS framework, the Regge action convergence gives:
 218    S_Regge(J-cost lattice, a) -> (1/2*kappa_RS) * integral R sqrt(g)
 219
 220    Combined with:
 221    - J-cost minimization implies delta S_Regge = 0 (variational dynamics)
 222    - delta S_EH = 0 implies EFE (Hilbert variation)
 223    - kappa_RS = 8*phi^5 (derived coupling)
 224
 225    This gives the FULL (nonlinear) Einstein field equations
 226    from the RS discrete ledger, conditional on the convergence axiom. -/
 227structure RSReggeConvergence where
 228  /-- General CMS Theorem 5.1-style curvature-measure convergence. -/
 229  cms_measure_convergence : cms_theorem_5_1_measure_bound
 230  /-- Stronger special-purpose action convergence, if a module needs `O(a^2)`. -/
 231  action_convergence : regge_to_eh_convergence_axiom
 232  ricci_convergence : regge_ricci_convergence_axiom
 233  kappa_derived : rs_kappa = 8 * phi ^ 5
 234  kappa_positive : 0 < rs_kappa
 235
 236/-- If the special quadratic convergence hypotheses hold, then the RS lattice
 237produces the old `O(a^2)`-style error envelope.  This is intentionally separate
 238from the general CMS measure-convergence input. -/
 239def rs_implies_gr (_conv : RSReggeConvergence) : Prop :=
 240  ∀ (a : ℝ), 0 < a → a < 1 →
 241    ∃ (error : ℝ), |error| ≤ rs_kappa * a ^ 2
 242
 243/-! ## What Would Be Needed to Prove (Instead of Axiomatize) -/
 244
 245/-- To PROVE the convergence axioms from scratch in Lean, one would need:
 246
 247    1. Simplicial geometry: volumes, angles, areas as functions of edge lengths
 248       (Cayley-Menger determinants, generalized to all dimensions)
 249    2. The Schläfli identity: sum A_h * d(delta_h)/dL_e = 0
 250       (a purely geometric identity; provable but technical)
 251    3. Comparison geometry: relating simplicial metrics to smooth metrics
 252       (this requires Riemannian geometry in Mathlib, which is incomplete)
 253    4. Error analysis: bounding the difference between Regge curvature
 254       measures and smooth curvature measures in terms of mesh quality.
 255       CMS gives the `η^(1/2)` + boundary-tube form above; `O(a^2)` needs
 256       extra special structure.
 257    5. Compactness and convergence: extracting a convergent subsequence
 258       and identifying the limit (standard but requires functional analysis)
 259
 260    This is a multi-year project for the Mathlib community.
 261    We axiomatize instead, clearly labeling the axioms. -/
 262def proof_requirements : List String :=
 263  [ "Simplicial geometry (Cayley-Menger)"
 264  , "Schläfli identity"
 265  , "Comparison geometry (smooth vs piecewise-flat)"
 266  , "Curvature error analysis"
 267  , "Compactness and convergence extraction" ]
 268
 269/-! ## Certificate -/
 270
 271structure NonlinearConvergenceCert where
 272  cms_bound : cms_theorem_5_1_measure_bound → cms_theorem_5_1_measure_bound
 273  cms_bulk_vanishes : ∀ C VolU : ℝ,
 274    Filter.Tendsto (fun η : ℝ => C * (VolU * Real.sqrt η)) (nhds 0) (nhds 0)
 275  cms_full_bound_vanishes : ∀ (C VolU : ℝ) (boundaryTubeVol : ℝ → ℝ),
 276    Filter.Tendsto boundaryTubeVol (nhds 0) (nhds 0) →
 277    Filter.Tendsto
 278      (fun η : ℝ => C * (VolU * Real.sqrt η + boundaryTubeVol η))
 279      (nhds 0) (nhds 0)
 280  second_order : ∀ a : ℝ, 0 < a → a < 1 → (a/2)^2 = a^2/4
 281  error_goes_to_zero : ∀ C : ℝ, 0 < C →
 282    Filter.Tendsto (fun a => C * a ^ 2) (nhds 0) (nhds 0)
 283  kappa : rs_kappa = 8 * phi ^ 5
 284
 285theorem nonlinear_convergence_cert : NonlinearConvergenceCert where
 286  cms_bound := fun h => h
 287  cms_bulk_vanishes := cms_sqrt_bulk_vanishes
 288  cms_full_bound_vanishes := cms_bound_vanishes
 289  second_order := fun _ _ _ => convergence_is_second_order _ (by linarith) (by linarith)
 290  error_goes_to_zero := error_vanishes
 291  kappa := rs_kappa_value
 292
 293end
 294
 295end NonlinearConvergence
 296end Gravity
 297end IndisputableMonolith
 298

source mirrored from github.com/jonwashburn/shape-of-logic