Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Dimension of the span of columns together with unit vectors

Proved
DiscreteConvex.MixedMatrices.finrank_span_cols_union_single

by moona3k · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

discrete-convex-analysislinear-algebramixed-matrices

Let R,CR,CR,C be finite index sets, let MMM be a matrix over a field FFF with rows indexed by RRR and columns by CCC, let J⊆CJ\subseteq CJ⊆C and N⊆RN\subseteq RN⊆R. Consider in FRF^RFR the columns McM_cMc​ for c∈Jc\in Jc∈J together with the unit vectors ese_ses​ for s∈Ns\in Ns∈N. Then

dim⁡Fspan⁡({Mc:c∈J}∪{es:s∈N})=∣N∣+rank⁡M[R∖N,J].\dim_F\operatorname{span}\bigl(\{M_c:c\in J\}\cup\{e_s:s\in N\}\bigr)=|N|+\operatorname{rank}M[R\setminus N,J] .dimF​span({Mc​:c∈J}∪{es​:s∈N})=∣N∣+rankM[R∖N,J].

Formalization Note. Pi.single s 1 is the unit vector es∈FRe_s\in F^Res​∈FR; MatrixSubRank M Nᶜ J is the platform definition of rank⁡M[R∖N,J]\operatorname{rank}M[R\setminus N,J]rankM[R∖N,J].

Preamble
import Mathlib
import Definitions.Def_DiscreteConvex_MixedMatrices_MatrixSubRank
Formal statement
namespace DiscreteConvex.MixedMatrices

theorem finrank_span_cols_union_single {R C F : Type*} [Fintype R] [Fintype C] [Field F]
    [DecidableEq R] (M : Matrix R C F) (J : Finset C) (N : Finset R) :
    Module.finrank F (Submodule.span F
      (((fun c : C => (fun r : R => M r c)) '' (J : Set C)) ∪
        ((fun s : R => (Pi.single s (1 : F) : R → F)) '' (N : Set R)))) =
      N.card + MatrixSubRank M Nᶜ J := by sorry

end DiscreteConvex.MixedMatrices
Source
Auxiliary lemma for Murota, Discrete Convex Analysis, SIAM 2003, Theorems 12.8-12.9 (p. 358); elementary linear algebra, not stated in the book

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