Skip to content

Paper: scope the soundness claims to a kernel that computes the modelled arithmetic - #117

Merged
SamMausberg merged 4 commits into
mainfrom
paper/soundness-scope
Oct 1, 2026
Merged

SamMausberg merged 4 commits into
mainfrom
paper/soundness-scope

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

The theorems show that a certificate computed in the modelled arithmetic is sound. An implementation is sound only if its kernel actually computes that arithmetic. This PR adds that qualifier wherever the main text calls a comparison, an exclusion or the envelope sound. It also adds the assumption to the numerical-assumptions table. Every qualifier states the scope of a theorem, so no new evidence is needed.

Qualifiers

  • Intro, contract paragraph. "every other row runs the stock kernel, so, as long as the enclosures hold (Table 2), a failed certificate costs time and never agreement".
  • Figure 1 caption. "so, given valid enclosures, they are dropped for good".
  • Contribution 2. "or model-free for an integer pass (an implementation is sound only if its kernel computes the modelled arithmetic)".
  • Section 2.2, exclusion rule. "so, given valid enclosures, a row with $hi_j<\max_i lo_i-\delta_{\max}$ can be dropped for good".
  • Section 4.1.
    • The integer pass "needs no floating-point accumulation model ...; its kernel must still compute the analysed products". The old text said "no floating-point model at all".
    • "every computed comparison is sound (Lemmas A.2 and A.3), provided the kernel evaluates the analysed operations (Table 2)".
  • Section 4.2.
    • "Given valid enclosures, a dropped row loses by more than $\delta_{\max}$".
    • The Lean sentence now gives the check's scope: "in scaled integers, not under IEEE rounding". This scope statement previously sat in the Scope paragraph.
  • Related Work, novelty statement. "an envelope sound for tensor-core accumulation (for a kernel that computes the modelled arithmetic)".

Table 2: new row

Assumption Status Results that depend on it
The low-precision kernel computes the modelled arithmetic: the scaled products of codes and inputs, accumulated in FP32 within γ or exactly in int32, and the envelope epilogue as analysed. Validated per compiled variant, not proved [pending D1] (kernel-impl). Tokens certified by a kernel, not by the replay; its runtime

Every number in the main text comes from the CPU replay, so none of them depends on this row. The measured violation is left out for now: Triton 3.7.1's TMA int8 path with a 64-byte inner box returned wrong raw products. Its evidence is not on main yet. When #45 merges, the violation goes into this row and into contribution 2.

Space

The main text must stay within ten pages, so this PR removes repeated text:

  • Novelty statement. It now appears once, in Related Work ("What is and is not new"). Section 4.5's "What is new" paragraph is removed, and contribution 2 now points to Section 6.
  • Removed sentences.
    • The roadmap sentences that opened Sections 5 and 7.
    • The block-position clause in Section 5.3.
    • The CSV-Decode remark in Section 5.3, which Related Work already makes.
    • The inline list of bound families in Section 5.3; the text now cites Appendix C instead.
  • Shortened phrasing. A few phrases in Sections 4.1, 4.2, 5.3 and 6 are shorter.

No number changed.

Checks

  • Clean latexmk build: 78 pages, 0 warnings. The main text ends on page 10, and References starts on page 11.
  • Pages 1–10 rendered and inspected.
  • scripts/check_paper_references.py and codespell pass.
  • origin/main (91d5e44) is merged, and the PDF was rebuilt after the merge.

…thmetic

The theorems prove that a certificate computed in the modelled arithmetic
is sound; an implementation is sound only if its kernel computes that
arithmetic. State this where the main text calls a comparison, an
exclusion or the envelope sound, and add the assumption to Table 2 with
its status (validated per compiled variant, not proved; pending) and the
results that depend on it.

To keep the main text within ten pages, state the certified head's
novelty once, in Related Work, and trim repeated or roadmap sentences in
Sections 4, 5 and 7. The Lean check's scope (scaled integers, not IEEE
rounding) moves from Scope to the sentence in Section 4.2 that cites it.
@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-01T13:11:41.223423Z 670b388 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

Verdict: REQUEST CHANGES (one phrase)

Review on the exact head 89e3bb2 (c7f363a, plus a merge of origin/main 91d5e44).

Checks

  • The qualifiers are placed correctly. Each one states the scope of a theorem:
    • the Intro: "as long as the enclosures hold (Table 2)";
    • the Figure 1 caption and Section 2.2: "given valid enclosures ... dropped for good";
    • contribution 2: an implementation is sound only if its kernel computes the modelled arithmetic;
    • Section 4.1: the integer pass needs no floating-point accumulation model, but its kernel must compute the analysed products, and comparisons are sound "provided the kernel evaluates the analysed operations";
    • Section 4.2: "Given valid enclosures", and Lean "in scaled integers, not under IEEE rounding";
    • Related Work: the novelty statement carries the same scope.
  • No number changes.
  • The space cuts remove no claim that is needed.
    • "What is new" now lives once, in Related Work, and contribution 2 points to Section 6.
    • The head-path runtime is still pending in 4.5 ("The implementation and its head-path times ... are [pending D1, ...]"), so cutting Section 5's opening "main open question" sentence loses nothing.
    • CSV-Decode stays cited in Related Work, the bound families now point to Appendix C, and "two orders of magnitude above that of δ*" is more precise than before.
  • The TMA violation is correctly left out. Its evidence is in Certified int8 LM head: exact stock-head decisions, seeded sampling, kernels and evidence #45, which has not merged.
  • Venue checks.
    • A clean rebuild gives 78 pages and no LaTeX warnings, and its text matches the committed paper.pdf.
    • Page 10 ends the main text, and References start on page 11. There are no ??.
    • There are no PR numbers in the main text, and every pending marker renders as "[pending Dn]".
    • check_paper_references.py, the host-identity check and codespell all pass.
  • Attribution and merge state. The commits are by Samuel Mausberg, with no AI lines in the commits or the PR body. The branch contains main and is MERGEABLE.

Blocking

  1. The new Table 2 row's status says more than main supports.

Suggestion (non-blocking). In 4.1, "for int8 per row" (shortened from "for int8 with one scale per row") is ambiguous. "For per-row int8" or "for int8 with per-row scales" keeps the meaning in the same space.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89e3bb2f81

ℹ️ 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".

Comment thread paper/sections/contract.tex Outdated
A row's stock BF16 logits do not depend on the other rows of the batch or on which head rows are present. & Assumed; \pend{kernel-invariance}. & Row-wise fallback only\\
Comparisons are made at the same batch shape and serving configuration. & Required (Section~\ref{sec:same-shape}). & Every agreement claim\\
The low-precision pass accumulates in FP32 on tensor cores under the \modelcons, or exactly in int32 for int8 codes times int8 activation codes. & Model assumed; integer pass exact. & Thm.~\ref{thm:envelope}; Table~\ref{tab:candidates}\\
The low-precision kernel computes the modelled arithmetic: the scaled products of codes and inputs, accumulated in FP32 within $\gamma$ or exactly in int32, and the envelope epilogue as analysed. & Validated per compiled variant, not proved \pend{kernel-impl}. & Tokens certified by a kernel, not by the replay; its runtime\\

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Do not mark the pending kernel validation as complete

The new status says this condition is “Validated per compiled variant,” but Appendix D lists the certified-head implementation and its tests as pending, and a repo-wide search finds neither the referenced src/certified_head/ implementation nor corresponding validation tests. The commit description also records that the Triton TMA int8 variant returned incorrect raw products. This therefore presents the central soundness precondition as satisfied despite a known counterexample and no committed validation; mark it as required/pending or disclose the failing variant until the validation evidence is committed.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6545e83. The status no longer says the assumption is validated. It now reads "Required, not proved; validation per compiled variant [pending D1]", followed by the known counterexample in one clause: "A TMA int8 variant produced incorrect envelopes; the start-up self-test rejects it." When the implementation and its validation evidence merge, a follow-up will change the status to validated and cite that evidence.

…ailure

Table 2 called the assumption validated per compiled variant, but that
validation is in work not yet on main. State it as required, not proved,
with its validation pending, and disclose in one clause that a TMA int8
variant produced incorrect envelopes and that the start-up self-test
rejects it. Section 4.1 now says "per-row int8".
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES (one marker)

Re-review on the exact head 6545e83 ("Mark the kernel-arithmetic assumption as pending and name the known failure").

  • My blocking item and Codex P1 r4155672940 are fixed, and the thread has a reply. The status now reads "Required, not proved; validation per compiled variant [pending D1]", so it no longer claims validation.
  • My suggestion is applied. Section 4.1 now says "for per-row int8".
  • Build and checks. A clean rebuild gives 78 pages and no LaTeX warnings, and its text matches the committed paper.pdf. References start on page 11. Only contract.tex, head.tex and the PDF change. The commit is by Samuel Mausberg, with no AI lines.

Blocking

  1. The new counterexample sentence has no evidence marker. "A TMA int8 variant produced incorrect envelopes; the start-up self-test rejects it." is right to disclose, but it states a measured result, and the start-up self-test, without \ev or \pend.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional: Codex has not reviewed 670b388; its last review is of 89e3bb2. Please request it. I will re-check its threads on this head before merge.)

Re-review on the exact head 670b388 ("Put the TMA disclosure in Table 2 under the pending implementation entry").

  • My last blocking item is fixed. The disclosure now reads "A TMA int8 variant produced incorrect envelopes, which the start-up self-test rejects [pending D1]". Both statements in the cell (the validation, and the counterexample with its self-test) are now under kernel-impl until Certified int8 LM head: exact stock-head decisions, seeded sampling, kernels and evidence #45's evidence is on main. Only contract.tex and the PDF change.
  • Build and checks.
    • A clean rebuild gives 78 pages and no LaTeX warnings, and its text matches the committed paper.pdf.
    • Page 10 ends the main text, and References start on page 11. There are no ??, and both markers render as "[pending D1]".
    • check_paper_references.py passes.
    • The commit is by Samuel Mausberg, with no AI lines.
  • Earlier checks still hold. Everything from my 89e3bb2 and 6545e83 reviews still holds: the qualifiers, the space cuts, no PR numbers in the main text, and consistent pending markers. Codex P1 r4155672940 has a reply.

Blocking: none. Suggestions: none.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

1 similar comment
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 670b3880a5

ℹ️ 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

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (confirmed on 670b388)

Codex finished its review of 670b388 at 13:11:40 with "Didn't find any major issues". gh api --paginate shows no review threads on 670b388. The newest Codex thread is on 89e3bb2 (r4155672940), and it has a reply and a fix. My provisional approval of 670b388 (#117 (comment)) now stands without condition. The branch head is still 670b388.

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