This repository contains Lean 4 formalizations of proofs and exercises from Stephen Abbott's "Understanding Analysis" textbook. This project serves as both a learning tool for real analysis and an opportunity to practice formal mathematics in Lean 4.
LeanUA/Chapter01/
- The Real NumbersLeanUA/Chapter02/
- Sequences and SeriesLeanUA/Chapter03/
- Basic Topology of RLeanUA/Chapter04/
- Functional Limits and ContinuityLeanUA/Chapter05/
- The DerivativeLeanUA/Chapter06/
- Sequences and Series of FunctionsLeanUA/Chapter07/
- The Riemann IntegralLeanUA/Chapter08/
- Additional TopicsLeanUA/Chapter09/
- Epilogue
- Lean 4 (installed via elan)
- VS Code with the Lean 4 extension
-
Clone this repository:
git clone <your-repo-url> cd lean_ua
-
Build the project:
lake exe cache get lake build
Each chapter directory contains:
- Definitions and theorems from the corresponding textbook chapter
- Formalized proofs of key results
- Solutions to selected exercises
- Additional lemmas and helper functions
Feel free to:
- Add new proofs and exercises
- Improve existing formalizations
- Fix bugs or typos
- Enhance documentation
"Understanding Analysis" by Stephen Abbott is an excellent undergraduate textbook that provides a rigorous yet accessible introduction to real analysis. This formalization project aims to:
- Deepen understanding of the mathematical concepts
- Practice formal proof techniques in Lean 4
- Create a reference implementation for students learning analysis
- Demonstrate the power of computer-assisted proof verification
This project is licensed under the MIT License - see the LICENSE file for details.