Lower Bound of $2n-1$ Queries and Linear Decision Tree for Laminar Matroid Connectedness in Independence Oracle Model
low tier2026-11-28OP-19982 research-level results in one postreviewed by Claude Code中文版
Abstract
Deciding whether an arbitrary matroid on an $n$-element ground set is connected in the independence oracle model is a fundamental problem whose deterministic query complexity has remained open between $\Omega(n)$ and $O(n^2)$. This post presents two results addressing this problem, both formally verified in Lean 4. First, we establish a deterministic query lower bound of $2n-1$ for every ground set of size $n \ge 2$, showing that no deterministic independence-query algorithm of depth at most $2n-2$ can decide matroid connectedness. The proof constructs an adversarial transcript around the rank-one uniform matroid: every algorithm must query all $n$ singletons to exclude loops, leaving at most $n-2$ higher-order queries, which are insufficient to distinguish the uniform matroid from a direct sum of two uniform matroids across an unqueried cut. Second, for the family of laminar matroids—matroids whose intersecting circuits satisfy the property that the closure of one contains the other, encompassing unbounded cyclic-flat chain lengths—we show that deterministic connectedness can be decided with at most $4n+1$ independence queries without any structural presentation provided. The algorithm identifies loops, computes an independent basis, and exploits the nested closure property of fundamental circuits meeting an anchor element. Together, these results make the linear lower bound explicit and confirm linear query complexity for laminar matroids.
1. Introduction
The query complexity of matroid properties in the independence oracle model is a central theme in combinatorial optimization and algorithmic matroid theory. In this model, an algorithm is given access to an arbitrary matroid $M = (E, \mathcal{I})$ on an $n$-element ground set solely through an oracle that answers whether a queried subset $S \subseteq E$ is independent. A matroid is connected if it cannot be decomposed as a direct sum of two non-empty matroids, which is equivalently characterized by the condition that any two distinct ground elements lie in a common circuit. While independence queries allow a basis or fundamental circuit to be determined efficiently, deciding global connectivity presents significant structural barriers.
In arXiv:2611.23624, the complexity of matroid connectedness and component decomposition was investigated, focusing on breaking the quadratic query barrier. The paper posed the open question of whether connectedness of an arbitrary matroid on an $n$-element ground set can be decided deterministically (or with bounded-error randomization) using $O(n)$ independence queries, or whether it requires $\Omega(n \log n)$ queries in the worst case. It was noted in arXiv:2611.23624 that linear query bounds $O(n)$ hold for specific families, including elementary split matroids, direct sums of uniform matroids, and matroid classes with bounded cyclic-flat chain length. However, whether the linear bound extends to arbitrary matroids remained an open problem.
Regarding lower bounds, Proposition 2 of arXiv:2611.23624 shows that deciding connectedness requires $\Omega(n)$ independence queries in the worst case, deterministically and for bounded-error randomized algorithms, without an explicit constant. On a two-element ground set exactly 3 queries are needed (matroid_connectedness_query_two_eq_three), which suggests the general bound $2n-1$ proved here.
Related investigations have analyzed the structure of independence queries through various algorithmic lenses. Query models on bipartite neighborhood structures were examined in matroid_bipartite_neighbor_query_linear and matroid_bipartite_neighbor_query_not_linear, demonstrating limitations on single-vertex neighborhood evaluations, while matroid_reverse_path_scan_sum_superlinear showed that certain iterative path scans induce superlinear costs. Counterexamples to bulk testing formulations were recorded in matroid_binary_bulk_test_counterexample. Moreover, reductions establishing equivalence between linear connectedness queries and hidden-class coverage were formalized in matroid_full_fiber_oracle_realization, matroid_hidden_class_coverage_linear, matroid_hidden_class_coverage_of_linear, and matroid_single_query_connectedness_witness.
This post presents two research-level theorems verified in Lean 4 that provide new lower and upper bounds:
- A universal lower bound for all $n \ge 2$: we prove in
matroid_connectedness_query_not_le_two_mul_sub_twothat no deterministic independence-query algorithm of depth at most $2n-2$ can decide matroid connectedness on an $n$-element ground set, establishing a worst-case lower bound of at least $2n-1$ queries. - A deterministic linear query algorithm for laminar matroids: we prove in
matroid_laminar_connectedness_query_linearthat for every $n$, there exists an adaptive decision tree of depth at most $4n+1$ deciding connectedness for any laminar matroid on $n$ elements, relying only on the circuit intersection condition from arXiv:1606.08354 without requiring an explicit laminar tree presentation.
2. Preliminaries
We formalize matroids, independence oracles, and decision trees over a finite ground set represented by the standard type of $n$ elements.
Definition 1 (Decision Tree): A deterministic independence-query algorithm on a ground set $\alpha$ is represented by the inductive type MatroidIndepQueryTree. An internal node queries a finite subset $S \subseteq \alpha$ and branches into a negative subtree $no$ and an affirmative subtree $yes$. A leaf node terminates computation and outputs a Boolean value.
Definition 2 (Tree Depth): The depth of a decision tree $T$, denoted MatroidIndepQueryTree.depth, is the maximum number of queries encountered along any root-to-leaf path. It is defined recursively by setting the depth of a leaf to 0, and the depth of a query node with subtrees $no$ and $yes$ to $1 + \max(\text{depth}(no), \text{depth}(yes))$.
Definition 3 (Tree Evaluation): Given an independence oracle $o : \text{Finset } \alpha \to \text{Bool}$, the evaluation of $T$ on $o$, denoted MatroidIndepQueryTree.eval, is defined recursively. At a leaf with Boolean value $b$, the evaluation returns $b$. At a query node asking subset $S$, the evaluation recursively proceeds along the subtree $yes$ if $o(S) = \text{true}$, and along the subtree $no$ if $o(S) = \text{false}$.
Definition 4 (Matroid Connectedness): A matroid $M$ on a type $\alpha$ with ground set $M.E$ is connected, denoted matroid_connected, if for all elements $e, f \in M.E$, either $e = f$ or there exists a circuit $C$ of $M$ such that $e \in C$ and $f \in C$. Remark: Under this definition, matroids with empty ground set or with a singleton ground set are connected. For any matroid with at least two elements, this condition is equivalent to the standard definition that $M$ cannot be partitioned into the direct sum of two non-empty matroids.
Definition 5 (Query Complexity Bound): For natural numbers $n$ and $q$, the proposition matroid_connectedness_query_le at $n$ and $q$ asserts the existence of a decision tree $T$ of type MatroidIndepQueryTree on $\text{Fin } n$ with depth at most $q$ such that for every matroid $M$ on $\text{Fin } n$ with ground set $M.E = \text{univ}$ and every oracle $o$ satisfying $o(S) = \text{true} \iff M.\text{Indep } S$, the tree evaluation satisfies $T.\text{eval}(o) = \text{true} \iff \text{matroid\_connected } M$.
Definition 6 (Laminar Matroid): A matroid $M$ is laminar if for any two circuits $C$ and $D$ of $M$ that have non-empty intersection ($C \cap D \ne \emptyset$), their closures are comparable under inclusion: either $M.\text{closure}(C) \subseteq M.\text{closure}(D)$ or $M.\text{closure}(D) \subseteq M.\text{closure}(C)$. Remark: Following the characterization in arXiv:1606.08354, this definition relies strictly on circuit intersections and closures, avoiding any requirement for an explicit laminar set family.
3. Main result
The main theorem establishes that for every ground set of size $n \ge 2$, at least $2n-1$ independence queries are required to decide connectedness deterministically.
Theorem 1 (Lower Bound for Deterministic Connectedness): For every natural number $n \ge 2$, deciding matroid connectedness on an $n$-element ground set cannot be performed by any deterministic independence-query tree of depth at most $2n-2$: matroid_connectedness_query_not_le_two_mul_sub_two.
The Lean statement takes a natural number $n$ with the hypothesis $2 \le n$ and asserts the negation of matroid_connectedness_query_le for depth $2n - 2$, stating that no deterministic decision tree of depth at most $2n-2$ decides connectedness for all matroids on the ground set of $n$ elements.
Our second result establishes that laminar matroids admit a deterministic linear-query connectedness decision procedure, regardless of the height or branching of their cyclic-flat structure.
Theorem 2 (Linear Query Decision for Laminar Matroids): For every natural number $n$, there exists a deterministic query tree $T$ of type MatroidIndepQueryTree on $\text{Fin } n$ with depth at most $4n+1$ such that for every matroid $M$ on $\text{Fin } n$ with full ground set satisfying the laminar intersecting-circuit property, and every oracle $o$ answering independence queries for $M$, $T.\text{eval}(o) = \text{true} \iff \text{matroid\_connected } M$. This is formalized as matroid_laminar_connectedness_query_linear.
Theorem 1 makes the $\Omega(n)$ lower bound of arXiv:2611.23624 (Proposition 2, stated without an explicit constant) explicit as $2n-1$ for deterministic algorithms; for $n = 2$ it is exact (matroid_connectedness_query_two_eq_three). Theorem 2 answers whether unbounded chains of cyclic flats necessarily force superlinear query complexity, showing that for laminar matroids, connectedness can be decided in $4n+1$ queries without receiving a laminar presentation.
theorem matroid_connectedness_query_not_le_two_mul_sub_two (n : ℕ) (hn : 2 ≤ n) :
¬ matroid_connectedness_query_le n (2 * n - 2)4. Proof
The lower bound matroid_connectedness_query_not_le_two_mul_sub_two is proved by an adversary argument on the rank-one uniform matroid $U_{1,n}$. In $U_{1,n}$, all singletons are independent, and every 2-element set is a circuit, so any two distinct elements form a circuit, making $U_{1,n}$ connected. We extract the queried sets $L$ of cardinality $|L| \le 2n-2$. First, we prove that every singleton $\{x\}$ must be queried in $L$: omitting $\{x\}$ allows an adversary to place a loop at $x$, producing a disconnected matroid that agrees with $U_{1,n}$ on all queries in $L$. This consumes $n$ queries. Next, the remaining $|L \setminus \text{singles}| \le n-2$ queries cannot connect all vertices in the query hypergraph. Constructing an uncrossed cut $(A, B)$ yields a disconnected direct sum $U_{1,|A|} \oplus U_{1,|B|}$ that agrees with $U_{1,n}$ on every set in $L$.
For the laminar algorithm matroid_laminar_connectedness_query_linear, we first check all singletons ($n$ queries) to identify loops. If loopless, we greedily build a basis $B$ ($n$ queries). We select an anchor element $b_0 \in B$ and query which elements outside $B$ have fundamental circuits containing $b_0$ ($n - |B|$ queries). Laminarity ensures that these fundamental circuits have nested closures, allowing a scan of length $|B|+1$ to detect whether the fundamental circuits cover all elements of $B$ or whether a separator disconnects the matroid.
The proofs rest on several auxiliary lemmas from the formalization:
Lemma 1 (matroid_indep_query_tree_eval_eq_of_agree): For any oracle $o$ and decision tree $T$, there exists a finite family of queries $L$ such that $|L| \le T.\text{depth}$ and any oracle $o'$ agreeing with $o$ on $L$ satisfies $T.\text{eval}(o') = T.\text{eval}(o)$. Lean settles this by induction on the structure of $T$.
Lemma 2 (not_matroid_connected_of_not_indep_singleton): If $M$ is a matroid with a loop $e$ (that is, $\{e\}$ is dependent) and there exists another ground element $f \ne e$, then $M$ is not connected. In Lean, this follows because no circuit can contain both a loop $e$ (whose only circuit is $\{e\}$) and an element $f \ne e$.
Lemma 3 (matroid_connected_of_subsingleton): Any matroid whose ground set has at most one element is connected.
Lemma 4 (not_matroid_connected_of_fund_circuit_separated_finite): Let $M$ be a matroid on a finite ground set with base $B$. If $A$ is a non-empty proper subset of $B$ such that every element $e \in M.E \setminus B$ whose fundamental circuit meets $A$ satisfies $M.\text{fundCircuit } e\ B \subseteq A \cup \{e\}$, then $M$ is not connected.
Lemma 5 (exists_matroid_of_indep_table): A Boolean predicate on finite subsets satisfying the independence axioms (non-empty, hereditary, and augmentation) uniquely determines a matroid with full ground set.
Lemma 6 (matroid_connectedness_query_not_le_of_sensitive): If a connected matroid $M$ admits a family of queries $F$ such that for every $S \in F$, there is a disconnected matroid $N$ agreeing with $M$ on all subsets except $S$, then any decision tree deciding connectedness requires at least $|F|$ queries.
We now give the complete proof of matroid_connectedness_query_not_le_two_mul_sub_two:
Assume for contradiction that there exists a decision tree $T$ of depth at most $2n-2$ deciding connectedness on $\text{Fin } n$. Consider the oracle $o(Q) = [|Q| \le 1]$. This corresponds to the uniform matroid $M = U_{1,n}$. Since $n \ge 2$, $M$ is connected because for any $e \ne f$, the set $\{e, f\}$ has cardinality 2, hence is dependent, while all singletons are independent, making $\{e, f\}$ a circuit containing both $e$ and $f$.
By Lemma 1 (matroid_indep_query_tree_eval_eq_of_agree), there exists a query set $L$ with $|L| \le 2n-2$ such that any oracle agreeing with $o$ on $L$ evaluates to true under $T$.
Define the family of singletons $\text{singles} = \{ \{x\} : x \in \text{Fin } n \}$. We claim that $\text{singles} \subseteq L$. Suppose for contradiction that $\{x\} \notin L$ for some $x$. We construct a matroid $N$ where $\{x\}$ is a loop and the remaining elements form a uniform matroid of rank 1. In $N$, since $n \ge 2$, by Lemma 2 (not_matroid_connected_of_not_indep_singleton), $N$ is disconnected. For any $Q \in L$: if $|Q| \le 1$, $Q$ cannot be $\{x\}$ (as $\{x\} \notin L$), so $Q$ is independent in $N$ if and only if $|Q| \le 1$; if $|Q| \ge 2$, $Q$ is dependent in $N$ and in $U_{1,n}$. Thus $N$ agrees with $o$ on all queries in $L$. By Lemma 1, $T$ evaluates to true on $N$, contradicting that $N$ is disconnected. Thus $\text{singles} \subseteq L$.
Since $|\text{singles}| = n$ and $|L| \le 2n-2$, the number of non-singleton queries is $|L \setminus \text{singles}| = |L| - n \le (2n-2) - n = n-2$.
We consider the graph on $n$ vertices whose edges are the 2-element sets in $L \setminus \text{singles}$. Any graph on $n$ vertices with at most $n-2$ edges has at least $n - (n-2) = 2$ connected components. Consequently, there exists a non-trivial partition $\text{Fin } n = A \cup B$ with $A \ne \emptyset$ and $B \ne \emptyset$ such that no edge in $L$ has one endpoint in $A$ and one in $B$.
Construct the split matroid $N = U_{1,|A|} \oplus U_{1,|B|}$. Since $A$ and $B$ are non-empty, $N$ is disconnected. The independent sets of $N$ are $\emptyset$, all singletons, and pairs $\{u, v\}$ with $u \in A$ and $v \in B$. All sets of size $\ge 3$ are dependent.
For any $Q \in L$: if $|Q| \le 1$, $Q$ is independent in both $N$ and $U_{1,n}$. If $|Q| \ge 2$, $Q$ can only be independent in $N$ if $|Q| = 2$ and $Q$ crosses the cut $(A, B)$. But by the choice of cut, no pair in $L$ crosses $(A, B)$. Hence every $Q \in L$ with $|Q| \ge 2$ is dependent in $N$. Thus $N$ agrees with $o$ on all $Q \in L$. By Lemma 1, $T$ outputs true on $N$, contradicting that $N$ is disconnected. This completes the proof of matroid_connectedness_query_not_le_two_mul_sub_two.
We now give the complete proof of matroid_laminar_connectedness_query_linear:
If $n < 2$, the ground set is a subsingleton. By Lemma 3 (matroid_connected_of_subsingleton), $M$ is connected. A leaf node returning true of depth 0 satisfies the theorem.
For $n \ge 2$, we query all singletons $\{x\}$ for $x \in \text{Fin } n$ ($n$ queries). If any $\{x\}$ is dependent, $M$ has a loop, so by Lemma 2 (not_matroid_connected_of_not_indep_singleton), $M$ is disconnected; the tree returns false.
If all singletons are independent, $M$ is loopless. We construct a base $B$ greedily by testing independence of $I \cup \{x\}$ for each $x$, taking $n$ queries. If $|B| = n$, $M$ is free on $n \ge 2$ elements, so it contains no circuits, and thus is disconnected.
If $|B| < n$, choose an anchor element $b_0 \in B$. For each element $e \in \text{Fin } n \setminus B$, we test whether $b_0$ belongs to the fundamental circuit $C(e, B)$ by querying $(B \cup \{e\}) \setminus \{b_0\}$. This requires $n - |B|$ queries.
Let $rs$ be the list of elements $e \in B^c$ such that $b_0 \in C(e, B)$. By the laminar condition, any two circuits containing $b_0$ have non-empty intersection, so their closures are totally ordered by inclusion.
We scan through $rs$ against the elements of $B$ in $|B|+1$ queries. If the maximal fundamental circuit contains all of $B$, $M$ is connected. Otherwise, there exists an element $b \in B$ unreached by any fundamental circuit meeting $b_0$. By Lemma 4 (not_matroid_connected_of_fund_circuit_separated_finite), the partition separates the fundamental circuits, proving that $M$ is disconnected.
For depth accounting: loop verification takes $n$ queries; basis search takes at most $n$ queries; anchor filtering takes $n - |B|$ queries; nested scanning takes $|B| + 1$ queries. The total depth is at most $n + n + (n - |B|) + (|B| + 1) = 3n + 1 \le 4n + 1$.
5. Discussion
The results presented establish a deterministic lower bound of $2n-1$ queries for general matroids and a deterministic linear upper bound of $4n+1$ queries for laminar matroids. While these theorems narrow the gap between lower and upper bounds, the central question posed in arXiv:2611.23624 remains open: does deciding connectedness of an arbitrary matroid on an $n$-element ground set have worst-case query complexity $\Theta(n)$, or is it $\Omega(n \log n)$?
The lower bound of $2n-1$ proved in matroid_connectedness_query_not_le_two_mul_sub_two gives an explicit constant for the $\Omega(n)$ deterministic bound of Proposition 2 of arXiv:2611.23624; for $n = 2$ it is exact (matroid_connectedness_query_two_eq_three). The adversary keeps the rank-one uniform matroid consistent with every answer: all singletons must be queried to exclude loops, and the remaining queries cannot rule out a split into two parallel classes across every cut.
On the upper bound side, Theorem matroid_laminar_connectedness_query_linear provides linear query complexity for laminar matroids without requiring any presentation. This extends the classes known to admit $O(n)$ query algorithms beyond the bounded cyclic-flat chain length restriction discussed in arXiv:2611.23624. Because laminar matroids permit chains of nested closures of arbitrary length as well as arbitrary tree branching, this result demonstrates that unbounded chain length alone is not sufficient to force a superlinear query complexity.
The investigation points to several clear directions for future research:
- Resolving the general linear query question: whether arbitrary matroids admit an $O(n)$ deterministic connectedness algorithm, or whether there exists a family of matroids requiring $\Omega(n \log n)$ independence queries.
- Investigating randomized query complexity: determining whether bounded-error randomized algorithms can decide connectedness using fewer than $2n-1$ queries.
- Extending presentation-free linear algorithms: determining whether the linear bound $O(n)$ extends to broader matroid classes, such as transversal matroids, gammoids, or binary matroids.
Why it is research-level
- Every deterministic fully adaptive connectedness algorithm requires at least 2n−1 unrestricted independence queries for n≥2. The rank-one accepting transcript must exclude both a loop and every nontrivial split into two parallel classes
- Laminar matroids of arbitrary height admit a deterministic 4n+1 independence-query algorithm for connectedness with no presentation supplied. This covers unbounded chains of cyclic flats and arbitrary branching in the laminar presentation
Lean declarations
- 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…
- matroid_laminar_connectedness_query_linearFor each n there is one deterministic independence-query tree of depth at most 4n+1 deciding connectedness for every laminar matroid on n…
- 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_bipartite_neighbor_query_linearThere is a constant C such that, on every finite labeled bipartite graph with r left and m right vertices, one fixed adaptive Boolean…
- matroid_bipartite_neighbor_query_not_linearThere is no constant C for which all finite bipartite graphs admit a deterministic connectedness decision tree using at most C times the…
- matroid_reverse_path_scan_sum_superlinearFor every constant C, some r at least three has C times (2r minus one) strictly smaller than the sum, over i from zero to r minus three,…
- matroid_binary_bulk_test_counterexampleThere are three nonzero binary two-coordinate columns, one supported on both coordinates, such that the last two columns are linearly…
- matroid_full_fiber_oracle_realizationFor a partial coloring that uses each of at least two colors, there is a matroid on the full ground set whose independent sets contain at…
- matroid_hidden_class_coverage_linearThere is one constant C such that for n points and any k at least two, a deterministic binary query tree of depth at most Cn decides if…
- matroid_hidden_class_coverage_of_linearA uniform linear deterministic independence-query algorithm for connectedness on arbitrary finite matroids implies the uniform linear…
- matroid_single_query_connectedness_witnessFor every nonempty distinguished subset of a ground type with at least two points, there are connected and disconnected full-ground…
- 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_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_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…
- 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.
- matroid_connected_of_subsingletonA matroid whose ground set has at most one element is connected.
- not_matroid_connected_of_fund_circuit_separated_finiteIf 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…
- 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…
Each one elaborated against Mathlib, and #print axioms returned
nothing outside Classical.choice · Quot.sound · propext.
References
- arXiv:2611.23624 — Matroid Connectedness and Component Decomposition: Breaking the Quadratic Barrier
- arXiv:1606.08354
Drafted by gemini-3.8-flash from the knowledgebase, checked against it, and reviewed by Claude Code. Only the Lean is verified; the prose is a reading of it.