AFTD Auto-Formalizing Theoretical Domains

matroid_connectedness_query_le_zero_zero

theoremverified

The zero-element matroid requires 0 queries: on an empty ground set the matroid is vacuously connected.

Statement

theorem matroid_connectedness_query_le_zero_zero : matroid_connectedness_query_le 0 0
Source
step towards matroid_connectedness_query_linear
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6
  • MatroidIndepQueryTreeA deterministic independence-query algorithm on a ground set α, as a rooted binary decision tree: a leaf leaf b outputs the Boolean b;…
  • 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…
  • matroid_connected_of_subsingletonA matroid whose ground set has at most one element is connected.
  • 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…
  • 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…
  • 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 α →…

The proof, explained

We witness the query bound of 0 by the constant decision tree `MatroidIndepQueryTree.leaf true`, which makes no queries and has depth 0. To verify correctness, let M be any matroid on the empty set `Fin 0` with ground set M.E = univ. Because `Fin 0` has no elements, its ground set is a subsingleton, so M is vacuously connected by `matroid_connected_of_subsingleton`. Since both the tree's evaluation and the matroid's connectedness are true, the decision tree correctly determines connectedness in 0 queries.

  1. The constant decision tree returning true has depth at most 0.

    To show that 0 queries suffice to determine connectedness on `Fin 0`, we propose the trivial query tree `MatroidIndepQueryTree.leaf true`, which performs no independence queries and unconditionally outputs `true`. By definition, a leaf has depth 0, which satisfies the depth bound 0 ≤ 0.

    lines 3–4

      refine ⟨MatroidIndepQueryTree.leaf true, ?_, ?_⟩
      · simp [MatroidIndepQueryTree.depth]
  2. Any matroid M on Fin 0 with ground set univ is connected.

    Let M be an arbitrary matroid on the empty set `Fin 0` with full ground set M.E = univ, and let o be an independence oracle for M. Since `Fin 0` has no elements, it is a subsingleton type, so its universe `univ` is a subsingleton by `Set.subsingleton_univ`. Substituting M.E = univ into `matroid_connected_of_subsingleton`, it follows that M is connected.

    lines 5–9

    uses matroid_connected_of_subsingleton, Set.subsingleton_univ

      · intro M hM o ho
        have hconn : matroid_connected M := by
          apply matroid_connected_of_subsingleton
          rw [hM]
          exact Set.subsingleton_univ
  3. The decision tree correctly decides the connectedness of M.

    Evaluating the leaf tree `MatroidIndepQueryTree.leaf true` on the oracle o always returns `true`. Since M was shown to be connected, the equivalence `true = true ↔ True` holds, concluding the proof.

    line 10

        simp [MatroidIndepQueryTree.eval, hconn]
matroid_connected_of_subsingleton
A matroid whose ground set is a subsingleton (at most one element) is connected.
Set.subsingleton_univ
In any subsingleton type, the universal set is a subsingleton.

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

/-- On an empty ground set no query is needed: the matroid is vacuously connected. -/theorem matroid_connectedness_query_le_zero_zero : matroid_connectedness_query_le 0 0 := by  refine ⟨MatroidIndepQueryTree.leaf true, ?_, ?_⟩  · simp [MatroidIndepQueryTree.depth]  · intro M hM o ho    have hconn : matroid_connected M := by      apply matroid_connected_of_subsingleton      rw [hM]      exact Set.subsingleton_univ    simp [MatroidIndepQueryTree.eval, hconn]
See it in the graphDiscuss this resultChallenge it