Equation of state in FLRW cosmology: basic definitions
DefinitionCosmologyEOS_DefsShared definitions for the mission, for real-valued functions of time : scale factor , energy density , pressure , Newton's constant , cosmological constant .
- Equation-of-state parameter (
eosParameter p ε). - Fluid equation at time : (
FluidEquation a ε p t). - Flat Friedmann equation at time : (
FlatFriedmannEquation G a ε t). - Acceleration equation at time : (
AccelerationEquation G Λ a ε p t). - Effective energy density and pressure: , .
- Scalar-field equation of state: .
These are the objects in which every statement of the mission is phrased.
Formalization Note Derivatives are Mathlib's deriv, which returns at points of non-differentiability, so theorems assume differentiability explicitly. Divisions are total and return on a zero denominator; theorems assume nonzero denominators where it matters.
import Mathlib /-! # Equation of state in FLRW cosmology — shared definitions Source: Wikipedia, "Equation of state (cosmology)", revision 1375011367. All quantities are real-valued; time is a real variable `t`, the scale factor is `a : ℝ → ℝ`, the energy density is `ε : ℝ → ℝ` and the pressure is `p : ℝ → ℝ` (units with `c = 1` in the FLRW part). -/ namespace CosmologyEOS open Real /-- The equation-of-state parameter `w = p / ε` of a perfect fluid with pressure `p` and energy density `ε`. (As a total function it returns `0` when `ε = 0`; theorems that use it assume `ε ≠ 0`.) -/ noncomputable def eosParameter (p ε : ℝ) : ℝ := p / ε /-- The FLRW fluid (energy-conservation) equation at time `t`: `ε̇(t) = -3 (ȧ(t)/a(t)) (ε(t) + p(t))`. -/ def FluidEquation (a ε p : ℝ → ℝ) (t : ℝ) : Prop := deriv ε t = -3 * (deriv a t / a t) * (ε t + p t) /-- The Friedmann equation of a spatially flat FLRW universe (no cosmological constant) at time `t`: `(ȧ(t)/a(t))² = (8πG/3) ε(t)`. -/ def FlatFriedmannEquation (G : ℝ) (a ε : ℝ → ℝ) (t : ℝ) : Prop := (deriv a t / a t) ^ 2 = 8 * π * G / 3 * ε t /-- The Friedmann acceleration equation at time `t`: `3 ä(t)/a(t) = Λ - 4πG (ε(t) + 3 p(t))`. -/ def AccelerationEquation (G Λ : ℝ) (a ε p : ℝ → ℝ) (t : ℝ) : Prop := 3 * (deriv (deriv a) t / a t) = Λ - 4 * π * G * (ε t + 3 * p t) /-- The effective energy density `ε' = ε + Λ / (8πG)`. -/ noncomputable def effectiveEnergyDensity (G Λ ε : ℝ) : ℝ := ε + Λ / (8 * π * G) /-- The effective pressure `p' = p - Λ / (8πG)`. -/ noncomputable def effectivePressure (G Λ p : ℝ) : ℝ := p - Λ / (8 * π * G) /-- The equation-of-state parameter of a homogeneous scalar field with time derivative `φ̇ = phiDot` and potential energy `V`: `w = (½ φ̇² - V) / (½ φ̇² + V)` (equal to `0` when the denominator vanishes). -/ noncomputable def scalarFieldEOS (phiDot V : ℝ) : ℝ := (phiDot ^ 2 / 2 - V) / (phiDot ^ 2 / 2 + V) end CosmologyEOS
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; NON-BLIND
NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent that drafted the Lean statement below, with full knowledge of the source text and of the intended meaning. It was not produced by a blind, independent auditor, so it must not be mistaken for independent testimony; reviewers should compare the Lean code with the source themselves.
The file declares, in the namespace CosmologyEOS, the following objects (all real numbers or real functions of a real variable ).
- , with the convention that the value is when .
- is the proposition , where is the derivative of at if is differentiable there and otherwise, and .
- is the proposition (same conventions).
- is the proposition , where is the derivative (same convention) of the derivative function of .
- and ; both reduce to , resp. , when (division by zero gives ).
- , equal to when .
No hypotheses are attached to any of these definitions; positivity, differentiability and nonvanishing conditions must be supplied by the theorems that use them.