tests+docs: contract fixtures, Lean-backed acceptance suite and executed status
- document_contract: negative path coverage through the real CLI (selection, shape errors, formula unsupported/invalid, missing/external links, cycles, --unit, upstream static failure, root escape) with exit-code assertions - e2e: algebra, vector composition (declared == used), program model scope, refutation, export+replay, cache reuse, tampered payload rejection - report fixes: declared/used locator consistency, diagnostic-only exit status, unsupported vs invalid formula outcomes - clippy -D warnings and cargo fmt clean; docs/STATUS records pinned identities, executed commands, measured backend limits and known gaps
This commit is contained in:
1 parent
4e02da95a4
commit
bd7e46b208
46 files changed
+390180
-460
No files matched your search
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
+70
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"schema": "marqdo.proof",
|
||||
"schema_version": 1,
|
||||
"tool": {
|
||||
"name": "marqdo-prove",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"target": {
|
||||
"unit_id": "root:default::false.mq.md#反例/平方总是负",
|
||||
"unit_path": [
|
||||
"反例",
|
||||
"平方总是负"
|
||||
],
|
||||
"locator": "false.mq.md",
|
||||
"scope": "mathematical",
|
||||
"outcome": "refuted",
|
||||
"statement_literal": "\\forall x\\in\\mathbb{Z},\\quad x^2<0\n",
|
||||
"statement_normalized": "∀ x : ℤ, x^2 < 0",
|
||||
"statement_lean": "∀ mqx0 : Int, ((mqx0 ^ (2 : Nat)) < (0 : Int))",
|
||||
"goal_span": {
|
||||
"start": 41,
|
||||
"end": 81
|
||||
},
|
||||
"goal_payload_span": {
|
||||
"start": 44,
|
||||
"end": 79
|
||||
},
|
||||
"goal_digest": "07b45c4054327cb560709dd7142d81bc2b39428b9dab088d035f2e15c5d3040d",
|
||||
"premises": [],
|
||||
"theorem_name": "marqdoTarget_a9f1eee0314c784457f9",
|
||||
"expected_name": "marqdoExpected_a9f1eee0314c784457f9",
|
||||
"model_definitions": []
|
||||
},
|
||||
"sources": [
|
||||
{
|
||||
"locator": "false.mq.md",
|
||||
"module_id": "root:default::false.mq.md",
|
||||
"source_digest": "88e2eef4fe81a1287b5596daf7aba0b5e8725ef668012ccc193702685f610543",
|
||||
"analysis_digest": "e987323e501121c1a21709e50720746bd891c989a0b25f79ca37c81e3196e87b"
|
||||
}
|
||||
],
|
||||
"environment": {
|
||||
"lean_toolchain": "leanprover/lean4:v4.36.0",
|
||||
"lean_version": "86_64",
|
||||
"mathlib_rev": "fc4f59e577feb1a4956671bc04ac18aaaf8cd842",
|
||||
"lake_manifest_digest": "bb82472009ad8aba44b75c1a1095dfe290dd87319421d55039e02fe57f2e0022",
|
||||
"replay_verifier_digest": "02cbc2c8b00dbdac2c5bcf359b25a62f896372b9964f7578caca4d4346d544c1",
|
||||
"con_leche_version": "con-leche-a6380d68b4fb3641",
|
||||
"formula_compiler": "marqdo-prove-0.1.0",
|
||||
"semantic_mapping": "marqdo-int-exact-v1",
|
||||
"environment_id": "9622d44bfc5540616117b8e4b60b3e06a84122535d4495925739a08acc14877a"
|
||||
},
|
||||
"declared_dependencies": [],
|
||||
"used_dependencies": [],
|
||||
"transitive_dependencies": [
|
||||
"false.mq.md#反例/平方总是负"
|
||||
],
|
||||
"axioms": [
|
||||
"propext"
|
||||
],
|
||||
"proof": {
|
||||
"file": "proof.ndjson",
|
||||
"bytes": 1493702,
|
||||
"sha256": "21bfd1a3d53438e8521379ddc1fb806e5ba5121f9d6bc8485dc0bb05a28942bc",
|
||||
"export_format": "lean4export-3.1.0",
|
||||
"target_decl": "marqdoTarget_a9f1eee0314c784457f9",
|
||||
"expected_decl": "marqdoExpected_a9f1eee0314c784457f9"
|
||||
},
|
||||
"cache_key": "364469fffce1d2c9810883f6df462a3fc6655ee2de4c65684aa6d77ae8e6efd0"
|
||||
}
|
||||
+28062
File diff suppressed because it is too large.
Load diff
+68
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"schema": "marqdo.proof",
|
||||
"schema_version": 1,
|
||||
"tool": {
|
||||
"name": "marqdo-prove",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"target": {
|
||||
"unit_id": "root:default::false.mq.md#反例/封闭错误等式",
|
||||
"unit_path": [
|
||||
"反例",
|
||||
"封闭错误等式"
|
||||
],
|
||||
"locator": "false.mq.md",
|
||||
"scope": "mathematical",
|
||||
"outcome": "refuted",
|
||||
"statement_literal": "3+4=8\n",
|
||||
"statement_normalized": "3 + 4 = 8",
|
||||
"statement_lean": "(((3 : Int) + (4 : Int)) = (8 : Int))",
|
||||
"goal_span": {
|
||||
"start": 135,
|
||||
"end": 146
|
||||
},
|
||||
"goal_payload_span": {
|
||||
"start": 138,
|
||||
"end": 144
|
||||
},
|
||||
"goal_digest": "1511e16776c3dedbc83717b7809f26ef859cb24a0980c34f5186efab40b751f3",
|
||||
"premises": [],
|
||||
"theorem_name": "marqdoTarget_c1a66f9163cb21940c3e",
|
||||
"expected_name": "marqdoExpected_c1a66f9163cb21940c3e",
|
||||
"model_definitions": []
|
||||
},
|
||||
"sources": [
|
||||
{
|
||||
"locator": "false.mq.md",
|
||||
"module_id": "root:default::false.mq.md",
|
||||
"source_digest": "88e2eef4fe81a1287b5596daf7aba0b5e8725ef668012ccc193702685f610543",
|
||||
"analysis_digest": "e987323e501121c1a21709e50720746bd891c989a0b25f79ca37c81e3196e87b"
|
||||
}
|
||||
],
|
||||
"environment": {
|
||||
"lean_toolchain": "leanprover/lean4:v4.36.0",
|
||||
"lean_version": "86_64",
|
||||
"mathlib_rev": "fc4f59e577feb1a4956671bc04ac18aaaf8cd842",
|
||||
"lake_manifest_digest": "bb82472009ad8aba44b75c1a1095dfe290dd87319421d55039e02fe57f2e0022",
|
||||
"replay_verifier_digest": "02cbc2c8b00dbdac2c5bcf359b25a62f896372b9964f7578caca4d4346d544c1",
|
||||
"con_leche_version": "con-leche-a6380d68b4fb3641",
|
||||
"formula_compiler": "marqdo-prove-0.1.0",
|
||||
"semantic_mapping": "marqdo-int-exact-v1",
|
||||
"environment_id": "9622d44bfc5540616117b8e4b60b3e06a84122535d4495925739a08acc14877a"
|
||||
},
|
||||
"declared_dependencies": [],
|
||||
"used_dependencies": [],
|
||||
"transitive_dependencies": [
|
||||
"false.mq.md#反例/封闭错误等式"
|
||||
],
|
||||
"axioms": [],
|
||||
"proof": {
|
||||
"file": "proof.ndjson",
|
||||
"bytes": 174123,
|
||||
"sha256": "b802f214ce34fabcf6e88750c87965d0e7a53e809098cb51006e2d483d3f4501",
|
||||
"export_format": "lean4export-3.1.0",
|
||||
"target_decl": "marqdoTarget_c1a66f9163cb21940c3e",
|
||||
"expected_decl": "marqdoExpected_c1a66f9163cb21940c3e"
|
||||
},
|
||||
"cache_key": "c5f87c70f553453cf28e79fe129cf80e94a38912d1bc9e466e916d43e876b4d3"
|
||||
}
|
||||
+3166
File diff suppressed because it is too large.
Load diff
+11
@@ -0,0 +1,11 @@
|
||||
# 依赖形状错误
|
||||
|
||||
## @knowledge 目标
|
||||
|
||||
$$
|
||||
1 = 1
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
|
||||
- [目标](other.mq.md#目标) 多余文字
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
# 环形 A
|
||||
|
||||
## @knowledge A
|
||||
|
||||
$$
|
||||
1 = 1
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
|
||||
- [B](cycle-b.mq.md#B)
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
# 环形 B
|
||||
|
||||
## @knowledge B
|
||||
|
||||
$$
|
||||
1 = 1
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
|
||||
- [A](cycle-a.mq.md#A)
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
# 外部链接
|
||||
|
||||
## @knowledge 目标
|
||||
|
||||
$$
|
||||
1 = 1
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
|
||||
- [外部知识](https://example.com/theory)
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
# 反例
|
||||
|
||||
## @knowledge 平方总是负
|
||||
|
||||
$$
|
||||
\forall x\in\mathbb{Z},\quad x^2<0
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
|
||||
## @knowledge 封闭错误等式
|
||||
|
||||
$$
|
||||
3+4=8
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
# 自由变量
|
||||
|
||||
## @knowledge 没有定义域
|
||||
|
||||
$$
|
||||
x^2\geq0
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
# 断链
|
||||
|
||||
## @knowledge 目标
|
||||
|
||||
$$
|
||||
1 = 1
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
|
||||
- [缺失定理](does-not-exist.mq.md#定理)
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
# 普通知识
|
||||
|
||||
## @knowledge 仅解释
|
||||
|
||||
这里有一个公式,但没有 `证明依赖` 标题,因此不是证明目标。
|
||||
|
||||
$$
|
||||
\forall x\in\mathbb{Z},\quad x^2\geq0
|
||||
$$
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
# bad
|
||||
|
||||
## @exec broken
|
||||
|
||||
`return +`
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
# 双目标
|
||||
|
||||
## @knowledge 两个公式
|
||||
|
||||
$$
|
||||
x = 1
|
||||
$$
|
||||
|
||||
$$
|
||||
y = 2
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
# 不支持的域
|
||||
|
||||
## @knowledge 实数平方
|
||||
|
||||
$$
|
||||
\forall x\in\mathbb{R},\quad x^2\geq0
|
||||
$$
|
||||
|
||||
### 证明依赖
|
||||
Reference in new issue
Block a user