An ongoing Lean 4 library for differential geometry and geometric analysis, currently focused on Ricci flow.
Use DifferentialGeometry as an upstream dependency and build on its geometric-analysis infrastructure:
[[require]]
name = "DifferentialGeometry"
git = "https://github.com/qinz1yang/differential-geometry.git"
rev = "v0.1.3"
Release v0.1.3 is pinned to Lean and Mathlib v4.33.1.
Import the full library with
import DifferentialGeometry
or a specific module, for example the scalar strong maximum principle:
import DifferentialGeometry.Analysis.Parabolic.MaximumPrinciple.Scalar.Strong
We aim to keep pace with Mathlib releases and update the pinned Mathlib version accordingly.
Each is sorry-free (axioms: propext, Classical.choice, Quot.sound).
These three are the standard axioms of Lean's core library — propositional extensionality, the axiom of choice, and quotient soundness — on which all of classical mathematics in Mathlib rests.
#print axiomslists everything a theorem transitively assumes: asorrywould surface assorryAx, and any ad-hoc axiom would be named. An output of exactly these three therefore certifies that the proof is fully kernel-checked, with nosorryand no assumptions beyond the classical foundations.
git clone https://github.com/qinz1yang/differential-geometry.git
cd differential-geometry
lake build DifferentialGeometry.Topology.ThreeManifold.Poincare
To inspect the Poincaré theorem's transitive axioms, temporarily add
#print axioms DifferentialGeometry.Topology.poincare_conjecture
to Poincare.lean, then run
lake build DifferentialGeometry.Topology.ThreeManifold.Poincare
Underlying these results is a substantial geometric-analysis backbone:
The classical De Giorgi–Nash–Moser regularity machinery is vendored under External/ from scottnarmstrong/DeGiorgi (Scott Armstrong and Julia Kempe, Apache-2.0).
The topology library supplies the constructions used by Moise smoothing, surgery, and the Poincaré endpoint:
Third-party foundations are preserved under CanonicalTopology, ClassificationOfSurfaces, Schoenflies, and selected Tau Ceti modules, together with their source, license and modification records. Native extensions and theorem assembly remain in the mathematical topic directories.
Generative AI (ChatGPT, Claude, Deepseek, Gemini, GLM, etc.) was used in the development of this codebase. The high-level architecture is human-designed; AI agents assisted with formalizing individual proofs and writing boilerplate. All definitions and core theorem statements were human-verified for correctness. Since all proofs are verified by Lean's type checker, AI-generated and human-written code are held to the same standard of correctness.
Note: This library is under active development. Breaking changes to public APIs and file paths should be expected.
Lean
100.0%
An ongoing Lean 4 library for differential geometry and geometric analysis, currently focused on Ricci flow.
Use DifferentialGeometry as an upstream dependency and build on its geometric-analysis infrastructure:
[[require]]
name = "DifferentialGeometry"
git = "https://github.com/qinz1yang/differential-geometry.git"
rev = "v0.1.3"
Release v0.1.3 is pinned to Lean and Mathlib v4.33.1.
Import the full library with
import DifferentialGeometry
or a specific module, for example the scalar strong maximum principle:
import DifferentialGeometry.Analysis.Parabolic.MaximumPrinciple.Scalar.Strong
We aim to keep pace with Mathlib releases and update the pinned Mathlib version accordingly.
Each is sorry-free (axioms: propext, Classical.choice, Quot.sound).
These three are the standard axioms of Lean's core library — propositional extensionality, the axiom of choice, and quotient soundness — on which all of classical mathematics in Mathlib rests.
#print axiomslists everything a theorem transitively assumes: asorrywould surface assorryAx, and any ad-hoc axiom would be named. An output of exactly these three therefore certifies that the proof is fully kernel-checked, with nosorryand no assumptions beyond the classical foundations.
git clone https://github.com/qinz1yang/differential-geometry.git
cd differential-geometry
lake build DifferentialGeometry.Topology.ThreeManifold.Poincare
To inspect the Poincaré theorem's transitive axioms, temporarily add
#print axioms DifferentialGeometry.Topology.poincare_conjecture
to Poincare.lean, then run
lake build DifferentialGeometry.Topology.ThreeManifold.Poincare
Underlying these results is a substantial geometric-analysis backbone:
The classical De Giorgi–Nash–Moser regularity machinery is vendored under External/ from scottnarmstrong/DeGiorgi (Scott Armstrong and Julia Kempe, Apache-2.0).
The topology library supplies the constructions used by Moise smoothing, surgery, and the Poincaré endpoint:
Third-party foundations are preserved under CanonicalTopology, ClassificationOfSurfaces, Schoenflies, and selected Tau Ceti modules, together with their source, license and modification records. Native extensions and theorem assembly remain in the mathematical topic directories.
Generative AI (ChatGPT, Claude, Deepseek, Gemini, GLM, etc.) was used in the development of this codebase. The high-level architecture is human-designed; AI agents assisted with formalizing individual proofs and writing boilerplate. All definitions and core theorem statements were human-verified for correctness. Since all proofs are verified by Lean's type checker, AI-generated and human-written code are held to the same standard of correctness.
Note: This library is under active development. Breaking changes to public APIs and file paths should be expected.
Lean
100.0%