Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

sl(n): Bsl ordered basis

Proved
QAlgorithms.Papers.Independent.Gap48.P15.sl_ordered_basis

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

All matrices and spans are over R\mathbb RR, and the Lie bracket is [X,Y]=XY−YX[X,Y]=XY-YX[X,Y]=XY−YX. The source uses one-based matrix indices. Write FpqF_{pq}Fpq​ for the matrix unit, Jpq=Fpq−FqpJ_{pq}=F_{pq}-F_{qp}Jpq​=Fpq​−Fqp​ and Zpq=Fpq+FqpZ_{pq}=F_{pq}+F_{qp}Zpq​=Fpq​+Fqp​. Here rank means Lie rank, and a Cartan subalgebra means a nilpotent, self-normalizing Lie subalgebra.

For every integer t≥1t\ge1t≥1, let sl(t,R)={X:tr⁡X=0}\mathfrak{sl}(t,\mathbb R)=\{X:\operatorname{tr}X=0\}sl(t,R)={X:trX=0}. Let Bsl(t)B_{\rm sl}(t)Bsl​(t) list all FpqF_{pq}Fpq​ with p≠qp\ne qp=q in increasing row then column order, followed by F11−FppF_{11}-F_{pp}F11​−Fpp​ for p=2,…,tp=2,\ldots,tp=2,…,t. Then

∣Bsl(t)∣=t2−1,Bsl(t) is a real basis of sl(t,R).|B_{\rm sl}(t)|=t^2-1,\qquad B_{\rm sl}(t)\text{ is a real basis of }\mathfrak{sl}(t,\mathbb R).∣Bsl​(t)∣=t2−1,Bsl​(t) is a real basis of sl(t,R).

For t=1t=1t=1 the family is empty and the Lie algebra is zero.

The explicit family is asserted to be linearly independent and to span the indicated subalgebra; these properties are conclusions. This records the mathematical assertion accompanying the source output.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P15
Formal statement
namespace QAlgorithms.Papers.Independent.Gap48.P15

attribute [local instance 100] LieRing.ofAssociativeRing

-- Reuse Mathlib Matrix and Matrix.single directly. Natural one-based
-- coordinates are restricted to Fin coordinates with Matrix.submatrix.

/-- Bsl is an ordered real basis of sl(t), with t^2-1 elements.
Source: PDF pp. 9-10. The positive-size convention includes t=1 and its empty basis. -/
theorem sl_ordered_basis (t : ℕ) (ht : 0 < t) :
    (bSl t).length = t ^ 2 - 1 ∧
    isBasisFor (LieAlgebra.SpecialLinear.sl (Fin t) ℝ) (listFamily (bSl t)) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P15
Source
Algorithm to compute the rank and a Cartan subalgebra of a matrix Lie algebra with Mathematica, arXiv:math/0205235v1, PDF p. 9, sl(n): Bsl ordered basis
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every natural number t>0t>0t>0, let EpqE_{pq}Epq​ denote the real t×tt\times tt×t matrix with a single 111 in row ppp, column qqq, using labels 1,…,t1,\ldots,t1,…,t, and zeros elsewhere. Form an ordered list by first listing EpqE_{pq}Epq​ with p=1,…,tp=1,\ldots,tp=1,…,t in increasing order and, for each ppp, q=1,…,tq=1,\ldots,tq=1,…,t in increasing order with q≠pq\ne pq=p, and then appending

E11−E22, E11−E33, …, E11−Ett.E_{11}-E_{22},\ E_{11}-E_{33},\ \ldots,\ E_{11}-E_{tt}.E11​−E22​, E11​−E33​, …, E11​−Ett​.

This list has length t2−1t^2-1t2−1, and the family obtained by indexing its entries from zero is linearly independent over R\mathbb RR and has real linear span equal to

sl(t,R)={A∈Mt(R):tr⁡(A)=0}.\mathfrak{sl}(t,\mathbb R)=\{A\in M_t(\mathbb R):\operatorname{tr}(A)=0\}.sl(t,R)={A∈Mt​(R):tr(A)=0}.

The case t=1t=1t=1 is included: both portions of the list are empty and their span is the zero space; t=0t=0t=0 is excluded by the hypothesis.

Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 21, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me