AFTD Auto-Formalizing Theoretical Domains

Lorentz.SL2C.rotationZToAxis_one_mul_diagonal_mul_inv

theoremverifiedformalizationimported Lean

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

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix MatrixGroups in
lemma Lorentz.SL2C.rotationZToAxis_one_mul_diagonal_mul_inv (a b : ℂ) :
    (rotationZToAxis 1).1 * !![a, 0; 0, b] * ((rotationZToAxis 1)⁻¹).1 =
      !![(a + b) / 2, -Complex.I * (a - b) / 2;
        Complex.I * (a - b) / 2, (a + b) / 2]
Formalizes
Physlib, `Lorentz.SL2C.rotationZToAxis_one_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 `y`-axis expresses it in the `y`-axis basis. -/lemma Lorentz.SL2C.rotationZToAxis_one_mul_diagonal_mul_inv (a b : ℂ) :    (rotationZToAxis 1).1 * !![a, 0; 0, b] * ((rotationZToAxis 1)⁻¹).1 =      !![(a + b) / 2, -Complex.I * (a - b) / 2;        Complex.I * (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  all_goals    simp only [Matrix.mul_apply, Fin.sum_univ_two, rotationZToAxis_one_apply,      rotationZToAxis_one_inv_apply]    simp only [Fin.zero_eta, Fin.isValue, Matrix.smul_apply, of_apply, cons_val',      cons_val_zero, cons_val_fin_one, smul_eq_mul, mul_one, cons_val_one, mul_zero,      add_zero, zero_add, mul_neg, neg_mul, Fin.mk_one]    field_simp    norm_num [← Complex.ofReal_pow, Real.sq_sqrt]  all_goals ring
See it in the graphDiscuss this resultChallenge it