teorth/analysis

A Lean companion to Analysis I

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 44 minutes ago
Added to GitGenius on November 27th, 2025
Created on May 31st, 2025
Open Issues & Pull Requests: 5 (+0)
Number of forks: 261
Total Stargazers: 1,872 (+0)
Total Subscribers: 13 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.6 hours
Mean response time: 47.8 hours
90th percentile: 7.2 days
Tracked items: 26

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 8% of issues opened in the past year have been closed. Three people close 88% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

The teorth/analysis repository is a Lean formalization of Terry Tao's textbook Analysis I, serving as a companion resource that translates the mathematical content into formal proof code. The project aims to maintain fidelity to the original text while demonstrating Lean's capabilities and syntax, though it explicitly prioritizes pedagogical clarity over computational efficiency and idiomatic Lean practices.

The formalization closely mirrors the textbook's structure, arrangement of definitions, theorems, and proofs. Where the original text presents material as exercises for readers to complete, the Lean version marks these sections with `sorry` statements, inviting users to fork the repository and attempt their own solutions. The repository does not include direct solutions to these exercises. Rather than directly quoting the textbook, the formalization provides references to the original text, positioning itself as an annotated companion rather than a standalone replacement.

A key design decision involves the gradual transition from textbook-specific definitions to those provided by Lean's standard mathematics library, Mathlib. This approach sacrifices complete self-containedness in favor of compatibility with the broader Lean ecosystem. For example, Chapter 2 develops natural number theory independently, but subsequent chapters adopt Mathlib's natural numbers. An epilogue to Chapter 2 demonstrates the isomorphism between these two approaches. This strategy also serves as an introduction to relevant portions of Mathlib for readers progressing through the material.

Several technical adjustments distinguish the formalization from the textbook. Sequences use zero-based indexing to align with Mathlib's stronger support for zero-indexed natural numbers rather than one-indexed alternatives. Operations that remain undefined in the text, such as division by zero or limits of non-Cauchy sequences, receive assigned junk values like zero to maintain total function definitions. This choice reflects Lean's superior support for total functions over partial functions, avoiding the complexity that indiscriminate partial function use can introduce. The Chapter 2 natural numbers employ inductive type construction rather than a purely axiomatic framework, though the Peano Axioms are formalized in the chapter epilogue.

The repository's contributor network overlaps with several major open-source projects including facebook/react-devtools, webpack/webpack, and facebook/react, suggesting cross-pollination within the developer community. The repository is classified across multiple domains including data analysis, data visualization, machine learning, data science, scripts, tools, notebooks, algorithms, modeling, and data processing, reflecting its broad educational and technical scope within the formal mathematics space.