A clean, unusually reproducible demonstration that bounded-view execution turns a neural network's arithmetic into a finitely certifiable property. Nearly every number I checked reproduces. However, the 'certified at arbitrary length' framing outruns what is certified: the runtime, batching and other GPUs are covered by tests, not proofs. And the 220-vs-217 headline comparison is statistically uninformative.
Soundness
3/4
Presentation
3/4
Contribution
3/4
Confidence
4/5
✓ 16 confirmed✕ 1 discrepancy
Summary
The paper makes a small vision-language model (Qwen3.5-0.8B plus a rank-16 LoRA) carry out pencil-and-paper arithmetic one step at a time on a rendered sheet. Each forward pass sees only a three-cell view of 32-px glyphs and outputs a digit, a carry or borrow, and the next operation. A conventional runtime moves the view and writes the outputs, but never writes a result digit itself. Because every step reads only a bounded view, all the network's behaviour is fixed by its outputs on a finite set of 2,446 views (Eq. 1).
Four results are proved in Lean. Theorem 1: the machine is exact at all lengths iff it is exact on the views reached. Theorem 2: if steps can also read earlier steps, no finite test suffices. Theorem 3: a margin of m tolerates logit perturbations below m/2. Theorem 4: certified procedures compose, giving a union bound on error sources. The adapter is then certified on the deployment path (WebGPU fp16 in a browser on an Apple M4) with a smallest margin of 3.02, and batching is measured to move logits by at most 1.09.
On top of this certificate the paper builds signed addition and subtraction, multiplication, division (Knuth's Algorithm D), square roots and GCD; a polynomial-algebra runtime with answer checks; and a multiplicative gate that recovers the base model bit for bit. It also trains a dialogue adapter that calls the sheet, and reports that this adapter failed its pre-registered GSM8K retention criterion. Empirically: 200/200 pre-registered problems in the browser, and 220/220 comparison problems against 217/220 for the best of ten tool-free LMs.
Strengths
Certificate on the real deployment numerics, with a margin argument
Sec. 3; Theorem 3; Extended Data Table 1
The paper does not treat 'the network is correct on the views' as a property of an idealised model. It measures every view on the deployed ONNX/WebGPU fp16 path and uses Theorem 3 (margin >2τ) to make the claim robust to floating-point differences. I recomputed all 18 per-table minima of Extended Data Table 1 from the released per-row margins (check 01). They match to two decimals: 2,446 rows, none non-positive, minimum 3.016 on the device and 3.96 on the server. The released batch data give τ=1.094<1.508 (check 05).
Machine-checked theory that builds and matches the text
Appendix A; Extended Data Table 6; Fig. 3b
I rebuilt the Lean 4.35 + Mathlib package from scratch (2,140 jobs, check 04). The build succeeds. All 34 paper aliases use only propext, Classical.choice and Quot.sound, and the sources contain no , or . The elaborated statements match the paper, including the paint-injectivity hypothesis for necessity in Theorem 1 and the step-wise closeness hypothesis of Theorem 3. I also simulated the Theorem 2 counterexample decoder in exact rationals (check 03). Its behaviour matches every part (a)-(d) of the precise form and the failure at step in Fig. 3b.
Weaknesses
'Certified exact at arbitrary length' depends on uncertified code at the length-dependent parts
major · Title; Abstract; Sec. 3 (Theorem 1 hypotheses); Methods p.11
Theorems 1-4 take as hypotheses that the runtime reaches only views in V and that layouts, outer loops and reference procedures are correct. These are the components where length-dependent bugs would live. In the paper they are TypeScript, checked 'on 1,000 random problems per procedure' (Methods p.11). The Lean development formalises none of the concrete procedures (check 04). The paper states this in the introduction and the Discussion, but the title and abstract ('the certified model performs ... at arbitrary length') suggest an end-to-end guarantee. My exhaustive checks of the division and square-root normalisation (checks 07-08) make the hypothesis very plausible. Fix: state in the abstract that the guarantee is relative to the runtime. Better still, formalise RT(I) for at least addition and multiplication, where the layout argument is simple.
Questions for the authors
Can RT(I)⊆V be formalised in Lean for addition and multiplication, at least, so that the 'arbitrary length' claim does not rest on the TypeScript layout code?
What is the worst-case logit perturbation over all batch compositions the runtime can produce? Could the runtime be restricted to batch size 1 (or a fixed padded batch) so that Theorem 3's hypothesis is established rather than sampled?
On a GPU other than the M4, what fraction of users would run the full 2,446-view recheck? Has any table failed when only the lowest-margin tenth was checked?
Did the three WebGPU device losses in the browser test affect any reported timing, and were any problems attempted more than once before the reported success?
How does Sketchpad compare with frontier models on division, square roots and GCD, and what is its wall-clock time on the 1,000-digit sums of the comparison?
For the dialogue adapter, which of the 201 lost fresh GSM8K items are mistranslations into the sheet, and which are reasoning failures outside the sheet?
Verification
I ran 17 checks covering every main quantitative claim and all four theorems. Sixteen were confirmed and one gave a minor discrepancy. Highlights: Extended Data Table 1 (all 18 minimum margins) and the batching bound reproduce from the released per-row data. The Lean package builds from scratch with only standard axioms, and its statements match the paper. An exact simulation of the Theorem 2 counterexample behaves as stated. The table sizes and all 651 calc-table outputs reproduce. The division and square-root normalisation claims hold exhaustively at the level of a Python re-implementation. Every statistic of Extended Data Tables 2, 3 and 5 reproduces, with Table 5 rebuilt from the 2,640 raw baseline replies. The LoRA parameter count matches the released adapter and base weights exactly. All 324 runtime tests pass. The one discrepancy is the Sec. 7 logit-lens bound (13.7% observed vs 'at most 13%'), which is minor. The checks also surfaced unreported facts: WebGPU device losses and reruns in the browser test, light-check-only algebra timings, and a 220-vs-217 comparison with McNemar p=0.25. Limits: I could not regenerate any logits, because there is no M4 or GPU here, so all certificate checks start from the released margins. I also did not rerun the model on any problem.
Every checked reference resolved to the cited work.
Suggestions
Qualify the title or abstract: the certificate covers the model's steps on the tested execution path. Exactness at arbitrary length is relative to the runtime, which is tested, not proved.
Formalise RT(I)⊆V for the simplest procedures (addition, multiplication) in Lean, and release the 1,000-problem-per-procedure reference check as a script.
Remove the dependence on sampled batch partitions: run certified steps unbatched or at a fixed batch shape, or bound batching error analytically. Make the full recheck the default on unseen GPUs.
Recast the frontier-model comparison around the guarantee and the cost. Report McNemar or bootstrap uncertainty and wall-clock time, and add division, square-root and GCD problems.
Report the WebGPU device losses and reruns in the browser test, and release raw timing logs for the M4 algebra measurements.
In Sec. 2, give the deployed slot-form base-model figure (35/2,380) next to, or instead of, the teacher-forced 158.
Scope of this review
The model weights were not run, and no logits were regenerated. Certification, the browser test and the baseline runs require the Apple M4/WebGPU path or API access to the baseline models, so every certificate- and run-based check starts from the released per-row data files. Training scripts run on Modal and are not in the repository, so training was not reproduced. The fresh-item dialogue evaluations (fresh_confirm.json) are not released, so I could check them only for internal consistency. Division and square-root reachability was checked against my Python re-implementation of the TypeScript control flow, not by instrumenting the TypeScript itself. Reference checking found all 103 bibliography entries on Crossref or arXiv; I did not audit whether each citation supports the claim it is attached to.
Normalisation arguments for division and square roots really keep the view set finite
Sec. 4 Eq. (4); Methods 'Procedures and timing'
The finiteness claim is non-trivial exactly where estimates are involved. I checked the division scaling f=⌊10/(d0+1)⌋ exhaustively, together with Knuth's bound q≤q^≤q+2 over 4.8M (r,b) cases, and found no off-table EST views (check 07). For square roots, the scale c∈{1,2,4,5} works for every radicand up to 999,999 and for 60,000 large random ones, with at most 2/4/2 DEC corrections (check 08). This supports the unformalised RT(I)⊆V hypothesis at the level of a re-implementation.
Exceptionally complete release of evidence
Appendix C; Extended Data Tables 2, 5; repo paper/baselines, paper/figures/data
The release includes raw replies from every baseline model, the problem generator and the scorer, per-row certificates, the browser-test log, batch-check data, base-model controls, steering sweeps, gate-identity summaries and a runnable TypeScript runtime with tests. From these I rebuilt Extended Data Table 5 cell by cell, including budget-exhaustion counts (check 02), and every statistic of Extended Data Table 2 (check 09). All 324 runtime tests pass (check 17).
Honest reporting of a failed pre-registered criterion
Sec. 6; Methods 'Dialogue fine-tuning'; Extended Data Table 4
The dialogue adapter was the fifth candidate on the development items. The paper says so and re-scores it on fresh items. It then reports that fresh GSM8K drops by −5.8±1.7 points, which triggers its own stopping rule, instead of quoting only the favourable development numbers. The paired-SE arithmetic and flip counts are internally consistent (check 11).
Exact, verifiable gate design
Sec. 6 Eq. (6); Methods 'Gating'
Eq. (6) multiplies the LoRA branch by a scalar gate. At g=0 this gives the base model bitwise for any finite branch, which an IEEE argument confirms (check 15). The released summary reports zero differences over 2,500 chat passes and 2,688 views for both g=0 and g=1. This cleanly separates 'the base model is untouched' from 'the adapter is certified'.
⊆
V
Deployment certificate covers one batch partition per size and one GPU
major · Sec. 3 p.5 (lines on batching and other GPUs); Methods 'Certification'
Theorem 3 needs every perturbation at every step to stay below m/2. The batch evidence is one random partition (seed 1) for each of the sizes 2, 4 and 32 (check 05). Under those conditions the headroom for the arithmetic adapter is only 1.508−1.094≈0.41 logits. On any other GPU, the client by default rechecks only the lowest-margin tenth of each table (p.5, p.9). For untested batch compositions, kernels and devices, the guarantee is therefore an empirical extrapolation. The text says 'the batched paths tested', which is accurate, but the abstract and Sec. 1 present the certificate without these qualifiers. Fix: either bound the batching perturbation analytically or run the runtime with batch size 1. Make the full recheck the default on unseen hardware, and qualify the abstract.
Headline comparison (220 vs 217) is not statistically meaningful and compares against tool-free models
major · Abstract; Sec. 4 'Comparison'; Fig. 1c; Extended Data Table 5
The abstract and Fig. 1c foreground 220/220 against 217/220 for GPT-6.1 Sol. Each problem was run once. There are 3 discordant pairs, and an exact McNemar test gives two-sided p=0.25 (check 02). The comparison also covers only sums and products of 20 digits or fewer, where all three frontier models are perfect on products. Division, square roots and GCD, the procedures that need the delicate normalisation, are not compared. Any tool-using model is exact on these tasks. The paper's real contribution is the guarantee, not the count, and the framing should reflect that. Fix: de-emphasise the count. Report wall-clock cost alongside it (Sketchpad needs roughly 0.1 s per step and thousands of steps for 1,000-digit sums). Extend the comparison to division and square roots.
Browser-test reruns after WebGPU device losses are not reported
minor · Sec. 4 'Browser test'; Methods p.12; Extended Data Table 2
The released calc3_t3.json records three WebGPU device losses during the pre-registered browser test. After the first loss, 46 problems failed immediately and were redone after a reload (check 09). The final 200/200 answers are all correct by independent computation, and the result itself is not in doubt. But the paper describes the run as 'one problem at a time' (Methods p.12) without mentioning the failed attempts. For a pre-registered test of a deployment claim, this is an operational fact readers need, and it bears on the practicality of the browser path. Fix: report the device losses, the reruns, and whether timings include them.
Logit-lens '≤13%' statement does not hold as written; mechanism claims over-read steering
minor · Sec. 7 p.8 (Eq. 8 paragraph); Fig. 6a,c
Sec. 7 states that 'up to depth 15 it is the top token for at most 13% of views in any of these tables'. Recomputing from the released atlas (check 13), the correct MUL token is top for 151/1100 = 13.7% of views at depth 8 and 13.45% at depth 15. The repo's numbers.md looks only at depth 15 and rounds down. All steering counts match. Separately, 'the digit is decided in the fifth full-attention layer' does not follow from the data. A class-mean steering threshold shows where the output becomes linearly controllable, not where the computation happens. The section is also peripheral to the main claims. Fix: report the correct maximum (about 14%) and soften the causal language.
Base-model control quoted in its most favourable form
minor · Sec. 2 'Training' (p.3); Methods 'Base-model control'
Sec. 2 says that with eight solved views the base model 'passes 158 of 2,380'. That figure is the teacher-forced read-out. In the deployed slot form the base model passes only 35 of 2,380, all SUM, and this figure appears only in Methods (check 12). The conclusion that the base model does not supply the tables is unaffected, but the main text should give the deployed-form number or label 158 as teacher-forced.
'Within 2 points on MMLU' is at the boundary
minor · Sec. 1 p.2; Sec. 6
On fresh MMLU items the change is exactly −2.0±1.1 (check 11). The abstract and Sec. 1 say the dialogue adapter 'stays within 2 points' on MMLU. That is true only with a non-strict inequality, and it sits right at the criterion. Reporting the number directly would be clearer.
Algebra timing understates the default configuration
minor · Sec. 5 p.7; Fig. 4c; Extended Data Table 3
Extended Data Table 3 and the M4 times use the 'light' answer check and, for irrational quadratics, the exact-answer cost only. With the strong check, 6 of 11 algebra problems finish within 12 s instead of 8, with a maximum of 56.8 s. The default work order also adds a decimal approximation, which raises the three irrational quadratics from 7.4/11.0/11.2 s to 18.5/25.1/23.1 s (check 10). The M4 algebra measurements are also relayed summaries, not raw logs. Fix: report the default configuration and release raw timing logs.
Theoretical results are elementary; the necessity result concerns a hand-built decoder
minor · Sec. 3 Theorems 1, 2, 4; Appendix A
Theorem 1 is an induction over a finite-state machine (the paper itself cites Moore 1956 and Cai et al. 2017), and Theorem 4 is a union bound. Theorem 2 shows that some decoder with a lookup and one attention head passes every finite test yet fails later. It says nothing about whether trained chain-of-thought models fail this way. The Lean formalisation is valuable, but the abstract's 'We prove ...' framing may lead readers to overrate the theoretical novelty. Fix: position the contribution as engineering the hypothesis to hold, certifying it on hardware, and formalising it.
Gate identity verified on CPU, not on the deployment path
minor · Sec. 6 Eq. (6); Methods 'Gating'
The bitwise g=0 identity was tested with ONNX Runtime on CPU (Python), not on WebGPU, and the only released evidence is a summary file (check 15). On the deployment path, g=1 is supported by the device certificate reproducing all margins. Fix: run the identity check on WebGPU, or state that 'exactly' refers to the CPU path. Also note the edge case: a non-finite branch gives NaN at g=0.
Cost model Eq. (10) reproduces the seconds in Extended Data Table 3; the textbook route is faster on ten of eleven problems and equal on the plain multiplication (2.8 vs 4.5 s, 12.1 vs 33.1 s, 16.9 vs 31.5 s); measured on the M4, eight of eleven finish within 12 s and (x+1)^10, the cubic factorisation and the 3x3 system take 16 to 22 s.
All 25 entries round correctly under Eq. (10), and all 25 match the program's own records. The textbook route is faster on 10 of 11 problems and equal on the multiplication. On the M4 with the light check, 8 of 11 finish within 12 s; the other three are factor 16.0 s, (x+1)^10 17.1 s and the 3x3 system 21.5 s. Caveats: (i) the measured times use the light check; with the strong check only 6 of 11 are within 12 s (maximum 56.8 s). (ii) For the three irrational quadratics, the table gives the exact-answer cost (7.4, 11.0 and 11.2 s). The default work order also runs a decimal approximation, which brings the totals to 18.5, 25.1 and 23.1 s (round5-radicals.json; NOTES.md). (iii) The M4 measurements were relayed by agents, according to the note in algebra_m4.json; they are not raw logs.
Transcribed all 25 entries of Ext. Data Table 3. Recomputed 0.065passes + 0.037views for each and matched views/passes against the program's records (round3-{textbook,evaluation}-light.json, round5.json). Compared routes, and read the M4 measurements in algebra_m4.json.
Dialogue adapter retention statistics: fresh GSM8K 0.491 vs 0.549 on 1,069 problems with 139 gained and 201 lost gives -5.8 +- 1.7 (SE sqrt(n+ + n-)/n); sheet-call split 327 vs 368 on 619 and 198 vs 219 on 450; MMLU 0.463 vs 0.483 = -2.0 +- 1.1 on 1,000; development-item differences -1.5 +- 2.0, -1.6 +- 3.4, -1.4 +- 1.6 each less than one SE from the -2 criterion; stopping rule triggered for GSM8K only.
Fresh GSM8K: 327+198 = 525/1,069 = 0.491 and 368+219 = 587/1,069 = 0.549. The difference is -5.80 points, consistent with 139 gained and 201 lost, and SE = sqrt(340)/1069 = 1.72. This is outside [-4.5, +1.5] and below -2 by more than one SE, so the stopping rule triggers. MMLU: -2.0 ± 1.08, inside its band. Development items from the released eval files: IFEval -1.48 ± 1.99, GSM8K -1.60 ± 3.44 and MMLU -1.40 ± 1.59, each within one SE of -2. Precision is 0.994, recall 0.989, and family rates are 92.8/96.7/98.3%. Caveat: the per-item fresh-split results (fresh_confirm.json, cited in numbers.md) are not released, so the fresh numbers could be checked only for internal consistency. The fresh MMLU change sits exactly at the -2-point criterion; the abstract describes this as staying 'within 2 points'.
Ran the arithmetic on all of the stated fresh-item counts. Recomputed the development-item differences, invocation precision/recall and family rates from paper/figures/data/chat/eval_p9.json against eval_stock.json. Computed the paired SEs from the flip counts in paper/numbers.md. Applied the pre-registered bands and stopping rule.
Base-model control: without the adapter Qwen3.5-0.8B passes 12 of 2,446 views (all SUM), 1.1% of output positions correct; with eight solved examples it passes 35 of 2,380 in the slot form and 158 in the teacher-forced form (45.8% of positions); no table passes completely; main text reports '158 of 2,380'.
Zero-shot: 12 of 2,446 views pass, all of them SUM; 74 of 6,854 positions are correct (1.08%); no table passes. With 8 examples in the deployed slot form, 35 of 2,380 pass (all SUM) and 22.8% of positions are correct. Teacher-forced, 158 of 2,380 pass and 45.8% of positions are correct. No table passes completely in either setting. 2,446 - 2,380 = 66 example views. Presentation issue confirmed: Sec. 2 says 'passes 158 of 2,380' without saying this is the teacher-forced read-out. The deployed-form figure, 35, appears only in Methods. This does not change the conclusion that the base model does not supply the tables.
Recomputed the totals from the per-table blocks zs, fs.queries and fs_tf.queries in paper/figures/data/base_control.json, checked for fully passing tables, and extracted the corresponding main-text sentence from the paper.
Mechanism: class-mean steering changes 79/80 addition and 80/80 multiplication steps when applied after depth 20, none at depths <= 15, and 31 and 38 of 80 addition steps at depths 18 and 19 (multiplication 0 at depth 19); logit-lens median decision depths 19 / 20 / 18 with <= 13% correct top token up to depth 15.
Minor. All steering counts match: SUM 79/80 and MUL 80/80 at depth 20; 0 at every depth up to 15; SUM 31 and 38 at depths 18 and 19; MUL 0 at depth 19. Not quoted in the paper: SUM changes 7 and 8 steps at depths 16 and 17. Recomputed decision depths match the stored values for all 1,795 views; the medians are 19 (SUM), 20 (MUL) and 18 (ADD). The claim 'up to depth 15 it is the top token for at most 13% of views in any of these tables' does not hold as written. For MUL, the correct token is the top token for 151/1100 = 13.7% of views at depth 8 and for 13.45% at depth 15. The repo's numbers.md derives the figure from depth 15 only and then rounds it down. The effect on conclusions is negligible. Scope note: the logit-lens atlas covers SUM and the multiplier tables only.
Converted the steering fractions in steer_e7_sweep.json to counts out of 80. Recomputed each view's decision depth independently from top_by_layer in atlas_arithmetic-e7.json (1,795 views), then computed per-table medians and the per-depth share of views whose top token is correct.
The rank-16 LoRA on 150 matrices has 10,223,616 parameters, 1.2% of the 873,438,784-parameter base model.
The regex matches exactly 150 matrices: q/k/v/o 6 each, in_proj_qkv/in_proj_z/out_proj 18 each, gate/up/down 24 each. These give 16*(in+out) = 10,223,616, and the released adapter has exactly 10,223,616 elements in 300 tensors of rank 16, with scale alpha/r = 2. The base safetensors total is exactly 873,438,784, so the share is 1.17%, which rounds to 1.2%. This total includes the vision encoder and the 20.5M-parameter MTP head; against the language model alone the share is 1.32%.
Fetched the safetensors headers (tensor shapes only) of Qwen/Qwen3.5-0.8B and of the released adapter mohsenvand/sketchpad-0.8b-preview/arithmetic/adapter, plus its adapter_config.json, using 14_fetch.sh. Applied the target_modules regex to the base tensor names, summed r*(in+out), counted the adapter's tensor elements directly, and summed all base tensors.
Gate identity: at g = 0 the gated graph equals the base model bit for bit on 2,500 chat forward passes and 2,688 table views (logits, hidden and cached states), and at g = 1 equals the ungated adapter; greedy completions of 100 prompts identical; base model passes 12 views.
All four comparisons are bitwise equal: base vs g=0 and ungated vs g=1, each over 2,500 chat calls and 2,688 row calls, on logits, hidden states and present (cache) states, with max diffs 0. Greedy completions are identical for 100/100 prompts. Rows answered correctly: 12/2,446 at g=0 (matching the base control) and 2,446/2,446 at g=1. In 400 random fp16/fp32 tests, xW + 0sbranch equals xW bitwise. Caveats: the identity holds only for a finite branch. A non-finite branch gives NaN at g=0, and a -0.0 base output can become +0.0. More importantly, the bitwise test was run with ONNX Runtime on CPU, not on the WebGPU deployment path, and this summary file is the only evidence; no raw comparison log is released.
Read e7_gate_identity_summary.json and checked its counts, zero diffs and per-row results against the stated sizes: 100 prompts x 25 passes, and 2,446 + 242 views. Also ran a numpy IEEE test of Eq. (6) in fp16 and fp32, plus the edge cases.
Algebra answer checks: the Vieta relations 2ap = -bd and a(p^2 - q^2 m) = c d^2 hold iff (p +- q sqrt m)/d are the two roots of ax^2+bx+c; trial division by primes up to 47 fully reduces radicals for discriminants below 53^2 = 2,809; evaluation at x = 1 detects any single wrong coefficient; fault injection rejected 200/200 wrong roots and 185/200 corrupted runs (173/200 for evaluation).
Vieta equivalence: the identity holds exactly, so for a ≠ 0 and d ≠ 0 the pair is the root multiset iff R1 = R2 = 0. Reduction: 0 non-square discriminants below 2,809 are left with a square factor, and s^2 m = D always holds. The first unreduced case is D = 5,618 = 2·53^2, with 22 cases below 20,000. These still pass the value check but are printed unreduced, as the paper says. A single wrong coefficient is always detected at x = 1, since the difference is the error itself. Fault injection: wrong roots 200/200 on both routes and modes; corrupted results 185/200 (textbook) and 173/200 (evaluation), identical in light and strong mode; none of the missed faults changed the answer; perturbed radical pairs 200/200. The counts come from the repo's own run records; I did not re-run the TypeScript fault injection (see check 17).
Proved symbolically with sympy that a(x-x1)(x-x2) - (ax^2+bx+c) = -(R1/d)x + R2/d^2, where R1 and R2 are the Eq. (11) residuals. Re-implemented simplifyRadical() from radicals.ts in Python and ran it on every D < 20,000. Brute-forced single-coefficient errors on polynomials of degree ≤3. Read the fault-injection counts from round3-*-{light,strong}.json and round5-radicals.json.
The released runtime and algebra code run and pass their own tests with exact tables (reference suite of 264 tests, 2,200 generated problems per route and check mode).
All 324 tests pass (323 in the full run, plus calc.spec at 15/15 once the table file I had omitted was restored). The program suite has 280 tests, all passing, not 264: the repo commit (2026-11-01) is one day after the paper and evidently added tests. Generated-problem loops sum to 1000+6x200 = 2,200, matching the claim. (Supporting script for the generated-problem count: work/verify/17b_population_count.py.)
Installed deps with pnpm --frozen-lockfile under Node 22.21.1 and ran the full vitest suite (52 files). The single initial failure came from my run copy omitting research/ (calc_tables.json missing), not from the repo; rerunning calc.spec.ts with the file restored passed 15/15. Then counted the generated-problem loops in populations.test.ts.
All 2,446 views pass on the M4 with min margins 3.02 (add) / 6.52 (mul) / 4.61 (calc); server min 3.96; per-table values of Ext. Data Table 1; gated/ungated certificates agree to 1e-3; tolerance 1.51
All 18 per-table minima match Ext. Data Table 1 to 2 decimals (e.g. SUM M4 3.016 vs 3.02, server 3.960 vs 3.96; EST 4.609/4.510 vs 4.61/4.51); 2,446 rows, 0 non-positive margins; max server-device per-table difference 0.944 (SUM) < 1; gated vs ungated margins identical (max diff 0). Caveat: the exact minimum 3.016 gives tolerance 1.508, the paper rounds to 1.51; immaterial for tau = 1.09. Only the released margins were checked; the logits themselves cannot be regenerated without the device.
Recomputed per-table minima from the released per-row margin arrays (certificate_e7.json, certificate_e7_ungated.json, eval_e7_server.json), splitting by the row order in multiplier.ts / calc-tables.ts
Comparison: Sketchpad 220/220; GPT-6.1 Sol 217, Claude Opus 5.5 216, Gemini 4 Argon 207, ... Qwen3.5-0.8B 23/3; per-cell counts and budget-exhaustion counts of Ext. Data Table 5; error descriptions in its caption
All 11 baseline rows match Table 5 exactly in all 11 cells and in budget-exhaustion counts (e.g. GPT-6.1 Sol 217, Claude 216, Gemini 207 with 9 of 13 errors capped, Gemma 46 of 64 errors completed-wrong, Qwen3.5-27B 93 of 99 capped, 0.8B CoT 217/217 capped). GPT/Claude errors differ from the truth in 1 to 637 digits (obtained 1, 4, 523 / 2, 5, 263, 637). Sketchpad answers: 220/220 equal the independent truth (from the released run file; the model run itself was not reproduced). Exact McNemar test Sketchpad vs GPT-6.1 Sol: 3 discordant pairs, two-sided p = 0.25, so 220 vs 217 is not statistically distinguishable.
Recomputed all 220 truths with Python integers; re-parsed every raw reply (2,640) with an independently written last-\boxed{} parser; rebuilt Table 5 cell by cell; exact McNemar test
Theorem 2 counterexample: with e^c = 3M+5 the decoder (14) passes both rows and every test context of length <= M with positive margins but unpinned decoding of a^(2M+4) ends in v; pinned decoding is exact; Fig. 3b e^c = 2N+3 fails at step N+1; remark e^c = 2N+5 exact to length N, wrong on a^(N+2); head write 4Rk/(e^c+n)
(15) equals (14) exactly; (a) row margins positive in all cases; (b) all enumerated test contexts (up to 794 per setting) have strict maximum at delta(s,a); (c) first wrong step is 16-17 for M=9, 64 for M=41, always <= 2M+4 and on a context longer than M; (d) pinned decoding exact. e^c=2N+3: first failure at exactly step N+1 for all N tested (matches Fig. 3b); e^c=2N+5: first failure at step N+2 (consistent with the remark; also exact at N+1).
Exact rational simulation of the decoder from its definition (14) for R in {1, 1/10, 25}, M in {0, 9..13, 20, 41}; exhaustive enumeration of all test contexts Pi w s a for |w| <= 4; both tie rules; first-failure search for N in {1,4,8,16,33}
Theorems 1-4 and Lemmas 1-4 are proved in Lean 4.35 + Mathlib with no sorry and only standard axioms; Lean statements match the paper
Build completed successfully under Lean 4.35.0; all 34 reported declarations depend only on propext, Classical.choice, Quot.sound; no forbidden tokens; every Theorem 1-4 and Lemma 1-4 has at least one alias. Statements match the paper: theorem1_iff assumes paint injectivity; theorem2_counterexample has 4 < e^c and fails exactly when e^c - 2 < 2n; theorem3_sheet requires closeness at every step t for every view in W. Note that the formal results take R_T(I) subset W and the runtime/reference procedures as hypotheses; nothing about the concrete arithmetic procedures or the TypeScript runtime is formalised (as the paper states).
Fresh build of the released package (elan, lake exe cache get, lake build; 2,140 jobs); parsed #print axioms for all 26 paper aliases; scanned sources for sorry/admit/native_decide/axiom/unsafe; elaborated and read the statements of theorem1_iff, theorem1_sheet, theorem2_*, theorem3_sheet, theorem4b_sheet
Batching changes logits by at most 1.09 and margins by at most 0.64 over random batches of 2, 4, 32 (arithmetic adapter) and 4, 32 (dialogue adapter), so the tested batched paths satisfy Theorem 3 with tau = 1.09 < 3.02/2; no failures in batches.
Arithmetic adapter: max logit change 1.0938 (size 32), max margin change 0.6406 (size 4), 0 failures over 2,446 views per size, min batched margin 3.016; 2*1.0938 = 2.19 < 3.016. Dialogue adapter: max logit 1.047, max margin 0.625, 0 failures, min margin 4.56 alone / 4.41 batched. Numbers internally consistent. Caveat: the data cover one random partition (seed 1) per batch size only; the claim is correctly limited to 'tested batched paths', and does not establish Theorem 3's hypothesis for all batch compositions the runtime can produce. Headroom for the arithmetic adapter is 0.41 logits.
Recomputed maxima, failures and the Theorem 3 condition 2*tau < min margin per adapter from paper/figures/data/batch_check_m4.json; internal consistency |dmargin| <= 2|dlogit| and minBatch >= minAlone - maxMargin per batch size
Table sizes SUM 242, MUL 1,100, ADD 220, ADZ 220, FLS 2, NXT 11 (1,553), SUB 242, EST 400 = 10*sum_{d=5..9}(d+1), DEC 9, |V| = 2,446; outputs are the stated arithmetic
All nine sizes, 1,553, 651, 2,446 and the EST formula (400) reproduced exactly; MUL carries reach at most 8 (domain blank,0-8), ADD/SUM carries and SUB borrows at most 1, so domains are closed; 0 of 651 released calc rows differ from independent arithmetic.
Enumerated each domain from the descriptions in Ext. Data Table 1; checked carry/borrow closure exhaustively; recomputed all 651 outputs of the released research/sketch/calc_tables.json independently
Division: f = floor(10/(d0+1)) in {1,2,3,5} keeps the divisor length with leading digit >= 5; EST estimate satisfies q <= q_hat <= q+2 for r < 10b; every EST view lies in the 400-row table; DEC at most twice
Scale factors {1,2,3,5}, 0 length changes, 0 scaled leading digits < 5; 4,785,100 (r,b) cases with 0 violations of q <= q_hat <= q+2 and 0 off-table views (max overshoot exactly 2); simulated runs: 0 wrong quotients/remainders, 0 off-table EST views, all 400 EST rows reached, max 2 DEC per digit. This supports the unformalised R_T(I) subset V hypothesis for division at the level of my re-implementation, not of the TypeScript itself.
Exhaustive scaling check over divisors 1..9999; exhaustive Knuth bound over all normalised divisors < 1000 and every r < 10b (plus sampled 4-digit); integer-level re-implementation of the runtime divide() loop on 200,000 random problems (up to 40/12 digits) and 14,157 browser-style problems
Square roots: choosing c in {1,2,4,5} by the stated thresholds makes the root of c^2 a begin with 25-49 (or be a single digit 2-4) for every radicand 1..999,999; floor(sqrt a) = floor(floor(sqrt(c^2 a))/c); twice the partial root has leading digit >= 5 so the same EST table serves every later digit; first digit lowered at most twice, second at most four times.
For all 999,999 radicands the scaled root begins with 25-49 (or is 2-4) and floor(sqrt a) = floor(floor(sqrt(c^2 a))/c). There were 0 off-table EST views, 0 estimates below the true digit, 0 'remainder larger than the root allows' events, and 0 wrong roots or remainders, including the random large cases. Twice the partial root always leads with 5-9 from the third digit on. Maximum DEC count is 2 at the first digit, 4 at the second (the guess-9 path) and 2 at later digits. All 400 EST rows are reached. Caveats: the older reference research/sketch/calc_dryrun.py and CALC.md use c in {1,2,3,5}; the paper matches the deployed TypeScript. This checks my re-implementation of the TypeScript logic, not the TypeScript itself.
Integer-level re-implementation of sqrtScale()/squareRoot() control flow in src/lib/sketchpad/calc-sheet.ts (first guess 4, second guess 9 when the trial divisor leads with <5, otherwise EST on (r[x+m], r[x+m-1], T[x+m-1]), DEC on borrow, final division by c and remainder reconstruction). Exhaustive over 1..999,999 plus 60,000 random radicands of 7-80 digits.
Browser test: 200/200 exact; median times 7.0 / 9.8 / 7.0 / 2.0 s; maxima 13.3 / 16.5 / 13.4 / 4.7 s; 1 / 11 / 4 / 0 problems over 12 s, so 184 met the 12 s target; median passes/views 65/90, 86/137, 61/84, 19/19; cost-model medians 7.6 / 10.7 / 7.1 / 1.9 s; measured vs cost model median ratio 1.01.
All 200 answers are correct by independent computation. Of these, 11 divisions and 1 square root terminate and are printed without the trailing ellipsis. Every per-set statistic matches Extended Data Table 2: medians 6.98/9.79/7.00/2.01 s, maxima 13.31/16.53/13.45/4.74 s, 1/11/4/0 over 12 s, 184 within 12 s, cost-model medians 7.58/10.67/7.11/1.89 s, and a median measured/model ratio of 1.014. The median of 18.5 passes for ± and of 136.5 views for √ are rounded up to 19 and 137. Operand ranges match the stated limits (≤999; ± up to 20 digits). Caveat: the data file lists 3 WebGPU device losses during the run. After the first loss, 46 problems failed at once and were redone after a reload. The paper does not mention this. The 200/200 count is therefore the final result after reruns, and the 'one problem at a time' timing excludes the failed attempts.
Recomputed every statistic from the 200 rows of paper/figures/data/calc3_t3.json. Recomputed the cost model 0.065calls + 0.037views per row. Checked every reported answer independently: truncated decimals for division and square root, math.gcd, and exact signed sums.
In Sec. 7, correct the '≤13%' bound to about 14% and replace 'the digit is decided in the fifth full-attention layer' with a statement about linear controllability.
Report algebra timings for the default configuration: strong check and decimal approximation.