AFTD Auto-Formalizing Theoretical Domains

MatroidIndepQueryTree.depth

def

The depth (height) of an independence-query decision tree on a ground set α, a natural number defined by recursion on the tree: a leaf leaf b has depth 0, and a query node query S no yes has depth 1 + max(depth of the subtree no, depth of the subtree yes). It is the largest number of queries on a root-to-leaf path.

Statement

def MatroidIndepQueryTree.depth {α : Type*} : MatroidIndepQueryTree α → ℕ
Defined in
arXiv:2611.23624 (Matroid Connectedness and Component Decomposition: Breaking the Quadratic Barrier), Section 2 (query complexity = maximum height of the decision tree)
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 b outputs the Boolean b;…
Used by 15

Read back from the Lean

For any type α, MatroidIndepQueryTree.depth is a function mapping a tree t : MatroidIndepQueryTree α to a natural number ℕ, defined recursively: - A leaf node (leaf _) has depth 0. - A query node (query _ no yes) has depth 1 + max no.depth yes.depth.

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 height of an independence-query tree: the largest number of queries on a root-to-leaf path. -/
def MatroidIndepQueryTree.depth {α : Type*} : MatroidIndepQueryTree α → ℕ
  | .leaf _ => 0
  | .query _ no yes => 1 + max no.depth yes.depth
See it in the graphDiscuss this resultChallenge it