Lorentz factor , its reciprocal, velocity addition, and the boost matrix
DefinitionLorentzFactorDefsWorking in units where the speed of light is , so that the only kinematic parameter is , this file fixes the four objects the mission is about.
- , the Lorentz factor.
- , its reciprocal, the quantity denoted in the source article.
- , relativistic velocity addition.
- , the Lorentz boost along the -axis acting on the coordinate pair , i.e. , .
The definitions are total functions of a real argument. For the radicand is non-positive, the real square root returns , and ; every statement in the mission that needs the physical regime carries an explicit hypothesis . Likewise evaluates to when , which cannot happen when both velocities are subluminal.
import Mathlib namespace LorentzFactor /-- The Lorentz factor `gamma β = 1 / √(1 - β ^ 2)`, in units where the speed of light is `c = 1`, so that `β = v / c` is the relative velocity. For `|β| ≥ 1` the square root is the junk value `0` and `gamma β = 0`. -/ noncomputable def gamma (β : ℝ) : ℝ := 1 / Real.sqrt (1 - β ^ 2) /-- The reciprocal Lorentz factor `alpha β = √(1 - β ^ 2)`. -/ noncomputable def alpha (β : ℝ) : ℝ := Real.sqrt (1 - β ^ 2) /-- Relativistic velocity addition, `velAdd β₁ β₂ = (β₁ + β₂) / (1 + β₁ * β₂)`, in units where `c = 1`. -/ noncomputable def velAdd (β₁ β₂ : ℝ) : ℝ := (β₁ + β₂) / (1 + β₁ * β₂) /-- The Lorentz boost of velocity `β` along the `x`-axis, as a `2 × 2` matrix acting on the coordinate pair `(t, x)` with `c = 1`: `t' = gamma β * (t - β * x)` and `x' = gamma β * (x - β * t)`. -/ noncomputable def boost (β : ℝ) : Matrix (Fin 2) (Fin 2) ℝ := !![gamma β, -(gamma β * β); -(gamma β * β), gamma β] end LorentzFactor
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — NON-BLIND: same agent that drafted the statements
Disclosure — this read-back is NOT blind and NOT independent. It was written by the same agent that drafted the Lean statements in this proposal, in the same session and with full knowledge of the intended meaning and of the source article. It is therefore an author's self-transcription, not independent testimony: it can silently import the author's intent into the reading of the code, which is exactly the failure mode that blind read-backs exist to catch. No reviewer should treat it as an independent check. For independent testimony, have a separate auditor, with no access to the informal statements or the source, re-read the Lean code.
The bundle introduces four real-valued objects, all total functions of real arguments.
-
, where is the real square root, which returns on negative inputs. Hence for the radicand is negative, the root is , and the quotient is ; at likewise . No hypothesis restricts in the definition itself.
-
, again with the junk value for .
-
for arbitrary reals ; when the value is , since division by zero yields zero.
-
, a real matrix, indexed by , with diagonal entries both equal to and both off-diagonal entries equal to :
The matrix is symmetric by construction, and for it is the zero matrix. Nothing in the bundle asserts any property of these objects; they are definitions only. No claim is made that preserves any quadratic form, that , or that and are reciprocal.