analysis: bind to marqdo.analysis rev 3 and extract proof units

- strict DTOs for the current public Analysis contract, digest/span validation
- controlled-root CLI invocation with argv-only, timeout and process group kill
- proof-unit selection: one Knowledge H2 + direct 证明依赖 H3 + one display goal
- dependency list shape validation with 证明依赖 links
- real-CLI integration tests for the algebra/vector/arithmetic fixtures
This commit is contained in:
marqdo-prove committed 2026-11-26 09:51:22 +08:00
1 parent ecaf1b756c
commit 3a529b923d
8 files changed
+2672 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# 基础代数
## @knowledge 整数平方非负性
任意整数的平方均非负。
$$
\forall x\in\mathbb{Z},\quad x^2\geq 0
$$
### 证明依赖
## @knowledge 非负整数加法
两个非负整数相加仍然非负。
$$
\forall a,b\in\mathbb{Z},\quad (a\geq0\land b\geq0)\Rightarrow a+b\geq0
$$
### 证明依赖
+22
View File
@@ -0,0 +1,22 @@
# 整数计算
## @exec square
`params(x: Int)`
计算一个整数的平方。
`return x * x`
## @knowledge 平方函数的非负性
平方函数的返回值在精确整数计算模型下非负。
$$
\forall x\in\mathbb{Z},\quad \operatorname{square}(x)\geq0
$$
### 证明依赖
- [square](#square)
- [整数平方非负性](algebra.mq.md#整数平方非负性)
+14
View File
@@ -0,0 +1,14 @@
# 向量数学
## @knowledge 平方和非负性
任意两个整数的平方和均非负。
$$
\forall x,y\in\mathbb{Z},\quad x^2+y^2\geq0
$$
### 证明依赖
- [整数平方非负性](algebra.mq.md#整数平方非负性)
- [非负整数加法](algebra.mq.md#非负整数加法)