A security bound fits on one line. Whether that line applies to a particular system depends on the hypotheses behind it.

Modern proof systems depend on bounds like this. Many STARKs and zkVMs reduce part of their soundness to low-degree testing: the verifier inspects a long encoded message at a few random positions and accepts if it looks close to a valid Reed–Solomon codeword. Protocols such as FRI, STIR and WHIR organize this test in different ways, but they share a question from coding theory. For how many random choices can a dishonest prover make something far from the code look close to it? A theorem answers that question with a count. The count, divided by the size of the field, becomes a term in the protocol's error budget.

In the past week, two of our contributions were merged into ArkLib, the Lean 4 library for SNARKs and coding theory maintained by the Verified-zkEVM project. Pull request #1551 [1] tightens the machine-checked bound on bad challenges for polynomial curves. Pull request #1443 [2] adds general tools that turn certificates and constructions from the literature into one-sided answers to the Proximity Prize's grand challenges. They follow #1449, merged on 5 November [8]. Neither contribution proves that a deployed system is secure. Each makes a specific statement in ArkLib sharper or more general, and the Lean kernel checks the proof.

I. #1551: a tighter bound that changes a test

Bad challenges

Proof systems often combine several messages before they test them. With a random challenge z, the words u₀, …, u_ℓ become one word, u₀ + z·u₁ + z²·u₂ + ⋯ + z^ℓ·u_ℓ: a degree-ℓ curve in z. The verifier then tests only this word. Suppose the combined word agrees with a low-degree polynomial on many positions, but the original words do not agree with low-degree polynomials on those same positions. Then the challenge z is exceptional: the combination hides a problem with the parts. The number of exceptional challenges, divided by the field size, is the cost of this batching step.

ArkLib's theorem exists_johnson_curve_exactPowerAgreement bounds that number in the Johnson regime. The proof builds an auxiliary polynomial of a certain interpolation height. For a curve of degree ℓ, that height is ℓ(h + 1) − 1, where h is the height used for a single line. The previous proof compared ℓ(h + 1) − 1 with ℓ · 2h. This comparison is valid but loose, and it introduced a factor of 2: at most 2ℓ · E₀ exceptional challenges, where E₀ is the line count at height h.

What changed

Pull request #1551 compares the height with ℓ(h + 1) instead and proves the bound at that height: at most ℓ · E₁ exceptional challenges, where E₁ is the line count at height h + 1 [1].

The curve bound in ArkLib
StatementLean declarationHypotheses
|E| ≤ ℓ · E₁ (previously 2ℓ · E₀)exists_johnson_curve_exactPowerAgreement1 ≤ D ≤ n − 2, η > 0, the Johnson agreement threshold; any field
E₁ ≤ 2E₀: the new bound is never weakerjohnsonSuccExceptionCount_le_two_mul1 ≤ D < n
E₁ < (8/3) · n · t³ / ρ₋johnsonSuccExceptionCount_lt_closedAs in the first row
|E| ≤ ℓ · (8/3) · n · t³ / ρ₋exists_johnson_curve_exactPowerAgreement_closedAs in the first row

Names as merged on ArkLib main. The closed bound for E₀ comes from the order-zero estimate of [DKT26], Theorem 5.12 and Appendix B.1–B.2 [4]. The corresponding bound for E₁, at height h + 1, is proved in #1551 with an additional half-gap estimate.

The closed bound for E₀ rests on the order-zero estimate of [DKT26]. Proving the corresponding bound for E₁, at height h + 1, needed one new ingredient: at that height, the existing estimate of the incidence ratio θ is too weak. A sharper estimate, johnsonTheta_le_halfGap_envelope, which uses the half-gap condition in the agreement threshold, makes the argument work. The ArkLib documentation notes that E₁ and this estimate have no counterpart in [DKT26].

A concrete example

During review, Quang Dao added a test that shows the improvement in a concrete case [1]. The parameters are very small: block length 4, degree 1, slack 1/4 and agreement threshold 3. At these parameters, Lean computes the exact counts E₀ = 797 and E₁ = 1691/2. Take a curve of degree ℓ = 2 over the field with 2,003 elements.

  • New bound: at most 2 · E₁ = 1,691 exceptional challenges. This is fewer than the 2,003 elements of the field, so at least one challenge is not exceptional. At that challenge, every candidate with enough agreement has exact agreement with the coefficient words. The test proves this existence statement in Lean.
  • Old bound: 2 · 2 · E₀ = 3,188, which is more than the field size. The same counting argument would give nothing.

The example is a regression test, not a measurement of a production protocol. It shows that the factor of 2 can decide whether a statement can be proved at all.

Credit where it is due

The curve charge ℓ · 8n(m + ½)³/(3ρ₋) already appears in Plonky3's p3-security, derived by hand in a code comment through a different interpolation argument [7]. We did not introduce that formula. Pull request #1551 adds a machine-checked, characteristic-free curve bound in ArkLib that is consistent with it.

Quang Dao reviewed the pull request, pushed his own improvements and merged it on 22 November. He strengthened the main theorem in place, so exists_johnson_curve_exactPowerAgreement now states the sharper bound directly. He also updated the three BCIKS20 callers, made two helper lemmas private and added the field-2,003 test.

II. #1443: from one instance to general tools

Witnesses and brackets

The Proximity Prize grand challenges, formulated in [ABF26] [6], ask a precise question. For a given Reed–Solomon code and an error threshold such as 2⁻¹²⁸, at what radius does the error cross the threshold? The question is asked for both mutual correlated agreement and list decoding. ArkLib states each challenge as a boundary problem on the grid k/n. A lower witness certifies that a radius is still safe. An upper witness certifies that a radius is already unsafe. A matched pair brackets the boundary.

What was merged

Pull request #1443 began as a proposal for one concrete instance, RS[512, 128] [3]. Through review it became a general layer, and that layer is what was merged [2].

The general layer merged in #1443
DeclarationWhat it does
ReedSolomon.primitiveRootDomainThe evaluation domain (ωⁱ)ᵢ of a primitive n-th root of unity.
ReedSolomon.CosetList.exists_le_encard_closeCodewordsRelThe coset construction of [Kin26] [5] for every subgroup order: some received word has at least ⌊C(n/s − 1, r) / (n/s)⌋ codewords nearby.
McaLowerWitness.ofLineExactAgreementA safe-side MCA witness from a line exact-agreement bound, which first-order hidden-derivative certificates [DKT26] provide under a characteristic condition.
lambda_interleaved_le_of_heightSlotCountA list-size bound for the interleaved code, for every interleaving width, from the same certificates. It is the bound used to construct a safe-side list-decoding witness.
ListUpperWitness.ofCosetListUnsafe-side list-decoding witnesses from the coset construction.
SlotArithmeticRestatements of the certificate's slot counts that the Lean kernel can evaluate block by block.

Every headline declaration depends only on propext, Classical.choice and Quot.sound.

“exists_le_encard_closeCodewordsRel is the first general list-size lower bound for RS codes on multiplicative subgroups in ArkLib.” — Quang Dao, review of #1443

SlotArithmetic addresses a practical problem. A certificate is valid when an inequality between two large double sums holds. Small cases close by direct computation, but large ones need the arithmetic organized so the kernel can check it in reasonable time.

Where the concrete instance went

The original instance, RS[512, 128] at rate 1/4, is not in ArkLib. Quang Dao explained the decision: “The reason is scope, not correctness.” The instance is one parameter point, and its hypotheses do not depend on the Goldilocks prime that its name suggested. Alexander Hicks, who had checked the instance in both earlier review rounds, agreed with the split. The concrete RS[512,128] instance was separated from the general layer during review and is not part of the merged ArkLib contribution.

Here is what the instance proves. Take the field with p³ elements, where p = 2⁶⁴ − 2³² + 1, the domain of powers of a primitive 512th root of unity, and the threshold 2⁻¹²⁸. If a boundary resolution exists, for mutual correlated agreement or for list decoding at any interleaving width m ≥ 1, then its boundary index k* satisfies 273 ≤ k* < 377. In terms of radius, the code is still safe at 273/512 and already unsafe at 377/512.

FIGURE 01

Where any boundary for RS[512, 128] can be

RELATIVE DISTANCE δ · SCALE 0–1 · RS[512,128]
Johnson radius
256/512 = 1/2
Safe side · any domain*
273/512 ≈ 0.533
Unsafe side · smooth FFT domain
377/512 ≈ 0.736

*Under stated field assumptions. Shaded interval between the two boundaries is unresolved.

Relative distance on a 0–1 scale. The safe side, 273/512, lies past the Johnson radius 256/512; the unsafe side, 377/512, lies below capacity 384/512. The Lean statements bound where a boundary can be. They do not prove that one exists or locate it exactly. Source: the RS[512,128] instance separated from #1443 during review; not part of the merged ArkLib code.

These statements are not part of the merged ArkLib code.

III. What “machine-checked” means

The Lean kernel checks that each proof establishes its formal statement from the stated hypotheses, and nothing more. Two questions remain after that check. First, does the formal statement say what we want? Reviewers answer this by reading the Lean, which is why the review rounds on both pull requests mattered. Second, do a real system's parameters satisfy the hypotheses? That check has to be made separately for each system.

For both pull requests, ArkLib's full validation with the axiom sweep passed on the branch merged with main, and ArkLib's own CI passed. The headline declarations depend only on propext, Classical.choice and Quot.sound, and neither pull request adds a sorry. AI tools assisted the work, as disclosed in the pull request. The kernel checks every proof. Before merging, Quang Dao reviewed both pull requests and contributed changes to #1551, and Alexander Hicks reviewed #1443 across two rounds.

IV. Why Beethoven Capital cares

Digital infrastructure has economic value when it is used. To assess it seriously, we also have to understand the technical assumptions behind it. A proof system's security budget is built from terms like the ones above. Each term is only as reliable as the theorem behind it and the match between that theorem's hypotheses and the deployed parameters.

Our research asks where those terms come from, what they assume, and how much of them a machine has checked. These two pull requests do not lower any system's costs, and we have not measured any such effect. They do make two pieces of the underlying mathematics sharper, more general and machine-checked.

V. What comes next

The maintainers named follow-ups they would welcome [2]. These are research proposals, not finished results.

  • A faster check of the slot inequality, through a closed form or a verified evaluator, so that a large instance becomes a short decide. Quang Dao suggests a tail-recursive restatement checked in one kernel call as the first experiment.
  • A general MCA upper witness: epsCa_gt for every n.
  • A ReedSolomon.Smooth (primitiveRootDomain hω) instance, so that the coset witnesses reach the prize statements.
  • Small items from the final review: a Kin26 page in ArkLib's knowledge base, a note that the worked example is checked outside ArkLib, and a test that uses SlotArithmetic.

Three merged pull requests in three weeks is a good feeling. What matters more to us is how they got there. Both of this week's pull requests became better through review. Alexander Hicks checked the mathematics of #1443 across two rounds and shaped its general form. Quang Dao set its final scope, approved and merged it, and strengthened #1551 himself before merging it. We are grateful to both. The work we want to do next starts from the questions they left open.

Sources

[1] Verified-zkEVM / ArkLib — Pull Request #1551

Merged 22 November 2026 by Quang Dao (commit cdb9e95), including his review fixes and the field-2,003 test.

[2] Verified-zkEVM / ArkLib — Pull Request #1443

Reviewed by Alexander Hicks and Quang Dao; approved and merged 23 November 2026 UTC by Quang Dao (commit 082308e).

[3] Verified-zkEVM / ArkLib — Issue #1429

The original proposal and the maintainers' status update on where the instance belongs.

[4] [DKT26] Q. Dao, S. D. Kominers, J. Thaler

Reed–Solomon Codes Beyond Johnson: Efficient Decoding and Smaller Cryptographic Proofs. IACR ePrint 2026/2056.

[5] [Kin26] Al Kindi

An improved near-capacity lower bound for Reed–Solomon lists on multiplicative subgroups. IACR ePrint 2026/2245.

[6] [ABF26] G. Arnon, D. Boneh, G. Fenzi

Open Problems in List Decoding and Correlated Agreement, accompanying the Ethereum Foundation Proximity Prize.

[7] Plonky3 — security/src/proximity.rs

The Johnson-regime line count and its hand-derived polynomial-curve extension, at commit 0d80373.

[8] Beethoven Capital — Sharper Line-Decoding Bounds

Our earlier milestone, ArkLib #1449, merged 5 November 2026.