Flat FLRW cosmology: Hubble rate and the two Friedmann equations
Definitionhack_flrw_friedmannThis definition file fixes the notation of Hack (2016), Section 3.1, for spatially flat FLRW cosmology.
Let be the scale factor, the energy density and pressure, Newton's constant, and a set of cosmological times.
- Hubble rate (eq. (3.1)): .
- First Friedmann equation on (eq. (3.5)): for every ,
- Second Friedmann equation on (eq. (3.5)): for every ,
Every statement in the mission is phrased in terms of these three objects.
Formalization Note Derivatives are Mathlib's deriv (equal to where the function is not differentiable) and is the derivative of the function . Lean's division gives . The definitions impose no regularity or positivity; each theorem states these hypotheses explicitly.
import Mathlib namespace HackCosmologicalAQFT /-- The Hubble rate `H(t) = ȧ(t) / a(t)` of a scale factor `a` (Hack 2016, eq. (3.1)). -/ noncomputable def hubbleRate (a : ℝ → ℝ) (t : ℝ) : ℝ := deriv a t / a t /-- The first Friedmann equation `H² = (8πG/3) ρ` (Hack 2016, eq. (3.5)), holding at every cosmological time `t ∈ I`. -/ def FirstFriedmannEq (G : ℝ) (a ρ : ℝ → ℝ) (I : Set ℝ) : Prop := ∀ t ∈ I, hubbleRate a t ^ 2 = 8 * Real.pi * G / 3 * ρ t /-- The second Friedmann equation `ä / a = -(4πG/3) (ρ + 3p)` (Hack 2016, eq. (3.5)), holding at every cosmological time `t ∈ I`. -/ def SecondFriedmannEq (G : ℝ) (a ρ p : ℝ → ℝ) (I : Set ℝ) : Prop := ∀ t ∈ I, deriv (deriv a) t / a t = -(4 * Real.pi * G / 3) * (ρ t + 3 * p t) end HackCosmologicalAQFT
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, same agent as drafter
NON-BLIND READ-BACK — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source text and of the intended meaning. It was not produced by a blind, independent auditor, so it may silently read the intended meaning into the code. Reviewers must not mistake it for independent testimony; compare the Lean code against the source directly.
The file introduces three objects, all for real-valued functions of a real variable .
Hubble rate. For a function and , is defined as . Here is the derivative of at when is differentiable at , and otherwise. If , the quotient is defined to be . No hypothesis on is built in.
First Friedmann equation. For a real number , functions and a set , the proposition holds iff for every
with as above (including its conventions at non-differentiable points and at zeros of ). No sign condition on is imposed.
Second Friedmann equation. For a real number , functions and a set , the proposition holds iff for every
Here is the derivative at of the function , where is defined as above. It is if that function is not differentiable at , and the quotient is when .
If is empty, both equations hold trivially.