lean-doc-requirements

Extract formal Lean 4 requirements from informal documents with source traceability.

2|Updated May 26, 2026
One-click install
npx skills add https://github.com/r-irbe/proof-skills --skill lean-doc-requirements
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-doc-requirements
Source: https://github.com/r-irbe/proof-skills/tree/main/skills/lean-doc-requirements
Command: npx skills add https://github.com/r-irbe/proof-skills --skill lean-doc-requirements

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extract formal specification requirements from informal documents (papers, reports, and design documents) and map them to Lean 4 theorem statements.

Core Features & Use Cases

  • Extraction pipeline: identify informal claims, their scope, and implicit assumptions.
  • Draft Lean specifications with traceability back to the source.
  • Handoffs: route to lean-specification, lean-proof, and lean-zettelkasten for further refinement.

Quick Start

Load a source document and generate Lean 4 requirements with traceability back to the original source.

Frequently Asked Questions about lean-doc-requirements

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract formal Lean 4 specifications from academic papers?

You can extract Lean 4 requirements from academic papers by loading the source document and running an extraction pipeline that identifies informal claims, drafts Lean signatures, and maps theorem statements back to the original source text.

What is the best way to map informal document claims to Lean theorems?

Mapping informal claims to Lean theorems involves identifying the claim's scope, extracting implicit assumptions, and drafting Lean specifications that maintain strict traceability back to the source document for verification.

Can I generate Lean-ready requirements from technical reports and design documents?

Yes, you can generate Lean-ready requirements from technical reports and design documents. The extraction pipeline processes these informal documents to produce formal Lean 4 theorem statements with traceability to the source.

Do I need a separate tool to write Lean proofs after extracting specifications?

Yes, after extracting specifications, you route handoffs to lean-proof for further refinement. The extraction process focuses on drafting signatures and mapping claims to definitions, leaving actual proof development to downstream tools.

How does traceability work when extracting requirements from informal documents?

Traceability works by linking extracted formal Lean 4 signatures and theorem statements directly back to the specific informal claims, definitions, and implicit assumptions identified within the original source document.