The end-to-end finite-horizon guarantee ([SQ] §3.3, §4 Theorem 4.1(i)) #
Provenance: [SQ] §3.3 "When does the reduction work?" (the finite-horizon paragraph: a schedule
oracle proved from MixingHoeffdingTo at a horizon N, without covering every sample size) and
§4 Theorem 4.1(i) (the pruned posterior's sample complexity). Composes two independently-landed
theorems that neither cite nor import each other:
ReflectiveSubsystems.empirical_isSQOracle_of_mixingTo (the finite-horizon mixing oracle over a
schedule, off an event of measure ≤ δ) and ReflectiveSubsystems.algorithm_discovery (Theorem
4.1(i) for the pruned algorithm, assembled from [Discovery]'s discovery theorem by posterior
monotonicity under the schedule's own oracle-closeness hypothesis hclose).
ReflectiveSubsystems/BirkhoffTool.lean imports Learning.SQOracle;
ReflectiveSubsystems/SQAlgorithm.lean imports the discovery/supermartingale stack; neither is
upstream of the other, so the composition is a new, third module rather than an addition to either
parent.
What is proved here (machine-checked, axioms = the standard triple) #
algorithm_discovery_of_mixingTo— on trajectories where the truthiRis realizable andε₀-separated from every competitor at every step below the discovery horizonm, the event that the pruned posterior oniRstill fails to reach1 − δd/2aftermsteps has measure≤ δ,δbeing the oracle's own confidence budget for a scheduleQsanswered fromn ≤ Nsteps of a single orbit segment underMixingHoeffdingTo Nat one shared mixing constantc.The trajectory-wise hypotheses are conditioned inside the event, not quantified over every trajectory. The natural-looking alternative — realizability and separation as
∀ ωpremises, concluding a bareμ {ω | ¬ concentration} ≤ ENNReal.ofReal δ— is unsatisfiable: ats = 0, realizability would demandpred iR 0 (empty window) = ω 0for everyω, which fails as soon asXhas two elements, making that theorem true, empty, and empty invisibly. Conditioning the event on the hypotheses avoids this, needs no∀ᵐmachinery or measurability, and is the primitive aμ-a.e. consumer form (hypotheses a.e., conclusion a bare failure bound) would follow from in one line — not given here, since nothing yet consumes it.The bridge is a pure inclusion, with one named identification and no containment side condition.
SQObjects.IsSQOraclequantifies over the whole query type, so instantiatingReflectiveSubsystems.algorithm_discoveryat the query type↥Qs— the schedule's own subtype — makes itshclosehypothesis an immediate specialization of the oracle predicate: everysched t : Finset ↥Qsalready sits inside that universal. What the bridge does need, and states as the hypothesishstat, is the modelling identification that each scheduled query's declared answer is the truth's own statistic (stat iR φ = tru ↑φ) — the step [SQ] §3.2 makes in prose. The proof is then: the event in the conclusion is a subset of the oracle's own failure event (a trajectory in the smaller event but outside the oracle's failure event would satisfyalgorithm_discovery's hypotheses via the bridge above, and hence its conclusion, contradicting the smaller event's own third conjunct);measure_monocloses the bound fromempirical_isSQOracle_of_mixingTo.Two sample counts appear, and nothing relates them.
n, the size at which the whole schedule is answered from a single orbit segment, carriesn ≤ N;m, the step count the pruned posterior is bounded at, carries only [Discovery]'s own discovery thresholdhT. So the horizon bounds the schedule's answering, never the run: a run may be arbitrarily longer than the horizon its environment is representative below, because the discovery half of Theorem 4.1 consumes no mixing at all.
What is deliberately NOT in the statement or in scope #
n ≤ m— that the oracle's sample sits inside the prefix the learner has actually observed — is a modelling reading of this composition, not a mathematical hypothesis either parent needs: the theorem is true without it, and it would be an unused binder here. Read it as intended alongside the statement: the schedule is answered from a prefix of the same trajectory the discovery half runs over.- Theorem 4.1 parts (ii)–(iv) are not composed: read at [SQ]'s own proof sketch, part (i) is the
only part whose argument touches the mixing hypothesis at all — (ii)/(iii) are per-step cost, (iv)
is
L-independence, and neither consumes the oracle's accuracy. - The
μ-a.e. consumer form — see above; it is a one-line corollary of the conditioned form, not given because nothing here consumes it.
The end-to-end finite-horizon guarantee ([SQ] §3.3, §4 Theorem 4.1(i)): composing the
finite-horizon mixing oracle (ReflectiveSubsystems.empirical_isSQOracle_of_mixingTo) with Theorem
4.1(i) for the pruned algorithm (ReflectiveSubsystems.algorithm_discovery). See the module
docstring for the inclusion argument, the conditioned-event reading, and what stays out of scope.