Skip to content

Reuse genesis page data for continuation global proof#720

Merged
MauroToscano merged 2 commits into
continuations-local-to-globalfrom
continuations-global-genesis-cache
Jun 26, 2026
Merged

Reuse genesis page data for continuation global proof#720
MauroToscano merged 2 commits into
continuations-local-to-globalfrom
continuations-global-genesis-cache

Conversation

@MauroToscano

Copy link
Copy Markdown
Contributor

Summary

  • Reuse genesis page data computed from the initial carried memory image when proving the continuation global memory proof.
  • Split global memory config construction so the prover can use precomputed page data while the verifier still rebuilds from ELF + private_inputs.

Rationale

prove_continuation already builds the initial paged image before epochs start. The global proof only needs genesis page data for touched pages, so rebuilding the dense genesis image from ELF + private_inputs inside prove_global is redundant.

The verifier path is intentionally unchanged: it still rebuilds configs from the ELF and private input carried in the bundle so genesis remains independently checked.

Verification

  • cargo fmt --all
  • make compile-programs-asm CLANG=/opt/homebrew/opt/llvm/bin/clang
  • cargo test -p lambda-vm-prover continuation -- --nocapture
  • cargo test -p lambda-vm-prover local_to_global -- --nocapture
  • make lint

…nto codex/pr720-conflict-fix

# Conflicts:
#	prover/src/continuation.rs
@MauroToscano MauroToscano merged commit 84798b8 into continuations-local-to-global Jun 26, 2026
12 checks passed
@MauroToscano MauroToscano deleted the continuations-global-genesis-cache branch June 26, 2026 20:27
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