- 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
23 lines
371 B
Markdown
23 lines
371 B
Markdown
# 整数计算
|
|
|
|
## @exec square
|
|
|
|
`params(x: Int)`
|
|
|
|
计算一个整数的平方。
|
|
|
|
`return x * x`
|
|
|
|
## @knowledge 平方函数的非负性
|
|
|
|
平方函数的返回值在精确整数计算模型下非负。
|
|
|
|
$$
|
|
\forall x\in\mathbb{Z},\quad \operatorname{square}(x)\geq0
|
|
$$
|
|
|
|
### 证明依赖
|
|
|
|
- [square](#square)
|
|
- [整数平方非负性](algebra.mq.md#整数平方非负性)
|