lean-math-analysis

Formalize real analysis and topology in Lean 4 using Mathlib filters.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Formalizes real analysis, topology, and measure theory in Lean 4 using Mathlib's filter-based approach to provide a scalable workflow for rigorous proofs.

Core Features & Use Cases

  • Maps proofs to Mathlib's analysis architecture (continuity, derivatives, integrals, normed spaces, measure theory).
  • Provides clear handoffs to related domains (proof engineering, foundations, and research notes) to streamline complex verification tasks.
  • Includes a structured reference backbone and Part-based workflow to guide end-to-end formalization from problem framing to proof completion.

Quick Start

Describe your analysis goal and apply Mathlib's filter-based architecture to structure a proof, starting with the relevant Part (continuity, derivatives, measure theory) and handing off to the appropriate specialist when needed.

Frequently Asked Questions about lean-math-analysis

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

FAQPage Schema
How do I formalize real analysis proofs in Lean 4 using Mathlib?

Formalizing real analysis in Lean 4 involves mapping proofs to Mathlib's filter-based architecture, starting with a relevant Part like continuity or derivatives, and applying Tendsto or ContinuousAt patterns to structure the verification.

What is the filter-based approach for topology proofs in Lean 4?

The filter-based approach in Mathlib uses filters to generalize concepts like limits and continuity, allowing you to uniformly handle convergence and topological properties using Tendsto and ContinuousAt patterns in Lean 4.

Can I formalize measure theory and differentiation together in Mathlib4?

Yes, you can formalize measure theory and differentiation together in Mathlib4 by following the Part-based workflow, which coordinates continuity, derivatives, normed spaces, and measure theory under a unified filter-based analysis architecture.

Does this Lean 4 workflow support handoffs to proof engineering foundations?

Yes, the workflow explicitly coordinates handoffs to proof engineering and foundations skills when a gap is found, streamlining complex verification tasks across real analysis and topology in Mathlib4.

What is the best way to structure a measure theory proof in Lean 4?

The best way to structure a measure theory proof in Lean 4 is to apply Mathlib's filter-based architecture, select the appropriate Part-based workflow section, and consult the structured reference backbone when encountering formalization gaps.