feat: Marqdo v2.9.0 Verified Knowledge Compiler (full release candidate)

Unified source-verified contracts, accurate evidence grades and independently replayable Lean certificates; version sync, bilingual notes and guarded full release CI. Preserve native AI extension updates from main.
This commit is contained in:
cflmy authored and GitHub committed 2026-11-18 17:12:07 +08:00
1 parent a3948dbe0d
commit 180a111799
43 files changed
+5816 -20

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# Marqdo 知识锚点 + 自动证明示例
面向 CLI 2.8.0,原 Markdown 语法不变:
```sh
marqdo knowledge examples/knowledge-proof/
marqdo prove examples/knowledge-proof/main.mq.md --json
marqdo knowledge examples/knowledge-proof/
```
知识编译后,查看 `.marqdo/anchors.json`、`.marqdo/claims.json`、`.marqdo/refs.json`、`.marqdo/graph/edges.json` 以及 `.marqdo/proof-index.json`(具体输出目录取决于 CLI --out)。
证明调用另外生成其证明目录下的 `knowledge-links.json`。运行 CLI 时是否有 Lean 决定该定理能否获得真正的 `proved` 状态;没有 Lean 只能是 `checked` 或 `unverified`。在此案例中,`长度(轨迹)=0` 是函数级定理,并非内部的“计算结果”步骤已经独立证明正确。
`[计算知识节点](#@计算结果)` 是**同函数内的静态知识引用**。跨文件引用请从 `anchors.json` 拿完整 `mq://...#anchor-...` 地址,不要猜测哈希。两个同名标记不共享地址,会被标记为无公共锚点。
+19
View File
@@ -0,0 +1,19 @@
---
markup: occlusion
title: 可寻址、可验证的知识步骤
---
# main
## 计算
| 定理 | 结论 | 前提 | 策略 |
|---|---|---|---|
| 无外部操作 | 长度(轨迹) = 0 | | auto |
这里的 [计算知识节点](#@计算结果) 和 [定理声明](#@无外部操作) 都是可解析的知识引用;
它不会再次执行运算,也不会自动继承函数的形式化证明。
**答案 = [计算结果](2 * 3)**
*答案*