Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 7 — interchanging the last two elements does not change the circuit rank

Proved
WhitneyMatroid.RankCircuit.rankSeq_swap_last

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

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

Let the subsets of a finite set MMM be divided into circuits and non-circuits so that (C1)(\mathrm C_1)(C1​) and (C2)(\mathrm C_2)(C2​) hold, and let r(e1,…,eq)=∑iΓir(e_1, \dots, e_q) = \sum_i \Gamma_ir(e1​,…,eq​)=∑i​Γi​ be the rank of an ordered list defined from circuits (Γi=0\Gamma_i = 0Γi​=0 if some circuit inside {e1,…,ei}\{e_1, \dots, e_i\}{e1​,…,ei​} contains eie_iei​, else Γi=1\Gamma_i = 1Γi​=1). For distinct elements e1,…,eqe_1, \dots, e_qe1​,…,eq​,

r(e1,…,eq−2,eq−1,eq)=r(e1,…,eq−2,eq,eq−1).r(e_1, \dots, e_{q-2}, e_{q-1}, e_q) = r(e_1, \dots, e_{q-2}, e_q, e_{q-1}).r(e1​,…,eq−2​,eq−1​,eq​)=r(e1​,…,eq−2​,eq​,eq−1​).

This is the key step toward Lemma 8, that the circuit rank of a set does not depend on how its elements are ordered.

Formalization Note The list (e1,…,eq−2)(e_1,\dots,e_{q-2})(e1​,…,eq−2​) is l, and eq−1,eqe_{q-1}, e_qeq−1​,eq​ are a, b; the whole list l ++ [a, b] is required to have no repetitions, as the paper's "ordered set of elements" implies.

Preamble
import Mathlib
import Definitions.Def_WhitneyMatroid_RankCircuit_IsCircuitSystem
Formal statement
namespace WhitneyMatroid.RankCircuit

theorem rankSeq_swap_last {α : Type*} [Fintype α] [DecidableEq α]
    (C : Finset α → Prop) (hC : IsCircuitSystem C) (l : List α) (a b : α)
    (hnd : (l ++ [a, b]).Nodup) :
    rankSeq C (l ++ [a, b]) = rankSeq C (l ++ [b, a]) := by sorry

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