lean-arklib-proofs
Formalize and verify mathematical or cryptographic claims in Lean 4 with ArkLib: exact-target builds, axiom audits, dependency checks, and the build evidence an evaluator expects.
- License 许可
- MIT
- 最近更新
- 2026-10-30
- Stars
- ★ 4
- Forks
- 3
01 前言 Front Matter
- name
- lean-arklib-proofs
- description
- Formalize and verify mathematical or cryptographic claims in Lean 4 with ArkLib: exact-target builds, axiom audits, dependency checks, and the build evidence an evaluator expects.
02 资源文件 2
- 参考文档agents/openai.yaml274 B
- 参考文档references/acceptance-gates.md1.4 KB
03 SKILL.md 正文
Lean and ArkLib proofs
Convert an informal argument or computational finding into a theorem accepted by the target Lean 4 and ArkLib project. The exact repository target and its policy define acceptance.
Proof workflow
- Read the governing project instructions, pinned Lean and ArkLib revisions, target file, build command, and acceptance rules.
- State the theorem with the intended quantifiers, domains, side conditions, definitions, and normalization. Compare it directly with the external claim.
- Isolate computational evidence as a lemma hypothesis or re-prove it inside Lean. CAS, solver, or search output does not enter the trusted result merely because it guided the proof.
- Implement the smallest maintainable proof using existing project lemmas before adding custom infrastructure.
- Build the exact target in the authoritative worktree. Confirm that the build consumed the edited file rather than a shadow copy or stale artifact.
- Apply every relevant gate in references/acceptance-gates.md.
- Preserve theorem name, repository commit, toolchain lock, ArkLib revision, commands, and outputs.
Boundaries
- Do not claim completion while
sorry,admit, an unapproved axiom, or a placeholder theorem remains in the trusted dependency path. - Do not assume
native_decide, code generation, or an external oracle is accepted; follow the target repository's trust policy. - A successful editor check or unrelated package build does not replace the exact target build.
- A formal theorem can still formalize the wrong statement. Keep statement equivalence as a separate reviewed obligation.
04 同仓库更多 Skills
verify-research-transfer
Check whether a literature finding supports a proposed performance optimization. Read the primary figures and the implementation source, then run a cheap falsifier before writing code or benchmarks.
verify-paired-native-measurements
Audit the process, sample and archive evidence behind paired native benchmarks, especially wrappers around an unchanged official client. Use before admitting benchmark results or when reviewing the controller that produced them. Ordinary unit tests do not need this.
squares-in-squares-campaign
Pack n = 1..1000 unit squares into the smallest square (Kaggle "Squares in Squares", score sum L/sqrt(n) - 1). Use when improving, certifying or submitting packings, or when choosing the next search route. Covers the official-metric gates, the solver and MIS tools, the structure of the frontier, and the routes measured dead. The competition closed on 25 Oct 2026.
shot-autopsy
When a candidate fails shots its parent passes, find the structural cause before any nonce search. Reconstruct the exact failing shot, localize the first divergence, repair it by paying precision, and keep the case as a permanent regression. Learned from bulengerk's ecdsa.fail rows. Use when an edited candidate fails shots its parent passed, or when counts drift between builds.
send-to-claude-fable
Send a bounded task or review packet to the local Claude Code CLI on the Fable model and bring back its verdict. Use when you want an independent second opinion from a different model.
rust-archive-build-binding
Prevent stale Cargo artifacts when a source archive is restored over a reused Rust target directory. Use for reproducible benchmark comparisons and for moving source archives between machines.