Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Determinantal and border determinantal complexity of the permanent

Definition
GCT_determinantal_complexity

by LG · Sep 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-geometrycomplexity-theorygeometric-complexity-theory

The setting of the determinant versus permanent problem, following Landsberg.

Fix mmm and let permm=∑σ∈Sm∏iyσ(i)i\mathrm{perm}_m = \sum_{\sigma \in S_m} \prod_i y_{\sigma(i) i}permm​=∑σ∈Sm​​∏i​yσ(i)i​ be the permanent of an m×mm \times mm×m matrix of variables, a homogeneous polynomial of degree mmm in m2m^2m2 variables, and let det⁡n\det_ndetn​ be the determinant of an n×nn \times nn×n matrix of variables, a homogeneous polynomial of degree nnn on W=Cn2W = \mathbb{C}^{n^2}W=Cn2. With an auxiliary linear coordinate ℓ\ellℓ and a linear inclusion Cm2+1↪W\mathbb{C}^{m^2+1} \hookrightarrow WCm2+1↪W, the padded permanent ℓ n−mpermm\ell^{\,n-m}\mathrm{perm}_mℓn−mpermm​ is a degree-nnn element of SnWS^n WSnW.

Acting on SnWS^n WSnW by linear substitution, End(W)⋅det⁡n\mathrm{End}(W) \cdot \det_nEnd(W)⋅detn​ is the set of polynomials det⁡n∘Λ\det_n \circ \Lambdadetn​∘Λ; concretely these are exactly the determinants of n×nn \times nn×n matrices whose entries are homogeneous linear forms. Its closure is the orbit closure Detn=GL(W)⋅[det⁡n]‾\mathrm{Det}_n = \overline{GL(W) \cdot [\det_n]}Detn​=GL(W)⋅[detn​]​, and membership in that closure is rendered here as a coefficientwise limit of such determinants.

This gives the two complexity measures of the mission:

dc(permm)=min⁡{n≥m:ℓ n−mpermm∈End(W)⋅det⁡n},\mathrm{dc}(\mathrm{perm}_m) = \min\{n \ge m : \ell^{\,n-m}\mathrm{perm}_m \in \mathrm{End}(W) \cdot \det_n\},dc(permm​)=min{n≥m:ℓn−mpermm​∈End(W)⋅ndet​}, dc‾(permm)=min⁡{n≥m:ℓ n−mpermm∈End(W)⋅det⁡n‾}.\overline{\mathrm{dc}}(\mathrm{perm}_m) = \min\{n \ge m : \ell^{\,n-m}\mathrm{perm}_m \in \overline{\mathrm{End}(W) \cdot \det_n}\}.dc(permm​)=min{n≥m:ℓn−mpermm​∈End(W)⋅ndet​​}.

The affine variant — permm\mathrm{perm}_mpermm​ is an affine linear projection of det⁡n\det_ndetn​, i.e. the determinant of an n×nn \times nn×n matrix of affine-linear forms — is Valiant's original definition of determinantal complexity, and is included so that the equivalence of the two formulations can itself be a milestone.

Definition code
import Mathlib

namespace GCT

open MvPolynomial

/-- Variables for the padded permanent of size `m`: `none` is the auxiliary padding
coordinate `ℓ`, and `some (i, j)` is the matrix entry `y_{ij}`. -/
abbrev PadVars (m : ℕ) := Option (Fin m × Fin m)

/-- The permanent polynomial `perm_m = ∑_{σ ∈ S_m} y_{σ(1)1} ⋯ y_{σ(m)m}` in the `m²`
variables `y_{ij}`. -/
noncomputable def permPoly (m : ℕ) : MvPolynomial (Fin m × Fin m) ℂ :=
  Matrix.permanent (Matrix.of fun i j => (X (i, j) : MvPolynomial (Fin m × Fin m) ℂ))

/-- The permanent polynomial `perm_m`, written in the variable set `PadVars m`, which
also carries the padding variable `ℓ`. -/
noncomputable def permPolyPad (m : ℕ) : MvPolynomial (PadVars m) ℂ :=
  Matrix.permanent (Matrix.of fun i j => (X (some (i, j)) : MvPolynomial (PadVars m) ℂ))

/-- The padded permanent `ℓ^(n-m) perm_m`; it is homogeneous of degree `n` when `m ≤ n`. -/
noncomputable def paddedPerm (m n : ℕ) : MvPolynomial (PadVars m) ℂ :=
  (X none) ^ (n - m) * permPolyPad m

/-- `HasLinearDetRep n p` : `p = det_n ∘ Λ` for a linear substitution `Λ`, i.e. `p` is the
determinant of an `n × n` matrix whose entries are homogeneous linear forms (possibly `0`).
This is membership of `p` in the affine cone over `End(W) · det_n`. -/
def HasLinearDetRep {σ : Type*} (n : ℕ) (p : MvPolynomial σ ℂ) : Prop :=
  ∃ A : Matrix (Fin n) (Fin n) (MvPolynomial σ ℂ),
    (∀ i j, (A i j).IsHomogeneous 1) ∧ A.det = p

/-- `HasBorderLinearDetRep n p` : `p` is a coefficientwise limit of determinants
`det_n ∘ Λ_k` of matrices of homogeneous linear forms, i.e. `p` lies in the affine cone
over the orbit closure `Det_n = GL(W) · [det_n]`. -/
def HasBorderLinearDetRep {σ : Type*} (n : ℕ) (p : MvPolynomial σ ℂ) : Prop :=
  ∃ A : ℕ → Matrix (Fin n) (Fin n) (MvPolynomial σ ℂ),
    (∀ k i j, (A k i j).IsHomogeneous 1) ∧
      ∀ d : σ →₀ ℕ,
        Filter.Tendsto (fun k => coeff d ((A k).det)) Filter.atTop (nhds (coeff d p))

/-- `HasAffineDetRep n p` : `p` is the determinant of an `n × n` matrix whose entries are
affine-linear polynomials (total degree at most `1`), i.e. `p` is an affine linear
projection of `det_n`. -/
def HasAffineDetRep {σ : Type*} (n : ℕ) (p : MvPolynomial σ ℂ) : Prop :=
  ∃ A : Matrix (Fin n) (Fin n) (MvPolynomial σ ℂ),
    (∀ i j, (A i j).totalDegree ≤ 1) ∧ A.det = p

/-- The determinantal complexity `dc(perm_m)`: the least `n ≥ m` such that
`ℓ^(n-m) perm_m ∈ End(W) · det_n`. -/
noncomputable def dc (m : ℕ) : ℕ :=
  sInf {n : ℕ | m ≤ n ∧ HasLinearDetRep n (paddedPerm m n)}

/-- The border determinantal complexity `dcBar(perm_m)`: the least `n ≥ m` such that
`ℓ^(n-m) perm_m` lies in the orbit closure `Det_n = GL(W) · [det_n]`. -/
noncomputable def dcBar (m : ℕ) : ℕ :=
  sInf {n : ℕ | m ≤ n ∧ HasBorderLinearDetRep n (paddedPerm m n)}

end GCT
Source
J. M. Landsberg, *Geometry and Complexity Theory*, Cambridge Studies in Advanced Mathematics 169, CUP 2017, DOI 10.1017/9781108183192, pp. 14–16: Definition 1.2.4.1 (determinantal complexity), Equation (1.2.4), Definition 1.2.5.1 (border determinantal complexity); J. M. Landsberg, *Geometric Complexity Theory: an introduction for geometers*, arXiv:1305.7387v3, https://arxiv.org/abs/1305.7387, pp. 3–4, §2.1.
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Provenance note — this read-back is NOT blind and NOT independent. It was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the human who owns this proposal, and not by a separate auditor with a fresh context. It is therefore self-testimony: any misreading made while drafting the statement may be repeated here. Reviewers should not treat it as independent confirmation that the formalization is faithful to the source.

The statement is phrased in terms of the following notions.

For a natural number mmm, the permanent polynomial is the element of the polynomial ring C[yij]\mathbb{C}[y_{ij}]C[yij​] in m2m^2m2 commuting indeterminates given by

permm  =  ∑σ∈Sm  ∏iyσ(i) i,\mathrm{perm}_m \;=\; \sum_{\sigma \in S_m} \; \prod_{i} y_{\sigma(i)\, i},permm​=σ∈Sm​∑​i∏​yσ(i)i​,

the sum running over all permutations of the mmm-element index set (for m=0m = 0m=0 the conventions give perm0=1\mathrm{perm}_0 = 1perm0​=1).

A second copy of the permanent is taken in the larger variable set consisting of the m2m^2m2 variables yijy_{ij}yij​ together with one extra variable ℓ\ellℓ; in that ring the padded permanent of size nnn is

pad(m,n)  =  ℓ n−m⋅permm,\mathrm{pad}(m, n) \;=\; \ell^{\,n - m} \cdot \mathrm{perm}_m,pad(m,n)=ℓn−m⋅permm​,

where n−mn - mn−m is truncated natural-number subtraction: if n<mn < mn<m the exponent is 000 and the padded permanent is just permm\mathrm{perm}_mpermm​.

For a polynomial ppp in any variable set:

  • ppp has a linear determinantal representation of size nnn when there exists an n×nn \times nn×n matrix AAA of polynomials such that every entry AijA_{ij}Aij​ is homogeneous of degree 111 (the zero polynomial counts as homogeneous of degree 111, so entries may vanish, but nonzero constants are not allowed) and det⁡A=p\det A = pdetA=p.
  • ppp has a border linear determinantal representation of size nnn when there is a sequence A(k)A^{(k)}A(k), k∈Nk \in \mathbb{N}k∈N, of n×nn \times nn×n matrices all of whose entries are homogeneous of degree 111, such that for every monomial exponent vector ddd the scalars coeffd(det⁡A(k))\mathrm{coeff}_d(\det A^{(k)})coeffd​(detA(k)) converge in C\mathbb{C}C, as k→∞k \to \inftyk→∞, to coeffd(p)\mathrm{coeff}_d(p)coeffd​(p). Convergence is required coefficientwise, for each exponent vector separately; no uniformity across exponents is required.
  • ppp has an affine determinantal representation of size nnn when there is an n×nn \times nn×n matrix AAA of polynomials with deg⁡Aij≤1\deg A_{ij} \le 1degAij​≤1 for all i,ji, ji,j (constants permitted) and det⁡A=p\det A = pdetA=p.

Finally,

dc(m)=inf⁡{ n∈N  :  m≤n and pad(m,n) has a linear determinantal representation of size n },\mathrm{dc}(m) = \inf\{\, n \in \mathbb{N} \;:\; m \le n \text{ and } \mathrm{pad}(m, n) \text{ has a linear determinantal representation of size } n \,\},dc(m)=inf{n∈N:m≤n and pad(m,n) has a linear determinantal representation of size n}, dc‾(m)=inf⁡{ n∈N  :  m≤n and pad(m,n) has a border linear determinantal representation of size n },\overline{\mathrm{dc}}(m) = \inf\{\, n \in \mathbb{N} \;:\; m \le n \text{ and } \mathrm{pad}(m, n) \text{ has a border linear determinantal representation of size } n \,\},dc(m)=inf{n∈N:m≤n and pad(m,n) has a border linear determinantal representation of size n},

each the least element of a set of natural numbers. This is a total function: if the set is empty the value is 000 by convention, so every assertion below also speaks about that junk value whenever the relevant set happens to be empty.

The file introduces exactly these notions and asserts nothing: the permanent polynomial in m2m^2m2 variables, the same polynomial inside the variable set extended by one padding variable ℓ\ellℓ, the padded permanent ℓ n−mpermm\ell^{\,n-m}\mathrm{perm}_mℓn−mpermm​ (with truncated subtraction in the exponent), the three representation predicates (linear, border linear, affine), and the two complexity functions dc\mathrm{dc}dc and dc‾\overline{\mathrm{dc}}dc as least elements of the corresponding sets of admissible sizes. Everything is over the complex numbers. The determinant is the ordinary signed determinant over a commutative ring and the permanent is its unsigned analogue. No claim of existence, minimality or finiteness is made anywhere in the file.

Human review
  • Endorsed by marwahaha · Nov 23, 2026

  • Endorsed by Abhishek Anand · Nov 23, 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