Skip to content

Prove the ~30 external_body codec/CRC bodies with ordeal (upgrade proptest → certificate) #265

Description

@avrabe

relay's source literally documents where Verus/Z3 can't do bit-level proofs — ~30 #[verifier::external_body] hatches with comments like "would require bit-vector lemmas Verus' default integer theory cannot discharge" / "pinned by proptest" (relay-ccsds/src/sensor_wire.rs:239, relay-nid/src/bitpack.rs, relay-mavlink/src/frame.rs, CRCs in relay-mavlink/src/crc.rs, relay-cs/src/engine.rs). Relates to #4, #253.

Proposal: use ordeal prove_equiv for encode/decode round-trip and CRC-16/32 per-step equivalence — an unbounded, certificate-checked upgrade from "trust the unit test" on safety-critical flight wire codecs.

Enablers: byte-layout to/from_le_bytes + native 16-bit width — ordeal roadmap pulseengine/ordeal#64 (v0.10.0) — and the equivalence toolkit pulseengine/ordeal#66 (v0.12.0). Boundary: codec/CRC per-step is QF_BV; falcon EKF/mixer (f32/f64) is FP theory and scheduling/liveness is temporal — both OUT of ordeal, stay on FP/Gale/loom.

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