Skip to content

Record the edge ratio against p/6400 (no new κ) - #4926

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
jwr404:research/crt-reservoir-edge-allowance
Oct 23, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
jwr404:research/crt-reservoir-edge-allowance

Conversation

@jwr404

@jwr404 jwr404 commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Result

On the edge layout p = 2^{24} - 2 = 16777214, ell = 24, r_max = 4, the envelope ratio is exactly 12. Then 12 · 6400 = 76800 is strictly below p, so 12 < p/6400. The quotient is 218 with remainder 34814, and p/6400 - 12 = 2609 + 2814/6400.

No new κ. The selected exponent stays 60403/20000000. C_E is not evaluated.

This answers the open question of PR #4925. The verifier rebuilds the layout from the constructor on main and does not replay that predecessor.

Test plan

python3.12 -B scripts/research_package.py --package research/crt-reservoir-edge-allowance

Expected token: PASS_CRT_RESERVOIR_EDGE_ALLOWANCE threshold=76800 quotient=218 remainder=34814.

On p=2^{24}-2, ell=24, r_max=4 the envelope ratio is 12, and
12*6400=76800 is strictly below 16777214. The quotient is 218
with remainder 34814. No new kappa.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Mister-Meeseeks
Mister-Meeseeks merged commit aa1018d into CrocSwap:main Oct 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants