Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5.1: trace form, Gram determinant and dual basis

Proved
QAlgorithms.Papers.Independent.Intake100.P88.trace_gram_dual_equivalences

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let AAA be a finite-dimensional unital algebra over a field FFF, let t:A→Ft:A\to Ft:A→F be linear with t(ab)=t(ba)t(ab)=t(ba)t(ab)=t(ba), and let (bi)i∈I(b_i)_{i\in I}(bi​)i∈I​ be a finite basis. Set Gij=t(bibj)G_{ij}=t(b_i b_j)Gij​=t(bi​bj​). The following are equivalent:

(∀b≠0 ∃a, t(ba)≠0)⟺det⁡G≠0⟺∃ a basis (bi∗), t(bibj∗)=δij.\bigl(\forall b\ne0\ \exists a,\ t(ba)\ne0\bigr) \quad\Longleftrightarrow\quad\det G\ne0 \quad\Longleftrightarrow\quad \exists\text{ a basis }(b_i^*),\ t(b_i b_j^*)=\delta_{ij}.(∀b=0 ∃a, t(ba)=0)⟺detG=0⟺∃ a basis (bi∗​), t(bi​bj∗​)=δij​.

The nonzero qualification follows the source's proof, correcting its preceding prose. This criterion supplies actual dual bases for trace averaging, including the zero-dimensional algebra with empty Gram determinant one.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P88
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P88

attribute [local instance] Classical.propDecidable

open scoped BigOperators Matrix

open QAlgorithms.Papers.Independent.Information100.P65 (hookLength)

open QAlgorithms.Papers.Independent.Renew46.P30 (TensorIndex)

universe u v w x y

/-- Nondegeneracy, determinant, and existence of dual basis, PDF p.39, Lemma 5.1.
SOURCE CORRECTION: nondegeneracy tests nonzero `b`, as the proof explicitly requires. -/
theorem trace_gram_dual_equivalences (F A I : Type*) [Field F] [Ring A] [Algebra F A]
    [FiniteDimensional F A] [Fintype I] [DecidableEq I]
    (t : A →ₗ[F] F) (_htrace : ∀ a b : A, t (a * b) = t (b * a)) (b : Module.Basis I F A) :
    (TraceNondegenerate (fun a => t a) ↔ (traceGram t b).det ≠ 0) ∧
    ((traceGram t b).det ≠ 0 ↔ ∃ c : Module.Basis I F A, IsTraceDualBasis t b c) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P88

end
Source
Partition Algebras, arXiv:math/0401314v2, PDF p. 39, Lemma 5.1: trace form, Gram determinant and dual basis
Read-back

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

Let FFF be a field, AAA a finite-dimensional FFF-algebra whose underlying structure is a ring, and III a finite index type with decidable equality. Let t:A→Ft:A\to Ft:A→F be FFF-linear and satisfy t(ab)=t(ba)t(ab)=t(ba)t(ab)=t(ba) for every a,b∈Aa,b\in Aa,b∈A, and let (bi)i∈I(b_i)_{i\in I}(bi​)i∈I​ be an FFF-basis of AAA. Define Gij=t(bibj)G_{ij}=t(b_i b_j)Gij​=t(bi​bj​). Then both equivalences hold: the condition that every nonzero x∈Ax\in Ax∈A admits y∈Ay\in Ay∈A with t(xy)≠0t(xy)\ne0t(xy)=0 is equivalent to det⁡G≠0\det G\ne0detG=0; and det⁡G≠0\det G\ne0detG=0 is equivalent to the existence of an FFF-basis (ci)i∈I(c_i)_{i\in I}(ci​)i∈I​ of AAA satisfying t(bicj)=δijt(b_i c_j)=\delta_{ij}t(bi​cj​)=δij​ for every i,j∈Ii,j\in Ii,j∈I. The latter assertion is existence, without a uniqueness clause. Empty III is included: its matrix has determinant 111, and its basis forces AAA to be the zero vector space, making the nonzero-element condition vacuous.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me