AFTD Auto-Formalizing Theoretical Domains

Lorentz.SL2C.rotationZToAxis_zero_mul_diagonal_mul_inv

theoremverifiedformalizationimported Lean

Conjugating diag(a, b) by the rotation to the x-axis expresses it in the x-axis basis.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix MatrixGroups in
lemma Lorentz.SL2C.rotationZToAxis_zero_mul_diagonal_mul_inv (a b : ℂ) :
    (rotationZToAxis 0).1 * !![a, 0; 0, b] * ((rotationZToAxis 0)⁻¹).1 =
      !![(a + b) / 2, (a - b) / 2; (a - b) / 2, (a + b) / 2]
Formalizes
Physlib, `Lorentz.SL2C.rotationZToAxis_zero_mul_diagonal_mul_inv`
Lean proof
By Jinzheng Li, Nathaneal Sajan, Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2026 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
Classical.choiceQuot.soundpropext
Built on 8
Used by 1

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Matrix MatrixGroups in/-- Conjugating `diag(a, b)` by the rotation to the `x`-axis expresses it in the `x`-axis basis. -/lemma Lorentz.SL2C.rotationZToAxis_zero_mul_diagonal_mul_inv (a b : ℂ) :    (rotationZToAxis 0).1 * !![a, 0; 0, b] * ((rotationZToAxis 0)⁻¹).1 =      !![(a + b) / 2, (a - b) / 2; (a - b) / 2, (a + b) / 2] := by  have hsqrt_ne : (((Real.sqrt 2 : ℝ) : ℂ)) ≠ 0 := by simp  ext j k  fin_cases j <;> fin_cases k <;>    simp only [Matrix.mul_apply, Fin.sum_univ_two, rotationZToAxis_zero_apply,      rotationZToAxis_zero_inv_apply] <;>    simp <;>    field_simp <;>    norm_num [← Complex.ofReal_pow, Real.sq_sqrt] <;>    ring
See it in the graphDiscuss this resultChallenge it