MatroidIndepQueryTree.eval
The Boolean output of an independence-query decision tree T on a ground set α when the queries are answered by an oracle o : Finset α → Bool (o S = true meaning that S is independent). The arguments are the oracle o first, then the tree, and the value is a Boolean, defined by recursion on the tree: a leaf leaf b evaluates to b; a query node query S no yes evaluates to the value of the subtree yes (on the same oracle) if o S = true, and to the value of the subtree no otherwise.
Statement
def MatroidIndepQueryTree.eval {α : Type*} (o : Finset α → Bool) : MatroidIndepQueryTree α → Bool
- Defined in
- arXiv:2611.23624 (Matroid Connectedness and Component Decomposition: Breaking the Quadratic Barrier), Section 2 (the run of a deterministic independence-query algorithm)
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Built on 1
- MatroidIndepQueryTreeA deterministic independence-query algorithm on a ground set α, as a rooted binary decision tree: a leaf
leaf boutputs the Boolean b;…
- MatroidIndepQueryTreeA deterministic independence-query algorithm on a ground set α, as a rooted binary decision tree: a leaf
- Used by 15
- matroid_indep_query_tree_eval_query_leafThe one-query tree that asks S and outputs c on yes and b on no evaluates, on an oracle o, to c if o S = true and to b otherwise.
- 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_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…
- 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_hidden_class_coverage_of_linearA uniform linear deterministic independence-query algorithm for connectedness on arbitrary finite matroids implies the uniform linear…
- matroid_coloop_detection_log_logThere is a uniform deterministic O(n log log(n+2)) independence-query algorithm to decide if an arbitrary n-element matroid has no…
- 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_connectedness_query_le_monoIf connectedness of matroids on n elements can be decided with q independence queries, it can be decided with q' queries for every q' ≥ q.
- 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_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_le_zero_zeroThe zero-element matroid requires 0 queries: on an empty ground set the matroid is vacuously connected.
- 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_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…
- matroid_connectedness_query_le_one_zeroOn a one-element ground set no query is needed: every matroid is connected.
- 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…
Read back from the Lean
Definition of MatroidIndepQueryTree.eval: for a type α, given an oracle function o : Finset α → Bool and a tree of type MatroidIndepQueryTree α, it evaluates the tree to a Bool recursively:
- if the tree is a leaf node leaf b with boolean value b, it returns b;
- if the tree is a query node query S no yes with queried set S : Finset α and subtrees no and yes, it evaluates o S: if o S = true, it recurses on yes, and otherwise (if o S = false), it recurses on no.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The output of an independence-query tree when the oracle answers `o S` to the query `S`. -/ def MatroidIndepQueryTree.eval {α : Type*} (o : Finset α → Bool) : MatroidIndepQueryTree α → Bool | .leaf b => b | .query S no yes => if o S = true then yes.eval o else no.eval o