AFTD Auto-Formalizing Theoretical Domains

MatroidIndepQueryTree

inductive

A deterministic independence-query algorithm on a ground set α, as a rooted binary decision tree: a leaf leaf b outputs the Boolean b; an internal node query S no yes asks whether the finite set S ⊆ α is independent and continues with the subtree no if the answer is no and with the subtree yes if the answer is yes.

Statement

inductive MatroidIndepQueryTree (α : Type*) where
Defined in
arXiv:2611.23624 (Matroid Connectedness and Component Decomposition: Breaking the Quadratic Barrier), Section 2 (a deterministic algorithm using independence queries as a rooted binary decision tree)
Verified
19 Nov 2026
Axioms
none listed
Used by 19

Read back from the Lean

An inductive type MatroidIndepQueryTree α, parameterized by a type α, representing a binary decision tree with two constructors: - leaf (b : Bool): a leaf node containing a boolean value b. - query (S : Finset α) (no yes : MatroidIndepQueryTree α): an internal query node containing a finite subset S of α and two child subtrees no and yes (both of type MatroidIndepQueryTree α).

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

/-- A deterministic independence-query algorithm as a binary decision tree: `leaf b` outputs `b`; `query S no yes` asks whether `S` is independent and continues with `no` or `yes`. -/
inductive MatroidIndepQueryTree (α : Type*) where | leaf (b : Bool) : MatroidIndepQueryTree α
  | query (S : Finset α) (no yes : MatroidIndepQueryTree α) : MatroidIndepQueryTree α
See it in the graphDiscuss this resultChallenge it