prove: restricted formula, program models and verified Lean backend

- formula.rs: the only math parser — fixed EBNF, typed Int/Prop AST, bounds,
  exact diagnostics, Lean target generation and counterexample evaluation
- model.rs: complete whitelist validation of the finite exact-integer program
  subset and deterministic @[expose] Lean model mapping
- lean.rs: pinned backend discovery, trusted generated search template,
  stock lean4export proof payload, independent con-leche kernel replay,
  expected-proposition regeneration and axiom audit
- Replay.lean: verifier executable (type alpha-equivalence, axiom closure,
  metavariable rejection) without importing any proof olean
- prove.rs/main.rs: single check/replay orchestration, reports, exit codes
- real E2E: algebra/vector/arithmetic fixtures verify and publish bundles
This commit is contained in:
marqdo-prove committed 2026-11-26 10:50:38 +08:00
1 parent 3a529b923d
commit 4e02da95a4
20 files changed
+9077 -27

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
{
"schema": "marqdo.cli-tool",
"schema_version": 1,
"name": "marqdo.prove",
"version": "0.1.0",
"command": "prove",
"entrypoint": "bin/marqdo-prove",
"requires": {
"api_revision": 1,
"analysis": 3
}
}