lean-formalize
यह क्या करती है
यह स्किल एक गणितीय कथन को ऐसे प्रमाण में बदलती है जिसे कंप्यूटर Lean, एक औपचारिक प्रमाण-भाषा, में जाँचता है। यह उन शोधकर्ताओं के लिए है जिन्हें किसी मुख्य नतीजे का औपचारिक सत्यापन चाहिए।
कब इस्तेमाल करें
- ✓जब आप Lean प्रमाण माँगते हों या किसी अधूरे Lean प्रोजेक्ट को पूरा करवाना चाहते हों।
- ✓जब कोई केंद्रीय दावा लंबे या नाज़ुक तर्क पर टिका हो और उसे औपचारिक जाँच चाहिए।
- ✓जब आपको यह पक्का करना हो कि Lean प्रमाण मूल कथन से मेल खाता है।
Skill का लिंक
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/lean-formalize/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस प्रमेय का Lean प्रमाण बनाइए, और जाँचिए कि वह मूल कथन से मेल खाता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपके इनपुट को बीच के lemmas से जोड़ता है, अंतिम प्रमेय जोड़ता है, और जाँचता है कि वह किन axioms पर निर्भर है। फिर वह एक ऐसा हैंडऑफ़ देता है जिसे कोई और दोहरा सके।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 |
अक्सर पूछे जाने वाले सवाल
क्या मुझे पहले से Lean आना चाहिए?
यह स्किल उन लोगों के लिए है जिन्हें Lean का नतीजा चाहिए। यह प्रोजेक्ट चरण-दर-चरण बनाती है और बताती है कि क्या कंपाइल हुआ।
क्या कंपाइल हुआ lemma पूरा प्रमाण होता है?
नहीं। स्किल कहती है कि शर्त-आधारित कंपाइल हुआ lemma प्रगति है, पर पूरा होना तब है जब मूल कथन सिद्ध हो जाए।
इसे कब इस्तेमाल नहीं करना चाहिए?
साधारण व्युत्पत्ति के लिए, स्किल के रूटिंग नियम के अनुसार proof-writer स्किल बेहतर है।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 18k
- रैंकिंग में स्थान
- #10552
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
ablation-planner
18kआपके एजेंट को किसी शोधपत्र के लिए ablation अध्ययन की योजना बनाने में मदद करती है, मुख्य परिणाम अच्छे दिखने पर समीक्षकों द्वारा माँगे जाने वाले परीक्षण चुनते हुए।
alphaxiv
18kआपके एजेंट को AlphaXiv सार से एक शोधपत्र जल्दी पढ़ने देती है, पूरे पाठ या LaTeX स्रोत को बैकअप के रूप में रखकर, arXiv लिंक या ID से।
analyze-results
18kआपके एजेंट को मशीन लर्निंग प्रयोगों के परिणामों का विश्लेषण करने देती है, रनों की तुलना आधार रेखा से करती है, और आँकड़ों को स्पष्ट निष्कर्षों और अगले कदमों में बदलती है।
arxiv
18kआपके एजेंट को arXiv पर शैक्षणिक शोधपत्र खोजने, उनका विवरण पढ़ने, और किसी शोध विषय के लिए PDF आपकी लाइब्रेरी में सहेजने देती है।
मिलती-जुलती skills
graincrawl
394kयह आपके एजेंट को सेव की गई Granola मीटिंग नोट्स और ट्रांसक्रिप्ट में खोजने, उनकी ताज़गी जांचने और किसी अवधि के हिसाब से गिनती करने देती है।
notcrawl
394kयह आपके एजेंट को Notion वर्कस्पेस की सेव की गई कॉपी में खोजने, पेज और डेटाबेस देखने और पेजों को Markdown फ़ाइलों में निर्यात करने देती है।
knowledge-entities
394kयह आपके एजेंट को लोगों, कंपनियों और प्रोजेक्ट्स की पहचान करने और आपके Knowledge vault में स्रोत-आधारित प्रोफ़ाइल पेज लिखने देती है।