LeanProofs.Foundations.STADef
DefinitionGrade4_LeanProofs_Foundations_STADefclifford-algebraleanproofs-grade4rosetta
Foundational definitions and structural lemmas from LeanProofs.Foundations.STADef, required by the selected LeanProofs theorem graph.
Definition code
/-
Spacetime Algebra (STA) = Cl(1,3).
Defines the spacetime algebra as the Clifford algebra of Q_{1,3},
along with the basis vectors γ_μ and the fundamental Clifford relation:
γ_μ γ_ν + γ_ν γ_μ = 2 η_{μν}
Paper reference: §2.1, equation (1)-(3).
Rust reference: clifford_algebra.rs (sta() constructor)
-/
import Definitions.Def_Grade4_LeanProofs_Foundations_MinkowskiMetric
namespace LeanProofsGrade4P2M
noncomputable section
/-- The Spacetime Algebra: Cl(1,3) = CliffordAlgebra Q_{1,3}. -/
abbrev STA := CliffordAlgebra Q13
/-- Basis vector γ_μ in the spacetime algebra.
γ₀ is timelike (squares to +1), γ₁,γ₂,γ₃ are spacelike (square to -1). -/
def gamma (μ : Fin 4) : STA := CliffordAlgebra.ι Q13 (Pi.single μ 1)
/-- The fundamental Clifford relation: γ_μ² = Q₁₃(e_μ). -/
theorem gamma_sq (μ : Fin 4) :
gamma μ * gamma μ = algebraMap ℝ STA (Q13 (Pi.single μ 1)) :=
CliffordAlgebra.ι_sq_scalar Q13 _
/-- γ₀² = 1 (timelike). -/
theorem gamma0_sq : gamma 0 * gamma 0 = 1 := by
rw [gamma_sq, Q13_e0, map_one]
/-- γ₁² = -1 (spacelike). -/
theorem gamma1_sq : gamma 1 * gamma 1 = -1 := by
rw [gamma_sq, Q13_e1, map_neg, map_one]
/-- γ₂² = -1 (spacelike). -/
theorem gamma2_sq : gamma 2 * gamma 2 = -1 := by
rw [gamma_sq, Q13_e2, map_neg, map_one]
/-- γ₃² = -1 (spacelike). -/
theorem gamma3_sq : gamma 3 * gamma 3 = -1 := by
rw [gamma_sq, Q13_e3, map_neg, map_one]
/-- Weighted sum of squares is orthogonal on distinct basis vectors. -/
theorem weightedSumSquares_isOrtho {n : ℕ} (w : Fin n → ℝ) {i j : Fin n} (hij : i ≠ j) :
(QuadraticMap.weightedSumSquares ℝ w).IsOrtho (Pi.single i 1) (Pi.single j 1) := by
rw [QuadraticMap.isOrtho_def]
simp only [QuadraticMap.weightedSumSquares_apply, Pi.add_apply]
-- Show: ∑ w_k (δ_{ki} + δ_{kj})² = ∑ w_k δ_{ki}² + ∑ w_k δ_{kj}²
-- Split each (δ_{ki} + δ_{kj})² = δ_{ki}² + 2δ_{ki}δ_{kj} + δ_{kj}²
-- The cross term 2δ_{ki}δ_{kj} = 0 since i ≠ j
rw [← Finset.sum_add_distrib]
apply Finset.sum_congr rfl
intro k _
have hi : (Pi.single i (1 : ℝ) : Fin n → ℝ) k = if k = i then 1 else 0 := by
simp [Pi.single, Function.update]
have hj : (Pi.single j (1 : ℝ) : Fin n → ℝ) k = if k = j then 1 else 0 := by
simp [Pi.single, Function.update]
rw [hi, hj]
by_cases hki : k = i
· subst hki; simp [hij, smul_add]
· by_cases hkj : k = j
· subst hkj; simp [hki, smul_add]
· simp [hki, hkj]
/-- Distinct basis vectors are orthogonal under Q₁₃. -/
theorem Q13_isOrtho {μ ν : Fin 4} (h : μ ≠ ν) :
Q13.IsOrtho (Pi.single μ 1) (Pi.single ν 1) := by
change (signatureQuadForm 1 3).IsOrtho (Pi.single μ 1) (Pi.single ν 1)
exact weightedSumSquares_isOrtho _ h
/-- For distinct indices, the gamma matrices anticommute: γ_μ γ_ν = -γ_ν γ_μ. -/
theorem gamma_anticomm_ne {μ ν : Fin 4} (h : μ ≠ ν) :
gamma μ * gamma ν = -(gamma ν * gamma μ) :=
CliffordAlgebra.ι_mul_ι_comm_of_isOrtho (Q13_isOrtho h)
end
end LeanProofsGrade4P2M
Source