AFTD Auto-Formalizing Theoretical Domains

matroid_connectedness_query_le

def

For natural numbers n and q, matroid_connectedness_query_le n q is the statement that the deterministic independence-query complexity of deciding matroid connectedness on n elements is at most q: there is an independence-query decision tree T on the ground set Fin n (a MatroidIndepQueryTree (Fin n)) of depth (MatroidIndepQueryTree.depth) at most q such that for every matroid M on the type Fin n whose ground set M.E is all of Fin n, and every oracle o : Finset (Fin n) → Bool that is the independence oracle of M (for every finite set S, o S = true if and only if S is independent in M), the output of T on o (MatroidIndepQueryTree.eval o T) is true if and only if M is connected (matroid_connected M: any two distinct elements lie in a common circuit).

Statement

def matroid_connectedness_query_le (n q : ℕ) : Prop
Defined in
arXiv:2611.23624 (Matroid Connectedness and Component Decomposition: Breaking the Quadratic Barrier), Section 2 and Problem (A) (query complexity of deciding matroid connectedness in the independence oracle model; the ground set is Fin n)
Verified
19 Nov 2026
Axioms
none listed
Built on 4
  • MatroidIndepQueryTreeA deterministic independence-query algorithm on a ground set α, as a rooted binary decision tree: a leaf leaf b outputs the Boolean b;…
  • 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 α →…
  • 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…
Used by 8

Read back from the Lean

For given natural numbers n and q, the proposition matroid_connectedness_query_le n q asserts that there exists an independence query tree T over Fin n such that: 1. The depth of T is at most q (T.depth ≤ q); and 2. For every matroid M on Fin n whose ground set is the entire universe (M.E = Set.univ), and for every oracle o : Finset (Fin n) → Bool: if for all finite subsets S of Fin n, o S = true if and only if S is independent in M (M.Indep (S : Set (Fin n))), then the evaluation of T on o returns true (T.eval o = true) if and only if M is connected (matroid_connected M).

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

/-- `D(n) ≤ q`: some deterministic independence-query algorithm of depth at most `q` decides connectedness of every matroid with ground set `Fin n`. -/
def matroid_connectedness_query_le (n q : ℕ) : Prop :=
  ∃ T : MatroidIndepQueryTree (Fin n), T.depth ≤ q ∧
    ∀ M : Matroid (Fin n), M.E = Set.univ → ∀ o : Finset (Fin n) → Bool,
      (∀ S : Finset (Fin n), o S = true ↔ M.Indep (S : Set (Fin n))) →
      (T.eval o = true ↔ matroid_connected M)
See it in the graphDiscuss this resultChallenge it