AFTD Auto-Formalizing Theoretical Domains

not_matroid_connected_of_fund_circuit_separated_finite

theoremverified

If M is a matroid with finite ground set, B is a base, and A is a non-empty proper subset of B such that every e in E \ B whose fundamental circuit meets A has its fundamental circuit contained in insert e A, then M is not connected.

Statement

theorem not_matroid_connected_of_fund_circuit_separated_finite {α : Type*} (M : Matroid α) {B : Set α} (hE : M.E.Finite) (hB : M.IsBase B) {A : Set α} (hAne : A.Nonempty) (hAB : A ⊂ B) (hsep : ∀ e ∈ M.E \ B, (M.fundCircuit e B ∩ A).Nonempty → M.fundCircuit e B ⊆ insert e A) : ¬ matroid_connected M
Source
step towards not_matroid_connected_of_fund_circuit_separated
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
Used by 1

The proof, explained

We argue by contradiction, assuming that $M$ is connected. We define a candidate separator $S$ consisting of $A$ along with all elements of $E \setminus B$ whose fundamental circuits meet $A$. The hypothesis implies that every fundamental circuit is either wholly inside $S$ or disjoint from $S$, which transfers to all circuits of $M$ via a lemma on finite set differences. Selecting $a \in A$ and $b \in B \setminus A$, connectivity yields a circuit $C$ containing both $a$ and $b$. This produces a contradiction, as $C$ cannot be contained in $S$ (since $b \notin S$) nor disjoint from $S$ (since $a \in S$).

  1. Assume for contradiction that $M$ is connected, and define the candidate separating set $S$.

    We assume for contradiction that $M$ is connected (`hconn`). We define $S$ as the union of $A$ and the set of all elements $x \in E \setminus B$ whose fundamental circuit with respect to $B$ intersects $A$.

    lines 3–4

      intro hconn
      set S : Set α := A ∪ {x : α | x ∈ M.E \ B ∧ (M.fundCircuit x B ∩ A).Nonempty} with hS
  2. For every $e \in E \setminus B$, the fundamental circuit $C(e, B)$ is either contained in $S$ or disjoint from $S$.

    For any $e \in E \setminus B$, we test whether $C(e, B) \cap A$ is non-empty. If it is non-empty, hypothesis `hsep` gives $C(e, B) \subseteq \{e\} \cup A$; since $A \subseteq S$ and $e \in S$ by definition of $S$, we have $C(e, B) \subseteq S$. If it is empty, we show $C(e, B)$ is disjoint from $S$ using `Set.disjoint_left`. If some $x \in C(e, B)$ were in $S$, then either $x \in A$ (contradicting $C(e, B) \cap A = \emptyset$) or $x \in E \setminus B$ with $C(x, B) \cap A \neq \emptyset$. But by `M.fundCircuit_subset_insert`, $C(e, B) \subseteq \{e\} \cup B$, so the only element of $C(e, B)$ outside $B$ is $e$, which implies $x = e$ and contradicts $C(e, B) \cap A = \emptyset$.

    lines 5–24

    uses M.fundCircuit_subset_insert, Set.disjoint_left

      have hmono : ∀ e ∈ M.E \ B, M.fundCircuit e B ⊆ S ∨ Disjoint (M.fundCircuit e B) S := by
        intro e he
        by_cases hne : (M.fundCircuit e B ∩ A).Nonempty
        · left
          intro x hx
          have hsub := hsep e he hne hx
          rw [hS]
          rcases hsub with rfl | hxA
          · exact Or.inr ⟨he, hne⟩
          · exact Or.inl hxA
        · right
          rw [Set.disjoint_left]
          intro x hx hxS
          rw [hS] at hxS
          have hsub := M.fundCircuit_subset_insert e B hx
          rcases hxS with hxA | ⟨hxEB, hne'⟩
          · exact hne ⟨x, hx, hxA⟩
          · rcases hsub with rfl | hxB
            · exact hne hne'
            · exact hxEB.2 hxB
  3. There exist distinct ground elements $a \in A$ and $b \in B \setminus A$.

    Because $A$ is non-empty, we can pick $a \in A$. Because $A$ is a proper subset of $B$, `Set.exists_of_ssubset` provides an element $b \in B$ with $b \notin A$. Both $a$ and $b$ belong to $E$ because $A \subseteq B \subseteq E$. Finally, $a \neq b$ because $a \in A$ while $b \notin A$.

    lines 25–29

    uses Set.exists_of_ssubset

      obtain ⟨a, haA⟩ := hAne
      obtain ⟨b, hbB, hbA⟩ := Set.exists_of_ssubset hAB
      have haE : a ∈ M.E := hB.subset_ground (hAB.subset haA)
      have hbE : b ∈ M.E := hB.subset_ground hbB
      have hne_ab : a ≠ b := by intro h; exact hbA (h ▸ haA)
  4. There is a circuit $C$ containing both $a$ and $b$.

    Applying the connectivity assumption `hconn` to $a$ and $b$ gives that either $a = b$ or there exists a circuit $C$ containing both $a$ and $b$. Since $a \neq b$, the first case is eliminated, leaving the circuit $C$.

    lines 30–31

      obtain h | ⟨C, hC, haC, hbC⟩ := hconn a haE b hbE
      · exact hne_ab h
  5. The circuit $C$ is either a subset of $S$ or disjoint from $S$, and $a \in S$.

    Because $E$ is finite and $C \subseteq E$, the set difference $C \setminus B$ is finite. By `matroid_circuit_mono_of_fundCircuit_mono_of_finite_sdiff`, since every fundamental circuit is either contained in $S$ or disjoint from $S$, the circuit $C$ must also satisfy $C \subseteq S$ or be disjoint from $S$. In addition, $a \in S$ because $a \in A \subseteq S$.

    lines 32–34

    uses matroid_circuit_mono_of_fundCircuit_mono_of_finite_sdiff

      · have hfin : (C \ B).Finite := (hE.subset hC.subset_ground).sdiff
        have hCS := matroid_circuit_mono_of_fundCircuit_mono_of_finite_sdiff M hB hmono C hC hfin
        have haS : a ∈ S := by rw [hS]; exact Or.inl haA
  6. Both alternatives for $C$ lead to contradiction, concluding the proof.

    We split on whether $C \subseteq S$ or $C$ is disjoint from $S$. If $C \subseteq S$, then $b \in S$ since $b \in C$; but an element of $S$ is either in $A$ (contradicting $b \notin A$) or in $E \setminus B$ (contradicting $b \in B$). If $C$ is disjoint from $S$, this contradicts $a \in C$ and $a \in S$ via `Set.disjoint_left`. Both branches yield a contradiction.

    lines 35–42

    uses Set.disjoint_left

        rcases hCS with hCS | hdisj
        · have hbS : b ∈ S := hCS hbC
          rw [hS] at hbS
          rcases hbS with hbA' | ⟨hbEB, _⟩
          · exact hbA hbA'
          · exact hbEB.2 hbB
        · rw [Set.disjoint_left] at hdisj
          exact hdisj haC haS
M.fundCircuit_subset_insert
The fundamental circuit of an element $e$ with respect to a set $I$ is contained in $\{e\} \cup I$.
Set.disjoint_left
Two sets are disjoint if and only if no element of the first set belongs to the second set.
Set.exists_of_ssubset
If a set is a strict subset of another, then there exists an element in the larger set that is not in the smaller set.
matroid_circuit_mono_of_fundCircuit_mono_of_finite_sdiff
If every fundamental circuit of a base $B$ is either contained in $P$ or disjoint from $P$, then any circuit $C$ for which $C \setminus B$ is finite is also either contained in $P$ or disjoint from $P$.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- A non-empty proper subset A of a base B whose separated fundamental circuits stay inside insert e A certifies disconnection, on a finite ground set. -/theorem not_matroid_connected_of_fund_circuit_separated_finite {α : Type*} (M : Matroid α) {B : Set α} (hE : M.E.Finite) (hB : M.IsBase B) {A : Set α} (hAne : A.Nonempty) (hAB : A ⊂ B) (hsep : ∀ e ∈ M.E \ B, (M.fundCircuit e B ∩ A).Nonempty → M.fundCircuit e B ⊆ insert e A) : ¬ matroid_connected M := by  intro hconn  set S : Set α := A ∪ {x : α | x ∈ M.E \ B ∧ (M.fundCircuit x B ∩ A).Nonempty} with hS  have hmono : ∀ e ∈ M.E \ B, M.fundCircuit e B ⊆ S ∨ Disjoint (M.fundCircuit e B) S := by    intro e he    by_cases hne : (M.fundCircuit e B ∩ A).Nonempty    · left      intro x hx      have hsub := hsep e he hne hx      rw [hS]      rcases hsub with rfl | hxA      · exact Or.inr ⟨he, hne⟩      · exact Or.inl hxA    · right      rw [Set.disjoint_left]      intro x hx hxS      rw [hS] at hxS      have hsub := M.fundCircuit_subset_insert e B hx      rcases hxS with hxA | ⟨hxEB, hne'⟩      · exact hne ⟨x, hx, hxA⟩      · rcases hsub with rfl | hxB        · exact hne hne'        · exact hxEB.2 hxB  obtain ⟨a, haA⟩ := hAne  obtain ⟨b, hbB, hbA⟩ := Set.exists_of_ssubset hAB  have haE : a ∈ M.E := hB.subset_ground (hAB.subset haA)  have hbE : b ∈ M.E := hB.subset_ground hbB  have hne_ab : a ≠ b := by intro h; exact hbA (h ▸ haA)  obtain h | ⟨C, hC, haC, hbC⟩ := hconn a haE b hbE  · exact hne_ab h  · have hfin : (C \ B).Finite := (hE.subset hC.subset_ground).sdiff    have hCS := matroid_circuit_mono_of_fundCircuit_mono_of_finite_sdiff M hB hmono C hC hfin    have haS : a ∈ S := by rw [hS]; exact Or.inl haA    rcases hCS with hCS | hdisj    · have hbS : b ∈ S := hCS hbC      rw [hS] at hbS      rcases hbS with hbA' | ⟨hbEB, _⟩      · exact hbA hbA'      · exact hbEB.2 hbB    · rw [Set.disjoint_left] at hdisj      exact hdisj haC haS
See it in the graphDiscuss this resultChallenge it