matroid_connected_fin_two_iff
A matroid on the two-element ground set Fin 2 is connected if and only if {0} and {1} are independent and {0, 1} is dependent (it is the uniform matroid of rank 1).
Statement
theorem matroid_connected_fin_two_iff (M : Matroid (Fin 2)) (hE : M.E = Set.univ) :
matroid_connected M ↔ M.Indep {0} ∧ M.Indep {1} ∧ ¬ M.Indep Set.univ- 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
Classical.choiceQuot.soundpropext- Built on 3
- 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…
- not_matroid_connected_of_not_indep_singletonA matroid with a loop e (the set {e} is dependent) and another ground element f ≠ e is not connected.
- not_matroid_connected_of_indep_groundA free matroid (its ground set is independent) with two distinct ground elements is not connected.
- Used by 1
- matroid_connectedness_query_two_eq_threeHere matroid_connectedness_query_le n q means: some deterministic independence-query decision tree of depth at most q decides, for every…
The proof, explained
A matroid on the two-element ground set {0, 1} is connected if and only if both singletons are independent and the ground set itself is dependent (the uniform matroid $U_{1, 2}$). In the forward direction, if either singleton were dependent (a loop) or the ground set independent, the two elements could not share a circuit, contradicting connectedness. In the reverse direction, the independence of both singletons implies every proper subset of {0, 1} is independent, making {0, 1} a circuit that contains both elements and witnesses connectedness.
To prove the forward implication, it suffices to show that {0} is independent, {1} is independent, and the ground set is dependent under the assumption that $M$ is connected.
We split the equivalence into both directions. In the forward direction, assuming $M$ is connected ($h$), we split the conjunction into three separate subgoals: independence of {0}, independence of {1}, and non-independence of the universal set.
constructor · intro h refine ⟨?_, ?_, ?_⟩
The singleton {0} is independent.
Suppose for contradiction that {0} is dependent (a loop). By `not_matroid_connected_of_not_indep_singleton`, a matroid with distinct ground set elements 0 and 1 cannot be connected if {0} is dependent, contradicting the assumption that $M$ is connected.
uses
not_matroid_connected_of_not_indep_singleton· by_contra hd exact not_matroid_connected_of_not_indep_singleton M 0 1 (by simp [hE]) (by simp [hE]) (by decide) hd h
The singleton {1} is independent.
Suppose for contradiction that {1} is dependent. Symmetrically, `not_matroid_connected_of_not_indep_singleton` applied to 1 and 0 contradicts the connectedness of $M$.
uses
not_matroid_connected_of_not_indep_singleton· by_contra hd exact not_matroid_connected_of_not_indep_singleton M 1 0 (by simp [hE]) (by simp [hE]) (by decide) hd h
The full ground set is dependent (not independent).
Suppose for contradiction that the ground set is independent. By `not_matroid_connected_of_indep_ground`, a matroid cannot be connected if its entire ground set is independent, since there would be no circuits to connect distinct elements. This contradicts the connectedness of $M$.
uses
not_matroid_connected_of_indep_ground· intro hd exact not_matroid_connected_of_indep_ground M 0 1 (by simp [hE]) (by simp [hE]) (by decide) (hE ▸ hd) h
In the reverse direction, showing that the ground set is a circuit reduces to showing that all of its proper subsets are independent.
We assume {0} is independent ($h0$), {1} is independent ($h1$), and the ground set is dependent ($h2$). We claim the universal set is a circuit ($hC$). By `Matroid.isCircuit_iff_forall_ssubset`, a circuit is a minimally dependent set: it must be dependent (which holds by assumption) and every strict subset $I \subsetneq \text{univ}$ must be independent.
uses
Matroid.isCircuit_iff_forall_ssubset· rintro ⟨h0, h1, h2⟩ have hC : M.IsCircuit Set.univ := by rw [Matroid.isCircuit_iff_forall_ssubset] refine ⟨⟨h2, by simp [hE]⟩, fun I hI => ?_⟩Every strict subset of the two-element ground set is contained in {0} or in {1}.
Let $I$ be a strict subset of the universal set. By `Set.exists_of_ssubset`, there is an element $x \in \text{Fin } 2$ not in $I$. Case analysis on $x$ shows that if $0 \notin I$, every element of $I$ must be 1, so $I \subseteq \{1\}$; if $1 \notin I$, every element of $I$ must be 0, so $I \subseteq \{0\}$.
uses
Set.exists_of_ssubsetobtain ⟨x, -, hx⟩ := Set.exists_of_ssubset hI have : I ⊆ {0} ∨ I ⊆ {1} := by fin_cases x · right; intro y hy fin_cases y · exact absurd hy hx · rfl · left; intro y hy fin_cases y · rfl · exact absurd hy hx
Every strict subset of the ground set is independent, so the ground set is a circuit.
Since any subset of an independent set is independent, $I$ is independent by inheriting independence from either {0} (via $h0$) or {1} (via $h1$). This completes the proof that the ground set is a circuit ($hC$).
rcases this with h | h · exact h0.subset h · exact h1.subset h
The circuit containing both ground-set elements witnesses that $M$ is connected.
To establish connectedness, we consider any two elements $e, f$ in the ground set. Because the full ground set is a circuit containing all elements, both $e$ and $f$ belong to this circuit. Applying `Or.inr` provides this common circuit, proving that $M$ is connected.
uses
Or.inrintro e _ f _ exact Or.inr ⟨Set.univ, hC, trivial, trivial⟩
not_matroid_connected_of_not_indep_singleton- A matroid with at least two distinct elements in its ground set cannot be connected if any singleton element is dependent (a loop).
not_matroid_connected_of_indep_ground- A matroid with at least two distinct elements in its ground set cannot be connected if its entire ground set is independent.
Matroid.isCircuit_iff_forall_ssubset- A subset of the ground set is a circuit if and only if it is dependent and all of its strict subsets are independent.
Set.exists_of_ssubset- If $s$ is a strict subset of $t$, there exists an element $x \in t$ that is not in $s$.
Or.inr- Given a proof of $B$, constructs a proof of the disjunction $A \lor B$.
- Finite case exhaustion on `Fin 2` and membership in the universal set are handled automatically by `fin_cases`, `simp`, and `decide`.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem matroid_connected_fin_two_iff (M : Matroid (Fin 2)) (hE : M.E = Set.univ) : matroid_connected M ↔ M.Indep {0} ∧ M.Indep {1} ∧ ¬ M.Indep Set.univ := by constructor · intro h refine ⟨?_, ?_, ?_⟩ · by_contra hd exact not_matroid_connected_of_not_indep_singleton M 0 1 (by simp [hE]) (by simp [hE]) (by decide) hd h · by_contra hd exact not_matroid_connected_of_not_indep_singleton M 1 0 (by simp [hE]) (by simp [hE]) (by decide) hd h · intro hd exact not_matroid_connected_of_indep_ground M 0 1 (by simp [hE]) (by simp [hE]) (by decide) (hE ▸ hd) h · rintro ⟨h0, h1, h2⟩ have hC : M.IsCircuit Set.univ := by rw [Matroid.isCircuit_iff_forall_ssubset] refine ⟨⟨h2, by simp [hE]⟩, fun I hI => ?_⟩ obtain ⟨x, -, hx⟩ := Set.exists_of_ssubset hI have : I ⊆ {0} ∨ I ⊆ {1} := by fin_cases x · right; intro y hy fin_cases y · exact absurd hy hx · rfl · left; intro y hy fin_cases y · rfl · exact absurd hy hx rcases this with h | h · exact h0.subset h · exact h1.subset h intro e _ f _ exact Or.inr ⟨Set.univ, hC, trivial, trivial⟩