Documentation

ReflectiveSubsystems.PolyTimeAccounting

Poly-time accounting ([SQ], §4 Theorem 4.1) — thin bookkeeping #

Provenance: [SQ], §4 (Theorem 4.1, parts (i)–(iv) and proof step (c)).

Status: PROVED as a pure real-arithmetic product bound. This is deliberately THIN bookkeeping — "an O(r·log(1/δ)) bound times an O(r) bound is O(r²·log(1/δ))" — NOT the substantive Paper III result. All real content (the algorithm, SQ pruning, the impossibility bypasses) is taken as GIVEN and stays prose.

What this DOES establish #

Precision note on part (i) vs step (c) #

Part (i) names O(r²·log(1/δ)) the sample complexity (observation count); step (c) derives the same order as the total work (search-window length × per-step cost). The paper treats both as the same order. What is formalized here is the total-work product of step (c), which the paper equates to the part-(i) order — not the sample-complexity claim of part (i) directly.

What this does NOT establish (stays in prose; the substance) #

Hypotheses: paper-stated vs added #

Real.log is the natural logarithm, as in the companion files.

theorem ReflectiveSubsystems.polytime_accounting (Tsearch cstep r a b δ : ℝ) (hT : Tsearch ≤ a * r * Real.log (1 / δ)) (hc : cstep ≤ b * r) (ha : 0 ≤ a) (_hb : 0 ≤ b) (hr : 1 ≤ r) (_hT0 : 0 ≤ Tsearch) (hc0 : 0 ≤ cstep) (hδ0 : 0 < δ) (hδ1 : δ < 1) :
Tsearch * cstep ≤ a * b * r ^ 2 * Real.log (1 / δ)

Theorem 4.1 complexity accounting (§4 proof step (c)): a search window bounded by O(r·log(1/δ)) times a per-step cost bounded by O(r) gives total work O(r²·log(1/δ)), with explicit witness constant a*b. Pure bookkeeping — _hb and _hT0 are genuinely nonneg but the linear-bound product does not need them, so they are _-marked (documented, not deleted).