AFTD Auto-Formalizing Theoretical Domains

matroid_connectedness_query_not_le_of_sensitive

theoremverified

Sensitivity lower bound. Let M be a connected matroid with ground set Fin n and F a family of finite subsets of Fin n such that for every S in F there is a disconnected matroid N with ground set Fin n whose independent sets agree with those of M on every finite set other than S. Then deciding connectedness on n elements needs at least |F| independence queries: matroid_connectedness_query_le n q fails for every q < |F|.

Statement

theorem matroid_connectedness_query_not_le_of_sensitive {n : ℕ} (M : Matroid (Fin n))
    (hE : M.E = Set.univ) (hM : matroid_connected M) (F : Finset (Finset (Fin n)))
    (hF : ∀ S ∈ F, ∃ N : Matroid (Fin n), N.E = Set.univ ∧ ¬ matroid_connected N ∧
      ∀ S' : Finset (Fin n), S' ≠ S → (N.Indep (S' : Set (Fin n)) ↔ M.Indep (S' : Set (Fin n))))
    (q : ℕ) (hq : q < F.card) : ¬ matroid_connectedness_query_le n q
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
Classical.choiceQuot.soundpropext
Built on 6
  • 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…
  • 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_indep_query_tree_eval_eq_of_agreeOn an oracle o, an independence-query tree T asks at most depth(T) sets: there is a family L of at most depth(T) finite sets such that…
  • 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 α →…
  • 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 3

The proof, explained

We prove the lower bound by contradiction: suppose an independence query tree T of depth at most q < |F| correctly decides matroid connectedness. When run on the independence oracle of the connected matroid M, the tree queries a set L of subsets whose size is at most the tree depth, which is strictly less than |F|. By cardinality, some sensitive set S in F is not queried along this execution path. By the sensitivity hypothesis, there is a disconnected matroid N agreeing with M on all subsets other than S. Since T never queries S on this path, T evaluates to the same answer (true) on N as on M, contradicting the fact that N is disconnected.

  1. Assume for contradiction that there is an independence query tree T of depth at most q that correctly decides connectedness for all matroids on Fin n.

    We proceed by contradiction using `rintro ⟨T, hT, hdec⟩` to unpack the assumption that `matroid_connectedness_query_le n q` holds, obtaining a query tree T with depth at most q and a decision correctness guarantee hdec for all matroids on Fin n with full universe.

    lines 6–7

      classical
      rintro ⟨T, hT, hdec⟩
  2. Evaluating T on the independence oracle o of the connected matroid M yields true.

    We define the oracle o mapping each finite subset S to the boolean value indicating whether S is independent in M. Because M is connected and has full ground set, the correctness property hdec ensures that T evaluates to true on o.

    lines 8–10

      let o : Finset (Fin n) → Bool := fun S => decide (M.Indep (S : Set (Fin n)))
      have ho : ∀ S : Finset (Fin n), o S = true ↔ M.Indep (S : Set (Fin n)) := fun S => by simp [o]
      have h1 : T.eval o = true := (hdec M hE o ho).2 hM
  3. The evaluation of T on o queries a set L of subsets with |L| < |F|, and any oracle agreeing with o on L yields the same evaluation.

    By `matroid_indep_query_tree_eval_eq_of_agree`, the queries along the execution path followed by o form a set L with |L| ≤ T.depth. Since T.depth ≤ q < |F|, `lt_of_le_of_lt` gives |L| < |F|. Furthermore, any oracle agreeing with o on L will produce the same outcome T.eval o.

    lines 11–12

    uses matroid_indep_query_tree_eval_eq_of_agree, lt_of_le_of_lt

      obtain ⟨L, hL, hagr⟩ := matroid_indep_query_tree_eval_eq_of_agree o T
      have hlen : L.card < F.card := lt_of_le_of_lt (hL.trans hT) hq
  4. There exists a subset S ∈ F that is not queried during this execution path (S ∉ L).

    If every S ∈ F were in L, then F ⊆ L, which by `Finset.card_le_card` would imply |F| ≤ |L|. This contradicts |L| < |F| via `not_le.2`, so there must exist some S ∈ F such that S ∉ L.

    lines 13–18

    uses Finset.card_le_card, not_le.2

      obtain ⟨S, hSF, hSn⟩ : ∃ S ∈ F, S ∉ L := by
        by_contra hcon
        have hsub : F ⊆ L := fun S hS => by
          by_contra hSL
          exact hcon ⟨S, hS, hSL⟩
        exact absurd (Finset.card_le_card hsub) (not_le.2 hlen)
  5. There is a disconnected matroid N whose independence oracle o' agrees with o on all subsets except possibly S.

    By the sensitivity assumption hF applied to S ∈ F, there exists a disconnected matroid N on Fin n with full ground set whose independent sets match M's on every set S' ≠ S. We define o' to be the independence oracle for N.

    lines 19–21

      obtain ⟨N, hNE, hN, hagree⟩ := hF S hSF
      let o' : Finset (Fin n) → Bool := fun S => decide (N.Indep (S : Set (Fin n)))
      have ho' : ∀ S : Finset (Fin n), o' S = true ↔ N.Indep (S : Set (Fin n)) := fun S => by simp [o']
  6. The query tree T evaluates to true on o' as well.

    Since S ∉ L, every queried set S' ∈ L satisfies S' ≠ S. Hence N and M agree on the independence of S', so o' S' = o S' for all S' ∈ L by `decide_eq_decide.2`. By the agreement property of L, T evaluates to the same value on o' as on o, namely true.

    lines 22–25

    uses decide_eq_decide.2

      have h2 : T.eval o' = T.eval o := hagr o' fun S' hS' => by
        have hne : S' ≠ S := fun h => hSn (h ▸ hS')
        simp only [o, o']
        exact decide_eq_decide.2 (hagree S' hne)
  7. This produces a contradiction, showing that no such query tree can exist.

    Because T evaluates to true on o', the correctness guarantee hdec applied to N implies that N must be connected, contradicting the fact that N is disconnected.

    line 26

      exact hN ((hdec N hNE o' ho').1 (h2.trans h1))
matroid_indep_query_tree_eval_eq_of_agree
For any boolean query tree T and oracle o, there exists a set L of queried subsets with |L| ≤ T.depth such that any oracle agreeing with o on L gives the same tree evaluation.
lt_of_le_of_lt
If a ≤ b and b < c in a preorder, then a < c.
Finset.card_le_card
If s ⊆ t for finite sets s and t, then |s| ≤ |t|.
not_le.2
If b < a in a linear order, then ¬(a ≤ b).
decide_eq_decide.2
If P ↔ Q, then decide P = decide Q.

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_connectedness_query_not_le_of_sensitive {n : ℕ} (M : Matroid (Fin n))    (hE : M.E = Set.univ) (hM : matroid_connected M) (F : Finset (Finset (Fin n)))    (hF : ∀ S ∈ F, ∃ N : Matroid (Fin n), N.E = Set.univ ∧ ¬ matroid_connected N ∧      ∀ S' : Finset (Fin n), S' ≠ S → (N.Indep (S' : Set (Fin n)) ↔ M.Indep (S' : Set (Fin n))))    (q : ℕ) (hq : q < F.card) : ¬ matroid_connectedness_query_le n q := by  classical  rintro ⟨T, hT, hdec⟩  let o : Finset (Fin n) → Bool := fun S => decide (M.Indep (S : Set (Fin n)))  have ho : ∀ S : Finset (Fin n), o S = true ↔ M.Indep (S : Set (Fin n)) := fun S => by simp [o]  have h1 : T.eval o = true := (hdec M hE o ho).2 hM  obtain ⟨L, hL, hagr⟩ := matroid_indep_query_tree_eval_eq_of_agree o T  have hlen : L.card < F.card := lt_of_le_of_lt (hL.trans hT) hq  obtain ⟨S, hSF, hSn⟩ : ∃ S ∈ F, S ∉ L := by    by_contra hcon    have hsub : F ⊆ L := fun S hS => by      by_contra hSL      exact hcon ⟨S, hS, hSL⟩    exact absurd (Finset.card_le_card hsub) (not_le.2 hlen)  obtain ⟨N, hNE, hN, hagree⟩ := hF S hSF  let o' : Finset (Fin n) → Bool := fun S => decide (N.Indep (S : Set (Fin n)))  have ho' : ∀ S : Finset (Fin n), o' S = true ↔ N.Indep (S : Set (Fin n)) := fun S => by simp [o']  have h2 : T.eval o' = T.eval o := hagr o' fun S' hS' => by    have hne : S' ≠ S := fun h => hSn (h ▸ hS')    simp only [o, o']    exact decide_eq_decide.2 (hagree S' hne)  exact hN ((hdec N hNE o' ho').1 (h2.trans h1))
See it in the graphDiscuss this resultChallenge it