Repository navigation
feat(Cosmology/FLRW): define Hubble constant H₀ and present Hubble radius - #2169
cthierfelder wants to merge 2 commits into
Conversation
|
Thank you for this pull-request (PR). If this is your first PR, welcome to the community! While you wait for a review, note that you can review PRs too; reviewing is not restricted to maintainers. Our review guidelines explain what to look for. Over time, contributions such as reviews, maintenance and documentation are recorded on contributions.physlib.io. Three main points:
|
|
|
||
| The time-dependent Hubble parameter `H(t) = (dₜ a) / a` is the function `hubbleConstant`; | ||
| `presentHubbleConstant a t₀` is the number `H₀`, its value today. -/ | ||
| noncomputable def presentHubbleConstant (a : Time → ℝ) (t₀ : Time) : ℝ := |
There was a problem hiding this comment.
I think it might be worth mirroring the sort of construction we have done for the Boltzman constant for the time now, that is define a type TimeNow or similar. At the moment this is just a rewrite of the definition of the hubble constant, and I adding such a type would help this.
There was a problem hiding this comment.
Good point, thanks (I am new here - just trying to learn). I've added Physlib/Cosmology/TimeNow.lean with a structure TimeNow wrapping an instant of Time, plus a Coe TimeNow Time, and presentHubbleConstant / presentHubbleRadius now take t₀ : TimeNow. Since Time is a torsor with no origin, the present is a datum of the model, which the type now records. I kept it minimal (no positivity or dimension, since an instant has neither) and put it under Cosmology rather than SpaceAndTime/Time; happy to move it if you'd rather it lived with Time. Several other FLRW declarations take a free t₀ : Time for the present (comovingDistance, redshift, ReducedHubble); switching those to TimeNow seems a natural follow-up PR if you agree with the design.
There was a problem hiding this comment.
Thanks, I think a type for the present is the right idea. Some thoughts on its form and location:
- Tie it to the model. The present should be an instant inside the interval
U.Iof a given FLRW model: a structure overU : FLRWholding aTimeand the fact that it lies inU.I. This gives the type actual content (the module doc already calls the present "a datum of the cosmological model"), matches the physics (t₀ depends on the model: for the same H₀ the age differs between models), and removes the repeatedt₀ ∈ U.Ihypotheses downstream. TheNonemptyinstance can then go, and the coercion toTimewill needCoeOutrather thanCoe. - Location. A single "now" for the whole universe only makes sense because FLRW cosmic time picks out a family of simultaneous instants, so I'd put it in
FLRW/Basic.leanright afterstructure FLRW, rather than next toTimeor in its own file. - Names.
PresentTime, with the fieldtoTime(integrals overTimeare written on the coordinate, wheret₀.val.valreads badly), and H₀ aspresentHubbleParameter, taking the model. The present Hubble radius is then justhubbleRadiusatt₀, so the separatepresentHubbleRadiusand its bridge lemma aren't needed. - Payoff.
redshiftandcomovingDistancetake the present in opposite argument positions; with aPresentTimeargument, swapping them becomes a type error. In integrals with the present as a limit, such as ∫_{t₀}^{t} H dt = ln(a(t)/a(t₀)), onlytthen needs a hypothesis. For the follow-up, I'd convert only thet₀s that mean the present, not the normalisation epochs of the specific solutions or the reference time of the tangent-line bound.
|
awaiting-author |
|
-awaiting-author |
|
claim |
Defines the Hubble constant H₀ and the present Hubble radius c / H₀ in FLRW/Basic.lean, closing the TODO there. Following review, both are taken at a t₀ : TimeNow, a new type in Cosmology/TimeNow.lean that records a chosen instant as the present, since Time itself has no origin. Distances.lean gets a rfl lemma linking the existing time-dependent Hubble radius to the new one.
Open question: whether TimeNow should live under Cosmology or with Time. Other FLRW definitions still take the present as a free Time; converting them would be a follow-up.