Scale factor, Hubble and deceleration parameters, proper position and distance
DefinitionHubbleLawDefsThis bundle fixes the kinematic model of a uniformly expanding universe used by every statement of the mission. A scale factor is a function of cosmic time. From it we define four objects.
The Hubble parameter is the logarithmic rate of expansion
whose present-day value is the Hubble constant .
The dimensionless deceleration parameter is
so that means a decelerating expansion and an accelerating one.
A comoving point is a fixed coordinate , taken with the Euclidean norm; its proper position at time is the physical position
and the proper distance between the comoving points and is the physical distance between their proper positions,
All measured proper distances between comoving points therefore increase proportionally to , which is the defining property of the scale factor in the source.
import Mathlib
namespace HubbleLaw
/-- The Hubble parameter `H(t) = ȧ(t) / a(t)` of a scale factor `a`. -/
noncomputable def hubbleParameter (a : ℝ → ℝ) (t : ℝ) : ℝ := deriv a t / a t
/-- The dimensionless deceleration parameter `q(t) = - ä(t) a(t) / ȧ(t)^2`. -/
noncomputable def decelerationParameter (a : ℝ → ℝ) (t : ℝ) : ℝ :=
-(deriv (deriv a) t * a t) / deriv a t ^ 2
/-- The proper position at time `t` of the comoving point with comoving coordinate `x`,
namely `a(t) • x`. -/
noncomputable def properPosition (a : ℝ → ℝ) (x : EuclideanSpace ℝ (Fin 3)) (t : ℝ) :
EuclideanSpace ℝ (Fin 3) := a t • x
/-- The proper distance at time `t` between the comoving points with comoving
coordinates `x` and `y`. -/
noncomputable def properDistance (a : ℝ → ℝ) (x y : EuclideanSpace ℝ (Fin 3)) (t : ℝ) : ℝ :=
‖properPosition a x t - properPosition a y t‖
end HubbleLaw
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — NOT an independent auditor: same agent that drafted the statements
Disclosure — this read-back is NOT independent testimony. It was written by the same agent that drafted the Lean statements in this proposal, at the explicit instruction of the proposal owner. It is not blind: its author knew what each statement was intended to say before writing the read-back, so it cannot corroborate the formalization the way an independent auditor's read-back would. Please read it as the drafter's own restatement of the code, and audit the Lean text directly (or commission a blind read-back) before relying on it.
This bundle introduces four definitions, all parametrised by an arbitrary function ; no continuity, differentiability, positivity or monotonicity of is required anywhere in the bundle.
1. Hubble parameter. For a real number ,
where is the derivative of in the sense of the ambient library: it is defined for every function, and equals at any point where is not differentiable. The quotient is total division: if then by the convention , rather than being undefined.
2. Deceleration parameter. For a real number ,
with the derivative of the derivative of , subject to the same conventions. In particular whenever (division by zero), and whenever or . Note the sign: the numerator is the negation of .
3. Proper position. For a vector of the three-dimensional Euclidean space (the product of three copies of , so the norm is ) and a real number ,
the scalar multiple of by the real number . If is negative the vector is reflected through the origin; nothing excludes this.
4. Proper distance. For vectors and a real number ,
a non-negative real number. It is when and also whenever , and it is unchanged if is replaced by .
All four are definitions only: the bundle asserts nothing.