AFTD Auto-Formalizing Theoretical Domains

not_matroid_connected_of_not_indep_singleton

theoremverified

A matroid with a loop e (the set {e} is dependent) and another ground element f ≠ e is not connected.

Statement

theorem not_matroid_connected_of_not_indep_singleton {α : Type*} (M : Matroid α) (e f : α)
    (he : e ∈ M.E) (hf : f ∈ M.E) (hef : e ≠ f) (hd : ¬ M.Indep {e}) : ¬ matroid_connected M
Source
Sanity lemma / helper for the statements of OP-1998 (arXiv:2611.23624 (Matroid Connectedness and Component Decomposition: Breaking the Quadratic Barrier))
Verified
19 Nov 2026
Axioms
propext
Built on 1
  • matroid_connectedA matroid M on a type α is connected if for all elements e and f of its ground set M.E, either e = f or there is a circuit C of M that…
Used by 4

The proof, explained

Assume for contradiction that the matroid M is connected. By definition of connectedness, the distinct ground elements e and f must either be equal (impossible since e ≠ f) or share a common circuit C. But because {e} is a dependent subset of C, the minimality of circuits forces C ⊆ {e}, which implies f = e, contradicting e ≠ f.

  1. Assume M is connected; then either e = f or there exists a circuit C containing both e and f.

    We argue by contradiction and assume that M is connected (h). Applying the definition of matroid_connected to e, f ∈ M.E provides two possibilities: either e = f, or there is a circuit C such that e ∈ C and f ∈ C.

    lines 3–4

      intro h
      rcases h e he f hf with h | ⟨C, hC, heC, hfC⟩
  2. The case e = f is impossible.

    The equality e = f immediately contradicts the hypothesis that e ≠ f (hef).

    line 5

      · exact hef h
  3. The singleton set {e} is dependent in M.

    By the definition of dependence (Matroid.Dep), a set is dependent if it is not independent and is contained in the ground set M.E. The hypothesis hd provides ¬M.Indep {e}, and he ensures {e} ⊆ M.E, so {e} is dependent.

    lines 6–7

    uses Matroid.Dep

      · have hdep : M.Dep {e} := by
          rw [Matroid.Dep]; exact ⟨hd, by simpa using he⟩
  4. The circuit C is a subset of {e}.

    Since e ∈ C, the singleton {e} is a subset of C by Set.singleton_subset_iff.2. A circuit C is by definition a minimal dependent set; since {e} is a dependent subset of C, this minimality forces C ⊆ {e}.

    line 8

    uses Set.singleton_subset_iff.2

        have hsub : C ⊆ {e} := hC.2 hdep (Set.singleton_subset_iff.2 heC)
  5. The circuit case also leads to a contradiction.

    Because f ∈ C and C ⊆ {e}, we must have f ∈ {e}, meaning f = e. By symmetry e = f, contradicting the assumption e ≠ f (hef).

    lines 9–10

        have hfe : f = e := by simpa using hsub hfC
        exact hef hfe.symm
Matroid.Dep
A set in a matroid is dependent if it is not independent and is a subset of the matroid's ground set.
Set.singleton_subset_iff.2
If an element belongs to a set, then the singleton containing that element is a subset of the set (the right-to-left implication of {a} ⊆ s ↔ a ∈ s).

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

theorem not_matroid_connected_of_not_indep_singleton {α : Type*} (M : Matroid α) (e f : α)    (he : e ∈ M.E) (hf : f ∈ M.E) (hef : e ≠ f) (hd : ¬ M.Indep {e}) : ¬ matroid_connected M := by  intro h  rcases h e he f hf with h | ⟨C, hC, heC, hfC⟩  · exact hef h  · have hdep : M.Dep {e} := by      rw [Matroid.Dep]; exact ⟨hd, by simpa using he⟩    have hsub : C ⊆ {e} := hC.2 hdep (Set.singleton_subset_iff.2 heC)    have hfe : f = e := by simpa using hsub hfC    exact hef hfe.symm
See it in the graphDiscuss this resultChallenge it