Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2146 commits
Select commit Hold shift + click to select a range
8a43349
test(lfm): let the permit tests survive a loaded host and one another…
MauroToscano Nov 3, 2026
ba81df6
test(block): one lock for the tests that hold tables as records and c…
MauroToscano Nov 3, 2026
374d400
test(tables): keep the ECREC forgery switch away from the tests that …
MauroToscano Nov 3, 2026
be24595
test(stream): the hand-on timing tests run on a pool of their own
MauroToscano Nov 3, 2026
e6a80bb
test(math-cuda): the device-fallback census counts columns.rs's four …
MauroToscano Nov 3, 2026
6cbd605
math-cuda: drop the fused DEEP kernel the hoisted one replaced
MauroToscano Nov 6, 2026
1618c3c
math-cuda: give the Poseidon1 STARK kernels the lean permutation, dro…
MauroToscano Nov 6, 2026
1a6b12c
math-cuda: drop the WHIR encoding's three environment knobs, keep the…
MauroToscano Nov 6, 2026
04d1542
multilinear: drop the zerocheck device tail's environment knob
MauroToscano Nov 6, 2026
f940451
lfm: drop the first-prove warm-up's environment knob
MauroToscano Nov 6, 2026
1a6c6fa
block_whir: drop the card early setup's environment knob
MauroToscano Nov 6, 2026
b31c9a8
block_whir: drop the card fill's per-family lists
MauroToscano Nov 6, 2026
938061b
block_whir: drop the all-tables drop and the never-hand-off rollback …
MauroToscano Nov 6, 2026
4890c37
block_whir: drop five finish and walk rollback knobs
MauroToscano Nov 6, 2026
bed6195
perf(math-cuda): page-locked arenas for the buffers a group's upload …
MauroToscano Nov 2, 2026
9711fa2
perf(stark,multilinear): write packed tables into page-locked memory …
MauroToscano Nov 2, 2026
1472d00
perf(prover): report the page-locked arenas at phase A's end; a card …
MauroToscano Nov 2, 2026
841a66f
perf: a page-locked pool locked once before the prove, for phase A's …
MauroToscano Nov 6, 2026
3e1c872
perf(prover): say what the page-locked pool served after every block …
MauroToscano Nov 6, 2026
701f427
perf: memory decisions count the page-locked pool as the heap it repl…
MauroToscano Nov 6, 2026
9272fa6
perf: the pool's free bytes, not only its never-handed-out ones, come…
MauroToscano Nov 6, 2026
a7a26ff
perf: every host-memory reading nets the pool's free part, until the …
MauroToscano Nov 6, 2026
6e34e9f
perf: Auto also arms on what the host really holds when the page-lock…
MauroToscano Nov 7, 2026
1212dee
perf: the page-locked pool's held bytes count at what was asked of them
MauroToscano Nov 7, 2026
f7b6d58
executor: one semantics over a guest-memory trait
MauroToscano Nov 11, 2026
e8833f5
executor: a fast engine beside the reference, behind LAMBDA_VM_EXEC_E…
MauroToscano Nov 11, 2026
72d7d64
executor: fast engine tests reach chunk and page edges inside the hig…
MauroToscano Nov 11, 2026
2db595a
executor: every guest program and ethrex fixture on both engines
MauroToscano Nov 11, 2026
7104b59
executor: a sampled shadow check of fast-engine windows against the r…
MauroToscano Nov 11, 2026
3580d33
block prover: the executor thread runs the engine LAMBDA_VM_EXEC_ENGI…
MauroToscano Nov 11, 2026
4dfc129
block prover: optionally take window log buffers back (LAMBDA_VM_EXEC…
MauroToscano Nov 11, 2026
a961b4f
executor: engines_time, the executor alone on either engine as the bl…
MauroToscano Nov 11, 2026
1094fd5
executor: the engine wrapper boxes both engines; shadow sampling by i…
MauroToscano Nov 11, 2026
76eb2cf
lockfiles: the executor's unix-only libc in the detached workspaces t…
MauroToscano Nov 11, 2026
14c94a0
executor: the fast engine writes its records through one sink
MauroToscano Nov 11, 2026
2a6bd29
executor: history mode, the walk's access history written by the fast…
MauroToscano Nov 11, 2026
ed78d15
prover: record mode, windows walked from the executor's history
MauroToscano Nov 11, 2026
5f6f924
block prover: record mode behind LAMBDA_VM_EXEC_HISTORY (off by default)
MauroToscano Nov 11, 2026
19ec78e
prover: the overlay's timestamp test by is_multiple_of (clippy)
MauroToscano Nov 11, 2026
b7486f0
record mode: an independent history check and the registers' history
MauroToscano Nov 11, 2026
7e1418b
executor: rustfmt of the history imports
MauroToscano Nov 11, 2026
30d98f0
executor and block prover: pre-faulted window buffers (LAMBDA_VM_EXEC…
MauroToscano Nov 11, 2026
3da7c57
prover: record-mode tables test also runs each program in one window
MauroToscano Nov 11, 2026
fe2ccca
executor: engines_time runs history mode and pre-faulted buffers (pre…
MauroToscano Nov 11, 2026
8b1ccc5
history mode: a mixed load or store writes only its eight old timestamps
MauroToscano Nov 11, 2026
9eada98
history mode: ECALL bytes and access stamps by the range
MauroToscano Nov 11, 2026
ddd043c
history mode: the register stamps inline, an ECALL's own out of line
MauroToscano Nov 11, 2026
55091b4
history mode: the register cells' copy before an ECALL by then_some (…
MauroToscano Nov 11, 2026
5b1e60e
history mode: copy the register cells only for an ECALL, by an explic…
MauroToscano Nov 11, 2026
bbf10bb
history mode: a 16-byte record a cycle, a 24-byte one a load or store
MauroToscano Nov 11, 2026
14450c3
walk: ECREC witnesses off the walk's path (LAMBDA_VM_ECREC_DEFER=1, o…
MauroToscano Nov 12, 2026
17ef40c
walk: box a deferred ECREC call's finished state (clippy large_enum_v…
MauroToscano Nov 12, 2026
611cded
history tests: wrap the register tamper (x5 may hold u64::MAX; overfl…
MauroToscano Nov 12, 2026
2a814aa
walk: route and count where the row is made (LAMBDA_VM_WALK_COUNT=1, …
MauroToscano Nov 12, 2026
a4f792c
walk: count where made without routing (LAMBDA_VM_WALK_COUNT=2): the …
MauroToscano Nov 12, 2026
e93623f
count-made tests: allow the build helper's eight arguments (clippy)
MauroToscano Nov 12, 2026
10aa264
walk counts: add the walkers' counts only in the mode, and say so (BL…
MauroToscano Nov 12, 2026
5ed10e5
walk: build a deferred ECREC witness serially on a pool of its own
MauroToscano Nov 12, 2026
ddbf757
block finish: LT's memory comparisons as rows of merged neighbours, b…
MauroToscano Nov 12, 2026
75cfb4f
tests: LT's merged rows, their counts, and what a merged build changes
MauroToscano Nov 12, 2026
568c158
trace builder: a memory access's LT comparisons as (old timestamp, ti…
MauroToscano Nov 12, 2026
9ddf35a
tests: the ECREC deferral and the count-where-made rows stack on LT's…
MauroToscano Nov 12, 2026
ad02d25
switch on by default: ECREC witnesses off the walk, rows counted wher…
MauroToscano Nov 12, 2026
0b6a374
docs: LT's merged rows are the block prove's default; a builder's def…
MauroToscano Nov 12, 2026
583e34d
tests: the hand-out's count thread may get no chunk when the walkers …
MauroToscano Nov 12, 2026
8692b6c
card rows: a group's copies before its kernels, and LOAD and STORE de…
MauroToscano Nov 12, 2026
f5e2f46
card rows: keep CPU logs only within a block's prove, and only for th…
MauroToscano Nov 12, 2026
b6ecb80
card rows: the upload-times instrument counts the new upload's kernels
MauroToscano Nov 12, 2026
be4d35d
card rows: a cache hit needs the logs' full identity, and an entry pi…
MauroToscano Nov 12, 2026
16e79e8
card rows: the cycle mutant runs on groups that derive; order takes n…
MauroToscano Nov 12, 2026
b2be171
card rows: a group's copies before its kernels by default (LAMBDA_VM_…
MauroToscano Nov 12, 2026
7626329
card rows: comments in plain terms
MauroToscano Nov 12, 2026
a2f761a
block prove: record mode on the fast engine by default
MauroToscano Nov 12, 2026
6ac205e
card rows: the cycle mutant runs on the real block's groups, where bo…
MauroToscano Nov 12, 2026
30faf63
record mode: its last cycle is the CPU rows' last row, pinned at the …
MauroToscano Nov 12, 2026
fef7fa4
walk: keep no CPU list where the card fills CPU from the logs (LAMBDA…
MauroToscano Nov 12, 2026
fad731c
walk: say when the walkers kept no CPU list (BLOCK CPU LIST)
MauroToscano Nov 12, 2026
5599bd4
tests: walking without the CPU list in record mode builds the whole-r…
MauroToscano Nov 12, 2026
17d56e9
tests: the record-mode arm's recheck by is_multiple_of (clippy)
MauroToscano Nov 12, 2026
883dff6
switch on by default: the walkers keep no CPU list where the card fil…
MauroToscano Nov 12, 2026
45e6396
block prove: KECCAK_RND's tables can be handed on first (off by default)
MauroToscano Nov 12, 2026
c5a2016
switch on by default: KECCAK_RND's tables handed on first
MauroToscano Nov 13, 2026
a834010
tests: the waves and packed-finish identity test keeps the rest in AI…
MauroToscano Nov 13, 2026
a22fe94
lfm: prove an LFM program with the block's WHIR prover (W-LFM), at bl…
MauroToscano Nov 12, 2026
78c97c4
lfm: the block's compression step C1, behind LAMBDA_VM_BLOCK_COMPRESS…
MauroToscano Nov 12, 2026
515e315
lfm: C1's verifier commits its prepared stacks on the host
MauroToscano Nov 12, 2026
d449e30
lfm: W-LFM can bind a program's instruction columns by evaluation (Wl…
MauroToscano Nov 13, 2026
03db744
lfm: C1 can bind its instruction columns by evaluation, behind LAMBDA…
MauroToscano Nov 13, 2026
ab9e9f0
lfm: drop a design-note name from WlfmPrep's doc comment
MauroToscano Nov 13, 2026
afc0186
lfm: the evaluated compressed file carries its own pipeline tag (3)
MauroToscano Nov 13, 2026
81912ab
multilinear: a WHIR chain may stop committing at a final polynomial (…
MauroToscano Nov 13, 2026
561e53b
lfm: C1's chains can stop at a final polynomial, behind LAMBDA_VM_BLO…
MauroToscano Nov 13, 2026
52dc00e
lfm: a compact wire encoding of the compressed file, behind LAMBDA_VM…
MauroToscano Nov 13, 2026
bbd4ef7
lfm: C1's chains can fold on a byte-minimising schedule, behind LAMBD…
MauroToscano Nov 13, 2026
9b637b0
lfm: a dedup wire encoding of the compressed file, behind LAMBDA_VM_B…
MauroToscano Nov 13, 2026
0164f00
lfm: gate the W-LFM module behind `parallel` again, beside the wire m…
MauroToscano Nov 13, 2026
9d724f9
lfm: W-LFM at blowup 64, and a query-grind lever (off by default)
MauroToscano Nov 13, 2026
8e6d949
lfm: an in-guest verifier of one W-LFM proof (the W-leg)
MauroToscano Nov 13, 2026
fda9e51
lfm: a second compression step C2 over C1, behind LAMBDA_VM_BLOCK_COM…
MauroToscano Nov 13, 2026
fabbdfb
lfm: the W-leg's public-balance closure is load-bearing (test)
MauroToscano Nov 13, 2026
8f46d22
lfm: the block ships its compressed file by default (C1 with its leve…
MauroToscano Nov 13, 2026
4c8ca1a
card rows: MEMW_R's register rows built on the card from the CPU logs…
MauroToscano Nov 13, 2026
5da3bde
card rows: MEMW_R register rows checked against the host fill; plan i…
MauroToscano Nov 13, 2026
1b110f1
card rows: the walk writes MEMW_R's register rows as words (LAMBDA_VM…
MauroToscano Nov 13, 2026
9c89b77
card rows: card and real-block tests for MEMW_R built from the walk's…
MauroToscano Nov 13, 2026
5ba8db8
card rows: count a word's IsHalfword lookup through the MEMW_R row re…
MauroToscano Nov 13, 2026
49ec57f
card rows: launch the kernels for a group whose MEMW_R is built from …
MauroToscano Nov 13, 2026
264552c
card rows: a words table with no held CPU logs goes up as its decoded…
MauroToscano Nov 13, 2026
46bf3e0
card rows: words that cannot be decoded refuse the run instead of pan…
MauroToscano Nov 13, 2026
686bbbf
card rows: switch on by default: MEMW_R built on the card from the wa…
MauroToscano Nov 13, 2026
87909da
card rows: count a words chunk's records by their bytes, as their rel…
MauroToscano Nov 13, 2026
838a797
card rows: the host KAT's comment names a GPU run, not a machine
MauroToscano Nov 13, 2026
1c6010b
block tree: W3_EARLY_LEAVES lets several leaves execute and fill insi…
MauroToscano Nov 13, 2026
31c9b24
block tree: a later early leaf goes early only if its fill ends befor…
MauroToscano Nov 13, 2026
5eb61ae
block tree: with several early leaves, a leaf may lead when its rebui…
MauroToscano Nov 13, 2026
4d7d3a2
block tree: with several early leaves, the leaves left to the tree st…
MauroToscano Nov 13, 2026
ff78349
switch on by default: every leaf that can lead and fits executes insi…
MauroToscano Nov 13, 2026
ec62a51
block tree: several early leaves only when phase B led several leaves
MauroToscano Nov 13, 2026
f68d3e4
block prove: a rebuilt class that fits its window may be led out of g…
MauroToscano Nov 13, 2026
09b5d39
block tree: the later early leaves execute and fill on a lower-priori…
MauroToscano Nov 13, 2026
524761f
math-cuda: the WHIR encoding's column engine takes spacings 32 and 64…
MauroToscano Nov 13, 2026
4509337
crypto: Poseidon1 width 16 runs its partial rounds in the sparse form…
MauroToscano Nov 13, 2026
424d68d
memw_a: prove the timestamp order by two 16-bit limbs of the step, as…
MauroToscano Nov 13, 2026
ce858bd
block: MEMW_A proves its timestamp order by the step's limbs by default
MauroToscano Nov 13, 2026
11d3e9f
lfm: the median mix's leaf pins under MEMW_A's limbs
MauroToscano Nov 13, 2026
b446980
memw_a: tests of the limbs' form on proved blocks, the tree and a rea…
MauroToscano Nov 13, 2026
483f960
spec: MEMW_A's timestamp order by the step's two 16-bit limbs
MauroToscano Nov 13, 2026
acdef4a
memw_a: pin MEMW's eight LT lookups, the receiver the limbs' routing …
MauroToscano Nov 13, 2026
6595980
memw_a: plain words in the limbs tests' comments
MauroToscano Nov 13, 2026
c4723b4
block: the block-wide LogUp pin reads the AIR set the verifier builds
MauroToscano Nov 13, 2026
c701794
tests: the limbs' real-block and small-block tests build only with pa…
MauroToscano Nov 13, 2026
78335e0
memw_a: refuse a limbs row for a step that does not fit with an error…
MauroToscano Nov 13, 2026
0409aa5
memw_a: pin the zero high word on the MEMW bus as a property of the AIRs
MauroToscano Nov 13, 2026
c2959f6
memw_a: plain words in the high-word pin's comment
MauroToscano Nov 13, 2026
d2df8e9
lfm: the median mix's LT row as the limbs' form makes it, and its lea…
MauroToscano Nov 14, 2026
1895f09
remove the host-side switches of defaults that have held since October
MauroToscano Nov 13, 2026
5297ad0
remove the argue, WHIR-device and kernel-variant switches of defaults…
MauroToscano Nov 13, 2026
ee44381
remove the recursion scheduling and LFM prover switches of defaults
MauroToscano Nov 13, 2026
43ed0fa
refuse unreadable tree-drop and layout-ahead values; say which switch…
MauroToscano Nov 13, 2026
88f557e
remove the closed groups' queue: its gain stayed under 0.3 s on the l…
MauroToscano Nov 13, 2026
8773b44
take the row cap word out of the block's posture
MauroToscano Nov 13, 2026
adc8a38
the removed disk store's two words refuse the prove; the memory targe…
MauroToscano Nov 13, 2026
5d3ef61
a block proves at the host's own memory target; the CLI says how to r…
MauroToscano Nov 13, 2026
b37f575
stream test: check each row configuration and program on its own thread
MauroToscano Nov 14, 2026
9d39f65
multilinear: the base-field chain tests commit round 0 on the host
MauroToscano Nov 14, 2026
9307edf
crypto: standard 7-round BLAKE3 for a configuration that must not fol…
MauroToscano Nov 1, 2026
1b9072c
multilinear: a WHIR configuration on standard BLAKE3 (Blake3Whir)
MauroToscano Nov 1, 2026
3bd4563
math-cuda: WHIR tree and grind kernels at 7-round BLAKE3
MauroToscano Nov 1, 2026
d8f8286
prover: prove a block's base alone under 7-round BLAKE3 (prove-block-…
MauroToscano Nov 1, 2026
ca6aada
multilinear: the coset leaf order's card tests under 7-round BLAKE3
MauroToscano Nov 1, 2026
085936e
cli: prove-block-base runs under the base's allocator watermark, and …
MauroToscano Nov 1, 2026
9cedf9d
cli: prove-block-base takes --trees, and reads each under the BLAKE3 …
MauroToscano Nov 12, 2026
86c1291
crypto: the joint leaf of a 7-round BLAKE3 round-0 tree
MauroToscano Nov 13, 2026
47360f9
math-cuda: joint round-0 trees under 7-round BLAKE3
MauroToscano Nov 13, 2026
7a0b084
multilinear: one round-0 tree a run under 7-round BLAKE3
MauroToscano Nov 13, 2026
ee1f906
block base: the BLAKE3 base takes one round-0 tree a run by default
MauroToscano Nov 13, 2026
8377892
multilinear: pin the per-polynomial BLAKE3 round-0 format
MauroToscano Nov 13, 2026
802e023
cli: prove-block-base prints how many stacked commits fell back to th…
MauroToscano Nov 13, 2026
a934e4d
comments: say what the BLAKE3 base code does instead of naming a desi…
MauroToscano Nov 14, 2026
b3d5a4b
the block's LT merge, BITWISE-from-tables, KECCAK_RND-first and walk …
MauroToscano Nov 14, 2026
7060e36
the stream classes' equal-priority control goes
MauroToscano Nov 14, 2026
2e2e385
the card-built rows take off, order or words; derive and registers ar…
MauroToscano Nov 14, 2026
765f898
the tree's two on/off knobs refuse a count other than 0 or 1
MauroToscano Nov 14, 2026
0da2f20
a card-rows word the uploads do not take refuses the block prove
MauroToscano Nov 14, 2026
de7ee85
tests: the BLAKE3 coset card tests grind where the card searches
MauroToscano Nov 14, 2026
7dcbdc0
tests: the Poseidon1 coset card tests grind where the card searches
MauroToscano Nov 14, 2026
7f91134
math-cuda: page-lock host buffers in place and upload them as direct …
MauroToscano Nov 13, 2026
a7e2879
lfm: knob LAMBDA_VM_LFM_PREP_PINNED readies the leaves' preprocessed …
MauroToscano Nov 13, 2026
70ec79e
lfm: the leaves' merged groups are laid out and page-locked beside th…
MauroToscano Nov 14, 2026
5881463
the executor's pre-faulted buffers go; switches the block no longer r…
MauroToscano Nov 14, 2026
e911a82
the card rows' retired derive and registers modes leave the code
MauroToscano Nov 14, 2026
c501ac6
every switch the block no longer reads refuses the prove; ECREC defer…
MauroToscano Nov 14, 2026
4bc476c
the DEEP and OOD denominators' row-wise switch, constant since its wo…
MauroToscano Nov 14, 2026
64fb09a
docs: four comments name the leaf lead by what it is, not by its reti…
MauroToscano Nov 14, 2026
efc5476
lfm executor: a streamed execution whose arenas land in pieces
MauroToscano Nov 14, 2026
7e81b4a
block tree: a leaf's group words on their own, and phase B's order on…
MauroToscano Nov 14, 2026
bcd71fe
tests: the streamed leaf's probe, on a real block and on small ones
MauroToscano Nov 14, 2026
c4f50dc
block leaf: the emitter marks where its arena's parts end
MauroToscano Nov 14, 2026
028aab6
block tree: W3_STREAM_LEAF streams the last leaf's execute beside pha…
MauroToscano Nov 14, 2026
f39a44a
block tree: the last leaf streams beside phase B by default
MauroToscano Nov 14, 2026
dee5999
blake3: standard 7 rounds is the default everywhere
MauroToscano Nov 14, 2026
dcd1a07
the executor's recycled log buffers go: at a 40 GiB target they saved…
MauroToscano Nov 14, 2026
0357dff
block tree: W3_NODE_TIMES stamps the host's steps from a child's proo…
MauroToscano Nov 14, 2026
02fc224
block tree: the hop stamps also mark a node's release, its prove's ca…
MauroToscano Nov 14, 2026
c929301
block tree: W3_NODE_DOMAINS_EARLY warms a node's domains when its pro…
MauroToscano Nov 14, 2026
0e4a8c8
block tree: W3_READOUTS_AFTER prints the base's read-outs after the w…
MauroToscano Nov 14, 2026
5219fe3
block tree: each node program's domains warm when it is emitted, by d…
MauroToscano Nov 14, 2026
65dee76
block tree: the base's read-outs print after the whole block, by default
MauroToscano Nov 14, 2026
85965bd
tests: BLAKE3 vectors and goldens regenerated at the standard 7 rounds
MauroToscano Nov 14, 2026
e112a0e
prover: the AIRs of a register format that checks accesses in the CPU…
MauroToscano Nov 14, 2026
ebbe0f2
prover: build the tables of the in-row register format
MauroToscano Nov 14, 2026
6216cf8
prover: prove and verify a block under the in-row register format
MauroToscano Nov 14, 2026
b243643
prover: format the in-row register format's code
MauroToscano Nov 14, 2026
d8b31cf
prover: lint fixes for the in-row register format
MauroToscano Nov 14, 2026
8c61dcf
prover: name the in-row format's residual register table plainly
MauroToscano Nov 14, 2026
5984f97
prover: the card fills in-row CPU chunks from their logs and side rec…
MauroToscano Nov 14, 2026
97c12e3
prover: forgeries of the in-row register format, refused on the buses
MauroToscano Nov 14, 2026
b0ece76
prover: lay out streamed chunks with the register format's AIRs
MauroToscano Nov 14, 2026
fc4f571
block: registers are checked in the CPU row by default
MauroToscano Nov 14, 2026
d59895e
prover: count the in-row CPU slots' range lookups on the walkers
MauroToscano Nov 14, 2026
602e56b
tests: re-derive the pins the in-row register default moves
MauroToscano Nov 14, 2026
2ef5480
tests: the fill host KAT passes the CPU fill's side records
MauroToscano Nov 15, 2026
207b406
prover: the walkers' side records from the page-locked pool
MauroToscano Nov 14, 2026
e386111
prover: the page-locked side records behind LAMBDA_VM_INROW_SIDES_PINNED
MauroToscano Nov 14, 2026
a33d81f
prover: in-row side records page-locked by default
MauroToscano Nov 14, 2026
e517809
docs: for_walk_sized's comment back on its function
MauroToscano Nov 15, 2026
b7c09fe
trace finish: PAGE and BITWISE written straight into their packed for…
MauroToscano Nov 14, 2026
ef70e78
trace finish: PAGE written straight into its packed form by default
MauroToscano Nov 15, 2026
da8b169
trace finish: seed the packed tables' width hints, opt-in
MauroToscano Nov 15, 2026
e3e11fc
trace finish: seed the packed tables' width hints by default
MauroToscano Nov 15, 2026
ab451b4
prover: the walkers' light walk behind LAMBDA_VM_LIGHT_WALK
MauroToscano Nov 15, 2026
fa52fb0
prover: the light walk with the walkers routing by default
MauroToscano Nov 15, 2026
a277745
argue: the zerocheck's bus column folded from rounds 0-1's rows
MauroToscano Nov 15, 2026
5037eb8
gkr: fold the fraction tree two levels a pass
MauroToscano Nov 15, 2026
a410925
gkr: launch the two-level fold 256 threads a block
MauroToscano Nov 15, 2026
7ad8b03
block prover: the rest's gate at 8 GiB, building up to the gate, by d…
MauroToscano Nov 15, 2026
370bb4c
gkr: write the input layer with the two tree levels above it
MauroToscano Nov 15, 2026
23a4d8e
gpack seeds: CPU's seed on the in-row CPU table's hint
MauroToscano Nov 15, 2026
a8c5ad2
prover: the AIRs of a memory format that fuses aligned loads and stores
MauroToscano Nov 15, 2026
21b3eb3
tests: the fused memory tables against the rows they replace, and for…
MauroToscano Nov 15, 2026
954ff8b
prover: route aligned CPU loads and stores to fused rows, and prove them
MauroToscano Nov 15, 2026
9e24e3a
tests: fused blocks proved and verified, and the format's statement c…
MauroToscano Nov 15, 2026
3297e57
tests: the streamed fused chunks are laid out with the verifier's AIRs
MauroToscano Nov 15, 2026
b1a5ec5
math-cuda: card fills for the fused aligned load and store tables
MauroToscano Nov 15, 2026
0028263
prover: the fused memory tables' records as the card reads them, and …
MauroToscano Nov 15, 2026
78d9257
prover: hand out the fused memory tables' chunks to the card as their…
MauroToscano Nov 15, 2026
1ff9aed
tests: the fused memory tables' chunks filled on the card from their …
MauroToscano Nov 15, 2026
99f641d
prover: prove the block's base with aligned loads and stores fused by…
MauroToscano Nov 15, 2026
51dd2dd
tests: a block proved over a wrong fused table is refused by the veri…
MauroToscano Nov 15, 2026
ede027f
tests: the LogUp constants' census holds the fused memory tables
MauroToscano Nov 15, 2026
e182170
tests: in-row register format binds its preprocessed columns and caps…
MauroToscano Nov 15, 2026
029090f
tests: name the verifier check that refuses each proved in-row forgery
MauroToscano Nov 15, 2026
42e18c0
tests: the in-row frame test states no fused memory tables
MauroToscano Nov 15, 2026
46b74c0
tests: the verifier pin reads the memory knob against the new defaults
MauroToscano Nov 15, 2026
8237104
Pin that every value written to RAM is byte-checked
MauroToscano Nov 15, 2026
8d8f898
Test that the memset gap is what keeps a non-byte out of RAM
MauroToscano Nov 15, 2026
3065c24
Test that ECREC's r < N and yR < p bounds each refuse a forgery alone
MauroToscano Nov 15, 2026
aedb14a
Assert at compile time that the CPU clock stays below 2^32 for keccak256
MauroToscano Nov 15, 2026
d37ef36
Document that ECREC status 1 means recompute, never invalid signature
MauroToscano Nov 15, 2026
adfedf9
Test five keccak256 sponge checks that no single edit isolated
MauroToscano Nov 15, 2026
3e96121
Name the RAM byte census's per-table type for clippy
MauroToscano Nov 15, 2026
5c740a5
Test where the packed GKR draws its combination challenge, and paddin…
MauroToscano Nov 15, 2026
c1e4a15
Test that the block frame refuses a chunked family over its cap
MauroToscano Nov 15, 2026
b43176f
Test at block level that a nonce failing the grind is refused
MauroToscano Nov 15, 2026
a9cac54
Test the missing-real-table refusal at the production block format
MauroToscano Nov 15, 2026
c4512d7
Copy rather than clone field elements in the transcript test
MauroToscano Nov 15, 2026
d8ab583
State the fused memory tables in the hand-built frame statement
MauroToscano Nov 15, 2026
9b04441
Extend the RAM byte census to memory-bus tokens and the fused tables
MauroToscano Nov 15, 2026
0e3db9a
Build the production-format missing-table test's traces in that format
MauroToscano Nov 15, 2026
86210c2
Hold the fused memory tables in the IS_HALF and high-word pins
MauroToscano Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
323 changes: 323 additions & 0 deletions .config/ci-slow-tests.txt

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions .github/workflows/benchmark-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ env:
# from one real one. Only the headline screen was dropped.
#
# Cycle counts below are for the ELF THIS JOB BUILDS (see "Build ethrex guest ELF"),
# as of main @ 9ccdaf2 with clang 21. They move with guest optimisation (#861 gave the
# guest thin LTO) and ~2% with the clang major on PATH, so a count quoted against a
# as of the guest built with fat LTO and its own memcpy. They move with guest
# optimisation (#861 gave the guest thin LTO, fat LTO and the runtime memcpy took
# another 20 %) and ~2% with the clang major on PATH, so a count quoted against a
# different ELF reads as a regression — always pin the ELF when repeating one.
ELF: executor/program_artifacts/rust/ethrex.elf
# The workload: a real Ethereum block. WHICH block lives in
# the Makefile and nowhere else — nothing in this file names one, so a repoint
# moves this job without editing it. At the current default and pinned ethrex rev that
# is 30,498,818 cycles, 10,659 keccak calls and 116 ecsm calls — several times the work
# is 23,935,913 cycles, 10,659 keccak calls and 116 ecsm calls — several times the work
# of the synthetic block, at a very different keccak:ecrecover mix. That is the whole
# point: a prover change can move the synthetic number and the real one in opposite
# directions. All three figures move with the ethrex rev, so re-measure on a bump
Expand Down
141 changes: 71 additions & 70 deletions .github/workflows/pr_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,20 @@ jobs:
run: |
make compile-programs-asm

# The key hashes every source a Rust guest build reads: the guest crates, the guest
# runtime (syscalls), the crypto crates guests depend on by path (ethrex-crypto for the
# ethrex guest; crypto and math for keccak_transcript_pattern), the target spec and the
# Makefile's recipe. An exact hit skips the compile step below, so a change confined to
# one of them that the key missed would run every test on a stale ELF. The same key
# appears in each job that restores these ELFs.
- name: Cache compiled Rust ELF artifacts and build cache
id: cache-rust-elfs
uses: actions/cache@v4
with:
path: |
executor/program_artifacts/rust
executor/shared_target
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'Makefile') }}
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'crypto/ethrex-crypto/src/**', 'crypto/ethrex-crypto/Cargo.toml', 'crypto/crypto/src/**', 'crypto/crypto/Cargo.toml', 'crypto/math/src/**', 'crypto/math/Cargo.toml', 'Makefile') }}
restore-keys: |
rust-elf-artifacts-

Expand Down Expand Up @@ -197,26 +203,72 @@ jobs:
run: make test-ethrex-crypto

# "Test" is a required check — keep this name to avoid branch protection changes.
# This gate job passes only when CLI, executor, disk-spill, and prover tests succeed.
# This gate job passes only when CLI, executor, and prover tests succeed.
host-kat:
# The device kernels' known-answer gates. `make test-*-host-kat` compiles the
# REAL `.cu` sources as host C++ through
# `crypto/math-cuda/tests/host_kat/cuda_host_shim.h` and runs them against
# external vectors (the official BLAKE3 vectors, miden-crypto's RPO vectors)
# and the committed oracle tables — g++ only, no CUDA, no cargo, seconds. It
# is the only per-PR check on the kernel arithmetic: the GPU parity suites
# (gpu-tests.yml) run on merge_group alone, and until this job existed the
# host-KAT targets lived in no workflow at all. Arithmetic only — nvcc
# acceptance and everything about execution stay with the GPU tests.
name: Host KAT (kernel pins)
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.actor != 'github-merge-queue[bot]'
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: BLAKE3 host-KAT (7-round and 6-round arms)
run: make test-blake3-host-kat

- name: RPX host-KAT (permutation, leaf sponge, parent, leaf and tree kernels)
run: make test-rpx-host-kat

- name: Column-major LDE engine host-KAT (NTT passes, coset LDE)
run: make test-ntt-cm-host-kat

- name: WHIR host-KAT (fused round fold, lean first rounds)
run: make test-whir-host-kat

- name: GKR host-KAT (layer rounds over an input layer kept without its padding)
run: make test-gkr-host-kat

- name: Commit-time answers host-KAT (columns' values at one point, one pass)
run: make test-eq-dot-host-kat

- name: Round-slot host-KAT (a round's sums reduced by its last block)
run: make test-round-slot-host-kat

# Second source for the TABLES the BLAKE3 host-KAT trusts: upstream
# BLAKE3's portable C with its round loop parameterised, against the
# committed 6-round vectors and the Python oracle. A ~1 s C compile plus a
# few seconds of Python (cc + python3, both on the runner); it too had no
# workflow before this job.
- name: BLAKE3 second-source check of the 6-round tables
run: make test-blake3-second-source

test:
name: Test
if: always()
needs: [test-executor, test-cli, test-prover, test-disk-spill, test-stark-cuda-lib]
needs: [test-executor, test-cli, test-prover, test-stark-cuda-lib, host-kat]
runs-on: ubuntu-latest
steps:
- name: Check results
run: |
executor="${{ needs.test-executor.result }}"
cli="${{ needs.test-cli.result }}"
prover="${{ needs.test-prover.result }}"
disk_spill="${{ needs.test-disk-spill.result }}"
stark_cuda_lib="${{ needs.test-stark-cuda-lib.result }}"
host_kat="${{ needs.host-kat.result }}"

echo "test-executor: $executor"
echo "test-cli: $cli"
echo "test-prover: $prover"
echo "test-disk-spill: $disk_spill"
echo "test-stark-cuda-lib: $stark_cuda_lib"
echo "host-kat: $host_kat"

# Allow "success" or "skipped" (skipped on merge queue pushes)
if [[ "$executor" != "success" && "$executor" != "skipped" ]]; then
Expand All @@ -228,72 +280,13 @@ jobs:
if [[ "$prover" != "success" && "$prover" != "skipped" ]]; then
exit 1
fi
if [[ "$disk_spill" != "success" && "$disk_spill" != "skipped" ]]; then
if [[ "$stark_cuda_lib" != "success" && "$stark_cuda_lib" != "skipped" ]]; then
exit 1
fi
if [[ "$stark_cuda_lib" != "success" && "$stark_cuda_lib" != "skipped" ]]; then
if [[ "$host_kat" != "success" && "$host_kat" != "skipped" ]]; then
exit 1
fi

test-disk-spill:
name: Disk-spill tests
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.actor != 'github-merge-queue[bot]'
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Rust Environment
uses: ./.github/actions/setup-rust

- name: Cache cargo build artifacts
uses: Swatinem/rust-cache@v2
with:
shared-key: "lambda-vm-disk-spill"
cache-all-crates: "true"

- name: Cache compiled ASM ELF artifacts
id: cache-asm-elfs
uses: actions/cache@v4
with:
path: executor/program_artifacts/asm
key: asm-elf-artifacts-${{ hashFiles('executor/programs/asm/**') }}

- name: Install clang and lld
if: steps.cache-asm-elfs.outputs.cache-hit != 'true'
run: sudo apt-get update && sudo apt-get install -y clang lld

- name: Compile ASM programs to ELF
if: steps.cache-asm-elfs.outputs.cache-hit != 'true'
run: |
make compile-programs-asm

- name: Cache compiled Rust ELF artifacts and build cache
id: cache-rust-elfs
uses: actions/cache@v4
with:
path: |
executor/program_artifacts/rust
executor/shared_target
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'Makefile') }}
restore-keys: |
rust-elf-artifacts-

- name: Compile Rust programs to ELF
if: steps.cache-rust-elfs.outputs.cache-hit != 'true'
run: |
make compile-programs-rust

- name: Run stark disk-spill tests
run: |
cargo test --release -p stark --features disk-spill disk_spill

- name: Run prover disk-spill tests
env:
FORCE_DISK_SPILL: "1"
run: |
cargo test --release -p lambda-vm-prover --features disk-spill -- disk_spill count_table_lengths

test-stark-cuda-lib:
name: Stark cuda-feature lib tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -349,6 +342,11 @@ jobs:
-p lambda-vm-prover -p stark -p crypto -p ecsm \
--archive-file prover-tests.tar.zst

# The prover shards skip the tests listed in .config/ci-slow-tests.txt (they run in full on the project's own
# machines). Fails unless the filter skips exactly the listed tests and every test binary keeps a test.
- name: Check the slow-test list against the archive
run: python3 scripts/ci_slow_tests.py check prover-tests.tar.zst

- name: Upload test archive
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -391,7 +389,7 @@ jobs:
path: |
executor/program_artifacts/rust
executor/shared_target
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'Makefile') }}
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'crypto/ethrex-crypto/src/**', 'crypto/ethrex-crypto/Cargo.toml', 'crypto/crypto/src/**', 'crypto/crypto/Cargo.toml', 'crypto/math/src/**', 'crypto/math/Cargo.toml', 'Makefile') }}
restore-keys: |
rust-elf-artifacts-

Expand Down Expand Up @@ -440,13 +438,16 @@ jobs:
# the concurrent path or VramGate's blocking path on a PR. The other
# three shards keep the default-k coverage. An empty value on those
# fails to parse and falls back to the default, so this is inert there.
# The tests listed in .config/ci-slow-tests.txt are skipped here: each took more than 45 s on a runner, and
# the project's own machines run them (scripts/ci_slow_tests.py; the build job checks the list).
env:
TABLE_PARALLELISM: ${{ matrix.partition == 1 && '6' || '' }}
run: |
cargo nextest run \
--archive-file prover-tests.tar.zst \
--partition hash:${{ matrix.partition }}/4 \
--test-threads=1
--test-threads=1 \
-E "$(python3 scripts/ci_slow_tests.py expr)"

test-prover-comprehensive:
name: Prover comprehensive tests
Expand Down Expand Up @@ -480,7 +481,7 @@ jobs:
path: |
executor/program_artifacts/rust
executor/shared_target
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'Makefile') }}
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'crypto/ethrex-crypto/src/**', 'crypto/ethrex-crypto/Cargo.toml', 'crypto/crypto/src/**', 'crypto/crypto/Cargo.toml', 'crypto/math/src/**', 'crypto/math/Cargo.toml', 'Makefile') }}
restore-keys: |
rust-elf-artifacts-

Expand Down Expand Up @@ -564,7 +565,7 @@ jobs:
path: |
executor/program_artifacts/rust
executor/shared_target
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'Makefile') }}
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'crypto/ethrex-crypto/src/**', 'crypto/ethrex-crypto/Cargo.toml', 'crypto/crypto/src/**', 'crypto/crypto/Cargo.toml', 'crypto/math/src/**', 'crypto/math/Cargo.toml', 'Makefile') }}
restore-keys: |
rust-elf-artifacts-

Expand Down
Loading
Loading