Issue #2551: Prove that copy-and-patch stencils fit together: every stencil keeps the value-to-register relation

Open and answer this issue on GitHub.

emitter, blocked, future · opened 2026-11-21 · updated 2026-11-21 · 0 comments

Part of #1593 After #2549 Needs #1235

What it is

Obligation 3 of #1593: the stencils fit together. A relation is fixed between the program’s values and the machine state (“value v is in register r or stack slot s”); every stencil must keep it from its entry to its exit. Correctness of any sequence of stencils then follows by induction: one small general proof (the simulation argument known from CompCert); the work per construct is in the per-stencil proofs of #2549. It waits for the backend (#1235).

To build

  1. The relation of obligation 3 and its general proof, and per stencil the check that it keeps the relation, run by the stencil prover of #2549, with a test of a stencil that breaks the relation and is refused.

Done when

The value-to-machine-state relation is written down with its general proof, and every stencil of one architecture is checked to keep it, a stencil that breaks it being refused; the report gives a Found: line per finding.

Split from #1593 by Claude Code

Back to Open Issues