Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 7 — BBB is a base iff r(B)=r(M)r(B)=r(M)r(B)=r(M) and n(B)=0n(B)=0n(B)=0

Proved
WhitneyMatroid.Duality.isBase_iff_rank_eq_nullity_eq_zero

by mikedeng1 · 1 vote · Oct 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

basesmatroidsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let MMM be a matroid on a finite set of elements, with rank function rrr and nullity n(N)=ρ(N)−r(N)n(N)=\rho(N)-r(N)n(N)=ρ(N)−r(N), where ρ(N)\rho(N)ρ(N) is the number of elements of NNN. A subset BBB of MMM is a base of MMM if and only if

r(B)=r(M),n(B)=0.r(B) = r(M),\qquad n(B) = 0 .r(B)=r(M),n(B)=0.

In words: a base is exactly an independent set (n(B)=0n(B)=0n(B)=0) of full rank. Whitney uses this rank characterization of bases to pass from the rank identity (11.1) to statements about bases (Theorem 23).

Formalization Note The matroid is a Mathlib Matroid on a finite type with ground set the whole type; "base" is Mathlib's IsBase, which agrees with Whitney's (maximal independent set). r(M)r(M)r(M) is the rank of the whole ground set; the nullity is computed in Z\mathbb ZZ.

Preamble
import Mathlib
import Definitions.Def_WhitneyMatroid_Duality_IsDual
Formal statement
namespace WhitneyMatroid.Duality

/-- Whitney, Theorem 7 (p. 515): in a matroid `M` on a finite set of elements, `B` is a base if
and only if `r(B) = r(M)` and `n(B) = 0`. -/
theorem isBase_iff_rank_eq_nullity_eq_zero {α : Type*} [Finite α] (M : Matroid α)
    (hE : M.E = Set.univ) (B : Set α) :
    M.IsBase B ↔ (M.eRk B = M.eRk Set.univ ∧ WhitneyMatroid.Components.nullity M B = 0) := by sorry

end WhitneyMatroid.Duality
Source
Whitney, On the Abstract Properties of Linear Dependence, Amer. J. Math. 57 (1935), p. 515, Theorem 7
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me