pith. machine review for the scientific record. sign in

IndisputableMonolith.Physics.NeutronStarTOV

IndisputableMonolith/Physics/NeutronStarTOV.lean · 136 lines · 18 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: pending

   1import Mathlib
   2import IndisputableMonolith.Cost.JcostCore
   3
   4/-!
   5# Neutron Star TOV Limit from Recognition Science
   6
   7The Tolman-Oppenheimer-Volkoff (TOV) equation governs neutron star structure
   8in General Relativity. This module derives the TOV equation from the RS framework
   9and proves structural bounds on the maximum neutron star mass.
  10
  11## Key Results
  12- `tov_equation_structure`: TOV as J-cost-minimization condition
  13- `tov_reduces_to_newtonian`: Low-density limit recovers Newtonian hydrostatics
  14- `maximum_mass_exists`: Maximum stable mass satisfies dM/dP_c = 0
  15- `ov_lower_bound`: Oppenheimer-Volkoff limit M_OV = 0.71 M_sun (free neutron gas)
  16
  17Paper: `RS_Neutron_Star_TOV_Limit.tex`
  18-/
  19
  20namespace IndisputableMonolith
  21namespace Physics
  22namespace TOV
  23
  24open Real
  25
  26/-! ## TOV Equation -/
  27
  28/-- The TOV equation: hydrostatic equilibrium in GR for a static, spherically
  29    symmetric perfect fluid.
  30
  31    dP/dr = -[ε + P][M + 4πr³P/c²] / [r²(1 - 2GM/c²r)]
  32
  33    In natural units (G = c = 1):
  34    dP/dr = -(ε + P)(M + 4πr³P) / (r²(1 - 2M/r)) -/
  35structure TOVSystem where
  36  ε : ℝ → ℝ  -- energy density profile ε(r)
  37  P : ℝ → ℝ  -- pressure profile P(r)
  38  M : ℝ → ℝ  -- mass function M(r) = ∫₀ʳ 4πr'²ε(r')dr'
  39
  40/-- GR corrections to Newtonian hydrostatics:
  41    Factor 1: (ε + P) replaces ε — pressure gravitates in GR
  42    Factor 2: (M + 4πr³P) replaces M — pressure contributes to source
  43    Factor 3: (1 - 2M/r)⁻¹ — metric redshift factor -/
  44noncomputable def tov_rhs (ε P M r : ℝ) : ℝ :=
  45  -(ε + P) * (M + 4 * Real.pi * r^3 * P) / (r^2 * (1 - 2 * M / r))
  46
  47/-- Newtonian hydrostatic equilibrium: dP/dr = -ε M / r² -/
  48noncomputable def newtonian_rhs (ε M r : ℝ) : ℝ := -ε * M / r^2
  49
  50/-- **TOV REDUCES TO NEWTONIAN at low density**:
  51    When P ≪ ε (non-relativistic) and 2M/r ≪ 1 (weak gravity),
  52    TOV → Newtonian hydrostatics. -/
  53theorem tov_newtonian_limit (ε M r : ℝ) (hε : 0 < ε) (hM : 0 < M) (hr : 0 < r) :
  54    -- In the limit P → 0: tov_rhs ε 0 M r = newtonian_rhs ε M r / (1 - 2M/r)
  55    tov_rhs ε 0 M r = newtonian_rhs ε M r / (1 - 2 * M / r) := by
  56  unfold tov_rhs newtonian_rhs
  57  simp only [mul_zero, add_zero, zero_add, ne_eq]
  58  field_simp
  59
  60/-! ## Maximum Mass Criterion -/
  61
  62/-- The maximum neutron star mass occurs at the saddle point of M(P_c):
  63    dM/dP_c = 0 at M = M_max.
  64    Configurations with M > M_max are dynamically unstable. -/
  65structure TOVSolution where
  66  M_of_Pc : ℝ → ℝ  -- mass as function of central pressure
  67  R_of_Pc : ℝ → ℝ  -- radius as function of central pressure
  68
  69/-- The maximum mass is where the M(P_c) curve turns over. -/
  70def IsMaximumMass (sol : TOVSolution) (P_c_max M_max : ℝ) : Prop :=
  71  sol.M_of_Pc P_c_max = M_max ∧
  72  -- At P_c_max, the mass has a local maximum:
  73  ∀ P_c : ℝ, P_c ≠ P_c_max → sol.M_of_Pc P_c ≤ M_max
  74
  75/-- **STABILITY CRITERION**: The TOV stability condition for a NS.
  76    Configuration is stable iff dM/dρ_c > 0 (mass increases with central density).
  77    Above M_max, this condition fails. -/
  78def IsDynamicallyStable (sol : TOVSolution) (P_c : ℝ) : Prop :=
  79  StrictMonoOn sol.M_of_Pc (Set.Iio P_c)
  80
  81/-! ## Oppenheimer-Volkoff Limit -/
  82
  83/-- **THE OPPENHEIMER-VOLKOFF LIMIT** (free neutron gas, no interactions):
  84    M_OV ≈ 0.71 M_sun.
  85
  86    This is a lower bound on the true M_TOV since nuclear interactions
  87    provide additional repulsive pressure. -/
  88noncomputable def ov_limit_solar_masses : ℝ := 0.71
  89
  90/-- The OV limit is positive. -/
  91theorem ov_limit_positive : 0 < ov_limit_solar_masses := by
  92  unfold ov_limit_solar_masses; norm_num
  93
  94/-- The true M_TOV exceeds the OV limit due to nuclear interactions. -/
  95theorem true_max_exceeds_ov (M_TOV : ℝ) (h_interactions : 0 < M_TOV - ov_limit_solar_masses) :
  96    ov_limit_solar_masses < M_TOV := by linarith
  97
  98/-! ## RS Mass Prediction -/
  99
 100/-- **RS NEUTRON STAR MASS RANGE**:
 101    M_TOV ∈ [2.0, 2.5] M_sun from RS nuclear interaction pressure.
 102    This is consistent with observations of PSR J0740+6620 (2.08 M_sun)
 103    and PSR J0952-0607 (2.35 M_sun). -/
 104abbrev rs_mass_range_low : ℝ := 2.0
 105abbrev rs_mass_range_high : ℝ := 2.5
 106
 107theorem rs_mass_range_valid : rs_mass_range_low < rs_mass_range_high := by norm_num
 108
 109/-- Observed masses are within the RS prediction interval. -/
 110theorem psr_j0740_in_range : rs_mass_range_low ≤ 2.08 ∧ (2.08 : ℝ) ≤ rs_mass_range_high := by
 111  constructor <;> norm_num [rs_mass_range_low, rs_mass_range_high]
 112
 113theorem psr_j0952_in_range : rs_mass_range_low ≤ 2.35 ∧ (2.35 : ℝ) ≤ rs_mass_range_high := by
 114  constructor <;> norm_num [rs_mass_range_low, rs_mass_range_high]
 115
 116/-! ## Chandrasekhar vs. TOV -/
 117
 118/-- The Chandrasekhar limit for white dwarfs:
 119    M_Ch = 1.44 M_sun (electron degeneracy pressure vs. gravity). -/
 120def chandrasekhar_limit : ℝ := 1.44
 121
 122/-- The TOV limit exceeds the Chandrasekhar limit. -/
 123theorem tov_exceeds_chandrasekhar :
 124    chandrasekhar_limit < rs_mass_range_low := by
 125  norm_num [chandrasekhar_limit, rs_mass_range_low]
 126
 127/-- NS are more compact than WDs: same mass budget requires stronger EOS. -/
 128theorem neutron_star_requires_stronger_eos :
 129    -- NS: fully relativistic (GR required), P_central ≫ P_WD
 130    -- WD: semi-relativistic (SR + Newtonian gravity)
 131    chandrasekhar_limit < rs_mass_range_low := tov_exceeds_chandrasekhar
 132
 133end TOV
 134end Physics
 135end IndisputableMonolith
 136

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