docs(formal-verification): DMA memcpy - #926
Open
nicole-graus wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
#874 adds a new fixed table, and nothing independently checks that its AIR proves what a
memcpyactually is.Description
Adds
docs/verification/dma/:memmoveand CPython slice assignment over 3,855 differential cases each, plus an 8-mutant sensitivity sweep.DmaNextmodelled as a free bijection rather than an assumed chain, 10 premise controls each with a named forgery, and a completeness sweep over every length 0–256.Plus two Rust tests driving the real
collect_dma_memcpy_opsagainst the oracle's emitted vectors, and amake verify-dmatarget.No shipped constraint, column, bus interaction or executor path changes.
No soundness gap found. The first commit reported one; the second retracts it —
DmaNextbinds each 64-bit value as two 32-bit bus elements, not one packed field element, so the limbs are already pinned and the alias the gate exhibited is unreachable. The retraction is kept in the docs as the campaign's main lesson.How to test
make verify-dma cargo test -p lambda-vm-prover --lib dmaNeeds pip install z3-solver (validated on 5.0.0; the audit alone needs no solver).