prove: refute mutated program models and prove portable replay

- bounded witness candidates are now also tried when the proposition contains
  program-model calls that Rust cannot evaluate; Lean's decide is the authority,
  so a mutated model refutes only with a kernel-verified negation (M07)
- e2e: model mutation refuted; bundle replayed from a different checkout path
- full acceptance run: 11 passed, 0 failed, 271.39 s
- STATUS updated with the final evidence
This commit is contained in:
marqdo-prove committed 2026-11-26 11:28:04 +08:00
1 parent 47e46320cc
commit add8ccada1
3 files changed
+80 -16

No files matched your search

+4 -2
View File
@@ -87,10 +87,12 @@ Observed results (wall clock, warm filesystem, debug build of Prove):
| tampered `proof.ndjson` then `replay` | rejected with exit 2 (`certificate.invalid`), no `verified` |
| `check tests/fixtures/unknown.mq.md` (`a^2+b^2 ≥ 2ab`) | `unknown`, exit 1 — search exhausted, no refutation invented |
| exported bundle, then a prose-only edit in a dependency, then `replay` | `certificate.stale`, exit 1, no `verified` |
| program model mutated to `return x * x - 1` (goal `square(x) ≥ 0`) | `refuted` with a Lean-verified negation (witness `x = 0`), `scope=program_model` |
| bundle exported in one checkout, sources copied byte-identically to another absolute directory, `replay` there | `verified`, `current` — the certificate is bound to portable identities, not machine paths |
| `marqdo tool install tool-bundle/tool.json` then `marqdo prove --version` and `marqdo prove check examples/algebra.mq.md --json` | installed tool dispatches through the real CLI Tool Protocol (`api_revision 1`), version `marqdo-prove 0.1.0`, target `verified` (cache hit, ~10 s) |
Run as `cargo test --test e2e -- --ignored --test-threads=1` (requires
`MARQDO_BIN` and the fixed backend): **9 passed, 0 failed, 213.78 s**.
`MARQDO_BIN` and the fixed backend): **11 passed, 0 failed, 271.39 s**.
## Executed test suite
@@ -106,7 +108,7 @@ cargo test # see counts below
| `tests/analysis_document.rs` (real CLI, entry extraction) | 3 passed |
| `tests/formula_contract.rs` (grammar, precedence, bounds, diagnostics, rendering, evaluation) | 12 passed |
| `tests/document_contract.rs` (no-target, shape errors, unsupported/invalid formulas, missing/external links, cycles, `--unit`, upstream static failure, root escape) | 11 passed |
| `tests/e2e.rs` (Lean-backed, `#[ignore]`) | 9 passed, 213.78 s |
| `tests/e2e.rs` (Lean-backed, `#[ignore]`) | 11 passed, 271.39 s |
## Tool installation evidence