Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Degree of the determinant of a square submatrix

Definition
DiscreteConvex_MixedMatrices_SubDegDet

by Shuze Chen · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebradiscrete-convex-analysis

deg⁡det⁡M[I,J]\deg\det M[I,J]degdetM[I,J] for a submatrix with ∣I∣=∣J∣|I|=|J|∣I∣=∣J∣: reindex M[I,J]M[I,J]M[I,J] to a genuinely square matrix over the common type III via an (arbitrary) bijection I≃JI \simeq JI≃J, then take Polynomial.degree of its determinant.

Formalization Note. Changing the bijection only changes the determinant by a sign (a column permutation), so the degree — ⊥ exactly when the determinant is the zero polynomial, matching the book's convention deg⁡det⁡=−∞\deg\det = -\inftydegdet=−∞ for a singular submatrix — does not depend on this choice. When ∣I∣≠∣J∣|I| \ne |J|∣I∣=∣J∣ (never the case where this is used in this mission), the value is ⊥ by convention.

(Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.360, Theorem 12.13.)

Definition code
import Mathlib

/-!
Murota, *Discrete Convex Analysis*, SIAM 2003, p.360, Theorem 12.13 (the quantities
`deg det Q[I,J]`, `deg det T[R\I,C\J]`): the degree of the determinant of a square submatrix of a
polynomial matrix, in `DiscreteConvex.MixedMatrices`.
-/

namespace DiscreteConvex.MixedMatrices

/-- `deg det M[I,J]` for `M : Matrix R C (Polynomial 𝔽)` and `I ⊆ R`, `J ⊆ C` with
`I.card = J.card`: reindex `M[I,J]` to a genuinely square matrix over the common type `I` via an
arbitrary bijection `I ≃ J` (given by `Fintype.equivOfCardEq`), then take `Polynomial.degree` of
its determinant. Changing the bijection only changes the determinant by a sign (a column
permutation), so the degree — `⊥` exactly when the determinant is the zero polynomial, matching
the book's convention `deg det = −∞` for a singular submatrix — does not depend on this choice.
When `I.card ≠ J.card` (never the case where this is used in this mission), the value is `⊥`. -/
noncomputable def SubDegDet {R C 𝔽 : Type*} [Fintype R] [Fintype C] [Field 𝔽] [DecidableEq R]
    (M : Matrix R C (Polynomial 𝔽)) (I : Finset R) (J : Finset C) : WithBot ℕ :=
  if h : Fintype.card I = Fintype.card J then
    (Matrix.det (fun a b : I => M (a : R) ((Fintype.equivOfCardEq h b : J) : C))).degree
  else ⊥

end DiscreteConvex.MixedMatrices
Source
Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.360, Theorem 12.13

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