Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d2ddfe3
feat(Cosmology): de Sitter solution of the Friedmann equations
Sep 10, 2026
b8a0b43
feat(Cosmology): flat power-law solutions of the Friedmann equations
Sep 10, 2026
0be812c
feat(Cosmology): Milne solution and Einstein static universe relations
Sep 10, 2026
9a7000f
feat(Cosmology): continuity equation of the cosmic fluid from the Fri…
Sep 10, 2026
d5f24a5
feat(Cosmology): barotropic equation of state, density scaling laws, …
Sep 10, 2026
4c6ea7f
chore(Cosmology): order authors alphabetically by last name
Sep 11, 2026
7ec56a8
chore(Cosmology): order authors alphabetically by last name
Sep 11, 2026
6b52a4e
chore(Cosmology): order authors alphabetically by last name
Sep 11, 2026
0ed56f1
chore(Cosmology): order authors alphabetically by last name
Sep 11, 2026
171e458
style(Cosmology): inline one-off helper lemmas, move the Time derivat…
Sep 11, 2026
78428d2
style(Cosmology): inline one-off helper lemmas, move the Time derivat…
Sep 11, 2026
6f82dc0
style(Cosmology): inline one-off helper lemmas, move the Time derivat…
Sep 11, 2026
3a83e2c
style(Cosmology): inline one-off helper lemmas, move the Time derivat…
Sep 11, 2026
8843171
Merge master into flrw-solutions-2 (after the merge of #1632, on whic…
Sep 11, 2026
15146dd
Merge master into flrw-solutions-3 (after the merge of #1632, on whic…
Sep 11, 2026
296bf90
Merge master into flrw-matter-4 (after the merge of #1632, on which t…
Sep 11, 2026
5ac158e
Merge master into flrw-matter-5 (after the merge of #1632, on which t…
Sep 11, 2026
782c6d0
Merge remote-tracking branch 'origin/master' into flrw-solutions-2
Sep 12, 2026
8580455
refactor(Cosmology): inline the power-law scaffolding of the flat sol…
Sep 12, 2026
1a2cb0d
refactor(Cosmology): the normalisation epoch of the power-law solutio…
Sep 12, 2026
9cbd5cf
Merge branch 'flrw-solutions-2' into flrw-solutions-3
Sep 12, 2026
076b0e5
docs(Cosmology): the Milne scale factor puts the Big Bang at the orig…
Sep 12, 2026
9e97b70
refactor(Cosmology): state the Einstein static density directly
Sep 12, 2026
444ec0b
Merge branch 'flrw-solutions-3' into flrw-matter-4
Sep 12, 2026
311fa03
Merge branch 'flrw-matter-4' into flrw-matter-5
Sep 12, 2026
657d813
Merge master (#1633 merged) into flrw-solutions-3
Sep 16, 2026
8422b0d
Merge flrw-solutions-3 (master with #1633) into flrw-matter-4
Sep 16, 2026
dc13d13
Merge flrw-matter-4 (master with #1633) into flrw-matter-5
Sep 16, 2026
bd8402a
Merge master (#1634 merged) into flrw-matter-4
Sep 17, 2026
e29b83e
refactor(Time, Cosmology): state the HasDerivAt bridge and deriv_firs…
Sep 17, 2026
0235ed4
doc(Cosmology/FLRW): TODOs for the Bianchi identity and the fluid ene…
Sep 17, 2026
5ac4fc9
Merge flrw-matter-4 (review of #1635, master with #1634) into flrw-ma…
Sep 17, 2026
c68ff5e
refactor(Cosmology/FLRW): inline the one-off HasDerivAt helper of den…
Sep 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 35 additions & 16 deletions Physlib/Cosmology/FLRW/API-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ Overview: |
scale factor, the Hubble parameter, and the deceleration parameter with the
relation ∂ₜ H = -H^2 (1 + q). The FLRW type itself is a placeholder; the file
records a TODO to replace it with a structure bundling a positive scale
factor and a spatial geometry. Six further modules, ConformalTime.lean,
DensityParameters.lean, Distances.lean, Dynamics.lean, MatterContent.lean and
Solutions.lean, contain only TODO items: conformal time and the conformal
Hubble factor, the critical density and density parameters, cosmological
distances and redshift, energy conditions and the Big-Bang singularity, the
matter content with its continuity equation and scaling laws, and the exact
de Sitter, radiation-dominated, Einstein-de Sitter, Milne and Einstein static
solutions. The requirements below record the two most basic of those open
items. Cosmology/Basic.lean is a placeholder module doc with no declarations.
factor and a spatial geometry. MatterContent.lean contains the continuity
equation of the cosmic fluid and its relation to the two Friedmann equations,
the barotropic equation of state with the density scaling laws, and the
cosmological constant as a fluid. Solutions.lean contains the exact de
Sitter, radiation-dominated, Einstein-de Sitter, Milne and Einstein static
solutions. Four further modules, ConformalTime.lean, DensityParameters.lean,
Distances.lean and Dynamics.lean, contain only TODO items: conformal time and
the conformal Hubble factor, the critical density and density parameters,
cosmological distances and redshift, energy conditions and the Big-Bang
singularity. Cosmology/Basic.lean is a placeholder module doc with no
declarations.

ParentAPIs:
- Time (Physlib/SpaceAndTime/Time)
Expand Down Expand Up @@ -89,10 +91,27 @@ Requirements:
location: "Physlib/Cosmology/FLRW/Basic.lean (decelerationParameter, deriv_hubbleConstant, decelerationParameter_eq_one_plus_hubbleConstant, deriv_hubbleConstant_eq_neg_sq_mul, deriv_hubbleConstant_neg_iff, exists_deriv_hubbleConstant_neg_iff)"

- description: >
The continuity equation ∂ₜ ρ + 3 H (ρ + P/c^2) = 0 of the cosmic fluid, the
barotropic equation of state P = w ρ c^2, and the density scaling law
ρ ∝ a^(-3(1+w)) with its dust, radiation and vacuum-energy special cases.
Recorded as TODO items in Physlib/Cosmology/FLRW/MatterContent.lean; no
declarations exist yet.
done: false
location: "N/A"
The continuity equation ∂ₜ ρ + 3 H (ρ + P/c^2) = 0 of the cosmic fluid is
defined as a proposition at an instant, and the API relates it to the two
Friedmann equations: it follows from the first-order equation holding at all
times together with the second-order equation, and conversely the
second-order equation follows from the first-order equation and the
continuity equation wherever ∂ₜ a ≠ 0.
done: true
location: "Physlib/Cosmology/FLRW/MatterContent.lean (ContinuityEquation, deriv_firstOrderFriedmann, continuityEquation_of_friedmann, secondOrderFriedmann_of_continuityEquation)"

- description: >
The barotropic equation of state P = w ρ c^2 is defined, and the API
contains the density scaling law ρ t = ρ t₀ (a t / a t₀)^(-3(1+w)) under the
barotropic continuity equation holding at all times, its converse, and its
dust, radiation and vacuum-energy special cases.
done: true
location: "Physlib/Cosmology/FLRW/MatterContent.lean (barotropicPressure, deriv_of_continuityEquation_barotropic, density_scaling, continuityEquation_of_scaling, density_scaling_dust, density_scaling_radiation, density_scaling_vacuum)"

- description: >
The cosmological constant as a fluid: the density ρ_Λ = Λ c^2 / (8πG) and
the pressure p_Λ = -ρ_Λ c^2 are defined, each Friedmann equation with Λ is
equivalent to the same equation without Λ for the fluid ρ + ρ_Λ, p + p_Λ,
and p_Λ is the w = -1 barotropic pressure of ρ_Λ.
done: true
location: "Physlib/Cosmology/FLRW/MatterContent.lean (cosmologicalConstantDensity, cosmologicalConstantPressure, firstOrderFriedmann_iff_lambdaFluid, secondOrderFriedmann_iff_lambdaFluid, cosmologicalConstantPressure_eq_barotropic)"
6 changes: 5 additions & 1 deletion Physlib/Cosmology/FLRW/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ def FLRW : Type := sorry

TODO "Replace the placeholder `FLRW` type with a concrete structure bundling a positive
scale factor `a : Time → ℝ` (smooth, or at least twice differentiable) together with an
element of `SpatialGeometry`."
element of `SpatialGeometry`. If the structure also bundles the dynamics, it should carry the
first- and second-order Friedmann equations as fields and obtain the continuity equation as a
lemma through `FriedmannEquation.continuityEquation_of_friedmann`, never the other way round:
where `∂ₜ a = 0` the first-order and continuity equations leave the pressure unconstrained,
whereas the second-order equation fixes `ρ + 3 p / c²` (the Einstein static universe)."

namespace FLRW

Expand Down
Loading
Loading