Skip to content

approach: make WasmCert-Coq the live differential spec-oracle, and generate the lattice model from the Rust #95

Description

@avrabe

scry's soundness is honestly 'stated against the Wasm operational semantics and tracked toward mechanized proof against WasmCert-Coq.' Two approach moves close the gap the honest way:

  1. Spec-as-executable-oracle: import WasmCert-Coq now, as a differential. Rather than transcribing the Wasm semantics by hand (WrapAdd.v models two's-complement wrap by hand), make WasmCert-Coq the external ground truth the transfer functions are checked against — the same way a verified interpreter is run against real engines. That turns 'sound vs the official semantics' from a prose claim into a mechanical differential.
  2. Generation: emit the Rocq/Verus lattice model from scry-interval/wasm-lattice. Today Soundness.v and join_proofs.rs are hand-transcribed mirrors of the production Rust in the same γ-style — a mirror that drifts fools both provers identically. Generate the abstract model from the shipped crate (or the crate from the model) so the mirror can't drift.

The concrete-vs-abstract wasmtime oracle (soundness.rs, skip removed in FEAT-015) is already the reference-oracle move — extend it.


Part of a verification-approach sweep (direction, not a defect): prefer generation over checking (a single source emits the artifacts, so drift becomes unrepresentable), use independence adversarially (run a second mechanisation to hunt spec bugs rather than shelving it), and invest reference oracles (one artifact everything else differential-tests against).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions