{"id":"56367f57-94d8-4dde-9fe0-4e20c7effb57","arxiv_id":"2611.04434","paper_version":1,"verdict":"CONDITIONAL","confidence":"MODERATE","novelty_score":6.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":1,"one_line_summary":"A small vision-language model is certified exact on arithmetic of any length by checking the 2,446 window states its runtime can present; the equivalence and robustness theorems are proved in Lean.","lead":"Sketchpad turns a 0.8 billion parameter vision-language model into an exact long-arithmetic engine by forcing every step to read a three-cell window of a virtual sheet. The result is a certificate over 2,446 possible window states, so correctness extends to sums and products of any length.","discovery_kind":"new_method","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"The certificate verifies each view in isolation, but Theorem 3 also requires every actual batched execution path to keep logits within tau; the runtime's real lockstep batch compositions are only sampled, never enumerated or bounded.","rationale":"The reader's weakest_assumption already names batch-composition sampling as a secondary unproven point. This stress-test elevates it to the primary load-bearing concern because the runtime side of the guarantee is explicitly scoped out by the authors, whereas the batched execution-path hypothesis is presented as verified. The gap is concrete: the certificate establishes margins for single views, the deployment runs batched lockstep schedules, and the sampled random partitions need not coincide with those schedules for inputs of arbitrary length. Theorems 1-4 and the finite-view reduction are mathematically sound and machine-checked, the device certificate and reproducibility materials are unusually strong, and the paper honestly states the sampled nature of the batch check. The concern therefore does not refute the central argument; it narrows what is certified. The appropriate verdict remains CONDITIONAL as the reader concluded: either certify the actual batch schedules or explicitly scope the deployment guarantee to single-view inference and to sampled numerical stability under batching.","tokens_in":35570,"tokens_out":16993,"duration_ms":151711,"concrete_test":"Use the released runtime to log the exact view multiset of every forward pass while replaying (i) the 200 browser problems, (ii) the 220 comparison problems, and (iii) the algebra benchmarks, then recompute margins and logits on the M4 for every distinct logged composition. If any logged composition moves a logit by more than tau = 1.09 or reduces a margin below 2 tau = 2.18, Theorem 3's execution-path hypothesis fails for the deployed runtime. If all logged compositions pass, additionally enumerate the reachable lockstep pairs from the runtime's transition tables (e.g., every MUL x SUB, EST x MUL, and ADD x DEC combination over carry/borrow states); passing that enumeration would close the sampled-batch gap for the actual schedules.","verdict_should_be":"UNCHANGED","load_bearing_attack":"The finite-view certificate does not certify the execution paths on which the model actually runs. Theorem 3's deployment claim requires that at every step the logits on the execution path for each view v in V be within tau of the certified logits (\"Hence, if RT(I) subset of V, m(v) > 2 tau ... every run from I is exact\"). The device certificate measures each view alone; batching support comes from one random partition per batch size, with the Methods sentence \"The check samples batch compositions; it does not bound all of them\" [b189]. The runtime does not use random partitions: it runs lockstep MUL/SUB pairs in multiply-subtract passes, shares ADD/DEC/SUM views across a pass, and batches independent algebra calls. Theorem 3's hypothesis must hold for every batch composition the runtime can present on inputs of arbitrary length, yet no enumeration or bound over these actual compositions is supplied. The paper's conclusion that \"the batched paths tested therefore satisfy Theorem 3 with tau = 1.09\" covers only the sampled random partitions. If an unsampled lockstep composition perturbs a low-margin view by more than 1.51 logits, the deployment guarantee fails even though all 2,446 single views pass. This is an acknowledged limitation rather than an internal inconsistency, but it is load-bearing for the central claim of certified exactness on the deployment path.","agreement_with_reader":"partial"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"Sketchpad gives language models an exactness guarantee for long arithmetic. A deterministic runtime lays out a computation on a rendered grid and presents Qwen3.5-0.8B, fitted with a rank-16 LoRA adapter, with one three-cell view per forward pass; the model emits a digit, a carry or borrow, and a next-operation token, and no other state passes between steps. Because each step's input is drawn from a finite table of views (2,446 rows), exactness on every view implies exactness on every run of every length. The paper proves this equivalence (Theorem 1), a converse showing that for a constructed decoder family whose steps read earlier steps no finite test set certifies correctness (Theorem 2), robustness of the guarantee to logit perturbations bounded by half the margin (Theorem 3), and a composition theorem for multi-call transcripts (Theorem 4); the theorems are machine-checked in Lean 4 without sorries. Empirically, all 2,446 views pass on an Apple M4 laptop in WebGPU 16-bit precision with smallest margin 3.02 logits, the model solves 200/200 pre-registered browser problems and 220/220 pre-registered comparison problems (best alternative among ten models: 217/220), a symbolic algebra runtime computes every number via the certified procedures, and a gated dialogue adapter loses 5.8 points on fresh GSM8K items, reported openly.","tokens_in":35938,"tokens_out":31161,"duration_ms":194201,"significance":"The central idea of the paper, reducing exactness at all input lengths to a finite, checkable property by pinning each step to a bounded view, is significant and is executed with unusual care. The strengths are concrete: machine-checked Lean 4 proofs with a small stated axiom ledger (only propext, Classical.choice and Quot.sound); a certificate format bound to file hashes, device and library versions; margin-based robustness with an explicit tau parameter; pre-registered empirical protocols; and prominent, honest statements of the verification boundary, including that the runtime procedures and RT(I) subset of V are assumed rather than proved. Theorem 2 is a genuine negative result about finite testing under context-reading steps, and I found no error in its construction. The theorems' internal logic is sound; the one load-bearing gap is deployment-side: Theorem 3's execution-path hypothesis is currently verified only for sampled batch compositions, not for the runtime's actual lockstep and shared-pass compositions (major comment 1).","major_comments":[{"comment":"The deployment guarantee's key hypothesis is verified only for sampled batch compositions, not for the runtime's actual ones. Theorem 3 requires that at every step the logits on the execution path for each view be within tau of the certified logits, and the certificate establishes this only for single-view forward passes and for one random partition per batch size (2, 4, 32); the Methods sentence 'The check samples batch compositions; it does not bound all of them' states the gap explicitly. The runtime batches in deterministic patterns that random partitions do not cover: multiply-subtract passes run MUL one column ahead of SUB as lockstep pairs, ADD/DEC/SUM views are shared within a pass, and independent algebra calls are batched together. The sentence 'The batched paths tested therefore satisfy Theorem 3 with tau = 1.09' is therefore accurate only for the tested partitions; an unsampled composition could in principle move a low-margin view (minimum margin 3.02) by more than the 1.51 tolerance, and the 0.84-logit headroom between 2*tau = 2.18 and 3.02 is not a bound. Because the runtime's composition patterns are finite and deterministic, the gap is closable (enumerate the actual patterns and include them in the certificate, or bound the batch effect analytically), but as written the central claim of certified exactness on the deployment path outruns the certificate. The authors acknowledge the sampling limitation, yet the abstract and Section 3 state the guarantee without it.","section":"Section 3 (Theorem 3); Methods, Certification","authors_acknowledge":"The check samples batch compositions; it does not bound all of them.","authors_acknowledge_p":0.85},{"comment":"The reported 220/220 comparison run is itself an instance of the same gap. Sketchpad 'ran all 220 problems in batched lockstep in PyTorch, 64,700 views in 1,001 forward passes', which is about 65 views per pass on average, while the batch check covered sizes 2, 4 and 32 only. The 220/220 result is an exact empirical outcome, but the batch path on which it was produced is not covered by Theorem 3 as certified. Either the demonstration should be run at certified batch sizes and compositions, or the text should state that this result, unlike the browser test, is an empirical demonstration on paths outside the certificate.","section":"Section 4, Comparison; Methods, Certification","authors_acknowledge":null,"authors_acknowledge_p":null}],"minor_comments":[{"comment":"'Every new GPU checks the weakest tenth again before it runs' (Fig. 1b caption; Section 3) is a heuristic, not a re-certification: a new device that rechecks only the lowest-margin tenth has no measured margins for the remaining nine tenths, and the certificate per Appendix B is device-bound. The Discussion acknowledges that full certification on a new GPU requires the complete check; the figure and Section 3 should say so.","section":"Figure 1b caption; Section 3; Discussion","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The caption 'exact on all 2,446 views if and only if exact on every run of every length (Theorem 1)' omits the standing hypotheses of Theorem 1, namely RT(I) subset of V and, for the reverse direction, injectivity of paint(c, .). The body states these precisely; the caption should carry a qualifier such as 'under the runtime hypotheses of Theorem 1'.","section":"Figure 1b caption","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"Two headline sentences compress conditional results into unconditional-sounding statements: the abstract's 'exact at arbitrary length' and the Discussion's 'no finite test certifies the model' for context-reading steps. The former is relative to the runtime's reference procedures and to RT(I) subset of V (Section 3: 'Neither is formalised in Lean'); the latter is a counterexample family (Theorem 2), not a universal impossibility for all context-reading models. A short qualification in each location would keep the headlines aligned with the formal statements.","section":"Abstract; Section 8","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The dialogue adapter's margins at g = 1 are reported (smallest 4.56), but no certificate with file hashes and device record is mentioned for the dialogue adapter. Please state whether a dialogue-adapter certificate is issued and distributed alongside the arithmetic adapter's, since Appendix B ties the guarantee to a specific certificate per model graph.","section":"Section 6; Appendix B","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The batch check uses one random partition per batch size ('one random partition covers all views once'). Please state the seed or seeds used and, ideally, the variance of the maximal logit movement across several partitions, so that the representativeness of the sampled compositions can be judged; this is directly relevant to the major comment, since the argument turns on how far the sampled partitions can stand in for the runtime's actual compositions.","section":"Methods, Certification","authors_acknowledge":null,"authors_acknowledge_p":null}],"recommendation":"major_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"Worth your time. The core observation—exactness on a bounded-view machine reduces to finitely many checks—is classical, and the paper says so, crediting Moore, Cai et al., and Lewandowski et al. What is new is the package: a pretrained 0.8B VLM with a LoRA adapter trained to satisfy the view tables, a Lean 4 formalization with no sorries, and a device-level certificate bound to file hashes. That is real evidence, not a slide. The arithmetic results on 220 problems are solid as empirical results, and the base-model comparisons are run fairly, with sampling variation acknowledged.\n\nThe soft spots are real but mostly the authors already name them. The biggest one: Theorem 3's deployment guarantee requires every actual batched execution path to stay within tau of the certified logits, yet the runtime's lockstep MUL/SUB pairs, shared ADD/DEC/SUM views, and batched algebra calls are not enumerated or bounded—only random partitions are sampled. The Methods sentence at b189 says this plainly, so it is not hidden, but it is load-bearing for the phrase \"certified exact.\" A single unsampled batch composition that perturbs a low-margin view by more than 1.51 logits breaks the arbitrary-length guarantee while all 2,446 single views still pass. The fix is wording or work: either say the certificate covers the single-view path plus sampled batch compositions, or exhaustively verify the actual compositions the runtime can generate.\n\nSecond soft spot: the guarantee is explicitly relative to the runtime. RT(I) subset of V and the correctness of the reference procedures are assumptions, not formalized (b298), and the paper admits this. That is acceptable for a systems paper, but the abstract's \"certified exact arithmetic\" reads stronger than the theorem actually delivers. The dialogue adapter's GSM8K loss of 5.8 points is also acknowledged and honestly reported, so I would not penalize it heavily.\n\nI disagree mildly with the harshest reading of the stress-test note: this is an acknowledged limitation, not an internal inconsistency, and Theorem 3's statement is mathematically fine. But the note is right that it is the main gap between the headline claim and the proof. The engineering is unusually reproducible: model files, Lean builds, numbers list, and scripted tests are all promised in the repo.\n\nThis deserves a serious referee. I would send it to peer review and ask for the batching gap to be either closed or explicitly carved out of the certified claim. The paper is for people working on trustworthy LLM computation, length generalization, and verified neural hardware paths; they will cite it even if they argue with the abstract.","headline":"A genuinely useful, unusually honest paper: the finite-view reduction is classical but the package—trained small VLM, Lean proofs, device certificate, reproducible repo—is real; the 'certified exact' claim just needs to be stated with its runtime and batching conditions attached.","tokens_in":36452,"tokens_out":1008,"duration_ms":10226},"pith_extraction":{"msc":["68Q45","68T07","03B35"],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"Sketchpad certifies a small vision-language model as exactly correct on arithmetic of every length by checking a finite set of 2,446 screen views.","keywords":["certified exact arithmetic","vision-language model","finite view set","margin certificate","pinned-sheet policy","length generalization","machine-checked formal proof","external working memory"],"falsifier":"Run the deployed runtime on inputs engineered at the normalization boundaries — divisors with leading digit 1 and 9, radicands at the scale-change thresholds, maximal borrow and carry chains — intercept every view it presents, and check each against the 2,446-row tables: a single out-of-table view, or any reference-procedure output that disagrees with arbitrary-precision arithmetic, would falsify the arbitrary-length guarantee.","tokens_in":37046,"feed_emoji":"🧮","tokens_out":14863,"duration_ms":89643,"temperature":0.7,"pith_summary":"This paper sets out to prove that a language model's arithmetic can carry a guarantee for every input of every length, provided each computational step reads only a bounded view of an external working memory. Sketchpad is the construction: a 0.8B-parameter vision-language model with a 10.2-million-parameter adapter executes pencil-and-paper arithmetic on a rendered sheet, reading three cells per forward pass and emitting one digit, a carry or borrow, and the next operation, while a fixed runtime moves the view and writes the outputs. The load-bearing theorem states that exactness on the finite set of views the runtime can present is equivalent to exactness on every run of every length, so a finite check settles a universal claim. The paper reports that all 2,446 views pass on the deployment device with a smallest margin of 3.02 logits, and that the certified model answered 220 of 220 pre-registered long-arithmetic problems, where the strongest of ten comparison models answered 217.","feed_headline":"Checking 2,446 views certifies exact arithmetic at every length","feed_subtitle":"Each step reads three cells of a rendered sheet, so passing all 2,446 views proves every input of any length.","key_machinery":"The carrying object is the pinned-sheet policy: a step's prompt contains only an operation token, a rendered three-cell view, and placeholder output positions, so the model's output is a function of the view alone and nothing else passes between steps. Correctness of a view is decided by its margin, $m(v) = \\min_k \\bigl(z_k(v)_{T_k(v)} - \\max_{a \\neq T_k(v)} z_k(v)_a\\bigr)$, the smallest lead of the correct token over every other token at every output position, and a margin above $2\\tau$ makes the certificate robust to logit perturbations of size $\\tau$. The finite view set $V$, 2,446 rows spanning the addition, multiplication, subtraction, quotient-estimation and decrement tables, is the bridge from a finite check to a universal guarantee, through the equivalence of Theorem 1 and the necessity result of Theorem 2. Division and square roots are kept inside the tables by normalization: the divisor is scaled so its leading digit is at least 5, and the radicand is scaled so a multi-digit root begins with 25 to 49, which makes the classical quotient-estimate bounds $q \\le \\hat{q} \\le q + 2$ hold and every estimated digit correctable by at most two decrements.","core_discovery":"The central claim is Theorem 1: for a machine whose step reads only a view, the model's run from every initial configuration equals the reference run at every step if and only if the model's output agrees with the reference table on every view the reference run presents; in particular, if the runtime presents only views from the enumerated set $V$ and every view in $V$ has positive margin $m(v)$, then every run of every length is exact. Sketchpad realizes the hypothesis by construction: a runtime lays out the problem on a grid sheet, shows the model one three-cell view per step as an image, and writes exactly the outputs the model emits, so no other state passes between steps and the model's output is a function $f(v)$ of the view alone. On the deployment device, all 2,446 views across the nine operation tables pass, with the smallest margin $m(v) = 3.02$ logits, which the perturbation theorem says tolerates any logit change smaller than 1.51. The paper also proves that the bounded-view restriction is necessary, meaning that when a step may read its own earlier steps, no finite test suffices, and that certified procedures compose, which is what lets a symbolic runtime solve, expand and factor polynomials with every number computed by the model.","pith_inferences":["The template extends beyond arithmetic: any computation expressible as a bounded-window automaton over a rendered or symbolically presented state could carry the same style of certificate, so the strategy transfers to other finite-state procedures a small model can learn.","The residual risk sits in the seam between model and runtime: reference-procedure correctness and the no-view-outside-the-tables property rest on runtime assertions and 1,000 random problems per procedure, not on the formal proofs, so an independent oracle-based re-check of the runtime against arbitrary-precision arithmetic would quantify what the certificate itself does not cover.","The batched-path tolerance is measured, not proven: the certificate samples batch compositions rather than bounding all of them, so $\\tau = 1.09$ is an empirical guardrail, and a formal bound on batch effects would close the last numerical gap.","The reported 5.8-point drop on fresh grade-school word problems, which the paper locates in multi-step reasoning rather than in sheet invocation, suggests a next step the paper does not take: routing intermediate reasoning through exact sheet calls as well as final computations, and testing whether exact intermediates recover the lost points."],"forward_implications":["A universal guarantee replaces sample estimates: once a device certificate records margins for all 2,446 views, the model is exact for signed addition and subtraction, long multiplication and division, square roots and greatest common divisors of any length, with no per-input testing.","On the pre-registered comparison of 220 long-arithmetic problems, the certified model answered all 220 while the strongest of ten comparison models answered 217; the frontier models' failures were silent wrong answers on long sums, the class of error this certificate rules out.","The guarantee travels to the deployment path and to other devices: Theorem 3 allows any logit change below 1.51, the server and browser margins differ by less than one logit in 16-bit precision, and a new GPU rechecks the weakest tenth of each table before running.","Certified procedures compose (Theorem 4), so the paper builds exact polynomial solving, expansion and factorization on top of the arithmetic procedures, with answer checks that rejected all 200 planted incorrect roots and 185 of 200 corrupted arithmetic results.","The scalar gate makes the adapter removable: at $g = 0$ the model is bit-for-bit the base model, and the dialogue adapter invokes the sheet selectively, with precision 0.994 and recall 0.989 on held-out phrasing."],"supporting_citations":[{"why":"Supplies the classical observation that no finite experiment identifies an unbounded-state machine, cited as the basis of the finite-check idea and of Theorem 2's necessity proof.","marker":"[15]"},{"why":"Provides the precedent of verifying learned recursive programs from finitely many inputs, one of the stated antecedents of the equivalence.","marker":"[16]"},{"why":"Closest precedent: certification of universal computation by language-model decoding through checking a finite rule set, which Sketchpad extends by training the model to meet the condition and certifying margins.","marker":"[17]"},{"why":"Supplies the standard multi-digit division procedure and the quotient-estimate bounds that keep division and square-root views inside the enumerated tables.","marker":"[25]"},{"why":"The pretrained vision-language model that the trained adapter turns into the sheet machine.","marker":"[19]"},{"why":"The low-rank adaptation method used to train the 10.2-million-parameter arithmetic adapter.","marker":"[18]"},{"why":"The proof assistant in which Theorems 1 through 4 and their supporting lemmas are formalized.","marker":"[102]"},{"why":"The mathematical library the formal proofs build on.","marker":"[103]"},{"why":"Supplies the distillation penalty toward the base model that limits forgetting during adapter and dialogue training.","marker":"[21]"}],"fun_headline_variants":["2,446 views certify exact arithmetic at every input length","A three-cell view makes exact arithmetic a finite check","Finite views, infinite guarantee: exact arithmetic at any length","Small VLM, Lean proof: all lengths exact after 2,446 views","One bounded view per step turns exactness into a finite test"],"cache_read_input_tokens":0,"weakest_assumption_plain":"The certificate assumes that the runtime's reference runs never present a view outside the 2,446-row tables and compute the intended arithmetic; the paper states that this part is not formalized in the proof assistant, resting only on runtime assertions and 1,000 random problems per procedure.","fun_headline_variants_meta":{"raw":{"variants":["2,446 views certify exact arithmetic at every input length","A three-cell view makes exact arithmetic a finite check","Finite views, infinite guarantee: exact arithmetic at any length","Small VLM, Lean proof: all lengths exact after 2,446 views","One bounded view per step turns exactness into a finite test"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000297,"raw_usage":{"cost":0.0002967874,"is_byok":false,"cost_details":{"upstream_inference_cost":0.0002967874,"upstream_inference_prompt_cost":3.63454e-05,"upstream_inference_completions_cost":0.000260442},"total_tokens":2648,"prompt_tokens":1217,"completion_tokens":1431,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":1022,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":1356}},"tokens_in":1217,"tokens_out":1431,"cost_source":"openrouter_usage","duration_ms":16118,"image_pages":[],"temperature":1.0,"billed_attempts":1,"reasoning_tokens":1356,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-11-04T05:00:02.411719+00:00","model_set":{"reader":"deepseek/deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.4.1-daily-deepseek-or-medium","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"Run the deployed runtime on inputs engineered at the normalization boundaries — divisors with leading digit 1 and 9, radicands at the scale-change thresholds, maximal borrow and carry chains — intercept every view it presents, and check each against the 2,446-row tables: a single out-of-table view, or any reference-procedure output that disagrees with arbitrary-precision arithmetic, would falsify the arbitrary-length guarantee.","supporting_citations":[{"cited_title":"Gedanken-Experiments on Sequential Machines","cited_arxiv_id":null,"evidence_quote":"Supplies the classical observation that no finite experiment identifies an unbounded-state machine, cited as the basis of the finite-check idea and of Theorem 2's necessity proof."},{"cited_title":"Making Neural Programming Architectures Generalize via Recursion","cited_arxiv_id":"1704.06611","evidence_quote":"Provides the precedent of verifying learned recursive programs from finitely many inputs, one of the stated antecedents of the equivalence."},{"cited_title":"Alex Lewandowski, Marlos C Machado, and Dale Schuurmans","cited_arxiv_id":null,"evidence_quote":"Closest precedent: certification of universal computation by language-model decoding through checking a finite rule set, which Sketchpad extends by training the model to meet the condition and certifying margins."},{"cited_title":"The Comorbidity of Major Depression and Anxiety Disorders","cited_arxiv_id":"2106.09685","evidence_quote":"The low-rank adaptation method used to train the 10.2-million-parameter arithmetic adapter."},{"cited_title":"The Lean 4 Theorem Prover and Programming Language","cited_arxiv_id":null,"evidence_quote":"The proof assistant in which Theorems 1 through 4 and their supporting lemmas are formalized."},{"cited_title":"Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs","cited_arxiv_id":null,"evidence_quote":"The mathematical library the formal proofs build on."},{"cited_title":"Learning without Forgetting","cited_arxiv_id":null,"evidence_quote":"Supplies the distillation penalty toward the base model that limits forgetting during adapter and dialogue training."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}