szl-math-claim-check
Checks a mathematical claim two ways: numerically, by testing declared cases under fixed tolerances and recording counterexamples; and structurally, by auditing a theorem-to-code claim's bindings (exact proposition, domain, assumptions, checker log, custom axioms) without trusting a PROVEN label. Use when a formula, inequality, conservation law or 'we proved that' statement is offered as evidence, when a Lean or Coq result is cited for a runtime, or when a derivation looks too convenient. Not a theorem prover and not a CAS.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- szl-math-claim-check
- license
- Apache-2.0
- description
- Checks a mathematical claim two ways: numerically, by testing declared cases under fixed tolerances and recording counterexamples; and structurally, by auditing a theorem-to-code claim's bindings (exact proposition, domain, assumptions, checker log, custom axioms) without trusting a PROVEN label. Use when a formula, inequality, conservation law or 'we proved that' statement is offered as evidence, when a Lean or Coq result is cited for a runtime, or when a derivation looks too convenient. Not a theorem prover and not a CAS.
02 资源文件 6
- 资产文件assets/example.json284 B
- 资产文件assets/scope-example.json2.4 KB
- 脚本kernel.py13.5 KB
- 参考文档references/provenance.md1.4 KB
- 参考文档references/scope-contract.md4.7 KB
- 脚本scripts/run.py3.5 KB
03 SKILL.md 正文
Mathematical claim checking
Write the exact statement, quantifiers, domain and assumptions. Separate definitions, cited theorems, conjectures, numerical observations and remaining proof obligations, then let the helper record what the evidence actually covers. Python 3.10+, stdlib, offline.
Use when
- A manuscript asserts an identity or bound "for all x in [0,1]" and you want cases at zeros, boundaries and extreme scales tested under declared tolerances.
- A repository says a property is PROVEN and a runtime relies on it; you need the proposition bytes,
the checker log and the axiom list bound to that claim rather than a text search for
sorry. - Two groups disagree about whether a reported formula holds on the published numbers.
Quick start
python scripts/run.py assets/example.json
python scripts/run.py assets/scope-example.json
The numerical example tests a deliberately false claim (that a weighted geometric mean always equals
the minimum) and returns "status": "NUMERICAL_COUNTEREXAMPLE" with the failing case
inputs [0.25, 1], lhs 0.5, rhs 0.25 and proof_discharged: false. The scope example returns
"status": "STRUCTURAL_CHECKS_PASSED" with statement, proposition and log digests and, again,
proof_discharged: false: structure passing is not a proof.
Numerical cases
Use szl_check_math_cases(claim, cases, relation, atol, rtol). Cases supply reviewed inputs, lhs,
rhs; fix tolerances and the tested domain before looking at results. A clean run establishes only
NO_COUNTEREXAMPLE_IN_TESTED_CASES. Inspect exact arithmetic and rounding before treating a
discrepancy as a mathematical refutation. The bundled szl_weighted_geomean helper accepts axes in
[0,1] and nonnegative weights summing to one; a zero axis with positive weight pins the result to zero.
The report also records that the uniqueness of that aggregator is an open conjecture, so nobody can
cite the demo as a theorem.
Theorem-to-runtime scope
Read references/scope-contract.md. Supply immutable source, toolchain and dependency observations,
the theorem symbol, proposition bytes, the retained checker log and its transitive axiom observations.
szl_audit_math_scope(contract) checks bindings, missing assumptions, interval extensions, one-way
claims presented as iff, unfinished proofs, custom axioms and numeric boundary review. It reads
supplied records only and never invokes a prover or evaluates a formula.
What it does not do
No symbolic proof checking, no arbitrary predicates (named real intervals only), no external service,
model or GPU call. Input is capped at 8 MiB. Failures are retained; unrun evaluation is NOT_MEASURED.
Source pins and rights boundaries are in references/provenance.md.
04 同仓库更多 Skills
szl-unit-invariants
Checks declared SI dimensions, allowlisted unit conversions, expected ranges and fixed pointwise invariants (equal, sum, difference, product, ratio) over selected measurement or simulation columns, flagging incompatible quantities, scale errors of 1000x and broken conservation checks. Use when merging instrument exports with different units, validating simulation output against conservation laws, or when a reviewer asks how unit errors were ruled out. Not an uncertainty-propagation or symbolic tool.
szl-uncertainty-lineage
Propagate declared measurement uncertainty through a small arithmetic dependency graph using a first-order delta approximation. Use when a researcher needs to see how corrected inputs or shared-source correlation change a reported standard uncertainty; require unit checks separately.
szl-typesafe-ai
TypeSafe/Jev: Choice/Noul/Score in code, not TypeScript types. System One models turn natural language and application state into probabilities that software can compose. Use when building routing, ranking, extraction, verification, or replacing an LLM prompt-and-parse step with structured decisions; also when brainstorming what TypeSafe could make possible. Do not use for TypeScript/Java/Rust static types, Zod/Pydantic/mypy/JSON Schema/protobuf codegen, or asking whether a pipeline is type-safe. At SZL, Jev is an optional second reader only.
demo
暂无简介
demo
暂无简介
szl-skill-update-review
Compare pinned local skill packages using inventories and a retained lock; report changed skills, files, declarations and reruns without approving safety or validity.