Commit f2143c5
committed
feat(assay/assimilate/aggregate): proof-integration subcommands
Three a-themed subcommands wiring panic-attack into the PROOF-PROGRAMME
loop (survey -> swap -> fold-in-proofs):
- assay (src/assay/mod.rs): survey a target for code with a formally
proven drop-in equivalent in a proven / proven-servers library;
operationalises the "Proven cross-fit" table in PROOF-PROGRAMME.md.
Built-in catalogue: SafePath, SafeUrl.
- assimilate (src/assay/mod.rs): perform a swap -- stage the proven
module, back up the original (*.orig), and record provenance (source
BLAKE3 hash + proof backing + pending call-site rewires) under
.assimilated/. Call-site rewiring is reported, never auto-edited.
- aggregate (src/aggregate/mod.rs): fold external prover output
(Agda/Idris2/Coq/Lean/Isabelle/TSTP/Alethe/DRAT) into a report. Each
artifact is BLAKE3-hashed for non-repudiation, classified
(comment-stripped so prose markers do not false-trigger), and
reconciled against findings (backed/corroborated/contradicted), with
every verdict conditioned on the named checker's trust.
Wired into lib.rs + main.rs (3 Commands variants + dispatch + helpers).
17 unit tests; full lib suite (395) green; zero new warnings. Idris2
0.8.0 installed; PA1/PA2/Stripping/Types proofs re-verified (typecheck).
https://claude.ai/code/session_01K2TJLeQSyz4tpydZ18aRcb1 parent 2dc1393 commit f2143c5
5 files changed
Lines changed: 2038 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
5 | 42 | | |
6 | 43 | | |
7 | 44 | | |
| |||
0 commit comments