Encyclopedia Cosmology Cosmology Grand Potential G Star S From Potential
ARTICLE 4 claims 4 theorems
Cosmology Grand Potential G Star S From Potential
A single thermodynamic potential, not a list of assumptions, fixes the number 43/11 that counts how many particle species filled the early universe.
The effective degrees of freedom
In the standard cosmology of the early universe, the quantity g*s (pronounced "g star S") counts the effective number of particle species contributing to entropy density. It appears in the formula s = (2π²/45)·g*s·T³, where s is entropy density and T is temperature. The standard textbook value after electron-positron annihilation is g*s = 43/11, a number that enters calculations of the baryon-to-photon ratio. The classical derivation requires two thermodynamic identities, the Euler relation and the Gibbs–Duhem relation, as separate assumptions alongside the Friedmann equations.
The Recognition Science declaration gStarS_from_potential (a theorem in the framework's machine-checked library of formal theorems) shows that both identities follow from a single structural statement: the pressure of the coupled sector is a differentiable potential with entropy density s = dP/dT. This is the definition of local equilibrium, not an extra dynamical assumption. The theorem proves that if the Friedmann continuity equation holds and the pressure has this potential form, then comoving entropy is conserved and the present-day entropy density takes the form (2π²/45)·(43/11)·T³. The Euler and Gibbs–Duhem relations are derived as algebraic consequences of the Legendre transform structure, not postulated.
The theorem also instantiates the potential with statistical mechanics. For a massless Bose/Fermi plasma, the pressure is the log-kernel integral of the grand partition function. The framework's library derives the closed forms P = (π²/90)·(g_B + (7/8)·g_F)·T⁴ and ρ = (π²/30)·(g_B + (7/8)·g_F)·T⁴ via Mellin transforms, proving the radiation equation of state p = ρ/3 as a theorem of the ensemble rather than an input. The temperature derivative of the pressure exactly matches the independently derived radiation entropy, and the Legendre transform T·s − P reproduces the energy integrals. This internal consistency is what forces the 4/11 neutrino dilution and hence the 43/11 in g*s.
What the declaration does not claim is equally precise. It does not derive the grand-canonical form of the plasma pressure at the boundaries; that statistical mechanics input remains a model choice, though its integrals are derived. It does not derive the Friedmann equations themselves, which are discharged separately. It does not derive the sector decoupling or the boundary identifications (the dof change 2+4 → 2 across electron-positron annihilation, the shared temperature at decoupling). These remain upstream model assumptions. The theorem's power is narrower and cleaner: given local equilibrium and the continuity equation, the standard cosmological entropy counting follows without the two thermodynamic identities as extra hypotheses.
THEOREM gStarS_from_potential · IndisputableMonolith/Cosmology/GrandPotential.lean
/-- **CAPSTONE (g*s from the potential).** The present-day entropy density
equals `(2π²/45)·(43/11)·T_γ³` with the same reduced hypothesis list: the
effective entropy dof in the η_B dynamical prefactor now rests on FRW
continuity + the existence of a pressure potential + boundary data. -/
theorem gStarS_from_potential
{P s : ℝ → ℝ} {T a Tν : ℝ → ℝ} {sT T' a' Tν' ρν' : ℝ → ℝ}
{t₁ t₂ : ℝ} {T₁ Tγ αν : ℝ}
(hTt : ∀ t, T t ≠ 0) (hαν : αν ≠ 0) (hTνt : ∀ t, Tν t ≠ 0)
(ha₂ : a t₂ ≠ 0) (hTγ : Tγ ≠ 0)
(hP : ∀ t, HasDerivAt P (s (T t)) (T t))
(hs : ∀ t, HasDerivAt s (sT t) (T t))
(hT : ∀ t, HasDerivAt T (T' t) t) (ha : ∀ t, HasDerivAt a (a' t) t)
(hTν : ∀ t, HasDerivAt Tν (Tν' t) t)
(hρν : ∀ t, HasDerivAt (fun u => αν * Tν u ^ 4) (ρν' t) t)
(hcont : ∀ t, a t * (T t * sT t * T' t)
= -3 * a' t * (energyOf P s (T t) + P (T t)))
(hcontν : ∀ t, a t * ρν' t
= -3 * a' t * (αν * Tν t ^ 4 + αν * Tν t ^ 4 / 3))
(hbefore : s (T t₁) = NeutrinoDilution.radiationEntropy 2 4 T₁)
(hafter : s (T t₂) = NeutrinoDilution.radiationEntropy 2 0 Tγ)
(hshare : Tν t₁ = T₁) :
NeutrinoDilution.radiationEntropy 2 0 Tγ
+ NeutrinoDilution.radiationEntropy 0 6 (Tν t₂)
= 2 * π ^ 2 / 45 * ((EntropyPerPhoton.gStarS : ℚ) : ℝ) * Tγ ^ 3 :=
NeutrinoDilution.total_entropy_eq_gStarS hTγ
(dilution_from_potential hTt hαν hTνt ha₂ hTγ hP hs hT ha hTν hρν
hcont hcontν hbefore hafter hshare)
THEOREM potential_euler · potential_gibbs_duhem · IndisputableMonolith/Cosmology/GrandPotential.lean
/-- **Euler relation (derived).** `T·s = ρ + P` is an algebraic identity of
the Legendre-transform structure — not an independent equilibrium postulate. -/
theorem potential_euler (P s : ℝ → ℝ) (x : ℝ) :
x * s x = energyOf P s x + P x := by
simp only [energyOf]
ring
/-- **Gibbs–Duhem relation (derived).** Along any temperature trajectory
`T(t)`, the pressure obeys `p′ = s(T)·T′`: this is the chain rule applied to
`s = dP/dT`, not an independent postulate. -/
theorem potential_gibbs_duhem
{P s T : ℝ → ℝ} {T' t : ℝ}
(hP : HasDerivAt P (s (T t)) (T t))
(hT : HasDerivAt T T' t) :
HasDerivAt (fun u => P (T u)) (s (T t) * T') t := by
simpa [Function.comp] using hP.comp t hT
THEOREM plasmaPressure_eq · plasmaEnergy_eq · plasma_eos · IndisputableMonolith/Cosmology/GrandPotential.lean
/-- **THEOREM (plasma pressure closed form).** The log-kernel integrals
(`π⁴/45`, `7π⁴/360`, both derived via Mellin transforms) collapse the
pressure to `P = (π²/90)·(g_B + (7/8)·g_F)·T⁴`. The `7/8` is the same
fermionic weight that appears in entropy and energy — here it comes out of
the pressure channel independently. -/
theorem plasmaPressure_eq (gB gF T : ℝ) :
plasmaPressure gB gF T = π ^ 2 / 90 * (gB + 7 / 8 * gF) * T ^ 4 := by
unfold plasmaPressure
rw [RadiationEntropyRelation.boseLog_integral_value,
RadiationEntropyRelation.fermiLog_integral_value]
have hπ : (π : ℝ) ≠ 0 := Real.pi_ne_zero
field_simp
ring
/-- **THEOREM (plasma energy closed form).** The energy integrals (`π⁴/15`,
`7π⁴/120`) give `ρ = (π²/30)·(g_B + (7/8)·g_F)·T⁴`. -/
theorem plasmaEnergy_eq (gB gF T : ℝ) :
plasmaEnergy gB gF T = π ^ 2 / 30 * (gB + 7 / 8 * gF) * T ^ 4 := by
unfold plasmaEnergy
rw [FermionWeightIntegral.bose_integral_value,
FermionWeightIntegral.fermi_integral_value]
have hπ : (π : ℝ) ≠ 0 := Real.pi_ne_zero
field_simp
ring
/-- **THEOREM (radiation equation of state derived).** `p = ρ/3` is forced by
the grand-canonical integrals — it is not an input anywhere in the chain. -/
theorem plasma_eos (gB gF T : ℝ) :
plasmaPressure gB gF T = plasmaEnergy gB gF T / 3 := by
rw [plasmaEnergy_eq, plasmaPressure_eq]
ring
THEOREM plasmaPressure_potential · plasma_energyOf · IndisputableMonolith/Cosmology/GrandPotential.lean
/-- **THEOREM (the plasma is a potential fluid).** The temperature derivative
of the statistical-mechanical pressure is *exactly* the `radiationEntropy` of
`NeutrinoDilution` — the object previously built from the independent entropy
integrals `∫σ_B`, `∫σ_F`. So `s = dP/dT` holds between two independently
derived statistical-mechanical quantities: the potential structure of the
plasma is a theorem, not a definition. -/
theorem plasmaPressure_potential (gB gF x : ℝ) :
HasDerivAt (fun T => plasmaPressure gB gF T)
(NeutrinoDilution.radiationEntropy gB gF x) x := by
rw [NeutrinoDilution.radiationEntropy_eq]
have hfun : (fun T => plasmaPressure gB gF T)
= fun T => π ^ 2 / 90 * (gB + 7 / 8 * gF) * T ^ 4 :=
funext fun T => plasmaPressure_eq gB gF T
rw [hfun]
have hpow : HasDerivAt (fun T : ℝ => T ^ 4) (4 * x ^ 3) x := by
simpa using hasDerivAt_pow 4 x
have h := hpow.const_mul (π ^ 2 / 90 * (gB + 7 / 8 * gF))
have hval : π ^ 2 / 90 * (gB + 7 / 8 * gF) * (4 * x ^ 3)
= 2 * π ^ 2 / 45 * (gB + 7 / 8 * gF) * x ^ 3 := by ring
rw [hval] at h
exact h
/-- **THEOREM (Legendre consistency).** The abstract Legendre energy
`T·s − P` built from the pressure potential and the entropy equals the
independently derived energy integral: `∫ t³/(eᵗ∓1)` agrees with
`4·∫ t²·logkernel − ∫ t²·logkernel`. Two separate ensemble computations
meet — this is the internal consistency of the grand-canonical structure. -/
theorem plasma_energyOf (gB gF : ℝ) :
energyOf (plasmaPressure gB gF) (NeutrinoDilution.radiationEntropy gB gF)
= plasmaEnergy gB gF := by
funext T
simp only [energyOf]
rw [NeutrinoDilution.radiationEntropy_eq, plasmaEnergy_eq, plasmaPressure_eq]
ring
What this page does not claim
The grand-canonical form of the plasma pressure at the boundaries is derived; it remains a statistical mechanics input. The Friedmann equations are derived in this declaration; they are discharged separately. The sector decoupling and the boundary identifications (dof change 2+4 → 2, shared temperature at decoupling) are derived; they are model assumptions.
Verify this page
Every tagged claim above names its theorem. To check one yourself rather than trust this page, elaborate the source module with Lean 4 and audit its axiom basis:
$ lake env lean IndisputableMonolith/Cosmology/GrandPotential.lean
expected axiom basis: [propext, Classical.choice, Quot.sound] (the Lean kernel's standard three; no RS-specific axioms)
A page whose claims cannot be reproduced this way does not ship. In production, every anchor links to the exact declaration in the public source release, and this block carries the build receipt for the page itself.
Derived articles
This page is generated by a question-recursion engine: the questions its answers raise become the next pages. The current agenda, with open targets marked red:
- How does the framework derive the Friedmann continuity equation from the recognition cost function?
- What boundary data beyond the dof change 2+4 → 2 are needed to fix the neutrino decoupling temperature?
- Does the potential structure extend to massive particles or interacting sectors beyond the massless Bose/Fermi plasma?
- How does the framework's derivation of g*s = 43/11 compare with the standard Kolb and Turner presentation at the level of assumptions?
MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND
THEOREM gStarS_from_potential · IndisputableMonolith/Cosmology/GrandPotential.lean
/-- **CAPSTONE (g*s from the potential).** The present-day entropy density equals `(2π²/45)·(43/11)·T_γ³` with the same reduced hypothesis list: the effective entropy dof in the η_B dynamical prefactor now rests on FRW continuity + the existence of a pressure potential + boundary data. -/ theorem gStarS_from_potential {P s : ℝ → ℝ} {T a Tν : ℝ → ℝ} {sT T' a' Tν' ρν' : ℝ → ℝ} {t₁ t₂ : ℝ} {T₁ Tγ αν : ℝ} (hTt : ∀ t, T t ≠ 0) (hαν : αν ≠ 0) (hTνt : ∀ t, Tν t ≠ 0) (ha₂ : a t₂ ≠ 0) (hTγ : Tγ ≠ 0) (hP : ∀ t, HasDerivAt P (s (T t)) (T t)) (hs : ∀ t, HasDerivAt s (sT t) (T t)) (hT : ∀ t, HasDerivAt T (T' t) t) (ha : ∀ t, HasDerivAt a (a' t) t) (hTν : ∀ t, HasDerivAt Tν (Tν' t) t) (hρν : ∀ t, HasDerivAt (fun u => αν * Tν u ^ 4) (ρν' t) t) (hcont : ∀ t, a t * (T t * sT t * T' t) = -3 * a' t * (energyOf P s (T t) + P (T t))) (hcontν : ∀ t, a t * ρν' t = -3 * a' t * (αν * Tν t ^ 4 + αν * Tν t ^ 4 / 3)) (hbefore : s (T t₁) = NeutrinoDilution.radiationEntropy 2 4 T₁) (hafter : s (T t₂) = NeutrinoDilution.radiationEntropy 2 0 Tγ) (hshare : Tν t₁ = T₁) : NeutrinoDilution.radiationEntropy 2 0 Tγ + NeutrinoDilution.radiationEntropy 0 6 (Tν t₂) = 2 * π ^ 2 / 45 * ((EntropyPerPhoton.gStarS : ℚ) : ℝ) * Tγ ^ 3 := NeutrinoDilution.total_entropy_eq_gStarS hTγ (dilution_from_potential hTt hαν hTνt ha₂ hTγ hP hs hT ha hTν hρν hcont hcontν hbefore hafter hshare)The theorem proves that if the Friedmann continuity equation holds and the pressure has this potential form, then comoving entropy is conserved and the present-day entropy density takes the form (2π²/45)·(43/11)·T³. gStarS_from_potential · IndisputableMonolith/Cosmology/GrandPotential.leanTHEOREM potential_euler · potential_gibbs_duhem · IndisputableMonolith/Cosmology/GrandPotential.lean
/-- **Euler relation (derived).** `T·s = ρ + P` is an algebraic identity of the Legendre-transform structure — not an independent equilibrium postulate. -/ theorem potential_euler (P s : ℝ → ℝ) (x : ℝ) : x * s x = energyOf P s x + P x := by simp only [energyOf] ring/-- **Gibbs–Duhem relation (derived).** Along any temperature trajectory `T(t)`, the pressure obeys `p′ = s(T)·T′`: this is the chain rule applied to `s = dP/dT`, not an independent postulate. -/ theorem potential_gibbs_duhem {P s T : ℝ → ℝ} {T' t : ℝ} (hP : HasDerivAt P (s (T t)) (T t)) (hT : HasDerivAt T T' t) : HasDerivAt (fun u => P (T u)) (s (T t) * T') t := by simpa [Function.comp] using hP.comp t hTThe Euler and Gibbs–Duhem relations are derived as algebraic consequences of the Legendre transform structure, not postulated. potential_euler · potential_gibbs_duhem · IndisputableMonolith/Cosmology/GrandPotential.leanTHEOREM plasmaPressure_eq · plasmaEnergy_eq · plasma_eos · IndisputableMonolith/Cosmology/GrandPotential.lean
/-- **THEOREM (plasma pressure closed form).** The log-kernel integrals (`π⁴/45`, `7π⁴/360`, both derived via Mellin transforms) collapse the pressure to `P = (π²/90)·(g_B + (7/8)·g_F)·T⁴`. The `7/8` is the same fermionic weight that appears in entropy and energy — here it comes out of the pressure channel independently. -/ theorem plasmaPressure_eq (gB gF T : ℝ) : plasmaPressure gB gF T = π ^ 2 / 90 * (gB + 7 / 8 * gF) * T ^ 4 := by unfold plasmaPressure rw [RadiationEntropyRelation.boseLog_integral_value, RadiationEntropyRelation.fermiLog_integral_value] have hπ : (π : ℝ) ≠ 0 := Real.pi_ne_zero field_simp ring/-- **THEOREM (plasma energy closed form).** The energy integrals (`π⁴/15`, `7π⁴/120`) give `ρ = (π²/30)·(g_B + (7/8)·g_F)·T⁴`. -/ theorem plasmaEnergy_eq (gB gF T : ℝ) : plasmaEnergy gB gF T = π ^ 2 / 30 * (gB + 7 / 8 * gF) * T ^ 4 := by unfold plasmaEnergy rw [FermionWeightIntegral.bose_integral_value, FermionWeightIntegral.fermi_integral_value] have hπ : (π : ℝ) ≠ 0 := Real.pi_ne_zero field_simp ring/-- **THEOREM (radiation equation of state derived).** `p = ρ/3` is forced by the grand-canonical integrals — it is not an input anywhere in the chain. -/ theorem plasma_eos (gB gF T : ℝ) : plasmaPressure gB gF T = plasmaEnergy gB gF T / 3 := by rw [plasmaEnergy_eq, plasmaPressure_eq] ringThe framework's library derives the closed forms P = (π²/90)·(g_B + (7/8)·g_F)·T⁴ and ρ = (π²/30)·(g_B + (7/8)·g_F)·T⁴ via Mellin transforms, proving the radiation equation of state p = ρ/3 as a theorem of the ensemble rather than an input. plasmaPressure_eq · plasmaEnergy_eq · plasma_eos · IndisputableMonolith/Cosmology/GrandPotential.leanTHEOREM plasmaPressure_potential · plasma_energyOf · IndisputableMonolith/Cosmology/GrandPotential.lean
/-- **THEOREM (the plasma is a potential fluid).** The temperature derivative of the statistical-mechanical pressure is *exactly* the `radiationEntropy` of `NeutrinoDilution` — the object previously built from the independent entropy integrals `∫σ_B`, `∫σ_F`. So `s = dP/dT` holds between two independently derived statistical-mechanical quantities: the potential structure of the plasma is a theorem, not a definition. -/ theorem plasmaPressure_potential (gB gF x : ℝ) : HasDerivAt (fun T => plasmaPressure gB gF T) (NeutrinoDilution.radiationEntropy gB gF x) x := by rw [NeutrinoDilution.radiationEntropy_eq] have hfun : (fun T => plasmaPressure gB gF T) = fun T => π ^ 2 / 90 * (gB + 7 / 8 * gF) * T ^ 4 := funext fun T => plasmaPressure_eq gB gF T rw [hfun] have hpow : HasDerivAt (fun T : ℝ => T ^ 4) (4 * x ^ 3) x := by simpa using hasDerivAt_pow 4 x have h := hpow.const_mul (π ^ 2 / 90 * (gB + 7 / 8 * gF)) have hval : π ^ 2 / 90 * (gB + 7 / 8 * gF) * (4 * x ^ 3) = 2 * π ^ 2 / 45 * (gB + 7 / 8 * gF) * x ^ 3 := by ring rw [hval] at h exact h/-- **THEOREM (Legendre consistency).** The abstract Legendre energy `T·s − P` built from the pressure potential and the entropy equals the independently derived energy integral: `∫ t³/(eᵗ∓1)` agrees with `4·∫ t²·logkernel − ∫ t²·logkernel`. Two separate ensemble computations meet — this is the internal consistency of the grand-canonical structure. -/ theorem plasma_energyOf (gB gF : ℝ) : energyOf (plasmaPressure gB gF) (NeutrinoDilution.radiationEntropy gB gF) = plasmaEnergy gB gF := by funext T simp only [energyOf] rw [NeutrinoDilution.radiationEntropy_eq, plasmaEnergy_eq, plasmaPressure_eq] ringThe temperature derivative of the pressure exactly matches the independently derived radiation entropy, and the Legendre transform T·s − P reproduces the energy integrals. plasmaPressure_potential · plasma_energyOf · IndisputableMonolith/Cosmology/GrandPotential.lean