Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:The Gerstenhaber problem for three commuting matrices

Source:Other sources
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Gerstenhaber's theorem [Ger61]: if AA and BB are commuting n×nn \times n matrices over a field KK, then the unital KK-algebra K[A,B]K[A, B] they generate has dimension at most nn.

Subjects:Rings and Algebras (math.RA)
MSC classes:15, 16
Cite as:NS.07181 [math.RA] · NS.07181v1 for this version
Declaration:Gerstenhaber.finrank_adjoin_pair_le
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:10aecf332c57ecb2083e5fe7b2c2ba2583b5a56ca282a4e259ed9d3c85d0f77f
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Other/GerstenhaberThreeMatrices.lean

Formal statement

theorem finrank_adjoin_pair_le (A B : Matrix (Fin n) (Fin n) K) (hAB : Commute A B) :
    Module.finrank K (Algebra.adjoin K {A, B}) ≤ n
Show the full Challenge.lean (119 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# The Gerstenhaber problem for three commuting matrices

Gerstenhaber proved in 1961 [Ger61] that the unital algebra generated by two commuting
$n \times n$ matrices over a field has dimension at most $n$. It is an open problem,
known as the **Gerstenhaber problem**, whether the same bound holds for three pairwise
commuting matrices. The bound fails for four or more pairwise commuting matrices.

*References:*
- [Ger61] M. Gerstenhaber, *On dominance and varieties of commuting matrices*.
  Annals of Mathematics (2) 73 (1961), no. 2, 324–348.
  https://doi.org/10.2307/1970336
- [arXiv:2402.16334](https://arxiv.org/abs/2402.16334), M. Satriano and W. Zhang,
  *On the algebra generated by three commuting matrices: combinatorial cases*.
- [arXiv:2006.08588](https://arxiv.org/abs/2006.08588), J. Holbrook and M. Omladič,
  *A computing strategy and programs to resolve the Gerstenhaber Problem for
  commuting triples of matrices*.
-/

@[expose] public section

namespace Gerstenhaber

variable {K : Type*} [Field K] {n : ℕ}

/--
**Gerstenhaber's theorem** [Ger61]: if $A$ and $B$ are commuting $n \times n$
matrices over a field $K$, then the unital $K$-algebra $K[A, B]$ they generate
has dimension at most $n$.
-/
@[category research solved, AMS 15 16]
theorem finrank_adjoin_pair_le (A B : Matrix (Fin n) (Fin n) K) (hAB : Commute A B) :
    Module.finrank K (Algebra.adjoin K {A, B}) ≤ n := by
  sorry

/--
**The Gerstenhaber problem**: if $A$, $B$, and $C$ are pairwise commuting
$n \times n$ matrices over a field $K$, is the dimension of the unital
$K$-algebra $K[A, B, C]$ they generate always at most $n$?
-/
@[category research open, question, AMS 15 16]
theorem finrank_adjoin_triple_le :
    ∀ (K : Type*) [Field K] (n : ℕ) (A B C : Matrix (Fin n) (Fin n) K),
      ({A, B, C} : Set (Matrix (Fin n) (Fin n) K)).Pairwise Commute →
        Module.finrank K (Algebra.adjoin K {A, B, C}) ≤ n := by
  sorry

/--
The analogue of Gerstenhaber's theorem fails for four pairwise commuting matrices:
over any field there are four pairwise commuting $4 \times 4$ matrices generating a unital
algebra of dimension greater than $4$. The standard example is
$e_{13}, e_{14}, e_{23}, e_{24}$, whose pairwise products all vanish, so the algebra
they generate has dimension $5$.
-/
@[category research solved, AMS 15 16]
theorem exists_finrank_adjoin_quadruple_gt (K : Type*) [Field K] :
    ∃ A B C D : Matrix (Fin 4) (Fin 4) K,
      ({A, B, C, D} : Set (Matrix (Fin 4) (Fin 4) K)).Pairwise Commute ∧
      4 < Module.finrank K (Algebra.adjoin K {A, B, C, D}) := by
  refine ⟨Matrix.single 0 2 1, Matrix.single 0 3 1, Matrix.single 1 2 1, Matrix.single 1 3 1,
    ?_, ?_⟩
  · -- All pairwise products vanish: the column index of one factor is `2` or `3` and the row
    -- index of the other is `0` or `1`.
    intro x hx y hy _
    simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hx hy
    rcases hx with rfl | rfl | rfl | rfl <;> rcases hy with rfl | rfl | rfl | rfl <;>
      first
      | exact Commute.refl _
      | exact (show _ * _ = _ * _ by simp (disch := decide) [Matrix.single_mul_single_of_ne])
  · -- `1, e₁₃, e₁₄, e₂₃, e₂₄` are linearly independent elements of the subalgebra.
    set S := Algebra.adjoin K ({Matrix.single 0 2 1, Matrix.single 0 3 1, Matrix.single 1 2 1,
      Matrix.single 1 3 1} : Set (Matrix (Fin 4) (Fin 4) K)) with hS
    let v : Fin 5 → Matrix (Fin 4) (Fin 4) K :=
      ![1, Matrix.single 0 2 1, Matrix.single 0 3 1, Matrix.single 1 2 1, Matrix.single 1 3 1]
    have hv : ∀ i, v i ∈ S := by
      intro i
      fin_cases i
      · exact one_mem S
      all_goals exact Algebra.subset_adjoin (by simp [v])
    have hw : LinearIndependent K fun i => (⟨v i, hv i⟩ : S) := by
      rw [Fintype.linearIndependent_iff]
      intro g hg i
      have h := congrArg Subtype.val hg
      simp only [Subalgebra.coe_zero] at h
      change ∑ j, g j • v j = 0 at h
      have e : ∀ a b : Fin 4, (∑ j, g j • v j) a b = 0 := fun a b => by rw [h]; rfl
      simp only [Matrix.sum_apply, Matrix.smul_apply, Fin.sum_univ_five, v] at e
      have e00 := e 0 0
      have e02 := e 0 2
      have e03 := e 0 3
      have e12 := e 1 2
      have e13 := e 1 3
      simp at e00 e02 e03 e12 e13
      fin_cases i <;> simp_all
    have := hw.fintype_card_le_finrank
    simp only [Fintype.card_fin] at this
    omega

end Gerstenhaber

To prove it: keep every definition of Challenge.lean unchanged and prove Gerstenhaber.finrank_adjoin_pair_le with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_finrank_adjoin_pair_le : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk other-gerstenhaberthreematrices      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch other-gerstenhaberthreematrices
nosorry submit other-gerstenhaberthreematrices nosorry/other-gerstenhaberthreematrices/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.