§4.2 — balanced queries cannot distinguish from the cut function
ProvedNonmonotoneSubmod.QueryLB.balanced_queries_indistinguishableLet be a deterministic adaptive algorithm making value queries on , let , and let . Suppose that every query that issues when run against the oracle is balanced for . Then, run against instead, receives the same answers after each of its first queries for every , and so issues the same queries and returns the same set:
This is the step "as long as queries are balanced, the algorithm gets the same answer regardless of ": the algorithm's whole computation path is determined by .
Formalization Note No hypothesis on , or is needed; the statement holds for every because and agree on balanced sets.
import Mathlib import Definitions.Def_NonmonotoneSubmod_QueryLB_HardInstance import Definitions.Def_NonmonotoneSubmod_QueryLB_QueryAlgorithm
namespace NonmonotoneSubmod.QueryLB
/-- §4.2, proof of Theorem 4.5 (p. 1150, first paragraph): if every query that a deterministic
`q`-query algorithm `A` issues against the cut oracle `g(S) = |S|(n − |S|)` is balanced for
`(C, Cᶜ)`, then `A` receives the same answers from `f_C` as from `g`, issues the same queries
and returns the same set. -/
theorem balanced_queries_indistinguishable (n m q : ℕ) (A : DetAlg (Fin n) q)
(C : Finset (Fin n)) (hbal : ∀ i < q, Balanced n m C (A.queryAt (gCut n) i)) :
(∀ i ≤ q, A.answers (fC n m C) i = A.answers (gCut n) i) ∧
A.run (fC n m C) = A.run (gCut n) := by sorry
end NonmonotoneSubmod.QueryLB
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- are arbitrary natural numbers. Nothing is assumed about them: no evenness, no , no relation between them.
- is a deterministic -query algorithm on :
- a query rule maps each finite list of reals to a set ;
- an output rule maps each such list to a set .
- Against an oracle , the answer lists are and followed by .
- The -th query is , and the returned set is .
- is any subset; no size is required.
- The two oracles compared are:
- the cut function ;
- the hard instance , where is if , and otherwise (all in the reals).
Hypothesis. Each of the first queries issued against the cut oracle is balanced:
Claim. Both of the following hold:
- for every ;
- .
Degenerate cases:
- : the hypothesis is vacuous, and the conclusion only compares with itself and with itself.
- : "balanced" requires exactly equal counts.
- : every query is , which is balanced.
- Answers beyond : the conclusion says nothing about for .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.