AFTD Auto-Formalizing Theoretical Domains

SULieAlgebra.instBracket

instanceimported Lean

The bracket ⁅x, y⁆ = i (x y - y x).

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open SULieAlgebra in
open Matrix TensorProduct ComplexStarModule in
variable {n : ℕ} {R : Type*} [CommRing R] [StarRing R] [Algebra ℝ R] [StarModule ℝ R] in
variable [Algebra ℂ R] [StarModule ℂ R] in
noncomputable instance SULieAlgebra.instBracket : Bracket (SULieAlgebra n R) (SULieAlgebra n R)
Defined in
Physlib, `SULieAlgebra.instBracket`
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
09 Oct 2026
Axioms
none listed
Built on 6
Used by 10

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open SULieAlgebra in
open Matrix TensorProduct ComplexStarModule in
variable {n : ℕ} {R : Type*} [CommRing R] [StarRing R] [Algebra ℝ R] [StarModule ℝ R] in
variable [Algebra ℂ R] [StarModule ℂ R] in
/-- The bracket `⁅x, y⁆ = i (x y - y x)`. -/
noncomputable instance SULieAlgebra.instBracket : Bracket (SULieAlgebra n R) (SULieAlgebra n R) where
  bracket x y := ofMatrix (Complex.I • (x.1 * y.1 - y.1 * x.1))
    (by
      rw [star_smul, star_sub, star_mul, star_mul, x.star_val_eq, y.star_val_eq,
        Complex.star_def, Complex.conj_I, neg_smul, ← smul_neg, neg_sub])
    (by rw [Matrix.trace_smul, Matrix.trace_sub, Matrix.trace_mul_comm, sub_self, smul_zero])
See it in the graphDiscuss this resultChallenge it