params: blowup 4 + 20-bit query grinding — proven soundness regime - #513

Merged
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters
Jul 23, 2026
Merged

params: blowup 4 + 20-bit query grinding — proven soundness regime#513
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters

Conversation

@gabriel-barrett

Copy link
Copy Markdown
Member

STARK parameters: blowup 4 + 20-bit query grinding — proven soundness regime

Moves the Aiur STARK parameters from

log_blowup = 1, num_queries = 100, commit_pow = 20, query_pow = 0

to

log_blowup = 2, num_queries = 100, commit_pow = 0, query_pow = 20

so that the security level is backed by the proven FRI soundness bound
within the unique decoding radius, instead of the list-decoding-capacity
conjecture.

Why

At rate ρ = 2^-log_blowup, FRI's per-query soundness is only proven up to
the unique decoding radius δ = (1 − ρ)/2, giving a per-query error of
1 − δ = (1 + ρ)/2:

per-query errorbits/query100 queries+ query powtotal proven
log_blowup = 1 (old)3/40.415~41 bits+0~41 bits
log_blowup = 2 (new)5/80.678~68 bits+20~88 bits

Under the usual capacity conjecture the same parameters give 200+ bits,
capped by the ~2⁻¹⁰⁰ field-size terms of the union bound — so the change
costs nothing in the conjectured regime and buys a defensible proven number.

Query grinding (0 → 20 bits). Grinding immediately before query sampling
adds its bits one-for-one to the query-phase error — the dominant term of the
union bound. Honest-prover cost: a one-off ~2²⁰ hashes (milliseconds).

Commit grinding (20 → 0 bits). The commit-phase error terms (FRI folding
challenges, constraint folding α, lookup collisions) are Schwartz–Zippel
bounds against the degree-2 Goldilocks extension, sitting around 2⁻¹⁰⁰ —
orders of magnitude below the ~2⁻⁸⁸ query phase in every regime, proven or
conjectured. Grinding them adds no measurable security; it only slowed honest
proving (2²⁰ work per FRI fold round). Dropping it to 0 keeps the parameter
honest rather than decorative.

Costs and side effects

  • Prover commit/FFT/Merkle work roughly doubles (LDEs go from 2n to 4n) and
    each Merkle path gains one hash. This is the price of the proven regime.
  • The supported constraint degree rises from 3 to 5
    (2^log_blowup + 1), headroom the upcoming logup message-grouping change
    relies on.
  • The higher per-query soundness (0.678 vs 0.415 proven bits, 2 vs 1
    conjectured) makes queries cheaper per bit, opening room to later trade
    query count against grinding for smaller proofs.

Scope

Parameter definitions only: Tests/Aiur/Common.lean, Ix/Cli/ProveCmd.lean,
Ix/Cli/VerifyCmd.lean, and the Benchmarks/{Aiur,Blake3,IxVM,Sha256, Typecheck}.lean configs.

Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean intentionally
keep the old parameters: the Lean recursive verifier hardcodes
query_pow = 0 as a protocol assumption (Ix/MultiStark.lean) and is being
ported separately.

Move the Aiur STARK parameters from (log_blowup = 1, commit_pow = 20,
query_pow = 0) to (log_blowup = 2, commit_pow = 0, query_pow = 20),
targeting the PROVEN FRI soundness bound within the unique decoding
radius instead of the list-decoding-capacity conjecture.
Why: at rate rho = 2^-log_blowup, FRI's per-query soundness is only
proven up to the unique decoding radius delta = (1 - rho)/2, giving a
per-query error of 1 - delta = (1 + rho)/2. At log_blowup = 1 that is
3/4 per query — 0.415 bits — so 100 queries yield only ~41 bits proven.
At log_blowup = 2 the per-query error is 5/8 — 0.678 bits — so the same
100 queries yield ~68 bits, plus 20 bits of query grinding: ~88 bits of
proven security (and 200+ bits, capped by the ~2^-100 field terms, under
the capacity conjecture).
Query grinding (2^20 work immediately before query sampling) adds its
bits one-for-one to the query-phase error, which is the dominant term of
the union bound; it costs the honest prover a one-off ~1M hashes.
Commit grinding drops to 0: the commit-phase error terms (FRI folding
challenges, constraint folding, lookup collisions) are bounded by the
size of the degree-2 Goldilocks extension at roughly 2^-100 — orders of
magnitude below the ~2^-88 query phase — so grinding them buys no
measurable security and only slows honest proving.
The doubled blowup also raises the supported constraint degree from 3
to 5, which the upcoming logup message-grouping change relies on.
Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean keep their
old parameters: the Lean recursive verifier hardcodes query_pow = 0
(Ix/MultiStark.lean) and is ported separately.
@gabriel-barrett

Copy link
Copy Markdown
MemberAuthor

!benchmark

@arthurpaulino

Copy link
Copy Markdown
Member

!benchmark aiur-recursive

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur=prove · envs: InitStd · set: primary · shard: 0

aiur · InitStd · prove — main from: base run @ 387db15 (not on bencher)

constantprove-time (main)prove-time (PR)Δ%throughput (const/s) (main)throughput (const/s) (PR)Δ%peak-ram (main)peak-ram (PR)Δ%execute-time (main)execute-time (PR)Δ%verify-time (main)verify-time (PR)Δ%proof-size (main)proof-size (PR)Δ%fft-cost (main)fft-cost (PR)Δ%
Array.extract_append39.435 s48.544 s+23.1% (1.23× slower) ⚠️43.26035.140-18.8% (1.23× slower) ⚠️58.47 GiB96.66 GiB+65.3% (1.65× larger) ⚠️10.371 s10.384 s+0.1%173.5 ms258.9 ms+49.3% (1.49× slower) ⚠️26.22 MiB26.30 MiB+0.3%36.16B36.16B+0.0%
ByteArray.utf8DecodeChar?_utf8EncodeChar_append38.821 s48.388 s+24.6% (1.25× slower) ⚠️74.44059.730-19.8% (1.25× slower) ⚠️64.25 GiB102.38 GiB+59.4% (1.59× larger) ⚠️9.279 s9.176 s-1.1%169.0 ms184.3 ms+9.0% (1.09× slower) ⚠️26.30 MiB26.39 MiB+0.3%38.09B38.09B+0.0%
Char.ofOrdinal_le_of_le30.658 s38.552 s+25.7% (1.26× slower) ⚠️93.35074.240-20.5% (1.26× slower) ⚠️49.55 GiB80.19 GiB+61.8% (1.62× larger) ⚠️6.760 s6.724 s-0.5%170.4 ms230.7 ms+35.3% (1.35× slower) ⚠️26.24 MiB26.32 MiB+0.3%29.13B29.13B+0.0%
Vector.extract_append._proof_222.813 s27.991 s+22.7% (1.23× slower) ⚠️63.17051.480-18.5% (1.23× slower) ⚠️34.93 GiB53.23 GiB+52.4% (1.52× larger) ⚠️5.845 s5.792 s-0.9%169.1 ms175.8 ms+3.9% ⚠️25.89 MiB25.97 MiB+0.3%21.16B21.16B+0.0%
_private.Init.Data.Range.Polymorphic.SInt.0.Int64.instRxcHasSize_eq18.662 s23.858 s+27.8% (1.28× slower) ⚠️105.72082.700-21.8% (1.28× slower) ⚠️31.58 GiB50.26 GiB+59.1% (1.59× larger) ⚠️3.452 s3.470 s+0.5%174.1 ms166.3 ms-4.5% 🟢26.06 MiB26.14 MiB+0.3%15.70B15.70B+0.0%
String.split17.726 s22.275 s+25.7% (1.26× slower) ⚠️109.95087.500-20.4% (1.26× slower) ⚠️30.85 GiB48.22 GiB+56.3% (1.56× larger) ⚠️3.098 s3.167 s+2.2%190.0 ms170.0 ms-10.5% (1.12× faster) 🟢26.22 MiB26.30 MiB+0.3%14.21B14.21B+0.0%
List.mergeSort12.510 s15.487 s+23.8% (1.24× slower) ⚠️127.740103.180-19.2% (1.24× slower) ⚠️19.82 GiB31.80 GiB+60.5% (1.60× larger) ⚠️2.249 s2.279 s+1.4%186.0 ms171.6 ms-7.7% (1.08× faster) 🟢26.11 MiB26.19 MiB+0.3%10.45B10.45B+0.0%
Vector.append4.326 s5.187 s+19.9% (1.20× slower) ⚠️130.850109.120-16.6% (1.20× slower) ⚠️6.56 GiB8.36 GiB+27.3% (1.27× larger) ⚠️593.6 ms596.5 ms+0.5%167.4 ms168.7 ms+0.8%24.71 MiB24.78 MiB+0.3%2.21B2.21B+0.0%
Nat.gcd_comm3.586 s4.392 s+22.5% (1.22× slower) ⚠️115.72094.480-18.4% (1.22× slower) ⚠️5.12 GiB7.57 GiB+47.6% (1.48× larger) ⚠️472.9 ms472.7 ms-0.0%153.4 ms154.0 ms+0.4%24.32 MiB24.39 MiB+0.3%1.56B1.56B+0.0%
String.append2.740 s3.270 s+19.3% (1.19× slower) ⚠️128.810107.960-16.2% (1.19× slower) ⚠️6.11 GiB5.09 GiB-16.6% (1.20× smaller) 🟢357.4 ms353.4 ms-1.1%147.7 ms165.7 ms+12.2% (1.12× slower) ⚠️23.57 MiB23.64 MiB+0.3%868.67M868.67M+0.0%
Int.gcd2.268 s2.674 s+17.9% (1.18× slower) ⚠️100.95085.650-15.2% (1.18× slower) ⚠️4.79 GiB4.84 GiB+1.0%292.1 ms291.1 ms-0.3%147.6 ms151.3 ms+2.5%23.22 MiB23.29 MiB+0.3%539.07M539.07M+0.0%
Nat.sub_le_of_le_add2.137 s2.508 s+17.4% (1.17× slower) ⚠️88.93075.750-14.8% (1.17× slower) ⚠️4.88 GiB4.91 GiB+0.6%282.8 ms278.0 ms-1.7%148.5 ms153.3 ms+3.2% ⚠️23.70 MiB23.77 MiB+0.3%451.52M451.52M+0.0%
Nat.add_comm1.173 s1.416 s+20.7% (1.21× slower) ⚠️43.48036.010-17.2% (1.21× slower) ⚠️5.06 GiB3.91 GiB-22.7% (1.29× smaller) 🟢195.5 ms194.5 ms-0.5%151.2 ms136.9 ms-9.4% (1.10× faster) 🟢22.15 MiB22.21 MiB+0.3%48.90M48.90M+0.0%
Std.Tactic.BVDecide.BVExpr.bitblast.goCache_Inv_of_Inv._mutualOOMOOMn/aOOMOOMn/aOOMOOMn/a54.726 s55.464 s+1.3%OOMOOMn/aOOMOOMn/a205.13B205.13B+0.0%

14 constants · 13 with regressions · 5 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur-recursive · envs: InitStd · set: primary · shard: 0

aiur-recursive · InitStd — main from: base run @ 387db15 (not on bencher)

proofrecursive-prove-time (main)recursive-prove-time (PR)Δ%recursive-peak-ram (main)recursive-peak-ram (PR)Δ%recursive-proof-size (main)recursive-proof-size (PR)Δ%recursive-verify-time (main)recursive-verify-time (PR)Δ%recursive-execute-time (main)recursive-execute-time (PR)Δ%recursive-fft-cost (main)recursive-fft-cost (PR)Δ%prove-time (main)prove-time (PR)Δ%proof-size (main)proof-size (PR)Δ%verify-time (main)verify-time (PR)Δ%peak-ram (main)peak-ram (PR)Δ%
factorial-q100-b24.960 s4.867 s-1.9%14.60 GiB14.57 GiB-0.2%11.39 MiB11.39 MiB+0.0%75.8 ms73.8 ms-2.7%465.8 ms439.9 ms-5.6% (1.06× faster) 🟢3.94B3.81B-3.2% 🟢172.8 ms188.4 ms+9.0% (1.09× slower) ⚠️848.62 KiB848.62 KiB+0.0%6.6 ms6.8 ms+3.0%363.64 MiB364.89 MiB+0.3%
square-q100-b13.716 s3.781 s+1.8%9.69 GiB9.64 GiB-0.5%11.32 MiB11.32 MiB+0.0%75.6 ms74.0 ms-2.1%404.7 ms402.9 ms-0.4%3.38B3.28B-2.9%169.8 ms197.8 ms+16.5% (1.16× slower) ⚠️782.06 KiB782.06 KiB+0.0%6.0 ms5.6 ms-5.8% (1.06× faster) 🟢271.71 MiB272.91 MiB+0.4%

2 proofs · 2 with regressions · 2 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@gabriel-barrett
gabriel-barrett merged commit 3312c3f into mainJul 23, 2026
9 checks passed
@gabriel-barrett
gabriel-barrett deleted the sound-parameters branch July 23, 2026 23:41
Sign up for freeto 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.

2 participants

@gabriel-barrett@arthurpaulino
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

params: blowup 4 + 20-bit query grinding — proven soundness regime - #513

Merged
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters
Jul 23, 2026
Merged

params: blowup 4 + 20-bit query grinding — proven soundness regime#513
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters

Conversation

@gabriel-barrett

Copy link
Copy Markdown
Member

STARK parameters: blowup 4 + 20-bit query grinding — proven soundness regime

Moves the Aiur STARK parameters from

log_blowup = 1, num_queries = 100, commit_pow = 20, query_pow = 0

to

log_blowup = 2, num_queries = 100, commit_pow = 0, query_pow = 20

so that the security level is backed by the proven FRI soundness bound
within the unique decoding radius, instead of the list-decoding-capacity
conjecture.

Why

At rate ρ = 2^-log_blowup, FRI's per-query soundness is only proven up to
the unique decoding radius δ = (1 − ρ)/2, giving a per-query error of
1 − δ = (1 + ρ)/2:

per-query errorbits/query100 queries+ query powtotal proven
log_blowup = 1 (old)3/40.415~41 bits+0~41 bits
log_blowup = 2 (new)5/80.678~68 bits+20~88 bits

Under the usual capacity conjecture the same parameters give 200+ bits,
capped by the ~2⁻¹⁰⁰ field-size terms of the union bound — so the change
costs nothing in the conjectured regime and buys a defensible proven number.

Query grinding (0 → 20 bits). Grinding immediately before query sampling
adds its bits one-for-one to the query-phase error — the dominant term of the
union bound. Honest-prover cost: a one-off ~2²⁰ hashes (milliseconds).

Commit grinding (20 → 0 bits). The commit-phase error terms (FRI folding
challenges, constraint folding α, lookup collisions) are Schwartz–Zippel
bounds against the degree-2 Goldilocks extension, sitting around 2⁻¹⁰⁰ —
orders of magnitude below the ~2⁻⁸⁸ query phase in every regime, proven or
conjectured. Grinding them adds no measurable security; it only slowed honest
proving (2²⁰ work per FRI fold round). Dropping it to 0 keeps the parameter
honest rather than decorative.

Costs and side effects

  • Prover commit/FFT/Merkle work roughly doubles (LDEs go from 2n to 4n) and
    each Merkle path gains one hash. This is the price of the proven regime.
  • The supported constraint degree rises from 3 to 5
    (2^log_blowup + 1), headroom the upcoming logup message-grouping change
    relies on.
  • The higher per-query soundness (0.678 vs 0.415 proven bits, 2 vs 1
    conjectured) makes queries cheaper per bit, opening room to later trade
    query count against grinding for smaller proofs.

Scope

Parameter definitions only: Tests/Aiur/Common.lean, Ix/Cli/ProveCmd.lean,
Ix/Cli/VerifyCmd.lean, and the Benchmarks/{Aiur,Blake3,IxVM,Sha256, Typecheck}.lean configs.

Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean intentionally
keep the old parameters: the Lean recursive verifier hardcodes
query_pow = 0 as a protocol assumption (Ix/MultiStark.lean) and is being
ported separately.

Move the Aiur STARK parameters from (log_blowup = 1, commit_pow = 20,
query_pow = 0) to (log_blowup = 2, commit_pow = 0, query_pow = 20),
targeting the PROVEN FRI soundness bound within the unique decoding
radius instead of the list-decoding-capacity conjecture.
Why: at rate rho = 2^-log_blowup, FRI's per-query soundness is only
proven up to the unique decoding radius delta = (1 - rho)/2, giving a
per-query error of 1 - delta = (1 + rho)/2. At log_blowup = 1 that is
3/4 per query — 0.415 bits — so 100 queries yield only ~41 bits proven.
At log_blowup = 2 the per-query error is 5/8 — 0.678 bits — so the same
100 queries yield ~68 bits, plus 20 bits of query grinding: ~88 bits of
proven security (and 200+ bits, capped by the ~2^-100 field terms, under
the capacity conjecture).
Query grinding (2^20 work immediately before query sampling) adds its
bits one-for-one to the query-phase error, which is the dominant term of
the union bound; it costs the honest prover a one-off ~1M hashes.
Commit grinding drops to 0: the commit-phase error terms (FRI folding
challenges, constraint folding, lookup collisions) are bounded by the
size of the degree-2 Goldilocks extension at roughly 2^-100 — orders of
magnitude below the ~2^-88 query phase — so grinding them buys no
measurable security and only slows honest proving.
The doubled blowup also raises the supported constraint degree from 3
to 5, which the upcoming logup message-grouping change relies on.
Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean keep their
old parameters: the Lean recursive verifier hardcodes query_pow = 0
(Ix/MultiStark.lean) and is ported separately.
@gabriel-barrett

Copy link
Copy Markdown
MemberAuthor

!benchmark

@arthurpaulino

Copy link
Copy Markdown
Member

!benchmark aiur-recursive

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur=prove · envs: InitStd · set: primary · shard: 0

aiur · InitStd · prove — main from: base run @ 387db15 (not on bencher)

constantprove-time (main)prove-time (PR)Δ%throughput (const/s) (main)throughput (const/s) (PR)Δ%peak-ram (main)peak-ram (PR)Δ%execute-time (main)execute-time (PR)Δ%verify-time (main)verify-time (PR)Δ%proof-size (main)proof-size (PR)Δ%fft-cost (main)fft-cost (PR)Δ%
Array.extract_append39.435 s48.544 s+23.1% (1.23× slower) ⚠️43.26035.140-18.8% (1.23× slower) ⚠️58.47 GiB96.66 GiB+65.3% (1.65× larger) ⚠️10.371 s10.384 s+0.1%173.5 ms258.9 ms+49.3% (1.49× slower) ⚠️26.22 MiB26.30 MiB+0.3%36.16B36.16B+0.0%
ByteArray.utf8DecodeChar?_utf8EncodeChar_append38.821 s48.388 s+24.6% (1.25× slower) ⚠️74.44059.730-19.8% (1.25× slower) ⚠️64.25 GiB102.38 GiB+59.4% (1.59× larger) ⚠️9.279 s9.176 s-1.1%169.0 ms184.3 ms+9.0% (1.09× slower) ⚠️26.30 MiB26.39 MiB+0.3%38.09B38.09B+0.0%
Char.ofOrdinal_le_of_le30.658 s38.552 s+25.7% (1.26× slower) ⚠️93.35074.240-20.5% (1.26× slower) ⚠️49.55 GiB80.19 GiB+61.8% (1.62× larger) ⚠️6.760 s6.724 s-0.5%170.4 ms230.7 ms+35.3% (1.35× slower) ⚠️26.24 MiB26.32 MiB+0.3%29.13B29.13B+0.0%
Vector.extract_append._proof_222.813 s27.991 s+22.7% (1.23× slower) ⚠️63.17051.480-18.5% (1.23× slower) ⚠️34.93 GiB53.23 GiB+52.4% (1.52× larger) ⚠️5.845 s5.792 s-0.9%169.1 ms175.8 ms+3.9% ⚠️25.89 MiB25.97 MiB+0.3%21.16B21.16B+0.0%
_private.Init.Data.Range.Polymorphic.SInt.0.Int64.instRxcHasSize_eq18.662 s23.858 s+27.8% (1.28× slower) ⚠️105.72082.700-21.8% (1.28× slower) ⚠️31.58 GiB50.26 GiB+59.1% (1.59× larger) ⚠️3.452 s3.470 s+0.5%174.1 ms166.3 ms-4.5% 🟢26.06 MiB26.14 MiB+0.3%15.70B15.70B+0.0%
String.split17.726 s22.275 s+25.7% (1.26× slower) ⚠️109.95087.500-20.4% (1.26× slower) ⚠️30.85 GiB48.22 GiB+56.3% (1.56× larger) ⚠️3.098 s3.167 s+2.2%190.0 ms170.0 ms-10.5% (1.12× faster) 🟢26.22 MiB26.30 MiB+0.3%14.21B14.21B+0.0%
List.mergeSort12.510 s15.487 s+23.8% (1.24× slower) ⚠️127.740103.180-19.2% (1.24× slower) ⚠️19.82 GiB31.80 GiB+60.5% (1.60× larger) ⚠️2.249 s2.279 s+1.4%186.0 ms171.6 ms-7.7% (1.08× faster) 🟢26.11 MiB26.19 MiB+0.3%10.45B10.45B+0.0%
Vector.append4.326 s5.187 s+19.9% (1.20× slower) ⚠️130.850109.120-16.6% (1.20× slower) ⚠️6.56 GiB8.36 GiB+27.3% (1.27× larger) ⚠️593.6 ms596.5 ms+0.5%167.4 ms168.7 ms+0.8%24.71 MiB24.78 MiB+0.3%2.21B2.21B+0.0%
Nat.gcd_comm3.586 s4.392 s+22.5% (1.22× slower) ⚠️115.72094.480-18.4% (1.22× slower) ⚠️5.12 GiB7.57 GiB+47.6% (1.48× larger) ⚠️472.9 ms472.7 ms-0.0%153.4 ms154.0 ms+0.4%24.32 MiB24.39 MiB+0.3%1.56B1.56B+0.0%
String.append2.740 s3.270 s+19.3% (1.19× slower) ⚠️128.810107.960-16.2% (1.19× slower) ⚠️6.11 GiB5.09 GiB-16.6% (1.20× smaller) 🟢357.4 ms353.4 ms-1.1%147.7 ms165.7 ms+12.2% (1.12× slower) ⚠️23.57 MiB23.64 MiB+0.3%868.67M868.67M+0.0%
Int.gcd2.268 s2.674 s+17.9% (1.18× slower) ⚠️100.95085.650-15.2% (1.18× slower) ⚠️4.79 GiB4.84 GiB+1.0%292.1 ms291.1 ms-0.3%147.6 ms151.3 ms+2.5%23.22 MiB23.29 MiB+0.3%539.07M539.07M+0.0%
Nat.sub_le_of_le_add2.137 s2.508 s+17.4% (1.17× slower) ⚠️88.93075.750-14.8% (1.17× slower) ⚠️4.88 GiB4.91 GiB+0.6%282.8 ms278.0 ms-1.7%148.5 ms153.3 ms+3.2% ⚠️23.70 MiB23.77 MiB+0.3%451.52M451.52M+0.0%
Nat.add_comm1.173 s1.416 s+20.7% (1.21× slower) ⚠️43.48036.010-17.2% (1.21× slower) ⚠️5.06 GiB3.91 GiB-22.7% (1.29× smaller) 🟢195.5 ms194.5 ms-0.5%151.2 ms136.9 ms-9.4% (1.10× faster) 🟢22.15 MiB22.21 MiB+0.3%48.90M48.90M+0.0%
Std.Tactic.BVDecide.BVExpr.bitblast.goCache_Inv_of_Inv._mutualOOMOOMn/aOOMOOMn/aOOMOOMn/a54.726 s55.464 s+1.3%OOMOOMn/aOOMOOMn/a205.13B205.13B+0.0%

14 constants · 13 with regressions · 5 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur-recursive · envs: InitStd · set: primary · shard: 0

aiur-recursive · InitStd — main from: base run @ 387db15 (not on bencher)

proofrecursive-prove-time (main)recursive-prove-time (PR)Δ%recursive-peak-ram (main)recursive-peak-ram (PR)Δ%recursive-proof-size (main)recursive-proof-size (PR)Δ%recursive-verify-time (main)recursive-verify-time (PR)Δ%recursive-execute-time (main)recursive-execute-time (PR)Δ%recursive-fft-cost (main)recursive-fft-cost (PR)Δ%prove-time (main)prove-time (PR)Δ%proof-size (main)proof-size (PR)Δ%verify-time (main)verify-time (PR)Δ%peak-ram (main)peak-ram (PR)Δ%
factorial-q100-b24.960 s4.867 s-1.9%14.60 GiB14.57 GiB-0.2%11.39 MiB11.39 MiB+0.0%75.8 ms73.8 ms-2.7%465.8 ms439.9 ms-5.6% (1.06× faster) 🟢3.94B3.81B-3.2% 🟢172.8 ms188.4 ms+9.0% (1.09× slower) ⚠️848.62 KiB848.62 KiB+0.0%6.6 ms6.8 ms+3.0%363.64 MiB364.89 MiB+0.3%
square-q100-b13.716 s3.781 s+1.8%9.69 GiB9.64 GiB-0.5%11.32 MiB11.32 MiB+0.0%75.6 ms74.0 ms-2.1%404.7 ms402.9 ms-0.4%3.38B3.28B-2.9%169.8 ms197.8 ms+16.5% (1.16× slower) ⚠️782.06 KiB782.06 KiB+0.0%6.0 ms5.6 ms-5.8% (1.06× faster) 🟢271.71 MiB272.91 MiB+0.4%

2 proofs · 2 with regressions · 2 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@gabriel-barrett
gabriel-barrett merged commit 3312c3f into mainJul 23, 2026
9 checks passed
@gabriel-barrett
gabriel-barrett deleted the sound-parameters branch July 23, 2026 23:41
Sign up for freeto 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.

2 participants

@gabriel-barrett@arthurpaulino
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

params: blowup 4 + 20-bit query grinding — proven soundness regime - #513

Merged
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters
Jul 23, 2026
Merged

params: blowup 4 + 20-bit query grinding — proven soundness regime#513
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters

Conversation

@gabriel-barrett

Copy link
Copy Markdown
Member

STARK parameters: blowup 4 + 20-bit query grinding — proven soundness regime

Moves the Aiur STARK parameters from

log_blowup = 1, num_queries = 100, commit_pow = 20, query_pow = 0

to

log_blowup = 2, num_queries = 100, commit_pow = 0, query_pow = 20

so that the security level is backed by the proven FRI soundness bound
within the unique decoding radius, instead of the list-decoding-capacity
conjecture.

Why

At rate ρ = 2^-log_blowup, FRI's per-query soundness is only proven up to
the unique decoding radius δ = (1 − ρ)/2, giving a per-query error of
1 − δ = (1 + ρ)/2:

per-query errorbits/query100 queries+ query powtotal proven
log_blowup = 1 (old)3/40.415~41 bits+0~41 bits
log_blowup = 2 (new)5/80.678~68 bits+20~88 bits

Under the usual capacity conjecture the same parameters give 200+ bits,
capped by the ~2⁻¹⁰⁰ field-size terms of the union bound — so the change
costs nothing in the conjectured regime and buys a defensible proven number.

Query grinding (0 → 20 bits). Grinding immediately before query sampling
adds its bits one-for-one to the query-phase error — the dominant term of the
union bound. Honest-prover cost: a one-off ~2²⁰ hashes (milliseconds).

Commit grinding (20 → 0 bits). The commit-phase error terms (FRI folding
challenges, constraint folding α, lookup collisions) are Schwartz–Zippel
bounds against the degree-2 Goldilocks extension, sitting around 2⁻¹⁰⁰ —
orders of magnitude below the ~2⁻⁸⁸ query phase in every regime, proven or
conjectured. Grinding them adds no measurable security; it only slowed honest
proving (2²⁰ work per FRI fold round). Dropping it to 0 keeps the parameter
honest rather than decorative.

Costs and side effects

  • Prover commit/FFT/Merkle work roughly doubles (LDEs go from 2n to 4n) and
    each Merkle path gains one hash. This is the price of the proven regime.
  • The supported constraint degree rises from 3 to 5
    (2^log_blowup + 1), headroom the upcoming logup message-grouping change
    relies on.
  • The higher per-query soundness (0.678 vs 0.415 proven bits, 2 vs 1
    conjectured) makes queries cheaper per bit, opening room to later trade
    query count against grinding for smaller proofs.

Scope

Parameter definitions only: Tests/Aiur/Common.lean, Ix/Cli/ProveCmd.lean,
Ix/Cli/VerifyCmd.lean, and the Benchmarks/{Aiur,Blake3,IxVM,Sha256, Typecheck}.lean configs.

Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean intentionally
keep the old parameters: the Lean recursive verifier hardcodes
query_pow = 0 as a protocol assumption (Ix/MultiStark.lean) and is being
ported separately.

Move the Aiur STARK parameters from (log_blowup = 1, commit_pow = 20,
query_pow = 0) to (log_blowup = 2, commit_pow = 0, query_pow = 20),
targeting the PROVEN FRI soundness bound within the unique decoding
radius instead of the list-decoding-capacity conjecture.
Why: at rate rho = 2^-log_blowup, FRI's per-query soundness is only
proven up to the unique decoding radius delta = (1 - rho)/2, giving a
per-query error of 1 - delta = (1 + rho)/2. At log_blowup = 1 that is
3/4 per query — 0.415 bits — so 100 queries yield only ~41 bits proven.
At log_blowup = 2 the per-query error is 5/8 — 0.678 bits — so the same
100 queries yield ~68 bits, plus 20 bits of query grinding: ~88 bits of
proven security (and 200+ bits, capped by the ~2^-100 field terms, under
the capacity conjecture).
Query grinding (2^20 work immediately before query sampling) adds its
bits one-for-one to the query-phase error, which is the dominant term of
the union bound; it costs the honest prover a one-off ~1M hashes.
Commit grinding drops to 0: the commit-phase error terms (FRI folding
challenges, constraint folding, lookup collisions) are bounded by the
size of the degree-2 Goldilocks extension at roughly 2^-100 — orders of
magnitude below the ~2^-88 query phase — so grinding them buys no
measurable security and only slows honest proving.
The doubled blowup also raises the supported constraint degree from 3
to 5, which the upcoming logup message-grouping change relies on.
Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean keep their
old parameters: the Lean recursive verifier hardcodes query_pow = 0
(Ix/MultiStark.lean) and is ported separately.
@gabriel-barrett

Copy link
Copy Markdown
MemberAuthor

!benchmark

@arthurpaulino

Copy link
Copy Markdown
Member

!benchmark aiur-recursive

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur=prove · envs: InitStd · set: primary · shard: 0

aiur · InitStd · prove — main from: base run @ 387db15 (not on bencher)

constantprove-time (main)prove-time (PR)Δ%throughput (const/s) (main)throughput (const/s) (PR)Δ%peak-ram (main)peak-ram (PR)Δ%execute-time (main)execute-time (PR)Δ%verify-time (main)verify-time (PR)Δ%proof-size (main)proof-size (PR)Δ%fft-cost (main)fft-cost (PR)Δ%
Array.extract_append39.435 s48.544 s+23.1% (1.23× slower) ⚠️43.26035.140-18.8% (1.23× slower) ⚠️58.47 GiB96.66 GiB+65.3% (1.65× larger) ⚠️10.371 s10.384 s+0.1%173.5 ms258.9 ms+49.3% (1.49× slower) ⚠️26.22 MiB26.30 MiB+0.3%36.16B36.16B+0.0%
ByteArray.utf8DecodeChar?_utf8EncodeChar_append38.821 s48.388 s+24.6% (1.25× slower) ⚠️74.44059.730-19.8% (1.25× slower) ⚠️64.25 GiB102.38 GiB+59.4% (1.59× larger) ⚠️9.279 s9.176 s-1.1%169.0 ms184.3 ms+9.0% (1.09× slower) ⚠️26.30 MiB26.39 MiB+0.3%38.09B38.09B+0.0%
Char.ofOrdinal_le_of_le30.658 s38.552 s+25.7% (1.26× slower) ⚠️93.35074.240-20.5% (1.26× slower) ⚠️49.55 GiB80.19 GiB+61.8% (1.62× larger) ⚠️6.760 s6.724 s-0.5%170.4 ms230.7 ms+35.3% (1.35× slower) ⚠️26.24 MiB26.32 MiB+0.3%29.13B29.13B+0.0%
Vector.extract_append._proof_222.813 s27.991 s+22.7% (1.23× slower) ⚠️63.17051.480-18.5% (1.23× slower) ⚠️34.93 GiB53.23 GiB+52.4% (1.52× larger) ⚠️5.845 s5.792 s-0.9%169.1 ms175.8 ms+3.9% ⚠️25.89 MiB25.97 MiB+0.3%21.16B21.16B+0.0%
_private.Init.Data.Range.Polymorphic.SInt.0.Int64.instRxcHasSize_eq18.662 s23.858 s+27.8% (1.28× slower) ⚠️105.72082.700-21.8% (1.28× slower) ⚠️31.58 GiB50.26 GiB+59.1% (1.59× larger) ⚠️3.452 s3.470 s+0.5%174.1 ms166.3 ms-4.5% 🟢26.06 MiB26.14 MiB+0.3%15.70B15.70B+0.0%
String.split17.726 s22.275 s+25.7% (1.26× slower) ⚠️109.95087.500-20.4% (1.26× slower) ⚠️30.85 GiB48.22 GiB+56.3% (1.56× larger) ⚠️3.098 s3.167 s+2.2%190.0 ms170.0 ms-10.5% (1.12× faster) 🟢26.22 MiB26.30 MiB+0.3%14.21B14.21B+0.0%
List.mergeSort12.510 s15.487 s+23.8% (1.24× slower) ⚠️127.740103.180-19.2% (1.24× slower) ⚠️19.82 GiB31.80 GiB+60.5% (1.60× larger) ⚠️2.249 s2.279 s+1.4%186.0 ms171.6 ms-7.7% (1.08× faster) 🟢26.11 MiB26.19 MiB+0.3%10.45B10.45B+0.0%
Vector.append4.326 s5.187 s+19.9% (1.20× slower) ⚠️130.850109.120-16.6% (1.20× slower) ⚠️6.56 GiB8.36 GiB+27.3% (1.27× larger) ⚠️593.6 ms596.5 ms+0.5%167.4 ms168.7 ms+0.8%24.71 MiB24.78 MiB+0.3%2.21B2.21B+0.0%
Nat.gcd_comm3.586 s4.392 s+22.5% (1.22× slower) ⚠️115.72094.480-18.4% (1.22× slower) ⚠️5.12 GiB7.57 GiB+47.6% (1.48× larger) ⚠️472.9 ms472.7 ms-0.0%153.4 ms154.0 ms+0.4%24.32 MiB24.39 MiB+0.3%1.56B1.56B+0.0%
String.append2.740 s3.270 s+19.3% (1.19× slower) ⚠️128.810107.960-16.2% (1.19× slower) ⚠️6.11 GiB5.09 GiB-16.6% (1.20× smaller) 🟢357.4 ms353.4 ms-1.1%147.7 ms165.7 ms+12.2% (1.12× slower) ⚠️23.57 MiB23.64 MiB+0.3%868.67M868.67M+0.0%
Int.gcd2.268 s2.674 s+17.9% (1.18× slower) ⚠️100.95085.650-15.2% (1.18× slower) ⚠️4.79 GiB4.84 GiB+1.0%292.1 ms291.1 ms-0.3%147.6 ms151.3 ms+2.5%23.22 MiB23.29 MiB+0.3%539.07M539.07M+0.0%
Nat.sub_le_of_le_add2.137 s2.508 s+17.4% (1.17× slower) ⚠️88.93075.750-14.8% (1.17× slower) ⚠️4.88 GiB4.91 GiB+0.6%282.8 ms278.0 ms-1.7%148.5 ms153.3 ms+3.2% ⚠️23.70 MiB23.77 MiB+0.3%451.52M451.52M+0.0%
Nat.add_comm1.173 s1.416 s+20.7% (1.21× slower) ⚠️43.48036.010-17.2% (1.21× slower) ⚠️5.06 GiB3.91 GiB-22.7% (1.29× smaller) 🟢195.5 ms194.5 ms-0.5%151.2 ms136.9 ms-9.4% (1.10× faster) 🟢22.15 MiB22.21 MiB+0.3%48.90M48.90M+0.0%
Std.Tactic.BVDecide.BVExpr.bitblast.goCache_Inv_of_Inv._mutualOOMOOMn/aOOMOOMn/aOOMOOMn/a54.726 s55.464 s+1.3%OOMOOMn/aOOMOOMn/a205.13B205.13B+0.0%

14 constants · 13 with regressions · 5 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur-recursive · envs: InitStd · set: primary · shard: 0

aiur-recursive · InitStd — main from: base run @ 387db15 (not on bencher)

proofrecursive-prove-time (main)recursive-prove-time (PR)Δ%recursive-peak-ram (main)recursive-peak-ram (PR)Δ%recursive-proof-size (main)recursive-proof-size (PR)Δ%recursive-verify-time (main)recursive-verify-time (PR)Δ%recursive-execute-time (main)recursive-execute-time (PR)Δ%recursive-fft-cost (main)recursive-fft-cost (PR)Δ%prove-time (main)prove-time (PR)Δ%proof-size (main)proof-size (PR)Δ%verify-time (main)verify-time (PR)Δ%peak-ram (main)peak-ram (PR)Δ%
factorial-q100-b24.960 s4.867 s-1.9%14.60 GiB14.57 GiB-0.2%11.39 MiB11.39 MiB+0.0%75.8 ms73.8 ms-2.7%465.8 ms439.9 ms-5.6% (1.06× faster) 🟢3.94B3.81B-3.2% 🟢172.8 ms188.4 ms+9.0% (1.09× slower) ⚠️848.62 KiB848.62 KiB+0.0%6.6 ms6.8 ms+3.0%363.64 MiB364.89 MiB+0.3%
square-q100-b13.716 s3.781 s+1.8%9.69 GiB9.64 GiB-0.5%11.32 MiB11.32 MiB+0.0%75.6 ms74.0 ms-2.1%404.7 ms402.9 ms-0.4%3.38B3.28B-2.9%169.8 ms197.8 ms+16.5% (1.16× slower) ⚠️782.06 KiB782.06 KiB+0.0%6.0 ms5.6 ms-5.8% (1.06× faster) 🟢271.71 MiB272.91 MiB+0.4%

2 proofs · 2 with regressions · 2 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@gabriel-barrett
gabriel-barrett merged commit 3312c3f into mainJul 23, 2026
9 checks passed
@gabriel-barrett
gabriel-barrett deleted the sound-parameters branch July 23, 2026 23:41
Sign up for freeto 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.

2 participants

@gabriel-barrett@arthurpaulino
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

params: blowup 4 + 20-bit query grinding — proven soundness regime - #513

Merged
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters
Jul 23, 2026
Merged

params: blowup 4 + 20-bit query grinding — proven soundness regime#513
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters

Conversation

@gabriel-barrett

Copy link
Copy Markdown
Member

STARK parameters: blowup 4 + 20-bit query grinding — proven soundness regime

Moves the Aiur STARK parameters from

log_blowup = 1, num_queries = 100, commit_pow = 20, query_pow = 0

to

log_blowup = 2, num_queries = 100, commit_pow = 0, query_pow = 20

so that the security level is backed by the proven FRI soundness bound
within the unique decoding radius, instead of the list-decoding-capacity
conjecture.

Why

At rate ρ = 2^-log_blowup, FRI's per-query soundness is only proven up to
the unique decoding radius δ = (1 − ρ)/2, giving a per-query error of
1 − δ = (1 + ρ)/2:

per-query errorbits/query100 queries+ query powtotal proven
log_blowup = 1 (old)3/40.415~41 bits+0~41 bits
log_blowup = 2 (new)5/80.678~68 bits+20~88 bits

Under the usual capacity conjecture the same parameters give 200+ bits,
capped by the ~2⁻¹⁰⁰ field-size terms of the union bound — so the change
costs nothing in the conjectured regime and buys a defensible proven number.

Query grinding (0 → 20 bits). Grinding immediately before query sampling
adds its bits one-for-one to the query-phase error — the dominant term of the
union bound. Honest-prover cost: a one-off ~2²⁰ hashes (milliseconds).

Commit grinding (20 → 0 bits). The commit-phase error terms (FRI folding
challenges, constraint folding α, lookup collisions) are Schwartz–Zippel
bounds against the degree-2 Goldilocks extension, sitting around 2⁻¹⁰⁰ —
orders of magnitude below the ~2⁻⁸⁸ query phase in every regime, proven or
conjectured. Grinding them adds no measurable security; it only slowed honest
proving (2²⁰ work per FRI fold round). Dropping it to 0 keeps the parameter
honest rather than decorative.

Costs and side effects

  • Prover commit/FFT/Merkle work roughly doubles (LDEs go from 2n to 4n) and
    each Merkle path gains one hash. This is the price of the proven regime.
  • The supported constraint degree rises from 3 to 5
    (2^log_blowup + 1), headroom the upcoming logup message-grouping change
    relies on.
  • The higher per-query soundness (0.678 vs 0.415 proven bits, 2 vs 1
    conjectured) makes queries cheaper per bit, opening room to later trade
    query count against grinding for smaller proofs.

Scope

Parameter definitions only: Tests/Aiur/Common.lean, Ix/Cli/ProveCmd.lean,
Ix/Cli/VerifyCmd.lean, and the Benchmarks/{Aiur,Blake3,IxVM,Sha256, Typecheck}.lean configs.

Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean intentionally
keep the old parameters: the Lean recursive verifier hardcodes
query_pow = 0 as a protocol assumption (Ix/MultiStark.lean) and is being
ported separately.

Move the Aiur STARK parameters from (log_blowup = 1, commit_pow = 20,
query_pow = 0) to (log_blowup = 2, commit_pow = 0, query_pow = 20),
targeting the PROVEN FRI soundness bound within the unique decoding
radius instead of the list-decoding-capacity conjecture.
Why: at rate rho = 2^-log_blowup, FRI's per-query soundness is only
proven up to the unique decoding radius delta = (1 - rho)/2, giving a
per-query error of 1 - delta = (1 + rho)/2. At log_blowup = 1 that is
3/4 per query — 0.415 bits — so 100 queries yield only ~41 bits proven.
At log_blowup = 2 the per-query error is 5/8 — 0.678 bits — so the same
100 queries yield ~68 bits, plus 20 bits of query grinding: ~88 bits of
proven security (and 200+ bits, capped by the ~2^-100 field terms, under
the capacity conjecture).
Query grinding (2^20 work immediately before query sampling) adds its
bits one-for-one to the query-phase error, which is the dominant term of
the union bound; it costs the honest prover a one-off ~1M hashes.
Commit grinding drops to 0: the commit-phase error terms (FRI folding
challenges, constraint folding, lookup collisions) are bounded by the
size of the degree-2 Goldilocks extension at roughly 2^-100 — orders of
magnitude below the ~2^-88 query phase — so grinding them buys no
measurable security and only slows honest proving.
The doubled blowup also raises the supported constraint degree from 3
to 5, which the upcoming logup message-grouping change relies on.
Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean keep their
old parameters: the Lean recursive verifier hardcodes query_pow = 0
(Ix/MultiStark.lean) and is ported separately.
@gabriel-barrett

Copy link
Copy Markdown
MemberAuthor

!benchmark

@arthurpaulino

Copy link
Copy Markdown
Member

!benchmark aiur-recursive

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur=prove · envs: InitStd · set: primary · shard: 0

aiur · InitStd · prove — main from: base run @ 387db15 (not on bencher)

constantprove-time (main)prove-time (PR)Δ%throughput (const/s) (main)throughput (const/s) (PR)Δ%peak-ram (main)peak-ram (PR)Δ%execute-time (main)execute-time (PR)Δ%verify-time (main)verify-time (PR)Δ%proof-size (main)proof-size (PR)Δ%fft-cost (main)fft-cost (PR)Δ%
Array.extract_append39.435 s48.544 s+23.1% (1.23× slower) ⚠️43.26035.140-18.8% (1.23× slower) ⚠️58.47 GiB96.66 GiB+65.3% (1.65× larger) ⚠️10.371 s10.384 s+0.1%173.5 ms258.9 ms+49.3% (1.49× slower) ⚠️26.22 MiB26.30 MiB+0.3%36.16B36.16B+0.0%
ByteArray.utf8DecodeChar?_utf8EncodeChar_append38.821 s48.388 s+24.6% (1.25× slower) ⚠️74.44059.730-19.8% (1.25× slower) ⚠️64.25 GiB102.38 GiB+59.4% (1.59× larger) ⚠️9.279 s9.176 s-1.1%169.0 ms184.3 ms+9.0% (1.09× slower) ⚠️26.30 MiB26.39 MiB+0.3%38.09B38.09B+0.0%
Char.ofOrdinal_le_of_le30.658 s38.552 s+25.7% (1.26× slower) ⚠️93.35074.240-20.5% (1.26× slower) ⚠️49.55 GiB80.19 GiB+61.8% (1.62× larger) ⚠️6.760 s6.724 s-0.5%170.4 ms230.7 ms+35.3% (1.35× slower) ⚠️26.24 MiB26.32 MiB+0.3%29.13B29.13B+0.0%
Vector.extract_append._proof_222.813 s27.991 s+22.7% (1.23× slower) ⚠️63.17051.480-18.5% (1.23× slower) ⚠️34.93 GiB53.23 GiB+52.4% (1.52× larger) ⚠️5.845 s5.792 s-0.9%169.1 ms175.8 ms+3.9% ⚠️25.89 MiB25.97 MiB+0.3%21.16B21.16B+0.0%
_private.Init.Data.Range.Polymorphic.SInt.0.Int64.instRxcHasSize_eq18.662 s23.858 s+27.8% (1.28× slower) ⚠️105.72082.700-21.8% (1.28× slower) ⚠️31.58 GiB50.26 GiB+59.1% (1.59× larger) ⚠️3.452 s3.470 s+0.5%174.1 ms166.3 ms-4.5% 🟢26.06 MiB26.14 MiB+0.3%15.70B15.70B+0.0%
String.split17.726 s22.275 s+25.7% (1.26× slower) ⚠️109.95087.500-20.4% (1.26× slower) ⚠️30.85 GiB48.22 GiB+56.3% (1.56× larger) ⚠️3.098 s3.167 s+2.2%190.0 ms170.0 ms-10.5% (1.12× faster) 🟢26.22 MiB26.30 MiB+0.3%14.21B14.21B+0.0%
List.mergeSort12.510 s15.487 s+23.8% (1.24× slower) ⚠️127.740103.180-19.2% (1.24× slower) ⚠️19.82 GiB31.80 GiB+60.5% (1.60× larger) ⚠️2.249 s2.279 s+1.4%186.0 ms171.6 ms-7.7% (1.08× faster) 🟢26.11 MiB26.19 MiB+0.3%10.45B10.45B+0.0%
Vector.append4.326 s5.187 s+19.9% (1.20× slower) ⚠️130.850109.120-16.6% (1.20× slower) ⚠️6.56 GiB8.36 GiB+27.3% (1.27× larger) ⚠️593.6 ms596.5 ms+0.5%167.4 ms168.7 ms+0.8%24.71 MiB24.78 MiB+0.3%2.21B2.21B+0.0%
Nat.gcd_comm3.586 s4.392 s+22.5% (1.22× slower) ⚠️115.72094.480-18.4% (1.22× slower) ⚠️5.12 GiB7.57 GiB+47.6% (1.48× larger) ⚠️472.9 ms472.7 ms-0.0%153.4 ms154.0 ms+0.4%24.32 MiB24.39 MiB+0.3%1.56B1.56B+0.0%
String.append2.740 s3.270 s+19.3% (1.19× slower) ⚠️128.810107.960-16.2% (1.19× slower) ⚠️6.11 GiB5.09 GiB-16.6% (1.20× smaller) 🟢357.4 ms353.4 ms-1.1%147.7 ms165.7 ms+12.2% (1.12× slower) ⚠️23.57 MiB23.64 MiB+0.3%868.67M868.67M+0.0%
Int.gcd2.268 s2.674 s+17.9% (1.18× slower) ⚠️100.95085.650-15.2% (1.18× slower) ⚠️4.79 GiB4.84 GiB+1.0%292.1 ms291.1 ms-0.3%147.6 ms151.3 ms+2.5%23.22 MiB23.29 MiB+0.3%539.07M539.07M+0.0%
Nat.sub_le_of_le_add2.137 s2.508 s+17.4% (1.17× slower) ⚠️88.93075.750-14.8% (1.17× slower) ⚠️4.88 GiB4.91 GiB+0.6%282.8 ms278.0 ms-1.7%148.5 ms153.3 ms+3.2% ⚠️23.70 MiB23.77 MiB+0.3%451.52M451.52M+0.0%
Nat.add_comm1.173 s1.416 s+20.7% (1.21× slower) ⚠️43.48036.010-17.2% (1.21× slower) ⚠️5.06 GiB3.91 GiB-22.7% (1.29× smaller) 🟢195.5 ms194.5 ms-0.5%151.2 ms136.9 ms-9.4% (1.10× faster) 🟢22.15 MiB22.21 MiB+0.3%48.90M48.90M+0.0%
Std.Tactic.BVDecide.BVExpr.bitblast.goCache_Inv_of_Inv._mutualOOMOOMn/aOOMOOMn/aOOMOOMn/a54.726 s55.464 s+1.3%OOMOOMn/aOOMOOMn/a205.13B205.13B+0.0%

14 constants · 13 with regressions · 5 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur-recursive · envs: InitStd · set: primary · shard: 0

aiur-recursive · InitStd — main from: base run @ 387db15 (not on bencher)

proofrecursive-prove-time (main)recursive-prove-time (PR)Δ%recursive-peak-ram (main)recursive-peak-ram (PR)Δ%recursive-proof-size (main)recursive-proof-size (PR)Δ%recursive-verify-time (main)recursive-verify-time (PR)Δ%recursive-execute-time (main)recursive-execute-time (PR)Δ%recursive-fft-cost (main)recursive-fft-cost (PR)Δ%prove-time (main)prove-time (PR)Δ%proof-size (main)proof-size (PR)Δ%verify-time (main)verify-time (PR)Δ%peak-ram (main)peak-ram (PR)Δ%
factorial-q100-b24.960 s4.867 s-1.9%14.60 GiB14.57 GiB-0.2%11.39 MiB11.39 MiB+0.0%75.8 ms73.8 ms-2.7%465.8 ms439.9 ms-5.6% (1.06× faster) 🟢3.94B3.81B-3.2% 🟢172.8 ms188.4 ms+9.0% (1.09× slower) ⚠️848.62 KiB848.62 KiB+0.0%6.6 ms6.8 ms+3.0%363.64 MiB364.89 MiB+0.3%
square-q100-b13.716 s3.781 s+1.8%9.69 GiB9.64 GiB-0.5%11.32 MiB11.32 MiB+0.0%75.6 ms74.0 ms-2.1%404.7 ms402.9 ms-0.4%3.38B3.28B-2.9%169.8 ms197.8 ms+16.5% (1.16× slower) ⚠️782.06 KiB782.06 KiB+0.0%6.0 ms5.6 ms-5.8% (1.06× faster) 🟢271.71 MiB272.91 MiB+0.4%

2 proofs · 2 with regressions · 2 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@gabriel-barrett
gabriel-barrett merged commit 3312c3f into mainJul 23, 2026
9 checks passed
@gabriel-barrett
gabriel-barrett deleted the sound-parameters branch July 23, 2026 23:41
Sign up for freeto 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.

2 participants

@gabriel-barrett@arthurpaulino
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

params: blowup 4 + 20-bit query grinding — proven soundness regime - #513

Merged
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters
Jul 23, 2026
Merged

params: blowup 4 + 20-bit query grinding — proven soundness regime#513
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters

Conversation

@gabriel-barrett

Copy link
Copy Markdown
Member

STARK parameters: blowup 4 + 20-bit query grinding — proven soundness regime

Moves the Aiur STARK parameters from

log_blowup = 1, num_queries = 100, commit_pow = 20, query_pow = 0

to

log_blowup = 2, num_queries = 100, commit_pow = 0, query_pow = 20

so that the security level is backed by the proven FRI soundness bound
within the unique decoding radius, instead of the list-decoding-capacity
conjecture.

Why

At rate ρ = 2^-log_blowup, FRI's per-query soundness is only proven up to
the unique decoding radius δ = (1 − ρ)/2, giving a per-query error of
1 − δ = (1 + ρ)/2:

per-query errorbits/query100 queries+ query powtotal proven
log_blowup = 1 (old)3/40.415~41 bits+0~41 bits
log_blowup = 2 (new)5/80.678~68 bits+20~88 bits

Under the usual capacity conjecture the same parameters give 200+ bits,
capped by the ~2⁻¹⁰⁰ field-size terms of the union bound — so the change
costs nothing in the conjectured regime and buys a defensible proven number.

Query grinding (0 → 20 bits). Grinding immediately before query sampling
adds its bits one-for-one to the query-phase error — the dominant term of the
union bound. Honest-prover cost: a one-off ~2²⁰ hashes (milliseconds).

Commit grinding (20 → 0 bits). The commit-phase error terms (FRI folding
challenges, constraint folding α, lookup collisions) are Schwartz–Zippel
bounds against the degree-2 Goldilocks extension, sitting around 2⁻¹⁰⁰ —
orders of magnitude below the ~2⁻⁸⁸ query phase in every regime, proven or
conjectured. Grinding them adds no measurable security; it only slowed honest
proving (2²⁰ work per FRI fold round). Dropping it to 0 keeps the parameter
honest rather than decorative.

Costs and side effects

  • Prover commit/FFT/Merkle work roughly doubles (LDEs go from 2n to 4n) and
    each Merkle path gains one hash. This is the price of the proven regime.
  • The supported constraint degree rises from 3 to 5
    (2^log_blowup + 1), headroom the upcoming logup message-grouping change
    relies on.
  • The higher per-query soundness (0.678 vs 0.415 proven bits, 2 vs 1
    conjectured) makes queries cheaper per bit, opening room to later trade
    query count against grinding for smaller proofs.

Scope

Parameter definitions only: Tests/Aiur/Common.lean, Ix/Cli/ProveCmd.lean,
Ix/Cli/VerifyCmd.lean, and the Benchmarks/{Aiur,Blake3,IxVM,Sha256, Typecheck}.lean configs.

Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean intentionally
keep the old parameters: the Lean recursive verifier hardcodes
query_pow = 0 as a protocol assumption (Ix/MultiStark.lean) and is being
ported separately.

Move the Aiur STARK parameters from (log_blowup = 1, commit_pow = 20,
query_pow = 0) to (log_blowup = 2, commit_pow = 0, query_pow = 20),
targeting the PROVEN FRI soundness bound within the unique decoding
radius instead of the list-decoding-capacity conjecture.
Why: at rate rho = 2^-log_blowup, FRI's per-query soundness is only
proven up to the unique decoding radius delta = (1 - rho)/2, giving a
per-query error of 1 - delta = (1 + rho)/2. At log_blowup = 1 that is
3/4 per query — 0.415 bits — so 100 queries yield only ~41 bits proven.
At log_blowup = 2 the per-query error is 5/8 — 0.678 bits — so the same
100 queries yield ~68 bits, plus 20 bits of query grinding: ~88 bits of
proven security (and 200+ bits, capped by the ~2^-100 field terms, under
the capacity conjecture).
Query grinding (2^20 work immediately before query sampling) adds its
bits one-for-one to the query-phase error, which is the dominant term of
the union bound; it costs the honest prover a one-off ~1M hashes.
Commit grinding drops to 0: the commit-phase error terms (FRI folding
challenges, constraint folding, lookup collisions) are bounded by the
size of the degree-2 Goldilocks extension at roughly 2^-100 — orders of
magnitude below the ~2^-88 query phase — so grinding them buys no
measurable security and only slows honest proving.
The doubled blowup also raises the supported constraint degree from 3
to 5, which the upcoming logup message-grouping change relies on.
Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean keep their
old parameters: the Lean recursive verifier hardcodes query_pow = 0
(Ix/MultiStark.lean) and is ported separately.
@gabriel-barrett

Copy link
Copy Markdown
MemberAuthor

!benchmark

@arthurpaulino

Copy link
Copy Markdown
Member

!benchmark aiur-recursive

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur=prove · envs: InitStd · set: primary · shard: 0

aiur · InitStd · prove — main from: base run @ 387db15 (not on bencher)

constantprove-time (main)prove-time (PR)Δ%throughput (const/s) (main)throughput (const/s) (PR)Δ%peak-ram (main)peak-ram (PR)Δ%execute-time (main)execute-time (PR)Δ%verify-time (main)verify-time (PR)Δ%proof-size (main)proof-size (PR)Δ%fft-cost (main)fft-cost (PR)Δ%
Array.extract_append39.435 s48.544 s+23.1% (1.23× slower) ⚠️43.26035.140-18.8% (1.23× slower) ⚠️58.47 GiB96.66 GiB+65.3% (1.65× larger) ⚠️10.371 s10.384 s+0.1%173.5 ms258.9 ms+49.3% (1.49× slower) ⚠️26.22 MiB26.30 MiB+0.3%36.16B36.16B+0.0%
ByteArray.utf8DecodeChar?_utf8EncodeChar_append38.821 s48.388 s+24.6% (1.25× slower) ⚠️74.44059.730-19.8% (1.25× slower) ⚠️64.25 GiB102.38 GiB+59.4% (1.59× larger) ⚠️9.279 s9.176 s-1.1%169.0 ms184.3 ms+9.0% (1.09× slower) ⚠️26.30 MiB26.39 MiB+0.3%38.09B38.09B+0.0%
Char.ofOrdinal_le_of_le30.658 s38.552 s+25.7% (1.26× slower) ⚠️93.35074.240-20.5% (1.26× slower) ⚠️49.55 GiB80.19 GiB+61.8% (1.62× larger) ⚠️6.760 s6.724 s-0.5%170.4 ms230.7 ms+35.3% (1.35× slower) ⚠️26.24 MiB26.32 MiB+0.3%29.13B29.13B+0.0%
Vector.extract_append._proof_222.813 s27.991 s+22.7% (1.23× slower) ⚠️63.17051.480-18.5% (1.23× slower) ⚠️34.93 GiB53.23 GiB+52.4% (1.52× larger) ⚠️5.845 s5.792 s-0.9%169.1 ms175.8 ms+3.9% ⚠️25.89 MiB25.97 MiB+0.3%21.16B21.16B+0.0%
_private.Init.Data.Range.Polymorphic.SInt.0.Int64.instRxcHasSize_eq18.662 s23.858 s+27.8% (1.28× slower) ⚠️105.72082.700-21.8% (1.28× slower) ⚠️31.58 GiB50.26 GiB+59.1% (1.59× larger) ⚠️3.452 s3.470 s+0.5%174.1 ms166.3 ms-4.5% 🟢26.06 MiB26.14 MiB+0.3%15.70B15.70B+0.0%
String.split17.726 s22.275 s+25.7% (1.26× slower) ⚠️109.95087.500-20.4% (1.26× slower) ⚠️30.85 GiB48.22 GiB+56.3% (1.56× larger) ⚠️3.098 s3.167 s+2.2%190.0 ms170.0 ms-10.5% (1.12× faster) 🟢26.22 MiB26.30 MiB+0.3%14.21B14.21B+0.0%
List.mergeSort12.510 s15.487 s+23.8% (1.24× slower) ⚠️127.740103.180-19.2% (1.24× slower) ⚠️19.82 GiB31.80 GiB+60.5% (1.60× larger) ⚠️2.249 s2.279 s+1.4%186.0 ms171.6 ms-7.7% (1.08× faster) 🟢26.11 MiB26.19 MiB+0.3%10.45B10.45B+0.0%
Vector.append4.326 s5.187 s+19.9% (1.20× slower) ⚠️130.850109.120-16.6% (1.20× slower) ⚠️6.56 GiB8.36 GiB+27.3% (1.27× larger) ⚠️593.6 ms596.5 ms+0.5%167.4 ms168.7 ms+0.8%24.71 MiB24.78 MiB+0.3%2.21B2.21B+0.0%
Nat.gcd_comm3.586 s4.392 s+22.5% (1.22× slower) ⚠️115.72094.480-18.4% (1.22× slower) ⚠️5.12 GiB7.57 GiB+47.6% (1.48× larger) ⚠️472.9 ms472.7 ms-0.0%153.4 ms154.0 ms+0.4%24.32 MiB24.39 MiB+0.3%1.56B1.56B+0.0%
String.append2.740 s3.270 s+19.3% (1.19× slower) ⚠️128.810107.960-16.2% (1.19× slower) ⚠️6.11 GiB5.09 GiB-16.6% (1.20× smaller) 🟢357.4 ms353.4 ms-1.1%147.7 ms165.7 ms+12.2% (1.12× slower) ⚠️23.57 MiB23.64 MiB+0.3%868.67M868.67M+0.0%
Int.gcd2.268 s2.674 s+17.9% (1.18× slower) ⚠️100.95085.650-15.2% (1.18× slower) ⚠️4.79 GiB4.84 GiB+1.0%292.1 ms291.1 ms-0.3%147.6 ms151.3 ms+2.5%23.22 MiB23.29 MiB+0.3%539.07M539.07M+0.0%
Nat.sub_le_of_le_add2.137 s2.508 s+17.4% (1.17× slower) ⚠️88.93075.750-14.8% (1.17× slower) ⚠️4.88 GiB4.91 GiB+0.6%282.8 ms278.0 ms-1.7%148.5 ms153.3 ms+3.2% ⚠️23.70 MiB23.77 MiB+0.3%451.52M451.52M+0.0%
Nat.add_comm1.173 s1.416 s+20.7% (1.21× slower) ⚠️43.48036.010-17.2% (1.21× slower) ⚠️5.06 GiB3.91 GiB-22.7% (1.29× smaller) 🟢195.5 ms194.5 ms-0.5%151.2 ms136.9 ms-9.4% (1.10× faster) 🟢22.15 MiB22.21 MiB+0.3%48.90M48.90M+0.0%
Std.Tactic.BVDecide.BVExpr.bitblast.goCache_Inv_of_Inv._mutualOOMOOMn/aOOMOOMn/aOOMOOMn/a54.726 s55.464 s+1.3%OOMOOMn/aOOMOOMn/a205.13B205.13B+0.0%

14 constants · 13 with regressions · 5 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur-recursive · envs: InitStd · set: primary · shard: 0

aiur-recursive · InitStd — main from: base run @ 387db15 (not on bencher)

proofrecursive-prove-time (main)recursive-prove-time (PR)Δ%recursive-peak-ram (main)recursive-peak-ram (PR)Δ%recursive-proof-size (main)recursive-proof-size (PR)Δ%recursive-verify-time (main)recursive-verify-time (PR)Δ%recursive-execute-time (main)recursive-execute-time (PR)Δ%recursive-fft-cost (main)recursive-fft-cost (PR)Δ%prove-time (main)prove-time (PR)Δ%proof-size (main)proof-size (PR)Δ%verify-time (main)verify-time (PR)Δ%peak-ram (main)peak-ram (PR)Δ%
factorial-q100-b24.960 s4.867 s-1.9%14.60 GiB14.57 GiB-0.2%11.39 MiB11.39 MiB+0.0%75.8 ms73.8 ms-2.7%465.8 ms439.9 ms-5.6% (1.06× faster) 🟢3.94B3.81B-3.2% 🟢172.8 ms188.4 ms+9.0% (1.09× slower) ⚠️848.62 KiB848.62 KiB+0.0%6.6 ms6.8 ms+3.0%363.64 MiB364.89 MiB+0.3%
square-q100-b13.716 s3.781 s+1.8%9.69 GiB9.64 GiB-0.5%11.32 MiB11.32 MiB+0.0%75.6 ms74.0 ms-2.1%404.7 ms402.9 ms-0.4%3.38B3.28B-2.9%169.8 ms197.8 ms+16.5% (1.16× slower) ⚠️782.06 KiB782.06 KiB+0.0%6.0 ms5.6 ms-5.8% (1.06× faster) 🟢271.71 MiB272.91 MiB+0.4%

2 proofs · 2 with regressions · 2 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@gabriel-barrett
gabriel-barrett merged commit 3312c3f into mainJul 23, 2026
9 checks passed
@gabriel-barrett
gabriel-barrett deleted the sound-parameters branch July 23, 2026 23:41
Sign up for freeto 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.

2 participants

@gabriel-barrett@arthurpaulino
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

params: blowup 4 + 20-bit query grinding — proven soundness regime - #513

Merged
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters
Jul 23, 2026
Merged

params: blowup 4 + 20-bit query grinding — proven soundness regime#513
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters

Conversation

@gabriel-barrett

Copy link
Copy Markdown
Member

STARK parameters: blowup 4 + 20-bit query grinding — proven soundness regime

Moves the Aiur STARK parameters from

log_blowup = 1, num_queries = 100, commit_pow = 20, query_pow = 0

to

log_blowup = 2, num_queries = 100, commit_pow = 0, query_pow = 20

so that the security level is backed by the proven FRI soundness bound
within the unique decoding radius, instead of the list-decoding-capacity
conjecture.

Why

At rate ρ = 2^-log_blowup, FRI's per-query soundness is only proven up to
the unique decoding radius δ = (1 − ρ)/2, giving a per-query error of
1 − δ = (1 + ρ)/2:

per-query errorbits/query100 queries+ query powtotal proven
log_blowup = 1 (old)3/40.415~41 bits+0~41 bits
log_blowup = 2 (new)5/80.678~68 bits+20~88 bits

Under the usual capacity conjecture the same parameters give 200+ bits,
capped by the ~2⁻¹⁰⁰ field-size terms of the union bound — so the change
costs nothing in the conjectured regime and buys a defensible proven number.

Query grinding (0 → 20 bits). Grinding immediately before query sampling
adds its bits one-for-one to the query-phase error — the dominant term of the
union bound. Honest-prover cost: a one-off ~2²⁰ hashes (milliseconds).

Commit grinding (20 → 0 bits). The commit-phase error terms (FRI folding
challenges, constraint folding α, lookup collisions) are Schwartz–Zippel
bounds against the degree-2 Goldilocks extension, sitting around 2⁻¹⁰⁰ —
orders of magnitude below the ~2⁻⁸⁸ query phase in every regime, proven or
conjectured. Grinding them adds no measurable security; it only slowed honest
proving (2²⁰ work per FRI fold round). Dropping it to 0 keeps the parameter
honest rather than decorative.

Costs and side effects

  • Prover commit/FFT/Merkle work roughly doubles (LDEs go from 2n to 4n) and
    each Merkle path gains one hash. This is the price of the proven regime.
  • The supported constraint degree rises from 3 to 5
    (2^log_blowup + 1), headroom the upcoming logup message-grouping change
    relies on.
  • The higher per-query soundness (0.678 vs 0.415 proven bits, 2 vs 1
    conjectured) makes queries cheaper per bit, opening room to later trade
    query count against grinding for smaller proofs.

Scope

Parameter definitions only: Tests/Aiur/Common.lean, Ix/Cli/ProveCmd.lean,
Ix/Cli/VerifyCmd.lean, and the Benchmarks/{Aiur,Blake3,IxVM,Sha256, Typecheck}.lean configs.

Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean intentionally
keep the old parameters: the Lean recursive verifier hardcodes
query_pow = 0 as a protocol assumption (Ix/MultiStark.lean) and is being
ported separately.

Move the Aiur STARK parameters from (log_blowup = 1, commit_pow = 20,
query_pow = 0) to (log_blowup = 2, commit_pow = 0, query_pow = 20),
targeting the PROVEN FRI soundness bound within the unique decoding
radius instead of the list-decoding-capacity conjecture.
Why: at rate rho = 2^-log_blowup, FRI's per-query soundness is only
proven up to the unique decoding radius delta = (1 - rho)/2, giving a
per-query error of 1 - delta = (1 + rho)/2. At log_blowup = 1 that is
3/4 per query — 0.415 bits — so 100 queries yield only ~41 bits proven.
At log_blowup = 2 the per-query error is 5/8 — 0.678 bits — so the same
100 queries yield ~68 bits, plus 20 bits of query grinding: ~88 bits of
proven security (and 200+ bits, capped by the ~2^-100 field terms, under
the capacity conjecture).
Query grinding (2^20 work immediately before query sampling) adds its
bits one-for-one to the query-phase error, which is the dominant term of
the union bound; it costs the honest prover a one-off ~1M hashes.
Commit grinding drops to 0: the commit-phase error terms (FRI folding
challenges, constraint folding, lookup collisions) are bounded by the
size of the degree-2 Goldilocks extension at roughly 2^-100 — orders of
magnitude below the ~2^-88 query phase — so grinding them buys no
measurable security and only slows honest proving.
The doubled blowup also raises the supported constraint degree from 3
to 5, which the upcoming logup message-grouping change relies on.
Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean keep their
old parameters: the Lean recursive verifier hardcodes query_pow = 0
(Ix/MultiStark.lean) and is ported separately.
@gabriel-barrett

Copy link
Copy Markdown
MemberAuthor

!benchmark

@arthurpaulino

Copy link
Copy Markdown
Member

!benchmark aiur-recursive

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur=prove · envs: InitStd · set: primary · shard: 0

aiur · InitStd · prove — main from: base run @ 387db15 (not on bencher)

constantprove-time (main)prove-time (PR)Δ%throughput (const/s) (main)throughput (const/s) (PR)Δ%peak-ram (main)peak-ram (PR)Δ%execute-time (main)execute-time (PR)Δ%verify-time (main)verify-time (PR)Δ%proof-size (main)proof-size (PR)Δ%fft-cost (main)fft-cost (PR)Δ%
Array.extract_append39.435 s48.544 s+23.1% (1.23× slower) ⚠️43.26035.140-18.8% (1.23× slower) ⚠️58.47 GiB96.66 GiB+65.3% (1.65× larger) ⚠️10.371 s10.384 s+0.1%173.5 ms258.9 ms+49.3% (1.49× slower) ⚠️26.22 MiB26.30 MiB+0.3%36.16B36.16B+0.0%
ByteArray.utf8DecodeChar?_utf8EncodeChar_append38.821 s48.388 s+24.6% (1.25× slower) ⚠️74.44059.730-19.8% (1.25× slower) ⚠️64.25 GiB102.38 GiB+59.4% (1.59× larger) ⚠️9.279 s9.176 s-1.1%169.0 ms184.3 ms+9.0% (1.09× slower) ⚠️26.30 MiB26.39 MiB+0.3%38.09B38.09B+0.0%
Char.ofOrdinal_le_of_le30.658 s38.552 s+25.7% (1.26× slower) ⚠️93.35074.240-20.5% (1.26× slower) ⚠️49.55 GiB80.19 GiB+61.8% (1.62× larger) ⚠️6.760 s6.724 s-0.5%170.4 ms230.7 ms+35.3% (1.35× slower) ⚠️26.24 MiB26.32 MiB+0.3%29.13B29.13B+0.0%
Vector.extract_append._proof_222.813 s27.991 s+22.7% (1.23× slower) ⚠️63.17051.480-18.5% (1.23× slower) ⚠️34.93 GiB53.23 GiB+52.4% (1.52× larger) ⚠️5.845 s5.792 s-0.9%169.1 ms175.8 ms+3.9% ⚠️25.89 MiB25.97 MiB+0.3%21.16B21.16B+0.0%
_private.Init.Data.Range.Polymorphic.SInt.0.Int64.instRxcHasSize_eq18.662 s23.858 s+27.8% (1.28× slower) ⚠️105.72082.700-21.8% (1.28× slower) ⚠️31.58 GiB50.26 GiB+59.1% (1.59× larger) ⚠️3.452 s3.470 s+0.5%174.1 ms166.3 ms-4.5% 🟢26.06 MiB26.14 MiB+0.3%15.70B15.70B+0.0%
String.split17.726 s22.275 s+25.7% (1.26× slower) ⚠️109.95087.500-20.4% (1.26× slower) ⚠️30.85 GiB48.22 GiB+56.3% (1.56× larger) ⚠️3.098 s3.167 s+2.2%190.0 ms170.0 ms-10.5% (1.12× faster) 🟢26.22 MiB26.30 MiB+0.3%14.21B14.21B+0.0%
List.mergeSort12.510 s15.487 s+23.8% (1.24× slower) ⚠️127.740103.180-19.2% (1.24× slower) ⚠️19.82 GiB31.80 GiB+60.5% (1.60× larger) ⚠️2.249 s2.279 s+1.4%186.0 ms171.6 ms-7.7% (1.08× faster) 🟢26.11 MiB26.19 MiB+0.3%10.45B10.45B+0.0%
Vector.append4.326 s5.187 s+19.9% (1.20× slower) ⚠️130.850109.120-16.6% (1.20× slower) ⚠️6.56 GiB8.36 GiB+27.3% (1.27× larger) ⚠️593.6 ms596.5 ms+0.5%167.4 ms168.7 ms+0.8%24.71 MiB24.78 MiB+0.3%2.21B2.21B+0.0%
Nat.gcd_comm3.586 s4.392 s+22.5% (1.22× slower) ⚠️115.72094.480-18.4% (1.22× slower) ⚠️5.12 GiB7.57 GiB+47.6% (1.48× larger) ⚠️472.9 ms472.7 ms-0.0%153.4 ms154.0 ms+0.4%24.32 MiB24.39 MiB+0.3%1.56B1.56B+0.0%
String.append2.740 s3.270 s+19.3% (1.19× slower) ⚠️128.810107.960-16.2% (1.19× slower) ⚠️6.11 GiB5.09 GiB-16.6% (1.20× smaller) 🟢357.4 ms353.4 ms-1.1%147.7 ms165.7 ms+12.2% (1.12× slower) ⚠️23.57 MiB23.64 MiB+0.3%868.67M868.67M+0.0%
Int.gcd2.268 s2.674 s+17.9% (1.18× slower) ⚠️100.95085.650-15.2% (1.18× slower) ⚠️4.79 GiB4.84 GiB+1.0%292.1 ms291.1 ms-0.3%147.6 ms151.3 ms+2.5%23.22 MiB23.29 MiB+0.3%539.07M539.07M+0.0%
Nat.sub_le_of_le_add2.137 s2.508 s+17.4% (1.17× slower) ⚠️88.93075.750-14.8% (1.17× slower) ⚠️4.88 GiB4.91 GiB+0.6%282.8 ms278.0 ms-1.7%148.5 ms153.3 ms+3.2% ⚠️23.70 MiB23.77 MiB+0.3%451.52M451.52M+0.0%
Nat.add_comm1.173 s1.416 s+20.7% (1.21× slower) ⚠️43.48036.010-17.2% (1.21× slower) ⚠️5.06 GiB3.91 GiB-22.7% (1.29× smaller) 🟢195.5 ms194.5 ms-0.5%151.2 ms136.9 ms-9.4% (1.10× faster) 🟢22.15 MiB22.21 MiB+0.3%48.90M48.90M+0.0%
Std.Tactic.BVDecide.BVExpr.bitblast.goCache_Inv_of_Inv._mutualOOMOOMn/aOOMOOMn/aOOMOOMn/a54.726 s55.464 s+1.3%OOMOOMn/aOOMOOMn/a205.13B205.13B+0.0%

14 constants · 13 with regressions · 5 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur-recursive · envs: InitStd · set: primary · shard: 0

aiur-recursive · InitStd — main from: base run @ 387db15 (not on bencher)

proofrecursive-prove-time (main)recursive-prove-time (PR)Δ%recursive-peak-ram (main)recursive-peak-ram (PR)Δ%recursive-proof-size (main)recursive-proof-size (PR)Δ%recursive-verify-time (main)recursive-verify-time (PR)Δ%recursive-execute-time (main)recursive-execute-time (PR)Δ%recursive-fft-cost (main)recursive-fft-cost (PR)Δ%prove-time (main)prove-time (PR)Δ%proof-size (main)proof-size (PR)Δ%verify-time (main)verify-time (PR)Δ%peak-ram (main)peak-ram (PR)Δ%
factorial-q100-b24.960 s4.867 s-1.9%14.60 GiB14.57 GiB-0.2%11.39 MiB11.39 MiB+0.0%75.8 ms73.8 ms-2.7%465.8 ms439.9 ms-5.6% (1.06× faster) 🟢3.94B3.81B-3.2% 🟢172.8 ms188.4 ms+9.0% (1.09× slower) ⚠️848.62 KiB848.62 KiB+0.0%6.6 ms6.8 ms+3.0%363.64 MiB364.89 MiB+0.3%
square-q100-b13.716 s3.781 s+1.8%9.69 GiB9.64 GiB-0.5%11.32 MiB11.32 MiB+0.0%75.6 ms74.0 ms-2.1%404.7 ms402.9 ms-0.4%3.38B3.28B-2.9%169.8 ms197.8 ms+16.5% (1.16× slower) ⚠️782.06 KiB782.06 KiB+0.0%6.0 ms5.6 ms-5.8% (1.06× faster) 🟢271.71 MiB272.91 MiB+0.4%

2 proofs · 2 with regressions · 2 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@gabriel-barrett
gabriel-barrett merged commit 3312c3f into mainJul 23, 2026
9 checks passed
@gabriel-barrett
gabriel-barrett deleted the sound-parameters branch July 23, 2026 23:41
Sign up for freeto 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.

2 participants

@gabriel-barrett@arthurpaulino
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

params: blowup 4 + 20-bit query grinding — proven soundness regime - #513

Merged
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters
Jul 23, 2026
Merged

params: blowup 4 + 20-bit query grinding — proven soundness regime#513
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters

Conversation

@gabriel-barrett

Copy link
Copy Markdown
Member

STARK parameters: blowup 4 + 20-bit query grinding — proven soundness regime

Moves the Aiur STARK parameters from

log_blowup = 1, num_queries = 100, commit_pow = 20, query_pow = 0

to

log_blowup = 2, num_queries = 100, commit_pow = 0, query_pow = 20

so that the security level is backed by the proven FRI soundness bound
within the unique decoding radius, instead of the list-decoding-capacity
conjecture.

Why

At rate ρ = 2^-log_blowup, FRI's per-query soundness is only proven up to
the unique decoding radius δ = (1 − ρ)/2, giving a per-query error of
1 − δ = (1 + ρ)/2:

per-query errorbits/query100 queries+ query powtotal proven
log_blowup = 1 (old)3/40.415~41 bits+0~41 bits
log_blowup = 2 (new)5/80.678~68 bits+20~88 bits

Under the usual capacity conjecture the same parameters give 200+ bits,
capped by the ~2⁻¹⁰⁰ field-size terms of the union bound — so the change
costs nothing in the conjectured regime and buys a defensible proven number.

Query grinding (0 → 20 bits). Grinding immediately before query sampling
adds its bits one-for-one to the query-phase error — the dominant term of the
union bound. Honest-prover cost: a one-off ~2²⁰ hashes (milliseconds).

Commit grinding (20 → 0 bits). The commit-phase error terms (FRI folding
challenges, constraint folding α, lookup collisions) are Schwartz–Zippel
bounds against the degree-2 Goldilocks extension, sitting around 2⁻¹⁰⁰ —
orders of magnitude below the ~2⁻⁸⁸ query phase in every regime, proven or
conjectured. Grinding them adds no measurable security; it only slowed honest
proving (2²⁰ work per FRI fold round). Dropping it to 0 keeps the parameter
honest rather than decorative.

Costs and side effects

  • Prover commit/FFT/Merkle work roughly doubles (LDEs go from 2n to 4n) and
    each Merkle path gains one hash. This is the price of the proven regime.
  • The supported constraint degree rises from 3 to 5
    (2^log_blowup + 1), headroom the upcoming logup message-grouping change
    relies on.
  • The higher per-query soundness (0.678 vs 0.415 proven bits, 2 vs 1
    conjectured) makes queries cheaper per bit, opening room to later trade
    query count against grinding for smaller proofs.

Scope

Parameter definitions only: Tests/Aiur/Common.lean, Ix/Cli/ProveCmd.lean,
Ix/Cli/VerifyCmd.lean, and the Benchmarks/{Aiur,Blake3,IxVM,Sha256, Typecheck}.lean configs.

Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean intentionally
keep the old parameters: the Lean recursive verifier hardcodes
query_pow = 0 as a protocol assumption (Ix/MultiStark.lean) and is being
ported separately.

Move the Aiur STARK parameters from (log_blowup = 1, commit_pow = 20,
query_pow = 0) to (log_blowup = 2, commit_pow = 0, query_pow = 20),
targeting the PROVEN FRI soundness bound within the unique decoding
radius instead of the list-decoding-capacity conjecture.
Why: at rate rho = 2^-log_blowup, FRI's per-query soundness is only
proven up to the unique decoding radius delta = (1 - rho)/2, giving a
per-query error of 1 - delta = (1 + rho)/2. At log_blowup = 1 that is
3/4 per query — 0.415 bits — so 100 queries yield only ~41 bits proven.
At log_blowup = 2 the per-query error is 5/8 — 0.678 bits — so the same
100 queries yield ~68 bits, plus 20 bits of query grinding: ~88 bits of
proven security (and 200+ bits, capped by the ~2^-100 field terms, under
the capacity conjecture).
Query grinding (2^20 work immediately before query sampling) adds its
bits one-for-one to the query-phase error, which is the dominant term of
the union bound; it costs the honest prover a one-off ~1M hashes.
Commit grinding drops to 0: the commit-phase error terms (FRI folding
challenges, constraint folding, lookup collisions) are bounded by the
size of the degree-2 Goldilocks extension at roughly 2^-100 — orders of
magnitude below the ~2^-88 query phase — so grinding them buys no
measurable security and only slows honest proving.
The doubled blowup also raises the supported constraint degree from 3
to 5, which the upcoming logup message-grouping change relies on.
Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean keep their
old parameters: the Lean recursive verifier hardcodes query_pow = 0
(Ix/MultiStark.lean) and is ported separately.
@gabriel-barrett

Copy link
Copy Markdown
MemberAuthor

!benchmark

@arthurpaulino

Copy link
Copy Markdown
Member

!benchmark aiur-recursive

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur=prove · envs: InitStd · set: primary · shard: 0

aiur · InitStd · prove — main from: base run @ 387db15 (not on bencher)

constantprove-time (main)prove-time (PR)Δ%throughput (const/s) (main)throughput (const/s) (PR)Δ%peak-ram (main)peak-ram (PR)Δ%execute-time (main)execute-time (PR)Δ%verify-time (main)verify-time (PR)Δ%proof-size (main)proof-size (PR)Δ%fft-cost (main)fft-cost (PR)Δ%
Array.extract_append39.435 s48.544 s+23.1% (1.23× slower) ⚠️43.26035.140-18.8% (1.23× slower) ⚠️58.47 GiB96.66 GiB+65.3% (1.65× larger) ⚠️10.371 s10.384 s+0.1%173.5 ms258.9 ms+49.3% (1.49× slower) ⚠️26.22 MiB26.30 MiB+0.3%36.16B36.16B+0.0%
ByteArray.utf8DecodeChar?_utf8EncodeChar_append38.821 s48.388 s+24.6% (1.25× slower) ⚠️74.44059.730-19.8% (1.25× slower) ⚠️64.25 GiB102.38 GiB+59.4% (1.59× larger) ⚠️9.279 s9.176 s-1.1%169.0 ms184.3 ms+9.0% (1.09× slower) ⚠️26.30 MiB26.39 MiB+0.3%38.09B38.09B+0.0%
Char.ofOrdinal_le_of_le30.658 s38.552 s+25.7% (1.26× slower) ⚠️93.35074.240-20.5% (1.26× slower) ⚠️49.55 GiB80.19 GiB+61.8% (1.62× larger) ⚠️6.760 s6.724 s-0.5%170.4 ms230.7 ms+35.3% (1.35× slower) ⚠️26.24 MiB26.32 MiB+0.3%29.13B29.13B+0.0%
Vector.extract_append._proof_222.813 s27.991 s+22.7% (1.23× slower) ⚠️63.17051.480-18.5% (1.23× slower) ⚠️34.93 GiB53.23 GiB+52.4% (1.52× larger) ⚠️5.845 s5.792 s-0.9%169.1 ms175.8 ms+3.9% ⚠️25.89 MiB25.97 MiB+0.3%21.16B21.16B+0.0%
_private.Init.Data.Range.Polymorphic.SInt.0.Int64.instRxcHasSize_eq18.662 s23.858 s+27.8% (1.28× slower) ⚠️105.72082.700-21.8% (1.28× slower) ⚠️31.58 GiB50.26 GiB+59.1% (1.59× larger) ⚠️3.452 s3.470 s+0.5%174.1 ms166.3 ms-4.5% 🟢26.06 MiB26.14 MiB+0.3%15.70B15.70B+0.0%
String.split17.726 s22.275 s+25.7% (1.26× slower) ⚠️109.95087.500-20.4% (1.26× slower) ⚠️30.85 GiB48.22 GiB+56.3% (1.56× larger) ⚠️3.098 s3.167 s+2.2%190.0 ms170.0 ms-10.5% (1.12× faster) 🟢26.22 MiB26.30 MiB+0.3%14.21B14.21B+0.0%
List.mergeSort12.510 s15.487 s+23.8% (1.24× slower) ⚠️127.740103.180-19.2% (1.24× slower) ⚠️19.82 GiB31.80 GiB+60.5% (1.60× larger) ⚠️2.249 s2.279 s+1.4%186.0 ms171.6 ms-7.7% (1.08× faster) 🟢26.11 MiB26.19 MiB+0.3%10.45B10.45B+0.0%
Vector.append4.326 s5.187 s+19.9% (1.20× slower) ⚠️130.850109.120-16.6% (1.20× slower) ⚠️6.56 GiB8.36 GiB+27.3% (1.27× larger) ⚠️593.6 ms596.5 ms+0.5%167.4 ms168.7 ms+0.8%24.71 MiB24.78 MiB+0.3%2.21B2.21B+0.0%
Nat.gcd_comm3.586 s4.392 s+22.5% (1.22× slower) ⚠️115.72094.480-18.4% (1.22× slower) ⚠️5.12 GiB7.57 GiB+47.6% (1.48× larger) ⚠️472.9 ms472.7 ms-0.0%153.4 ms154.0 ms+0.4%24.32 MiB24.39 MiB+0.3%1.56B1.56B+0.0%
String.append2.740 s3.270 s+19.3% (1.19× slower) ⚠️128.810107.960-16.2% (1.19× slower) ⚠️6.11 GiB5.09 GiB-16.6% (1.20× smaller) 🟢357.4 ms353.4 ms-1.1%147.7 ms165.7 ms+12.2% (1.12× slower) ⚠️23.57 MiB23.64 MiB+0.3%868.67M868.67M+0.0%
Int.gcd2.268 s2.674 s+17.9% (1.18× slower) ⚠️100.95085.650-15.2% (1.18× slower) ⚠️4.79 GiB4.84 GiB+1.0%292.1 ms291.1 ms-0.3%147.6 ms151.3 ms+2.5%23.22 MiB23.29 MiB+0.3%539.07M539.07M+0.0%
Nat.sub_le_of_le_add2.137 s2.508 s+17.4% (1.17× slower) ⚠️88.93075.750-14.8% (1.17× slower) ⚠️4.88 GiB4.91 GiB+0.6%282.8 ms278.0 ms-1.7%148.5 ms153.3 ms+3.2% ⚠️23.70 MiB23.77 MiB+0.3%451.52M451.52M+0.0%
Nat.add_comm1.173 s1.416 s+20.7% (1.21× slower) ⚠️43.48036.010-17.2% (1.21× slower) ⚠️5.06 GiB3.91 GiB-22.7% (1.29× smaller) 🟢195.5 ms194.5 ms-0.5%151.2 ms136.9 ms-9.4% (1.10× faster) 🟢22.15 MiB22.21 MiB+0.3%48.90M48.90M+0.0%
Std.Tactic.BVDecide.BVExpr.bitblast.goCache_Inv_of_Inv._mutualOOMOOMn/aOOMOOMn/aOOMOOMn/a54.726 s55.464 s+1.3%OOMOOMn/aOOMOOMn/a205.13B205.13B+0.0%

14 constants · 13 with regressions · 5 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur-recursive · envs: InitStd · set: primary · shard: 0

aiur-recursive · InitStd — main from: base run @ 387db15 (not on bencher)

proofrecursive-prove-time (main)recursive-prove-time (PR)Δ%recursive-peak-ram (main)recursive-peak-ram (PR)Δ%recursive-proof-size (main)recursive-proof-size (PR)Δ%recursive-verify-time (main)recursive-verify-time (PR)Δ%recursive-execute-time (main)recursive-execute-time (PR)Δ%recursive-fft-cost (main)recursive-fft-cost (PR)Δ%prove-time (main)prove-time (PR)Δ%proof-size (main)proof-size (PR)Δ%verify-time (main)verify-time (PR)Δ%peak-ram (main)peak-ram (PR)Δ%
factorial-q100-b24.960 s4.867 s-1.9%14.60 GiB14.57 GiB-0.2%11.39 MiB11.39 MiB+0.0%75.8 ms73.8 ms-2.7%465.8 ms439.9 ms-5.6% (1.06× faster) 🟢3.94B3.81B-3.2% 🟢172.8 ms188.4 ms+9.0% (1.09× slower) ⚠️848.62 KiB848.62 KiB+0.0%6.6 ms6.8 ms+3.0%363.64 MiB364.89 MiB+0.3%
square-q100-b13.716 s3.781 s+1.8%9.69 GiB9.64 GiB-0.5%11.32 MiB11.32 MiB+0.0%75.6 ms74.0 ms-2.1%404.7 ms402.9 ms-0.4%3.38B3.28B-2.9%169.8 ms197.8 ms+16.5% (1.16× slower) ⚠️782.06 KiB782.06 KiB+0.0%6.0 ms5.6 ms-5.8% (1.06× faster) 🟢271.71 MiB272.91 MiB+0.4%

2 proofs · 2 with regressions · 2 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@gabriel-barrett
gabriel-barrett merged commit 3312c3f into mainJul 23, 2026
9 checks passed
@gabriel-barrett
gabriel-barrett deleted the sound-parameters branch July 23, 2026 23:41
Sign up for freeto 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.

2 participants

@gabriel-barrett@arthurpaulino
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

params: blowup 4 + 20-bit query grinding — proven soundness regime - #513

Merged
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters
Jul 23, 2026
Merged

params: blowup 4 + 20-bit query grinding — proven soundness regime#513
gabriel-barrett merged 1 commit into
mainfrom
sound-parameters

Conversation

@gabriel-barrett

Copy link
Copy Markdown
Member

STARK parameters: blowup 4 + 20-bit query grinding — proven soundness regime

Moves the Aiur STARK parameters from

log_blowup = 1, num_queries = 100, commit_pow = 20, query_pow = 0

to

log_blowup = 2, num_queries = 100, commit_pow = 0, query_pow = 20

so that the security level is backed by the proven FRI soundness bound
within the unique decoding radius, instead of the list-decoding-capacity
conjecture.

Why

At rate ρ = 2^-log_blowup, FRI's per-query soundness is only proven up to
the unique decoding radius δ = (1 − ρ)/2, giving a per-query error of
1 − δ = (1 + ρ)/2:

per-query errorbits/query100 queries+ query powtotal proven
log_blowup = 1 (old)3/40.415~41 bits+0~41 bits
log_blowup = 2 (new)5/80.678~68 bits+20~88 bits

Under the usual capacity conjecture the same parameters give 200+ bits,
capped by the ~2⁻¹⁰⁰ field-size terms of the union bound — so the change
costs nothing in the conjectured regime and buys a defensible proven number.

Query grinding (0 → 20 bits). Grinding immediately before query sampling
adds its bits one-for-one to the query-phase error — the dominant term of the
union bound. Honest-prover cost: a one-off ~2²⁰ hashes (milliseconds).

Commit grinding (20 → 0 bits). The commit-phase error terms (FRI folding
challenges, constraint folding α, lookup collisions) are Schwartz–Zippel
bounds against the degree-2 Goldilocks extension, sitting around 2⁻¹⁰⁰ —
orders of magnitude below the ~2⁻⁸⁸ query phase in every regime, proven or
conjectured. Grinding them adds no measurable security; it only slowed honest
proving (2²⁰ work per FRI fold round). Dropping it to 0 keeps the parameter
honest rather than decorative.

Costs and side effects

  • Prover commit/FFT/Merkle work roughly doubles (LDEs go from 2n to 4n) and
    each Merkle path gains one hash. This is the price of the proven regime.
  • The supported constraint degree rises from 3 to 5
    (2^log_blowup + 1), headroom the upcoming logup message-grouping change
    relies on.
  • The higher per-query soundness (0.678 vs 0.415 proven bits, 2 vs 1
    conjectured) makes queries cheaper per bit, opening room to later trade
    query count against grinding for smaller proofs.

Scope

Parameter definitions only: Tests/Aiur/Common.lean, Ix/Cli/ProveCmd.lean,
Ix/Cli/VerifyCmd.lean, and the Benchmarks/{Aiur,Blake3,IxVM,Sha256, Typecheck}.lean configs.

Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean intentionally
keep the old parameters: the Lean recursive verifier hardcodes
query_pow = 0 as a protocol assumption (Ix/MultiStark.lean) and is being
ported separately.

Move the Aiur STARK parameters from (log_blowup = 1, commit_pow = 20,
query_pow = 0) to (log_blowup = 2, commit_pow = 0, query_pow = 20),
targeting the PROVEN FRI soundness bound within the unique decoding
radius instead of the list-decoding-capacity conjecture.
Why: at rate rho = 2^-log_blowup, FRI's per-query soundness is only
proven up to the unique decoding radius delta = (1 - rho)/2, giving a
per-query error of 1 - delta = (1 + rho)/2. At log_blowup = 1 that is
3/4 per query — 0.415 bits — so 100 queries yield only ~41 bits proven.
At log_blowup = 2 the per-query error is 5/8 — 0.678 bits — so the same
100 queries yield ~68 bits, plus 20 bits of query grinding: ~88 bits of
proven security (and 200+ bits, capped by the ~2^-100 field terms, under
the capacity conjecture).
Query grinding (2^20 work immediately before query sampling) adds its
bits one-for-one to the query-phase error, which is the dominant term of
the union bound; it costs the honest prover a one-off ~1M hashes.
Commit grinding drops to 0: the commit-phase error terms (FRI folding
challenges, constraint folding, lookup collisions) are bounded by the
size of the degree-2 Goldilocks extension at roughly 2^-100 — orders of
magnitude below the ~2^-88 query phase — so grinding them buys no
measurable security and only slows honest proving.
The doubled blowup also raises the supported constraint degree from 3
to 5, which the upcoming logup message-grouping change relies on.
Benchmarks/RecursiveVerifier.lean and Tests/MultiStark.lean keep their
old parameters: the Lean recursive verifier hardcodes query_pow = 0
(Ix/MultiStark.lean) and is ported separately.
@gabriel-barrett

Copy link
Copy Markdown
MemberAuthor

!benchmark

@arthurpaulino

Copy link
Copy Markdown
Member

!benchmark aiur-recursive

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur=prove · envs: InitStd · set: primary · shard: 0

aiur · InitStd · prove — main from: base run @ 387db15 (not on bencher)

constantprove-time (main)prove-time (PR)Δ%throughput (const/s) (main)throughput (const/s) (PR)Δ%peak-ram (main)peak-ram (PR)Δ%execute-time (main)execute-time (PR)Δ%verify-time (main)verify-time (PR)Δ%proof-size (main)proof-size (PR)Δ%fft-cost (main)fft-cost (PR)Δ%
Array.extract_append39.435 s48.544 s+23.1% (1.23× slower) ⚠️43.26035.140-18.8% (1.23× slower) ⚠️58.47 GiB96.66 GiB+65.3% (1.65× larger) ⚠️10.371 s10.384 s+0.1%173.5 ms258.9 ms+49.3% (1.49× slower) ⚠️26.22 MiB26.30 MiB+0.3%36.16B36.16B+0.0%
ByteArray.utf8DecodeChar?_utf8EncodeChar_append38.821 s48.388 s+24.6% (1.25× slower) ⚠️74.44059.730-19.8% (1.25× slower) ⚠️64.25 GiB102.38 GiB+59.4% (1.59× larger) ⚠️9.279 s9.176 s-1.1%169.0 ms184.3 ms+9.0% (1.09× slower) ⚠️26.30 MiB26.39 MiB+0.3%38.09B38.09B+0.0%
Char.ofOrdinal_le_of_le30.658 s38.552 s+25.7% (1.26× slower) ⚠️93.35074.240-20.5% (1.26× slower) ⚠️49.55 GiB80.19 GiB+61.8% (1.62× larger) ⚠️6.760 s6.724 s-0.5%170.4 ms230.7 ms+35.3% (1.35× slower) ⚠️26.24 MiB26.32 MiB+0.3%29.13B29.13B+0.0%
Vector.extract_append._proof_222.813 s27.991 s+22.7% (1.23× slower) ⚠️63.17051.480-18.5% (1.23× slower) ⚠️34.93 GiB53.23 GiB+52.4% (1.52× larger) ⚠️5.845 s5.792 s-0.9%169.1 ms175.8 ms+3.9% ⚠️25.89 MiB25.97 MiB+0.3%21.16B21.16B+0.0%
_private.Init.Data.Range.Polymorphic.SInt.0.Int64.instRxcHasSize_eq18.662 s23.858 s+27.8% (1.28× slower) ⚠️105.72082.700-21.8% (1.28× slower) ⚠️31.58 GiB50.26 GiB+59.1% (1.59× larger) ⚠️3.452 s3.470 s+0.5%174.1 ms166.3 ms-4.5% 🟢26.06 MiB26.14 MiB+0.3%15.70B15.70B+0.0%
String.split17.726 s22.275 s+25.7% (1.26× slower) ⚠️109.95087.500-20.4% (1.26× slower) ⚠️30.85 GiB48.22 GiB+56.3% (1.56× larger) ⚠️3.098 s3.167 s+2.2%190.0 ms170.0 ms-10.5% (1.12× faster) 🟢26.22 MiB26.30 MiB+0.3%14.21B14.21B+0.0%
List.mergeSort12.510 s15.487 s+23.8% (1.24× slower) ⚠️127.740103.180-19.2% (1.24× slower) ⚠️19.82 GiB31.80 GiB+60.5% (1.60× larger) ⚠️2.249 s2.279 s+1.4%186.0 ms171.6 ms-7.7% (1.08× faster) 🟢26.11 MiB26.19 MiB+0.3%10.45B10.45B+0.0%
Vector.append4.326 s5.187 s+19.9% (1.20× slower) ⚠️130.850109.120-16.6% (1.20× slower) ⚠️6.56 GiB8.36 GiB+27.3% (1.27× larger) ⚠️593.6 ms596.5 ms+0.5%167.4 ms168.7 ms+0.8%24.71 MiB24.78 MiB+0.3%2.21B2.21B+0.0%
Nat.gcd_comm3.586 s4.392 s+22.5% (1.22× slower) ⚠️115.72094.480-18.4% (1.22× slower) ⚠️5.12 GiB7.57 GiB+47.6% (1.48× larger) ⚠️472.9 ms472.7 ms-0.0%153.4 ms154.0 ms+0.4%24.32 MiB24.39 MiB+0.3%1.56B1.56B+0.0%
String.append2.740 s3.270 s+19.3% (1.19× slower) ⚠️128.810107.960-16.2% (1.19× slower) ⚠️6.11 GiB5.09 GiB-16.6% (1.20× smaller) 🟢357.4 ms353.4 ms-1.1%147.7 ms165.7 ms+12.2% (1.12× slower) ⚠️23.57 MiB23.64 MiB+0.3%868.67M868.67M+0.0%
Int.gcd2.268 s2.674 s+17.9% (1.18× slower) ⚠️100.95085.650-15.2% (1.18× slower) ⚠️4.79 GiB4.84 GiB+1.0%292.1 ms291.1 ms-0.3%147.6 ms151.3 ms+2.5%23.22 MiB23.29 MiB+0.3%539.07M539.07M+0.0%
Nat.sub_le_of_le_add2.137 s2.508 s+17.4% (1.17× slower) ⚠️88.93075.750-14.8% (1.17× slower) ⚠️4.88 GiB4.91 GiB+0.6%282.8 ms278.0 ms-1.7%148.5 ms153.3 ms+3.2% ⚠️23.70 MiB23.77 MiB+0.3%451.52M451.52M+0.0%
Nat.add_comm1.173 s1.416 s+20.7% (1.21× slower) ⚠️43.48036.010-17.2% (1.21× slower) ⚠️5.06 GiB3.91 GiB-22.7% (1.29× smaller) 🟢195.5 ms194.5 ms-0.5%151.2 ms136.9 ms-9.4% (1.10× faster) 🟢22.15 MiB22.21 MiB+0.3%48.90M48.90M+0.0%
Std.Tactic.BVDecide.BVExpr.bitblast.goCache_Inv_of_Inv._mutualOOMOOMn/aOOMOOMn/aOOMOOMn/a54.726 s55.464 s+1.3%OOMOOMn/aOOMOOMn/a205.13B205.13B+0.0%

14 constants · 13 with regressions · 5 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@argument-ci-bot

argument-ci-botBot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

!benchmark — main vs 5c87056

backends: aiur-recursive · envs: InitStd · set: primary · shard: 0

aiur-recursive · InitStd — main from: base run @ 387db15 (not on bencher)

proofrecursive-prove-time (main)recursive-prove-time (PR)Δ%recursive-peak-ram (main)recursive-peak-ram (PR)Δ%recursive-proof-size (main)recursive-proof-size (PR)Δ%recursive-verify-time (main)recursive-verify-time (PR)Δ%recursive-execute-time (main)recursive-execute-time (PR)Δ%recursive-fft-cost (main)recursive-fft-cost (PR)Δ%prove-time (main)prove-time (PR)Δ%proof-size (main)proof-size (PR)Δ%verify-time (main)verify-time (PR)Δ%peak-ram (main)peak-ram (PR)Δ%
factorial-q100-b24.960 s4.867 s-1.9%14.60 GiB14.57 GiB-0.2%11.39 MiB11.39 MiB+0.0%75.8 ms73.8 ms-2.7%465.8 ms439.9 ms-5.6% (1.06× faster) 🟢3.94B3.81B-3.2% 🟢172.8 ms188.4 ms+9.0% (1.09× slower) ⚠️848.62 KiB848.62 KiB+0.0%6.6 ms6.8 ms+3.0%363.64 MiB364.89 MiB+0.3%
square-q100-b13.716 s3.781 s+1.8%9.69 GiB9.64 GiB-0.5%11.32 MiB11.32 MiB+0.0%75.6 ms74.0 ms-2.1%404.7 ms402.9 ms-0.4%3.38B3.28B-2.9%169.8 ms197.8 ms+16.5% (1.16× slower) ⚠️782.06 KiB782.06 KiB+0.0%6.0 ms5.6 ms-5.8% (1.06× faster) 🟢271.71 MiB272.91 MiB+0.4%

2 proofs · 2 with regressions · 2 with improvements (|Δ| > 3.0% on any metric).

Workflow logs

@gabriel-barrett
gabriel-barrett merged commit 3312c3f into mainJul 23, 2026
9 checks passed
@gabriel-barrett
gabriel-barrett deleted the sound-parameters branch July 23, 2026 23:41
Sign up for freeto 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.

2 participants

@gabriel-barrett@arthurpaulino