Skip to content

Remove unnecessary constraints in the offline memory checking - #530

Open
benjaminwilson wants to merge 5 commits into
mainfrom
ram-improvement
Open

benjaminwilson wants to merge 5 commits into
mainfrom
ram-improvement

Conversation

@benjaminwilson

Copy link
Copy Markdown
Collaborator

This PR removes some redundant constraints from the offline memory checking. Specifically, we didn't need to check the read timestamps that arise during audit(), since they must match an earlier write for the multiset check to pass, and the write timestamps are hard-coded to be 0 .. block_operations.len() - 1).

Here is a Lean proof that the RAM is honest precisely when the updated constraints are satisfied.

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-provekit-org Ready Ready Preview Nov 25, 2026 11:54pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

CSP benchmarks

Metric Value
Workflow status [PASS] success
Commit a3a85afaaef6
Run #45724796543
Circuits benchmarked 21
Iterations averaged per circuit 3

Prover time, peak RSS, peak heap, and verifier time are arithmetic means across the iterations. Peak heap comes from the largest peak memory entry in provekit-cli prove's tracing output; peak RSS is reported by /usr/bin/time -v (max-resident-set-size).

No baseline available yet — deltas will appear once this workflow has produced at least one successful main run.

Results
Circuit Constraints Witnesses Prover time Peak RSS Peak heap Verifier time Proof size PKP size
ecdsa_p256 143,321 258,215 1.42 s 270 MB 232 MB 110 ms 447 KB 831 KB
keccak_1024 788,814 1,490,812 4.00 s 1.05 GB 1.05 GB 480 ms 493 KB 6.01 MB
keccak_128 157,522 304,529 983 ms 281 MB 248 MB 123 ms 452 KB 1.24 MB
keccak_2048 1,507,374 2,840,532 7.76 s 1.99 GB 2.07 GB 907 ms 547 KB 12.15 MB
keccak_256 247,782 474,010 1.17 s 333 MB 304 MB 170 ms 440 KB 1.89 MB
keccak_512 428,126 812,944 2.09 s 585 MB 558 MB 270 ms 472 KB 3.25 MB
poseidon2_12 479 563 43 ms 15.18 MB 4.17 MB 10 ms 227 KB 437 KB
poseidon2_16 556 719 43 ms 15.84 MB 4.33 MB 10 ms 224 KB 530 KB
poseidon2_2 231 278 40 ms 14.44 MB 3.44 MB 10 ms 226 KB 108 KB
poseidon2_4 529 535 40 ms 14.73 MB 3.63 MB 10 ms 224 KB 31.93 KB
poseidon2_8 363 423 40 ms 15.08 MB 4.08 MB 10 ms 225 KB 365 KB
poseidon_12 504 524 40 ms 15.45 MB 4.27 MB 10 ms 226 KB 569 KB
poseidon_16 609 633 50 ms 16.47 MB 4.93 MB 20 ms 226 KB 717 KB
poseidon_2 240 249 33 ms 14.29 MB 3.40 MB 10 ms 227 KB 59.38 KB
poseidon_4 297 309 40 ms 15.24 MB 4.02 MB 10 ms 224 KB 333 KB
poseidon_8 402 418 40 ms 15.44 MB 4.15 MB 10 ms 228 KB 448 KB
sha256_1024 196,881 339,689 1.08 s 327 MB 286 MB 180 ms 453 KB 1.88 MB
sha256_128 46,339 80,899 270 ms 86.25 MB 67.81 MB 50 ms 390 KB 500 KB
sha256_2048 345,340 612,649 2.09 s 568 MB 535 MB 327 ms 477 KB 3.05 MB
sha256_256 67,845 117,869 453 ms 142 MB 120 MB 70 ms 403 KB 695 KB
sha256_512 110,857 191,809 583 ms 176 MB 153 MB 103 ms 388 KB 1.08 MB

This branch was successfully deployed

1 active deployment
Preview — e18ad176 Deployed Nov 25, 2026 by vercel[bot]
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.

1 participant