Documentation-only: add FORK_NOTES.md enumerating every divergence from
NethermindEth/EVMYulLean and the shared Yul/EVM trusted surface; README
pointer; docstring on restoreSuccessfulContractCallState explaining the
isEmpty merge sentinel and the createdAccounts asymmetry. No semantic
changes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Restore the equational Keccak-256 sponge in EvmYul/SpongeHash/Keccak256.lean
(no partial, no FFI) and change ffi.keccak256 from opaque to a def whose
body is that pure function, keeping @[extern "keccak256"] for native-speed
execution. ffi.KEC is now provable-about; downstream consumers (evm-compiler,
solidity-lean) can share one keccak definitionally.
Verified: full lake build green; keccak vectors (empty, "abc", ERC-20
transfer selector) pass via #eval of the pure body.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dy3P966aQiG3jen2yKuNeu
Replace the partial D_J_aux with a total definition indexed by a Nat
program counter, terminating by c.size - n (each step advances by
1 + argOnNBytesOfInstr, and parseInstr is total on in-bounds bytes,
falling through to some .INVALID). D_J keeps its exact signature and
behavior is bit-identical for all bytecode of size <= 2^256 - 33:
same visit order, same PUSH skip widths, same accumulator order.
Add trivial unfolding lemmas (D_J_aux_out_of_bounds, D_J_aux_step,
D_J_def) so downstream proofs can unfold without fighting WF recursion.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>