lean-formalize
Qué hace
Esta skill convierte un enunciado matemático en una demostración que una computadora verifica en Lean, un lenguaje formal de demostraciones. Está pensada para investigadores que necesitan una verificación formal de un resultado clave.
Cuándo usarla
- ✓Cuando pides una demostración en Lean o quieres terminar un proyecto de Lean existente.
- ✓Cuando una afirmación central depende de un argumento largo o delicado que necesita verificación formal.
- ✓Cuando necesitas confirmar que una demostración en Lean coincide con el enunciado original.
Link de la skill
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/lean-formalize/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Necesito una demostración en Lean de este teorema, y también una comprobación de que coincide con el enunciado original.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente conecta tus datos con los lemas intermedios, ensambla el teorema final y comprueba de qué axiomas depende. Después entrega un resultado que otra persona puede reproducir.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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 |
Preguntas frecuentes
¿Necesito saber Lean antes?
La skill está pensada para personas que quieren un resultado en Lean. Construye el proyecto paso a paso e informa de lo que compila.
¿Un lema compilado equivale a una demostración terminada?
No. La skill indica que un lema condicional compilado es un avance, pero el trabajo está completo solo cuando se demuestra el enunciado original.
¿Cuándo no debo usarla?
Para una derivación ordinaria, la skill de redacción de demostraciones es más adecuada, según la propia skill.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 18 mil
- Posición en el ranking
- #10552
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
ablation-planner
18 milAyuda a tu agente a planificar estudios de ablación para un artículo, eligiendo las pruebas que probablemente pidan los revisores cuando los resultados principales ya parecen buenos.
alphaxiv
18 milPermite que tu agente lea rápidamente un artículo de investigación usando resúmenes de AlphaXiv, con el texto completo o el código fuente en LaTeX como respaldo, a partir de un enlace de arXiv o de un ID.
analyze-results
18 milAyuda a tu agente a analizar resultados de experimentos de aprendizaje automático, comparar las ejecuciones con una línea base y convertir las cifras en hallazgos claros y próximos pasos.
arxiv
18 milPermite que tu agente busque artículos académicos en arXiv, lea sus detalles y guarde los PDF en tu biblioteca para un tema de investigación.
Skills parecidas
graincrawl
394 milPermite que tu agente busque tus notas y transcripciones guardadas de reuniones de Granola, revise qué tan recientes son y las cuente en un periodo.
notcrawl
394 milPermite que tu agente busque en una copia guardada de tu espacio de Notion, consulte páginas y bases de datos y exporte páginas a archivos Markdown.
knowledge-entities
394 milAyuda a tu agente a identificar personas, empresas y proyectos, y después a redactar páginas de perfil con fuentes en tu bóveda de Knowledge.