lean-formalize
Fungsinya
Skill ini mengubah pernyataan matematika menjadi bukti yang diperiksa komputer dalam Lean, bahasa bukti formal. Skill ini untuk peneliti yang membutuhkan verifikasi formal atas hasil kunci.
Kapan dipakai
- βSaat Anda meminta bukti Lean atau ingin proyek Lean yang sudah ada diselesaikan.
- βSaat klaim utama bergantung pada argumen panjang atau rumit yang perlu pemeriksaan formal.
- βSaat Anda perlu memastikan bukti Lean cocok dengan pernyataan asli.
Link skill
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/lean-formalize/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSaya perlu bukti Lean untuk teorema ini, ditambah pemeriksaan bahwa buktinya cocok dengan pernyataan asli.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menghubungkan masukan Anda dengan lemma perantara, menyusun teorema akhir, dan memeriksa aksioma apa yang dibutuhkannya. Lalu agent menyerahkan catatan yang bisa direproduksi orang lain.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Lean Formalize
Before each reviewer slot, follow Selectable Reviewers: resolve invocation β
.aris/reviewer.jsonβ Claude Code default (Codex MCP) withreviewer_route.pythrough the canonical helper resolver, preserving this slot's tier, fresh contexts, source/image inputs and deterministic gates. Codex examples/pins below apply only tobackend=codex; other routes use their own first-call/reply contract. Save the route and actual returned identity; unavailable selections areREVIEW_UNAVAILABLE. Classify acceptance from actual families/completion/scope. Forward invocation reviewer/model/effort overrides to reviewer-bearing children. Generation workers are unchanged.
Turn the user's mathematical statement into a checked Lean theorem with its meaning preserved. A compiled conditional lemma is progress; completion concerns the original statement and the trust basis actually used.
When to use Lean
Use this skill when the user requests Lean, when continuing an existing Lean
proof, or when formal verification addresses a concrete uncertainty in a central
claimβfor example, a long dependency chain, a delicate reduction, or coverage of
a finite classification. State the obligation it will help resolve and proceed
within the authorized task. Difficulty alone is not a reason to formalize.
Ordinary derivations and short proofs can stay in formula-derivation or
proof-writer; do not make Lean a prerequisite for every mathematical result.
Respect the user's chosen proof method and the scale of the requested work.
Core workflow
Original statement and Lean definitions
β A: cross-family adversarial statement alignment
β Proof obligations, representations, and lemma interfaces
β Lean implementation β B: adversarial review of key arguments and connections
β Actual inputs connected; original theorem assembled
β Executed type, definition, and transitive-axiom audit
β C: cross-family adversarial review of the final exported result
β Reproducible delivery and research-state update
For substantial new proof projects, A/B/C are part of the workflow. For a continuation, reuse completed checks on unchanged claims and revisit affected ones. Small routine formalizations need checks proportional to the actual claim; an explicit user request for cross-family review still applies to them.
Use the authorized reviewer families available in the current host. If the user specifies both Grok and Gemini, obtain and record both; a same-family agent or another provider does not silently satisfy either request. Unavailability leaves that checkpoint pending while independent proof work continues. A checked theorem and a fully completed requested review workflow are separate deliverables.
Scope and entry
Follow the requested scope: implement, continue, audit, or package. For an audit, inspect and report rather than silently repairing or weakening the theorem. For implementation, develop the mathematical argument as well as its Lean proof: search relevant literature or library results, explore alternative routes, and discharge the missing lemmas. Continue through the remaining interfaces and top-level assembly; do not stop at a target declaration or the first successful compilation.
Read the authoritative statement, existing Lean entry point, toolchain and lockfile, and latest progress record. Reuse the project and its document names. Do not reinstall tools, change dependencies, or start a new proof framework when the existing environment is suitable. Resolve APIs against the pinned library.
Use the existing proof route when it works. If the mathematical argument itself
is missing, isolate that obligation and use proof-writer or ordinary proof work.
A delegated proof-writer task develops that argument and returns its proof or
remaining gap to this run; it must not invoke lean-formalize again. Syntax
automation cannot discharge an unproved premise. Do not promise that an arbitrary
open problem can be formalized or solved.
Start or resume the right work
| Current input | First useful action |
|---|---|
| Only a mathematical statement | Fix definitions and quantifiers, then develop a proof route and its first difficult obligation |
| A prose proof | Identify nontrivial dependencies and choose Lean representations; expose any missing argument before coding it |
| A partial Lean project | Inspect the target and its actual callers, read the |
Pertanyaan umum
Apakah saya harus sudah mengenal Lean?
Skill ditujukan bagi yang menginginkan keluaran Lean. Skill membangun proyek langkah demi langkah dan melaporkan apa yang berhasil dikompilasi.
Apakah lemma bersyarat yang terkompilasi sama dengan bukti selesai?
Tidak. Skill menyatakan lemma bersyarat yang terkompilasi adalah kemajuan, sedangkan selesai berarti pernyataan asli sudah terbukti.
Kapan tidak memakai skill ini?
Untuk derivasi biasa, skill penulis bukti lebih cocok menurut perutean skill.
Detail
Deskripsi asli dari pembuat
Develop and verify a mathematical proof in Lean, continue an incomplete Lean project, or audit whether it proves the original statement. Connect actual inputs to intermediate lemmas, assemble the target theorem, check its transitive axioms, and provide a reproducible handoff. Use when Lean is requested or a specific proof obligation benefits from formal verification; use proof-writer for ordinary mathematical drafting.
Popularitas
- Bintang GitHub
- 18k
- Peringkat
- #10552
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
ablation-planner
18kMembantu agent Anda merencanakan studi ablasi untuk sebuah makalah, memilih uji yang kemungkinan diminta reviewer setelah hasil utama terlihat baik.
alphaxiv
18kMemungkinkan agent Anda membaca satu makalah riset dengan cepat memakai ringkasan AlphaXiv, dengan teks lengkap atau sumber LaTeX sebagai cadangan, dari tautan arXiv atau ID.
analyze-results
18kMembantu agent Anda menganalisis hasil eksperimen machine learning, membandingkan jalankan dengan baseline, dan mengubah angka-angka itu menjadi temuan serta langkah berikutnya yang jelas.
arxiv
18kMemungkinkan agent Anda mencari makalah akademik di arXiv, membaca detailnya, dan menyimpan PDF ke perpustakaan Anda untuk topik riset.
Skill serupa
graincrawl
394kMemungkinkan agent Anda mencari catatan dan transkrip rapat Granola yang tersimpan, memeriksa seberapa baru datanya, dan menghitungnya dalam periode tertentu.
notcrawl
394kMemungkinkan agent Anda mencari salinan tersimpan dari ruang kerja Notion, mencari halaman dan database, serta mengekspor halaman ke file Markdown.
knowledge-entities
394kMembantu agent Anda mengidentifikasi orang, perusahaan, dan proyek, lalu menulis halaman profil berisi sumber untuk mereka di Knowledge vault Anda.