lean-formalize
Was er macht
Dieser Skill macht aus einer mathematischen Aussage einen Beweis, den ein Computer in Lean prüft. Lean ist eine formale Beweissprache. Er ist für Forschende gedacht, die ein zentrales Ergebnis formal verifizieren müssen.
Wann du ihn nutzt
- ✓Wenn du einen Lean-Beweis verlangst oder ein bestehendes Lean-Projekt fertigstellen willst.
- ✓Wenn eine zentrale Behauptung auf einem langen oder heiklen Argument beruht, das formal geprüft werden muss.
- ✓Wenn du bestätigen musst, dass ein Lean-Beweis zur ursprünglichen Aussage passt.
Link zum Skill
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/lean-formalize/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich brauche einen Lean-Beweis für dieses Theorem und eine Prüfung, ob er zur ursprünglichen Aussage passt.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent verbindet deine Eingaben mit den Zwischenlemmata, setzt das finale Theorem zusammen und prüft, von welchen Axiomen es abhängt. Danach liefert er eine Übergabe, die andere reproduzieren können.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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 |
Häufige Fragen
Muss ich Lean schon kennen?
Der Skill richtet sich an Menschen, die Lean-Ergebnisse wollen. Er baut das Projekt Schritt für Schritt und meldet, was kompiliert.
Ist ein kompiliertes Lemma ein fertiger Beweis?
Nein. Der Skill sagt, ein kompiliertes bedingtes Lemma ist ein Fortschritt. Vollständig ist der Beweis erst, wenn die ursprüngliche Aussage bewiesen ist.
Wann sollte ich ihn nicht nutzen?
Für eine gewöhnliche Herleitung passt laut Skill-Routing der Beweis-Schreiber-Skill besser.
Details
Originalbeschreibung des Autors
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.
Beliebtheit
- GitHub-Sterne
- 18k
- Platz im Ranking
- #10552
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
ablation-planner
18kHilft deinem Agenten, Ablationsstudien für eine Arbeit zu planen und die Tests auszuwählen, die Gutachter wahrscheinlich verlangen, sobald die Hauptergebnisse gut aussehen.
alphaxiv
18kLässt deinen Agenten eine Forschungsarbeit schnell anhand von AlphaXiv Zusammenfassungen lesen, mit Volltext oder LaTeX Quelle als Reserve, aus einem arXiv Link oder einer ID.
analyze-results
18kHilft deinem Agenten, Ergebnisse von Machine Learning Experimenten zu analysieren, Läufe mit einer Basis zu vergleichen und die Zahlen in klare Befunde und nächste Schritte zu übersetzen.
arxiv
18kLässt deinen Agenten auf arXiv nach wissenschaftlichen Arbeiten suchen, deren Details lesen und PDFs für ein Forschungsthema in deiner Bibliothek speichern.
Ähnliche Skills
graincrawl
394kLässt deinen Agenten gespeicherte Granola-Besprechungsnotizen und Transkripte durchsuchen, deren Aktualität prüfen und sie über einen Zeitraum zählen.
notcrawl
394kLässt deinen Agenten eine gespeicherte Kopie deines Notion-Workspace durchsuchen, Seiten und Datenbanken nachschlagen und Seiten als Markdown-Dateien exportieren.
knowledge-entities
394kHilft deinem Agenten, Personen, Firmen und Projekte zu erkennen und dafür belegte Profilseiten in deinem Knowledge-Vault zu schreiben.