AFTD Auto-Formalizing Theoretical Domains

lorentzAlgebra.rotationGenerator

defimported Lean

The rotation generator J_i in the Lorentz algebra so(1,3). This matrix generates infinitesimal rotations about the i-th axis following the right-hand rule. The matrix acts only on spatial indices in the antisymmetric pattern characteristic of angular momentum generators. ## Properties - Antisymmetric: J_iᵀ = -J_i - Traceless: tr(J_i) = 0 - Satisfies Lorentz algebra condition: J_iᵀ η = -η J_i ## Structure - J_0 (rotation about x-axis) : Acts on (y,z) components - J_1 (rotation about y-axis) : Acts on (z,x) components - J_2 (rotation about z-axis) : Acts on (x,y) components ## Physical Meaning Exponentiating θ·J_i produces a finite rotation by angle θ about axis i.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
def lorentzAlgebra.rotationGenerator (i : Fin 3) : Matrix (Fin 1 ⊕ Fin 3) (Fin 1 ⊕ Fin 3) ℝ
Defined in
Physlib, `lorentzAlgebra.rotationGenerator`
Lean proof
By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
10 Oct 2026
Axioms
none listed
Built on 1
  • NAEtoColor.clauseNodeColorGiven three Boolean values $a, b, c$ (the truth values of a clause's three literals) and an index $k \in \mathrm{Fin}\,3$, returns the…

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
/-- The rotation generator J_i in the Lorentz algebra so(1,3). This matrix generates infinitesimal rotations about the i-th axis following the right-hand rule. The matrix acts only on spatial indices in the antisymmetric pattern characteristic of angular momentum generators. ## Properties - Antisymmetric: J_iᵀ = -J_i - Traceless: tr(J_i) = 0 - Satisfies Lorentz algebra condition: J_iᵀ η = -η J_i ## Structure - J_0 (rotation about x-axis) : Acts on (y,z) components - J_1 (rotation about y-axis) : Acts on (z,x) components - J_2 (rotation about z-axis) : Acts on (x,y) components ## Physical Meaning Exponentiating θ·J_i produces a finite rotation by angle θ about axis i. -/
def lorentzAlgebra.rotationGenerator (i : Fin 3) : Matrix (Fin 1 ⊕ Fin 3) (Fin 1 ⊕ Fin 3) ℝ :=
  fun μ ν =>
    match i with
    | 0 => if μ = Sum.inr 1 ∧ ν = Sum.inr 2 then -1
            else if μ = Sum.inr 2 ∧ ν = Sum.inr 1 then 1
            else 0
      | 1 => if μ = Sum.inr 0 ∧ ν = Sum.inr 2 then 1
            else if μ = Sum.inr 2 ∧ ν = Sum.inr 0 then -1
            else 0
      | 2 => if μ = Sum.inr 0 ∧ ν = Sum.inr 1 then -1
            else if μ = Sum.inr 1 ∧ ν = Sum.inr 0 then 1
            else 0
See it in the graphDiscuss this resultChallenge it