cflmy
a11b347659
prove: add marqdo prove (P0 emit/audit + P1 claim tables & check --proof)
Language layer (ADR 0010):
- claim tables (定理|结论|前提|策略) parsed before first executable
statement, extracted into Function.claims, removed from body
- check --proof (default off): proof.claim_malformed / claim_ambiguous /
claim_misplaced / claim_duplicate / claim_unknown_symbol /
claim_unsupported / name_shadow
Runtime layer (src/prove/):
- ir.rs: Plan IR with stable hand-rolled JSON (schema 1)
- lower.rs: subset acceptance (proof.while / proof.recursion /
proof.dynamic_call), inlining for straight-line pure callees, opaque
ops with effect labels, --allow-opaque whole-function downgrade
- types.rs: literal-driven inference + branch confluence
(proof.type_mismatch, exit 1)
- emit.rs: deterministic Lean emission (Val × List Op, continuation
style, -- mq: line:col anchors, «…» for dotted idents, theorem
scaffolds from claims with unfold/split script)
- mod.rs: prove/emit/audit/clean commands, Verdict taxonomy
(error > unproved > rejected > unverified > checked > proved),
exit codes 0/1/2 per design §3.3
Tests: tests/prove.rs 19 integration cases (no Lean required) + module
unit tests; full suite stays green except the 3 documented
env-limited failures.
Docs: doc/design/prove-cli.md (§12 records deviations: result.ok/error
vs drafted success/failure, Val-based run at P1, op arity, opaque
effect label), doc/roadmap/prove.md, doc/adr/0010.
Env fixes carried in: scratch dirs in test helpers honor
CARGO_TARGET_DIR (needed on this machine's read-only target/debug).
2026-11-18 10:28:18 +08:00
..
2026-10-27 10:49:20 +08:00
2026-08-11 09:45:08 +08:00
2026-10-16 11:11:54 +08:00
2026-09-23 05:06:30 +08:00
2026-09-23 13:10:28 +08:00
2026-09-04 08:46:05 +08:00
2026-09-04 09:11:36 +08:00
2026-11-10 17:03:06 +08:00
2026-11-10 17:03:06 +08:00
2026-09-14 10:16:48 +08:00
2026-10-23 23:34:21 +08:00
2026-10-16 11:47:28 +08:00
2026-10-16 11:47:28 +08:00
2026-10-16 11:11:54 +08:00
2026-09-07 22:14:51 +08:00
2026-09-07 16:13:22 +08:00
2026-11-08 21:50:01 +08:00
2026-09-07 22:14:51 +08:00
2026-10-18 01:39:36 +08:00
2026-09-01 10:06:56 +08:00
2026-09-14 13:39:12 +08:00
2026-11-08 22:19:11 +08:00
2026-11-08 22:19:11 +08:00
2026-09-14 16:05:29 +08:00
2026-09-09 09:42:13 +08:00
2026-10-18 01:44:05 +08:00
2026-08-10 11:58:26 +08:00
2026-08-11 10:07:03 +08:00
2026-09-23 13:10:28 +08:00
2026-09-23 05:06:30 +08:00
2026-11-18 10:28:18 +08:00
2026-10-24 02:51:03 +00:00
2026-09-23 01:27:01 +08:00
2026-09-22 21:10:03 +08:00
2026-11-08 22:19:11 +08:00
2026-09-09 09:42:13 +08:00
2026-09-09 09:04:29 +08:00
2026-09-14 10:44:18 +08:00
2026-09-23 13:10:28 +08:00
2026-09-23 05:06:30 +08:00