This file records each proof obligation in panic-attack, the verifier it
belongs to, and its status. The rules are the estate proof policy,
standards/3-practice/PROOF-POLICY.adoc
at 9bdf864cc7f2c8e24b4df84bf00d04158eee3ad5. Statuses use its closed §5
vocabulary: PROVEN, PROVEN-WITH-AXIOMS, TESTED, ASSUMED, OPEN.
None of these obligations is a theory theorem (§1), so none carries a Proof Witness Grade.
Receipts (2026-11-09). Until this date no CI job type-checked
src/abi/, and as committed none of the five modules checked: their module
names did not match their paths, Types.idr and Stripping.idr had syntax
errors, and Stripping.idr’s main theorem did not type-check at all. The ✅
marks below therefore had no receipt before that date. Each module is now
checked on every PR by the `idris-abi job in
.github/workflows/proven-tests.yml (scripts/ci/check-idris-abi.sh, Idris2
0.7.0, %default total, no believe_me, assert_total,
assert_smaller, postulate or idris_crash). PROOF-POLICY §6 deviation,
state open: Idris2 is built from its v0.7.0 tag, because the repo’s Guix
manifest and container do not provide it.
-
src/abi/*.idr: 4 files —
Types.idr,ClassificationSoundness.idr(PA2 ✅ 2026-04-11),Stripping.idr(PROOF-PROGRAMME Layer 1.0 line-comment slice: claimed 2026-06-02 but never checked; re-proved and checked 2026-11-09),AttestationUnforgeability.idr(PROOF-PROGRAMME §3.2 ✅ 2026-06-04 — conditional unforgeability from Ed25519 EUF-CMA + chain-hash collision-resistance hypotheses) -
Dangerous patterns: 0 in own code (3 references are in the analyzer that DETECTS believe_me in other repos); 282
unwrap()calls -
LOC: ~31,700 (Rust)
-
ABI layer: Idris2 with completeness + soundness proofs + Layer-1.0 stripping foundation
-
Behaviour of first-party Rust code (stripping, reachability, taint propagation, dispatch): Creusot with Pearlite contracts, and Verus, on the implementation (§1.2). An Idris2 model of a Rust function is not evidence that the function is correct (§1, §2.2).
-
Interfaces, ABI encodings and cross-language protocols (the attestation chain, the C integer encodings): Idris2.
-
Statements true of any implementation (for example, a taint lattice and its fixed point stated abstractly): Agda, rechecked in Rocq and Lean (§2).
No Kani obligation arises (§4.1). With unsafe_code forbidden,
cargo clippy --lib --bins --tests --benches --all-features — -F unsafe_code
compiles at f2a6a70eaec0cb02331e3264e05f185b5faab0f7. The only unsafe
is in examples/vulnerable_program.rs, a deliberately buggy program that
exists to be scanned.
-
Checker: Idris2 0.7.0, the version
proven-tests.ymlpins, built from tagv0.7.0(27780073c8631826d846499840b3857d9b9a4fd5) on Chez Scheme 9.5.8. -
Source:
src/abi/*.idras committed.Stripping.idris the re-proof from #281 (see the ledger row below). -
Invocation: the modules are named
PanicAttack.ABI.<M>but live insrc/abi/, soidris2 --check src/abi/<M>.idrfails on a module-name mismatch from any directory.scripts/ci/check-idris-abi.shstages the committed files atPanicAttack/ABI/<M>.idras links and checks those. A pass is exit 0 and noError:line, becauseidris2 --checkcan exit 0 while printing an error. -
Result: all five modules pass. Every module sets
%default totaland uses nobelieve_me,assert_total,assert_smaller,postulateoridris_crash. -
Negative controls: against this PR’s earlier
Stripping.idr(3dc4728), a planted false lemma and a planted non-terminating definition were both rejected, so the check can fail. -
Gate: the
idris-abijob in.github/workflows/proven-tests.ymlruns this check on every PR and blocks on failure (#281). The statuses here rest on that job’s receipt for the commit in question; it passed onmainat36f1055.
| Obligation | Artefact | Status | Trust boundary and notes |
|---|---|---|---|
Severity order: |
|
|
The model’s |
Line-comment stripping is idempotent: |
|
|
Re-proved 2026-11-09. The 2026-06-02 proof (issue #113) never
type-checked: its The model now agrees with |
|
|
|
Exhaustive over bounded inputs, for the marker sets the analyzers pass:
Planted faults, all caught: * the previous two-phase function; * deleting comment text instead of blanking it; * blanking that drops a newline; * one space per character instead of per byte; * no nesting; * an unterminated block that keeps code. One mutant, a line comment that also consumes its newline, is equivalent: the newline is kept and the scan resumes after it, so no test can tell them apart. |
Attestation chain: integrity, authenticity, non-repudiation |
|
|
The module’s *
|
Analyzer routing (PA1). (a) Every language analyzer in |
|
|
The dispatch in The cross-language checks blank Routing is not coverage: This replaces the Idris2 |
Declarations for the ABI-facing types and their C integer encodings |
|
No theorem |
Repaired in |
Hexad JSON round-trip is the identity |
|
|
A serialize, deserialize, serialize round trip on proptest-generated
hexads, compared as |
| Obligation | Artefact | Status and bounds |
|---|---|---|
Generation-publish protocol P1–P3 (prototype, |
|
TESTED: up to
3 writers, 1 reader, 2 files, crash at every writer step, collection of crashed
and live writers' partial generations, |
| Obligation | Verifier (§1, §1.2) | Notes |
|---|---|---|
Generation publish: pure decisions ( |
Creusot/Pearlite and Verus (§1.2) |
OPEN. The model check above covers the protocol, not the Rust code; these contracts tie the implementation to P1 and P2. |
Prove the |
Creusot/Pearlite and Verus |
The single-pass rewrite makes both properties true of the implementation;
the ledger row has them * Not idempotent: The function does not know about string literals. The Rust and Zig callers blank strings first; the Lean, Agda, Idris, Coq and Isabelle callers do not, so a comment marker inside a string literal there still starts a comment. The Idris2 model’s remaining slices (block comments, strings, composition; issue #114) are optional once the implementation proof exists. |
Patch Bridge reachability is sound: no reachable dependency is classified as phantom |
Creusot/Pearlite and Verus |
|
Kanren taint analysis tracks every tainted flow |
Creusot/Pearlite and Verus; Agda for the abstract theory |
Any implementation-independent statement (the lattice, monotonicity, the
fixed point) is theory and belongs in Agda with Rocq and Lean rechecks.
Its realisation in |
Prove PA1 (a) to (c) on |
Creusot/Pearlite and Verus |
Pearlite contracts on the two functions, proved by both verifiers. The tests above are exhaustive over a finite enum, but they are tests, and (a) reads the source with a pattern match. (d) is a documentation check and stays a test. |