matroid_connectedness_query_not_le_of_sensitive
Sensitivity 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 S in F there is a disconnected matroid N with ground set Fin n whose independent sets agree with those of M on every finite set other than S. Then deciding connectedness on n elements needs at least |F| independence queries: matroid_connectedness_query_le n q fails for every q < |F|.
Statement
theorem matroid_connectedness_query_not_le_of_sensitive {n : ℕ} (M : Matroid (Fin n))
(hE : M.E = Set.univ) (hM : matroid_connected M) (F : Finset (Finset (Fin n)))
(hF : ∀ S ∈ F, ∃ N : Matroid (Fin n), N.E = Set.univ ∧ ¬ matroid_connected N ∧
∀ S' : Finset (Fin n), S' ≠ S → (N.Indep (S' : Set (Fin n)) ↔ M.Indep (S' : Set (Fin n))))
(q : ℕ) (hq : q < F.card) : ¬ matroid_connectedness_query_le n q- 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 6
- 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_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…
- matroid_indep_query_tree_eval_eq_of_agreeOn an oracle o, an independence-query tree T asks at most depth(T) sets: there is a family L of at most depth(T) finite sets such that…
- 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…
- 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 α →…
- MatroidIndepQueryTreeA deterministic independence-query algorithm on a ground set α, as a rooted binary decision tree: a leaf
leaf boutputs the Boolean b;…
- Used by 3
- matroid_connectedness_query_not_le_selfHere matroid_connectedness_query_le n q means: some deterministic independence-query decision tree of depth at most q decides, for every…
- 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…
- matroid_connectedness_query_not_le_two_mul_sub_twoHere matroid_connectedness_query_le n q means: some deterministic independence-query decision tree of depth at most q decides, for every…
The proof, explained
We prove the lower bound by contradiction: suppose an independence query tree T of depth at most q < |F| correctly decides matroid connectedness. When run on the independence oracle of the connected matroid M, the tree queries a set L of subsets whose size is at most the tree depth, which is strictly less than |F|. By cardinality, some sensitive set S in F is not queried along this execution path. By the sensitivity hypothesis, there is a disconnected matroid N agreeing with M on all subsets other than S. Since T never queries S on this path, T evaluates to the same answer (true) on N as on M, contradicting the fact that N is disconnected.
Assume for contradiction that there is an independence query tree T of depth at most q that correctly decides connectedness for all matroids on Fin n.
We proceed by contradiction using `rintro ⟨T, hT, hdec⟩` to unpack the assumption that `matroid_connectedness_query_le n q` holds, obtaining a query tree T with depth at most q and a decision correctness guarantee hdec for all matroids on Fin n with full universe.
classical rintro ⟨T, hT, hdec⟩
Evaluating T on the independence oracle o of the connected matroid M yields true.
We define the oracle o mapping each finite subset S to the boolean value indicating whether S is independent in M. Because M is connected and has full ground set, the correctness property hdec ensures that T evaluates to true on o.
let o : Finset (Fin n) → Bool := fun S => decide (M.Indep (S : Set (Fin n))) have ho : ∀ S : Finset (Fin n), o S = true ↔ M.Indep (S : Set (Fin n)) := fun S => by simp [o] have h1 : T.eval o = true := (hdec M hE o ho).2 hM
The evaluation of T on o queries a set L of subsets with |L| < |F|, and any oracle agreeing with o on L yields the same evaluation.
By `matroid_indep_query_tree_eval_eq_of_agree`, the queries along the execution path followed by o form a set L with |L| ≤ T.depth. Since T.depth ≤ q < |F|, `lt_of_le_of_lt` gives |L| < |F|. Furthermore, any oracle agreeing with o on L will produce the same outcome T.eval o.
uses
matroid_indep_query_tree_eval_eq_of_agree,lt_of_le_of_ltobtain ⟨L, hL, hagr⟩ := matroid_indep_query_tree_eval_eq_of_agree o T have hlen : L.card < F.card := lt_of_le_of_lt (hL.trans hT) hq
There exists a subset S ∈ F that is not queried during this execution path (S ∉ L).
If every S ∈ F were in L, then F ⊆ L, which by `Finset.card_le_card` would imply |F| ≤ |L|. This contradicts |L| < |F| via `not_le.2`, so there must exist some S ∈ F such that S ∉ L.
uses
Finset.card_le_card,not_le.2obtain ⟨S, hSF, hSn⟩ : ∃ S ∈ F, S ∉ L := by by_contra hcon have hsub : F ⊆ L := fun S hS => by by_contra hSL exact hcon ⟨S, hS, hSL⟩ exact absurd (Finset.card_le_card hsub) (not_le.2 hlen)
There is a disconnected matroid N whose independence oracle o' agrees with o on all subsets except possibly S.
By the sensitivity assumption hF applied to S ∈ F, there exists a disconnected matroid N on Fin n with full ground set whose independent sets match M's on every set S' ≠ S. We define o' to be the independence oracle for N.
obtain ⟨N, hNE, hN, hagree⟩ := hF S hSF let o' : Finset (Fin n) → Bool := fun S => decide (N.Indep (S : Set (Fin n))) have ho' : ∀ S : Finset (Fin n), o' S = true ↔ N.Indep (S : Set (Fin n)) := fun S => by simp [o']
The query tree T evaluates to true on o' as well.
Since S ∉ L, every queried set S' ∈ L satisfies S' ≠ S. Hence N and M agree on the independence of S', so o' S' = o S' for all S' ∈ L by `decide_eq_decide.2`. By the agreement property of L, T evaluates to the same value on o' as on o, namely true.
uses
decide_eq_decide.2have h2 : T.eval o' = T.eval o := hagr o' fun S' hS' => by have hne : S' ≠ S := fun h => hSn (h ▸ hS') simp only [o, o'] exact decide_eq_decide.2 (hagree S' hne)
This produces a contradiction, showing that no such query tree can exist.
Because T evaluates to true on o', the correctness guarantee hdec applied to N implies that N must be connected, contradicting the fact that N is disconnected.
exact hN ((hdec N hNE o' ho').1 (h2.trans h1))
matroid_indep_query_tree_eval_eq_of_agree- For any boolean query tree T and oracle o, there exists a set L of queried subsets with |L| ≤ T.depth such that any oracle agreeing with o on L gives the same tree evaluation.
lt_of_le_of_lt- If a ≤ b and b < c in a preorder, then a < c.
Finset.card_le_card- If s ⊆ t for finite sets s and t, then |s| ≤ |t|.
not_le.2- If b < a in a linear order, then ¬(a ≤ b).
decide_eq_decide.2- If P ↔ Q, then decide P = decide Q.
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_not_le_of_sensitive {n : ℕ} (M : Matroid (Fin n)) (hE : M.E = Set.univ) (hM : matroid_connected M) (F : Finset (Finset (Fin n))) (hF : ∀ S ∈ F, ∃ N : Matroid (Fin n), N.E = Set.univ ∧ ¬ matroid_connected N ∧ ∀ S' : Finset (Fin n), S' ≠ S → (N.Indep (S' : Set (Fin n)) ↔ M.Indep (S' : Set (Fin n)))) (q : ℕ) (hq : q < F.card) : ¬ matroid_connectedness_query_le n q := by classical rintro ⟨T, hT, hdec⟩ let o : Finset (Fin n) → Bool := fun S => decide (M.Indep (S : Set (Fin n))) have ho : ∀ S : Finset (Fin n), o S = true ↔ M.Indep (S : Set (Fin n)) := fun S => by simp [o] have h1 : T.eval o = true := (hdec M hE o ho).2 hM obtain ⟨L, hL, hagr⟩ := matroid_indep_query_tree_eval_eq_of_agree o T have hlen : L.card < F.card := lt_of_le_of_lt (hL.trans hT) hq obtain ⟨S, hSF, hSn⟩ : ∃ S ∈ F, S ∉ L := by by_contra hcon have hsub : F ⊆ L := fun S hS => by by_contra hSL exact hcon ⟨S, hS, hSL⟩ exact absurd (Finset.card_le_card hsub) (not_le.2 hlen) obtain ⟨N, hNE, hN, hagree⟩ := hF S hSF let o' : Finset (Fin n) → Bool := fun S => decide (N.Indep (S : Set (Fin n))) have ho' : ∀ S : Finset (Fin n), o' S = true ↔ N.Indep (S : Set (Fin n)) := fun S => by simp [o'] have h2 : T.eval o' = T.eval o := hagr o' fun S' hS' => by have hne : S' ≠ S := fun h => hSn (h ▸ hS') simp only [o, o'] exact decide_eq_decide.2 (hagree S' hne) exact hN ((hdec N hNE o' ho').1 (h2.trans h1))