Minkowski spacetime: the metric , the derivatives and the wave operator
DefinitionQED_minkowski_spacetimeThe coordinate layer of classical field theory on flat spacetime. A point of Minkowski spacetime is a quadruple of real coordinates . The Minkowski metric has signature , so , and off the diagonal; because is its own inverse, the same array is used for the contravariant metric that raises indices.
For a field on spacetime with values in a real normed space, the partial derivative is the Fréchet derivative of at evaluated on the -th coordinate direction; where is not differentiable it takes the value , so the operator is total and every statement using it carries its own smoothness hypotheses. The d'Alembert wave operator is the contraction
These are the conventions shared by every statement of the mission.
import Mathlib
namespace QED
/-- Minkowski spacetime in coordinates: a point `x` is the quadruple of its
contravariant coordinates `x⁰, x¹, x², x³`. -/
abbrev Spacetime : Type := Fin 4 → ℝ
/-- The Minkowski metric `η` with signature `(+, -, -, -)`:
`η 0 0 = 1`, `η i i = -1` for `i = 1, 2, 3`, and `η μ ν = 0` for `μ ≠ ν`.
Since `η` is its own inverse, the same function is used for the contravariant
metric `η^{μν}` used to raise indices. -/
def minkowski (μ ν : Fin 4) : ℝ :=
if μ = ν then (if μ = 0 then 1 else -1) else 0
/-- The partial derivative `∂_μ f` of a field `f` on Minkowski spacetime with
values in a real normed space, i.e. the Fréchet derivative of `f` evaluated on
the `μ`-th coordinate direction. If `f` is not differentiable at `x`, this is
`0` by the junk-value convention for `fderiv`. -/
noncomputable def partialD {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
(μ : Fin 4) (f : Spacetime → E) (x : Spacetime) : E :=
fderiv ℝ f x (Pi.single μ 1)
/-- The d'Alembert wave operator `□ f = η^{μν} ∂_μ ∂_ν f`. -/
noncomputable def dAlembert {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
(f : Spacetime → E) (x : Spacetime) : E :=
∑ μ : Fin 4, ∑ ν : Fin 4, minkowski μ ν • partialD μ (partialD ν f) x
end QED
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent that drafted the statements; not an independent auditor
Provenance note — this read-back is NOT blind and NOT independent. It was written by the same agent that drafted the Lean statement it describes, not by a separate auditor working from the code alone. It is therefore self-testimony rather than independent testimony: any misreading made while drafting is likely to be repeated here, and this text cannot corroborate the faithfulness of the formalization. A reviewer who needs independent confirmation should commission a blind read-back from an auditor who has seen only the Lean code and none of the source material or drafting intent.
This bundle introduces three definitions and one abbreviation, and asserts nothing.
Spacetime. abbreviates the type of functions from to ; a point is thus the quadruple of real numbers, with no metric, orientation or causal structure attached to the type itself.
The array . For indices ,
a real number. It is a plain function of two indices; nothing in the file states that it is symmetric, invertible, or equal to its own inverse, and nothing forces it to be used only with raised or only with lowered indices.
The operator . For a map from to any real normed vector space , an index and a point , is defined as the Fréchet derivative of at — the derivative as a continuous linear map — evaluated at the vector that is in slot and elsewhere. Two consequences are built in rather than assumed: the derivative is the total derivative, so its existence is a stronger requirement than the existence of a one-dimensional directional limit; and if is not differentiable at the underlying operator returns the zero map, so in that case. There is no hypothesis anywhere in the definition, so the symbol is total: it produces a value for every , including nowhere-differentiable ones.
The operator . For the same class of maps,
where denotes the function and the outer differentiates that function; the coefficient acts by scalar multiplication on . Because is diagonal the double sum collapses to . The same junk-value convention applies twice over: if fails to be differentiable at , the corresponding term is rather than undefined. The order of differentiation is fixed as written (outer index , inner index ); no symmetry of mixed partials is asserted here.