Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Rank of a submatrix M[I,J]M[I,J]M[I,J]

Definition
DiscreteConvex_MixedMatrices_MatrixSubRank

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

combinatoricsdiscrete-convex-analysis

The rank of the submatrix M[I,J]M[I,J]M[I,J] of MMM with row indices in I⊆RI \subseteq RI⊆R and column indices in J⊆CJ \subseteq CJ⊆C (the book's notation A[I,J], p.357).

(Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.357.)

Definition code
import Mathlib

/-!
Murota, *Discrete Convex Analysis*, SIAM 2003, p.357 (the submatrix notation `A[I,J]` and its
rank, used throughout section 12.3), in `DiscreteConvex.MixedMatrices`.
-/

namespace DiscreteConvex.MixedMatrices

/-- The rank of the submatrix `M[I,J]` of `M : Matrix R C 𝔽` with row indices in `I ⊆ R` and
column indices in `J ⊆ C`. -/
noncomputable def MatrixSubRank {R C 𝔽 : Type*} [Fintype R] [Fintype C] [Field 𝔽]
    (M : Matrix R C 𝔽) (I : Finset R) (J : Finset C) : ℕ :=
  (M.submatrix ((↑) : I → R) ((↑) : J → C)).rank

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

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