Cylindrical Gaussian filament model (SZ and lensing projections)
DefinitionszFilamentModelThe model layer of the cylindrical Gaussian filament analysis of de Graaff et al. (2019). All quantities are real numbers; no physical units are carried by the formalization, so every constant appears as an explicit real variable.
-
SZ prefactor. , the constant multiplying the line-of-sight integral in the Compton parameter of Eq. (1).
-
Gaussian cylinder profile. For a central amplitude , an intrinsic Gaussian width and a beam width , the profile of Eq. (A.1)
where is the line-of-sight coordinate and the transverse coordinate in the plane of the sky; the transverse direction carries the extra beam smoothing .
-
Compton parameter. For a prefactor and a line-of-sight profile , , which is Eq. (1) with the integral taken over the whole line of sight.
-
Lensing efficiency prefactor. For a thin lens at comoving distance with source distance and scale factor ,
the geometric factor appearing in the convergence integral of Eq. (2).
-
Convergence. For a prefactor and a density-contrast profile along the line of sight, : Eq. (2) specialized to a structure thin enough that the geometric factor is constant across it.
-
Total electron content. For a filament of length and a two-dimensional profile , , the left-hand side of Eq. (A.4).
These definitions are shared by every statement in the mission, so that the projection integral, the density calibration and the lensing counterpart are all phrased against one model.
import Mathlib
namespace SZFilaments
open MeasureTheory Real
/-- The thermal Sunyaev–Zel'dovich prefactor `k_B T_e σ_T / (m_e c²)`. -/
noncomputable def szPrefactor (kB Te sigmaT me c : ℝ) : ℝ :=
kB * Te * sigmaT / (me * c ^ 2)
/-- The beam-convolved Gaussian cylinder profile of a filament:
`n₀ exp(-ℓ²/(2σ²)) exp(-r⊥²/(2(σ² + σ_B²)))`. -/
noncomputable def gaussianFilamentProfile (n0 sigma sigmaB l r : ℝ) : ℝ :=
n0 * Real.exp (-l ^ 2 / (2 * sigma ^ 2)) *
Real.exp (-r ^ 2 / (2 * (sigma ^ 2 + sigmaB ^ 2)))
/-- The Compton `y` parameter of a line-of-sight electron density profile:
`y = pref * ∫ n_e dℓ`, the prefactor `pref` being `k_B T_e σ_T / (m_e c²)`. -/
noncomputable def comptonY (pref : ℝ) (ne : ℝ → ℝ) : ℝ := pref * ∫ l : ℝ, ne l
/-- The thin-lens lensing efficiency prefactor
`(3 H₀² Ω_m / (2 c²)) · (D_L (D_S - D_L) / D_S) / a`. -/
noncomputable def lensingPrefactor (H0 Om c a DL DS : ℝ) : ℝ :=
3 * H0 ^ 2 * Om / (2 * c ^ 2) * (DL * (DS - DL) / DS) / a
/-- The convergence obtained by integrating a density-contrast profile along the line
of sight against a lensing efficiency prefactor. -/
noncomputable def convergence (pref : ℝ) (delta : ℝ → ℝ) : ℝ := pref * ∫ l : ℝ, delta l
/-- The total number of electrons in a filament of length `L`:
`N_e = L ∫∫ n_e(ℓ, r⊥) dℓ dr⊥`. -/
noncomputable def totalElectrons (L : ℝ) (ne : ℝ → ℝ → ℝ) : ℝ :=
L * ∫ r : ℝ, ∫ l : ℝ, ne l r
end SZFilaments
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Disclosure — this read-back is not blind and not independent. It was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner, and no separate auditor saw the code. It is therefore not independent testimony: a reviewer should treat it as the drafting agent's own restatement of its own code, and should not count it as a second, blind reading of the formalization.
This bundle introduces six real-valued definitions, all over the real numbers, with no positivity or integrability conditions built in.
1. . If this returns , the Lean convention for division by zero.
2. , a function of five real arguments. Both exponents are written as divisions: if the first exponent is and the first factor is (not a limit of a Gaussian), and if the second factor is likewise . For the value is for every .
3. for a real prefactor and an arbitrary function . The integral is the Bochner integral over the whole real line with Lebesgue measure; if is not integrable the integral is by convention, so for such rather than being undefined.
4. , again with the zero-division convention for , or . Nothing forces : for the factor is negative.
5. , the same shape as 3 with a different name.
6. for a real and a two-argument function . Note the order: the inner integral is over the first argument, the outer over the second, and both are Bochner integrals with the same zero-on-non-integrability convention.
None of the six definitions asserts anything; each is a formula that can be evaluated at arbitrary reals.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.