Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 5 — the nullity counts the steps at which adding an element closes a circuit

Proved
WhitneyMatroid.RankCircuit.nullity_eq_card_closesCircuit

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

circuitsmatroidsnullityp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1rank-function

Let rrr be a rank function on the subsets of a finite set MMM satisfying (R1)(\mathrm R_1)(R1​)–(R3)(\mathrm R_3)(R3​), and let N=e1+⋯+epN = e_1 + \cdots + e_pN=e1​+⋯+ep​ be built element by element from distinct elements e1,…,epe_1, \dots, e_pe1​,…,ep​. Then

n(N)=#{ i∈{1,…,p}:there is a circuit of r contained in e1+⋯+ei that contains ei }.n(N) = \#\bigl\{\, i \in \{1,\dots,p\} : \text{there is a circuit of } r \text{ contained in } e_1 + \cdots + e_i \text{ that contains } e_i \,\bigr\}.n(N)=#{i∈{1,…,p}:there is a circuit of r contained in e1​+⋯+ei​ that contains ei​}.

Whitney phrases this as: n(N)n(N)n(N) is the number of times that adding an element increases the number of circuits present. It shows that the nullity, hence the rank, of a set is determined by the circuits it contains, and it is the model for the definition of rank from circuits in §8.

Formalization Note "Adding an element increases the number of circuits present" is rendered, following the paper's proof, as "there is a circuit in e1+⋯+eie_1 + \cdots + e_ie1​+⋯+ei​ containing eie_iei​": the circuits present in e1+⋯+eie_1 + \cdots + e_ie1​+⋯+ei​ but not in e1+⋯+ei−1e_1 + \cdots + e_{i-1}e1​+⋯+ei−1​ are exactly those containing eie_iei​. The ordered set e1,…,epe_1, \dots, e_pe1​,…,ep​ is a duplicate-free list l; indices are 0-based in Lean. Nullity is integer valued.

Preamble
import Mathlib
import Definitions.Def_WhitneyMatroid_RankCircuit_IsRankSystem
import Definitions.Def_WhitneyMatroid_RankCircuit_IsCircuitSystem
open Classical
Formal statement
namespace WhitneyMatroid.RankCircuit

theorem nullity_eq_card_closesCircuit {α : Type*} [Fintype α] [DecidableEq α]
    (r : Finset α → ℤ) (hr : IsRankSystem r) (l : List α) (hl : l.Nodup) :
    WhitneyMatroid.RankIndep.nullity r l.toFinset =
      ((Finset.univ : Finset (Fin l.length)).filter
        (fun i => ClosesCircuit (circuitsOfRank r) l i)).card := by sorry

end WhitneyMatroid.RankCircuit
Source
Whitney, On the Abstract Properties of Linear Dependence, Amer. J. Math. 57 (1935), p. 513, Theorem 5
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