AFTD Auto-Formalizing Theoretical Domains

matroid_indep_query_tree_depth_leaf

theoremverified

A leaf of an independence-query tree has depth 0.

Statement

theorem matroid_indep_query_tree_depth_leaf {α : Type*} (b : Bool) :
    (MatroidIndepQueryTree.leaf b : MatroidIndepQueryTree α).depth = 0
Source
Sanity lemma / helper for the statements of OP-1998 (arXiv:2611.23624 (Matroid Connectedness and Component Decomposition: Breaking the Quadratic Barrier))
Verified
19 Nov 2026
Axioms
Quot.soundpropext
Built on 2
  • 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…

The proof, explained

The depth of an independence-query tree is defined recursively on its inductive structure, assigning 0 to any leaf. Consequently, the claim holds directly by definition.

  1. The depth of a leaf node is 0.

    By definition of `MatroidIndepQueryTree.depth`, the depth of any leaf node `MatroidIndepQueryTree.leaf b` is defined to be 0. Thus, the equality holds directly by reflexivity.

    line 3

      rfl

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

theorem matroid_indep_query_tree_depth_leaf {α : Type*} (b : Bool) :    (MatroidIndepQueryTree.leaf b : MatroidIndepQueryTree α).depth = 0 := by  rfl
See it in the graphDiscuss this resultChallenge it