matroid_connectedness_query_two_eq_three
Here matroid_connectedness_query_le n q means: some deterministic independence-query decision tree of depth at most q decides, for every matroid with ground set Fin n, whether it is connected (any two distinct elements lie in a common circuit). On a two-element ground set the deterministic independence-query complexity of deciding matroid connectedness is exactly 3: matroid_connectedness_query_le 2 3 holds and matroid_connectedness_query_le 2 2 does not.
Statement
theorem matroid_connectedness_query_two_eq_three :
matroid_connectedness_query_le 2 3 ∧ ¬ matroid_connectedness_query_le 2 2- Related work
- Smallest case of OP-1998 (arXiv:2611.23624 (Matroid Connectedness and Component Decomposition: Breaking the Quadratic Barrier), Final remarks: is the independence-query complexity of matroid connectedness linear?). The paper proves the lower bound n (Proposition 2); the exact value D(2) = 3 = 2n - 1 was found by exhaustive search (experiments 33679, 33956).
- Verified
- 19 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 10
- matroid_connectedness_query_leFor natural numbers n and q, matroid_connectedness_query_le n q is the statement that the deterministic independence-query complexity of…
- matroid_connected_fin_two_iffA 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…
- exists_matroid_of_indep_tableA Boolean table o on the subsets of Fin n that is true on the empty set, closed under taking subsets and satisfies the augmentation axiom…
- matroid_connectedness_query_not_le_of_sensitiveSensitivity lower bound. Let M be a connected matroid with ground set Fin n and F a family of finite subsets of Fin n such that for every…
- 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.
- MatroidIndepQueryTree.depthThe depth (height) of an independence-query decision tree on a ground set α, a natural number defined by recursion on the tree: a leaf…
- 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…
- MatroidIndepQueryTreeA deterministic independence-query algorithm on a ground set α, as a rooted binary decision tree: a leaf
leaf boutputs the Boolean b;… - MatroidIndepQueryTree.evalThe Boolean output of an independence-query decision tree T on a ground set α when the queries are answered by an oracle o : Finset α →…
Read back from the Lean
The declaration asserts that for matroids on a 2-element ground set (Fin 2) whose ground set is the whole universe, the query complexity of determining matroid connectedness using independence queries is strictly greater than 2 and at most 3.
Specifically, it asserts the conjunction of two statements:
1. There exists an independence query decision tree T over Fin 2 with depth at most 3 such that for every matroid M on Fin 2 with M.E = Set.univ, and for every oracle o : Finset (Fin 2) → Bool that accurately reports independence in M (i.e., o S = true ↔ M.Indep S), T.eval o = true if and only if M is connected (defined as: every pair of distinct elements in M.E is contained in some circuit).
2. No such independence query decision tree exists with depth at most 2.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The proof establishes that the deterministic independence-query complexity of deciding matroid connectedness on a two-element ground set is exactly 3. For the upper bound, it constructs an explicit decision tree of depth 3 querying {0}, {1}, and {0, 1}, and verifies by exhaustive boolean evaluation that the tree matches the characterisation of connectedness on two elements (both singletons independent, the pair dependent). For the lower bound, it applies a sensitivity argument to the rank-1 uniform matroid U_{1,2}: flipping any of {0}, {1}, or {0, 1} produces a valid disconnected matroid agreeing with U_{1,2} elsewhere, so any decider must query all three sets.
To show the query complexity is at most 3, it suffices to construct a depth-3 decision tree and verify its correctness on any matroid on Fin 2.
Split the conjunction into the upper bound (complexity ≤ 3) and the lower bound (not ≤ 2). For the upper bound, provide an explicit decision tree that queries {0}, then {1}, then the full ground set {0, 1}. Its depth is verified to be at most 3 by decide.
refine ⟨?_, ?_⟩ · refine ⟨.query {0} (.leaf false) (.query {1} (.leaf false) (.query Finset.univ (.leaf true) (.leaf false))), by decide, fun M hE o ho => ?_⟩
Connectedness of M is equivalent to the oracle returning true on {0} and {1}, and false on {0, 1}.
By matroid_connected_fin_two_iff, connectedness on Fin 2 means both singletons {0} and {1} are independent and the pair {0, 1} is dependent. Specializing the oracle hypothesis ho to these three sets and rewriting with Finset.coe_singleton and Finset.coe_univ translates the condition into o {0} = true, o {1} = true, and ¬(o Finset.univ = true).
uses
matroid_connected_fin_two_iff,Finset.coe_singleton,Finset.coe_univrw [matroid_connected_fin_two_iff M hE] have h0 := ho {0} have h1 := ho {1} have h2 := ho Finset.univ simp only [Finset.coe_singleton, Finset.coe_univ] at h0 h1 h2 rw [← h0, ← h1, ← h2]
The decision tree evaluates to true if and only if M is connected, establishing the upper bound.
Unfolding MatroidIndepQueryTree.eval expresses the tree's execution as nested conditionals on the oracle's answers. Case analysis across all 8 possible boolean assignments for o {0}, o {1}, and o Finset.univ confirms that the tree outputs true exactly when the connectedness conditions hold.
uses
MatroidIndepQueryTree.evalsimp only [MatroidIndepQueryTree.eval] cases o {0} <;> cases o {1} <;> cases o Finset.univ <;> simp
There exists a rank-1 uniform matroid M on Fin 2 whose independent sets are those of cardinality at most 1.
Using exists_matroid_of_indep_table, define M by declaring S independent iff |S| ≤ 1. The three matroid axioms are verified automatically by decide over the subsets of Fin 2.
uses
exists_matroid_of_indep_table· obtain ⟨M, hME, hM⟩ := exists_matroid_of_indep_table (n := 2) (fun S => decide (S.card ≤ 1)) (by decide) (by decide) (by decide)
For every subset A ⊆ Fin 2, there is a matroid on Fin 2 whose independent sets are precisely the subsets of A.
Using exists_matroid_of_indep_table with predicate S ⊆ A, the empty set is trivially in A, subset containment is transitive (hereditary property), and when |I| < |J| for I, J ⊆ A, Finset.exists_mem_notMem_of_card_lt_card gives an element e ∈ J \ I with I ∪ {e} ⊆ A by Finset.insert_subset (augmentation property).
uses
exists_matroid_of_indep_table,decide_eq_true_eq,Finset.exists_mem_notMem_of_card_lt_card,Finset.insert_subsethave key : ∀ A : Finset (Fin 2), ∃ N : Matroid (Fin 2), N.E = Set.univ ∧ ∀ S : Finset (Fin 2), N.Indep (S : Set (Fin 2)) ↔ S ⊆ A := by intro A obtain ⟨N, hNE, hN⟩ := exists_matroid_of_indep_table (n := 2) (fun S => decide (S ⊆ A)) (by simp) (fun I J hJ hIJ => by simp only [decide_eq_true_eq] at hJ ⊢; exact hIJ.trans hJ) (fun I J hI hJ hIJ => by simp only [decide_eq_true_eq] at hI hJ ⊢ obtain ⟨e, heJ, heI⟩ := Finset.exists_mem_notMem_of_card_lt_card hIJ exact ⟨e, heJ, heI, Finset.insert_subset (hJ heJ) hI⟩) exact ⟨N, hNE, fun S => by simpa using hN S⟩
To prove the lower bound, it suffices to show that M is connected and sensitive to flipping each set in F = {{0}, {1}, Finset.univ}.
Apply matroid_connectedness_query_not_le_of_sensitive with the matroid M and the 3-element family F. Since |F| = 3 > 2 (checked by decide), any decision tree deciding connectedness must have depth at least 3.
uses
matroid_connectedness_query_not_le_of_sensitiverefine matroid_connectedness_query_not_le_of_sensitive M hME ?_ ({{0}, {1}, Finset.univ} : Finset (Finset (Fin 2))) ?_ 2 (by decide)
The matroid M is connected.
By matroid_connected_fin_two_iff, M is connected iff {0} and {1} are independent and {0, 1} is dependent. Since independence in M means cardinality at most 1, this evaluates to 1 ≤ 1 ∧ 1 ≤ 1 ∧ ¬(2 ≤ 1), which decide confirms.
uses
matroid_connected_fin_two_iff,Finset.coe_singleton,Finset.coe_univ· rw [matroid_connected_fin_two_iff M hME] have h0 := hM {0} have h1 := hM {1} have h2 := hM Finset.univ simp only [Finset.coe_singleton, Finset.coe_univ] at h0 h1 h2 rw [h0, h1, h2]; decide
For each S ∈ {{0}, {1}, Finset.univ}, we must exhibit a disconnected matroid N agreeing with M on all S' ≠ S.
Decompose the assumption S ∈ {{0}, {1}, Finset.univ} into the three cases S = {0}, S = {1}, and S = Finset.univ using Finset.mem_insert and Finset.mem_singleton.
uses
Finset.mem_insert,Finset.mem_singleton· intro S hS simp only [Finset.mem_insert, Finset.mem_singleton] at hS rcases hS with rfl | rfl | rfl
Flipping {0} yields a disconnected matroid agreeing with M on all other subsets.
Instantiating the key lemma with A = {1} gives a matroid N whose independent sets are subsets of {1}. In N, {0} is dependent, so N is disconnected by not_matroid_connected_of_not_indep_singleton. For all S' ≠ {0}, S' ⊆ {1} holds iff |S'| ≤ 1, verified by decide.
uses
not_matroid_connected_of_not_indep_singleton,Finset.coe_singleton· obtain ⟨N, hNE, hN⟩ := key {1} refine ⟨N, hNE, ?_, ?_⟩ · refine not_matroid_connected_of_not_indep_singleton N 0 1 (by simp [hNE]) (by simp [hNE]) (by decide) ?_ have := hN {0} simp only [Finset.coe_singleton] at this rw [this]; decide · intro S' hS' rw [hN, hM] revert S'; decide
Flipping {1} yields a disconnected matroid agreeing with M on all other subsets.
Instantiating the key lemma with A = {0} gives a matroid N whose independent sets are subsets of {0}. In N, {1} is dependent, so N is disconnected by not_matroid_connected_of_not_indep_singleton. For all S' ≠ {1}, S' ⊆ {0} holds iff |S'| ≤ 1, verified by decide.
uses
not_matroid_connected_of_not_indep_singleton,Finset.coe_singleton· obtain ⟨N, hNE, hN⟩ := key {0} refine ⟨N, hNE, ?_, ?_⟩ · refine not_matroid_connected_of_not_indep_singleton N 1 0 (by simp [hNE]) (by simp [hNE]) (by decide) ?_ have := hN {1} simp only [Finset.coe_singleton] at this rw [this]; decide · intro S' hS' rw [hN, hM] revert S'; decide
Flipping Finset.univ yields a disconnected matroid agreeing with M on all other subsets.
Instantiating the key lemma with A = Finset.univ gives the free matroid N where all subsets are independent. Since the ground set is independent, N is disconnected by not_matroid_connected_of_indep_ground. For all proper subsets S' ≠ Finset.univ, |S'| ≤ 1 always holds, matching M, verified by decide.
uses
not_matroid_connected_of_indep_ground,Finset.coe_univ· obtain ⟨N, hNE, hN⟩ := key Finset.univ refine ⟨N, hNE, ?_, ?_⟩ · refine not_matroid_connected_of_indep_ground N 0 1 (by simp [hNE]) (by simp [hNE]) (by decide) ?_ have := hN Finset.univ simp only [Finset.coe_univ] at this rw [hNE, this] · intro S' hS' rw [hN, hM] revert S'; decide
decide_eq_true_eq- For any decidable proposition p, decide p = true is equivalent to p itself.
Finset.coe_singleton- The coercion of a singleton finset {a} to a set is the singleton set {a}.
Finset.coe_univ- The coercion of the finset of all elements of a finite type to a set is the universal set.
Finset.exists_mem_notMem_of_card_lt_card- If a finite set s has strictly smaller cardinality than t, there exists an element in t that is not in s.
Finset.insert_subset- If an element a and a subset s are both subsets of t, then insert a s is also a subset of t.
Finset.mem_insert- An element belongs to insert b s if and only if it equals b or belongs to s.
Finset.mem_singleton- An element belongs to the singleton {a} if and only if it equals a.
matroid_connected_fin_two_iff- A matroid on ground set {0, 1} is connected if and only if both singletons {0} and {1} are independent and the ground set {0, 1} is dependent.
matroid_connectedness_query_not_le_of_sensitive- If a connected matroid M has a family F of subsets such that flipping the independence of any S ∈ F yields a valid disconnected matroid agreeing with M elsewhere, then no query tree of depth strictly less than |F| can decide matroid connectedness.
MatroidIndepQueryTree.eval- Evaluates a decision tree on an oracle by recursively following the branch corresponding to the oracle's answer on each queried set until reaching a leaf.
not_matroid_connected_of_indep_ground- A matroid with at least two elements is disconnected if its full ground set is independent.
not_matroid_connected_of_not_indep_singleton- A matroid with at least two elements is disconnected if it contains a dependent singleton (a loop).
exists_matroid_of_indep_table- A boolean predicate on subsets of {0, ..., n-1} satisfying the independence axioms (empty set is independent, hereditary property, augmentation property) defines a valid matroid.
- The independence axioms for the uniform matroid and the finite checks that the perturbed matroids agree with U_{1,2} outside the flipped sets are handled by Lean's decide tactic, which exhaustively checks all subsets of Fin 2.
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_connectedness_query_two_eq_three : matroid_connectedness_query_le 2 3 ∧ ¬ matroid_connectedness_query_le 2 2 := by refine ⟨?_, ?_⟩ · refine ⟨.query {0} (.leaf false) (.query {1} (.leaf false) (.query Finset.univ (.leaf true) (.leaf false))), by decide, fun M hE o ho => ?_⟩ rw [matroid_connected_fin_two_iff M hE] have h0 := ho {0} have h1 := ho {1} have h2 := ho Finset.univ simp only [Finset.coe_singleton, Finset.coe_univ] at h0 h1 h2 rw [← h0, ← h1, ← h2] simp only [MatroidIndepQueryTree.eval] cases o {0} <;> cases o {1} <;> cases o Finset.univ <;> simp · obtain ⟨M, hME, hM⟩ := exists_matroid_of_indep_table (n := 2) (fun S => decide (S.card ≤ 1)) (by decide) (by decide) (by decide) have key : ∀ A : Finset (Fin 2), ∃ N : Matroid (Fin 2), N.E = Set.univ ∧ ∀ S : Finset (Fin 2), N.Indep (S : Set (Fin 2)) ↔ S ⊆ A := by intro A obtain ⟨N, hNE, hN⟩ := exists_matroid_of_indep_table (n := 2) (fun S => decide (S ⊆ A)) (by simp) (fun I J hJ hIJ => by simp only [decide_eq_true_eq] at hJ ⊢; exact hIJ.trans hJ) (fun I J hI hJ hIJ => by simp only [decide_eq_true_eq] at hI hJ ⊢ obtain ⟨e, heJ, heI⟩ := Finset.exists_mem_notMem_of_card_lt_card hIJ exact ⟨e, heJ, heI, Finset.insert_subset (hJ heJ) hI⟩) exact ⟨N, hNE, fun S => by simpa using hN S⟩ refine matroid_connectedness_query_not_le_of_sensitive M hME ?_ ({{0}, {1}, Finset.univ} : Finset (Finset (Fin 2))) ?_ 2 (by decide) · rw [matroid_connected_fin_two_iff M hME] have h0 := hM {0} have h1 := hM {1} have h2 := hM Finset.univ simp only [Finset.coe_singleton, Finset.coe_univ] at h0 h1 h2 rw [h0, h1, h2]; decide · intro S hS simp only [Finset.mem_insert, Finset.mem_singleton] at hS rcases hS with rfl | rfl | rfl · obtain ⟨N, hNE, hN⟩ := key {1} refine ⟨N, hNE, ?_, ?_⟩ · refine not_matroid_connected_of_not_indep_singleton N 0 1 (by simp [hNE]) (by simp [hNE]) (by decide) ?_ have := hN {0} simp only [Finset.coe_singleton] at this rw [this]; decide · intro S' hS' rw [hN, hM] revert S'; decide · obtain ⟨N, hNE, hN⟩ := key {0} refine ⟨N, hNE, ?_, ?_⟩ · refine not_matroid_connected_of_not_indep_singleton N 1 0 (by simp [hNE]) (by simp [hNE]) (by decide) ?_ have := hN {1} simp only [Finset.coe_singleton] at this rw [this]; decide · intro S' hS' rw [hN, hM] revert S'; decide · obtain ⟨N, hNE, hN⟩ := key Finset.univ refine ⟨N, hNE, ?_, ?_⟩ · refine not_matroid_connected_of_indep_ground N 0 1 (by simp [hNE]) (by simp [hNE]) (by decide) ?_ have := hN Finset.univ simp only [Finset.coe_univ] at this rw [hNE, this] · intro S' hS' rw [hN, hM] revert S'; decide