Rebuild and Prove Equal: Differential Tests, Byte Comparison, and the Evidence Loop
Passing your tests proves agreement on your tests, so equality needs a grid that reaches every edge and bytes that match after relocation masking.
110 minutesBuildPython, CMembers
Learning Objectives
- Write a rebuild from the instruction listing and name the evidence record it came from.
- Build an input grid with one class per hazard: zero guard, negative values, truncating division, 32-bit overflow, and a divide trap.
- Run the original and the rebuild in one program and record every cell, including a trap.
- Recompile the rebuild with the original flags and compare function bytes after masking relocation fields.
- Read the constants a relocation points at and compare them, so a wrong literal cannot pass.
- Drive rea's MCP server from a small stdio client and record each step with its evidence id.
- Mint a fail-closed proof record whose id is a hash over its claims and evidence links.