Skip to content

Appendix F.7: P9's free-verify and oracle-gate bounds (#109) - #112

Merged
SamMausberg merged 2 commits into
mainfrom
paper/appendix-p9-bounds
Oct 1, 2026
Merged

SamMausberg merged 2 commits into
mainfrom
paper/appendix-p9-bounds

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #108. It adds to Appendix F.7 the P9 bounds that #109 put on main (evidence/repair/p9_support_oracle.json and evidence/repair/README.md at c44a6ba). Every number below was checked against that JSON.

F.7: a new paragraph with three bounds. All three use the same 18,274 boundaries and the same bootstrap resamples. None is a result about a real program.

  • Free verify, always-reuse. The reused cycle's verify costs nothing, and the other phases cost what they did at block 16.
    • Δ is +0.01 (0.00 to 0.02), +0.89 (0.81 to 0.98), +1.88 (1.75 to 2.05), +2.89 (2.71 to 3.10) and +3.86 (3.64 to 4.11) for top-1, top-2, top-4, top-8 and top-16.
    • None of the tested sets is rejected, so the top-1, top-2 and top-4 rejections do not carry over to a narrower verify.
    • The bound holds only when the non-verify phases cost at least their values in the fresh block-16 run, 0.395 ms. Block 8 measures 0.384 ms, so it is not a bound for every implementation.
    • On the point estimates, top-1, top-2 and top-4 stay negative only above 0.89, 2.71 and 3.87 ms of reused verify. The one narrower verify measured, 4.16 ms at width 8, does not settle that.
  • Oracle gate, padded verify. Δ is at least 0 by construction, so this bound rejects nothing.
    • Δ is +0.01, +0.45, +0.91, +1.44 and +2.05 for top-1, top-2, top-4, top-8 and top-16, with intervals.
    • It bounds P9's program with any gate.
    • Its excess over always-reuse, 1.06 to 1.33, is described only as the gain from gating the oracle's reuse arm. It does not bound what gating adds to a real program, and "most a perfect gate could add" does not appear.
  • Oracle gate, free verify. Δ is +0.04 to +4.35. It bounds P9's program with any gate at any verify width, under the same condition on the non-verify phases.
  • Decision-time features. The features a real gate can use are the correction position, the old positions left and the old sets' probabilities. The supported-suffix length is not known at decision time.

Other changes

Checks

  • The build has 0 warnings and 77 pages, the main text ends on page 10 and References start on page 11.
  • scripts/check_paper_references.py passes.
  • I looked at pages 64, 65 and 72.

Three further bounds on the same boundaries and resamples, none a result
about a real program. With the reused verify free, no tested candidate-set
size is rejected, so the top-1, top-2 and top-4 rejections do not extend to a
narrower verify; this holds only where the non-verify phases cost at least
their fresh block-16 values (0.395 ms; block 8 keeps 0.384 ms). The oracle
gate (>= 0 by construction) bounds P9's program with any gate and a padded
verify; its excess over always-reuse is only the gain from gating the
oracle's reuse arm. The same gate with a free verify bounds it at any width
under the same condition. The verify sweep at widths 2 to 16 joins P9's
pending item, and the program is said to condition on the corrected prefix.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T12:17:53.872626Z 368c84a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

Matches the merged README: the padded always-reuse oracle bounds P9's
program over the same candidate sets.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional: Codex's review of 368c84a was still running when I posted this. I will re-check its threads on this head before merge.)

Review on the exact head 368c84a (91631ff and 368c84a), which follows up #108 with the bounds from #109.

Numbers against evidence/repair/p9_support_oracle.json and the README on main (c44a6ba). All match:

  • Free reused verify: +0.01 (0.00 to 0.02), +0.89 (0.81 to 0.98), +1.88 (1.75 to 2.05), +2.89 (2.71 to 3.10) and +3.86 (3.64 to 4.11).
  • Oracle gate with a padded verify: +0.01 (0.01 to 0.01), +0.45 (0.42 to 0.49), +0.91 (0.85 to 0.98), +1.44 (1.35 to 1.53) and +2.05 (1.93 to 2.18). Its gain over always-reuse is 1.06 to 1.33 for top-2 to top-16; top-1's 0.05 is correctly left out.
  • Gate with a free verify: +0.04 (0.03 to 0.05), +1.47 (1.35 to 1.61), +2.54 (2.35 to 2.76), +3.47 (3.24 to 3.73) and +4.35 (4.09 to 4.64).
  • Timing values:
    • non-verify remainder: 0.395 ms at block 16 and 0.384 ms at block 8;
    • padded verify: 4.73 ms;
    • break-even reused-verify times: 0.89, 2.71 and 3.87 ms;
    • the only verify below width 16: 4.16 ms at width 8.

Wording against the merged README

  • Free-verify bounds. Both are limited to implementations whose other phases cost at least their block-16 values in the measured fresh block-16 run. The block-8 counterexample is given.
  • Gate column. The 1.06 to 1.33 is described only as "the gain from gating the oracle's reuse arm", and the text says it does not bound what gating adds to a real program. Neither "most a perfect gate could add" nor "every real program" appears anywhere in paper/sections.
  • Gate features. The decision-time features are J, the old positions left and the old sets' probabilities. The supported-suffix length is named as not known then.
  • Tested K. Only the tested K are named, with no range of K anywhere.
  • Line 137 now reads "on the corrected prefix", which closes my nit from Appendix F: add P9, the cached-window reuse oracle (#97) #108.
  • Register. The P9 status row, the repair-p9 entry and the repair-p9-program pending item (with the verify sweep at widths 2 to 16) match the text.

Build

  • A clean rebuild gives 77 pages and no LaTeX warnings, and its text matches the committed paper.pdf. References start on page 11.
  • check_paper_references.py reports no missing paths.
  • The branch is behind main, but main has not touched paper/ since its base, so the PDF stands.
  • Commits are by Samuel Mausberg, with no AI lines in the commits or the PR body.

Blocking: none. Suggestions: none.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 368c84afa6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SamMausberg
SamMausberg merged commit 8b35255 into main Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant