一键导入
lean-formalization
Native formalization workflow entry. Follow the formalize/draft specs, typed Lean tools, and queue-driven verification ladder.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Native formalization workflow entry. Follow the formalize/draft specs, typed Lean tools, and queue-driven verification ladder.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Native Lean search entry. Use the shared `lean_search` surface first across local-project and Mathlib/semantic modes, with provider-aware fallbacks and result provenance.
Run a user-approved Lean swarm with clear file ownership, verifier roles, and strict zero-sorry verification.
Native diagnostics/review/doctor entry. Use structured capability, inspection, and verification state instead of ad hoc summaries.
Native proving workflow entry. Follow the prove/formalize specs, structured Lean tools, queue state, and router decisions instead of free-form proof guessing.
Auxiliary proof-strategy help for hard Lean theorem repairs. Use when repeated focused attempts fail and another configured model or command expert should advise without editing files or changing existing statements.
Native refactor/golf routing entry. Load the linked workflow specs as the contract, preserve theorem meaning, and keep optimization inside the direct Lean tool surface.
| name | lean-formalization |
| description | Native formalization workflow entry. Follow the formalize/draft specs, typed Lean tools, and queue-driven verification ladder. |
Primary specs:
leanflow_specs/workflows/formalize.mdleanflow_specs/workflows/draft.md when available through routingleanflow_specs/workflows/search.mdformalization_document_inspect when /formalize provided a source .tex, .pdf, or TeX project directorylean_capabilitieslean_inspectlean_searchlean_proof_context or lean_auto_search only when a drafted declaration is blocked and theorem-local automation search is justifiedpatch or write_file for managed Lean file edits; the queue manager verifies successful edits against the current gateapply_verified_patch only when you specifically need a single atomic patch/checkpoint/verification resultlean_verify for final broader verification when the manager gate did not cover the requested scopepatch/write_file because the runner records the automatic post-edit lean_incremental_check(check_target) result and falls back to Lake only when needed. Use apply_verified_patch for compatibility or when its pre-edit checkpoint payload is specifically useful.lean_verify module checks when close to clean; reserve full-project verification for milestone checks.Blueprint.md before writing the main Lean draft. Replace _pending_ source inventory entries with declaration names, dependencies, split lemmas, statement-fidelity reviews, and proof/prover notes.Source proof, Proof sketch, or Prover notes; do not leave the prover to rediscover the paper proof from scratch. The generated supplemental blueprint skill carries the durable Blueprint.md reference for prover turns.by sorry; do not fill proofs during /formalize, even if they look easy. The managed prover queue should solve them one declaration at a time after statement/source verification is approved.lean_inspect and lean_verify (module or file_exact), plus the document formalization handoff verifier. Do not use terminal Lake commands as the normal readiness check.Source qualifiers, Lean coverage, and Scope changes. Qualifiers include mathematical object class, quantifier order, parameter domain, output codomain, equality/image condition, side conditions, and follow-on claims. Every explicit qualifier must appear in the Lean theorem, be covered by a companion declaration, or be recorded as an intentional scope change.Basic.lean, Constructions.lean, and Theorems.lean only when useful, update Main.lean as the aggregator, keep the blueprint declaration/source mappings intact, and run lean_verify(mode=project).lake build checks it, keep the blueprint import plan identical to the target Lean imports, ensure the draft has no hard Lean diagnostics, and record Statement verification status: approved for each source theorem/lemma inventory entry.Blueprint.md and original .tex/.pdf source for the paper's proof strategy before inventing a proof.sorry.