Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.MinimizingRegion.CompactMinima |
| 2 | |
| 3 | /-! |
| 4 | # Assembly of the literal minimizing region |
| 5 | |
| 6 | Proposition 16.4, p. 369. The exact reachable region, attained minimizers, |
| 7 | relative openness and compact slice minima are assembled after the scalar |
| 8 | free-minimum continuity and comparison have been proved. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.Proofs.M46 |
| 19 | |
| 20 | variable {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 21 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport 3 X time I} |
| 22 | {T start : ℝ} {x : G.Point} |
| 23 | |
| 24 | /-- The literal Proposition 16.4 minimizing-region record follows from |
| 25 | the capped scalar continuity and comparison on the same actual confined |
| 26 | history. These two inputs are local proof endpoints, not predecessors. |
| 27 | Source: Proposition 16.4, p. 369 and pp. 389-391. -/ |
| 28 | theorem minimizingRegion_nonempty_of_slice_comparison |
| 29 | (hM04 : RicciFlowCurvatureTheory.{0}) |
| 30 | (hM12 : GeneralizedRicciGaugeTheory.{u} 3) |
| 31 | (LG : GeneralizedLGeometryConclusion G) (E : M14ExponentialFamily G T x) |
| 32 | (C : ActionConfinement G T start x) (hstrip : Icc start T ⊆ I.domain) |
| 33 | (hcontinuous : ∀ a c : ℝ, 0 < a → c ^ 2 ≤ T - start → |
| 34 | ContinuousOn (cappedSliceAction G T x C.barrier) (Icc a c)) |
| 35 | (hbound : ∀ b : ℝ, 0 < b → b ^ 2 ≤ T - start → |
| 36 | cappedSliceAction G T x C.barrier b ≤ 3 * b) : |
| 37 | Nonempty (MinimizingRegion G T start x C) := by |
| 38 | obtain ⟨U, hU, hregion⟩ := confinementRegion_relatively_open hM12 LG E C hstrip |
| 39 | refine ⟨{ |
| 40 | region := confinementRegion C |
| 41 | region_exact := fun _ => Iff.rfl |
| 42 | time_mem := fun _ hy => hy.1 |
| 43 | relatively_open := ⟨U, hU, hregion⟩ |
| 44 | minimizing := ?_ |
| 45 | slice_minimum := ?_ |
| 46 | compact_minima := confinementRegion_compact_minima hM04 hM12 LG E C hstrip hcontinuous hbound }⟩ |
| 47 | · rintro y ⟨hyt, p0, hp0⟩ |
| 48 | exact actionConfinement_attained hM12 C (sub_pos.mpr hyt.2) |
| 49 | (sub_le_sub_left hyt.1 T) p0 hp0 |
| 50 | · intro t ht |
| 51 | let b := Real.sqrt (T - t) |
| 52 | have hb : 0 < b := Real.sqrt_pos.mpr (sub_pos.mpr ht.2) |
| 53 | have hbsq : b ^ 2 = T - t := Real.sq_sqrt (sub_nonneg.mpr ht.2.le) |
| 54 | have hbStart : b ^ 2 ≤ T - start := by rw [hbsq]; exact sub_le_sub_left ht.1 T |
| 55 | have hbMax : b ≤ Real.sqrt (T - start) := Real.sqrt_le_sqrt (sub_le_sub_left ht.1 T) |
| 56 | have hvalue : cappedSliceAction G T x C.barrier b < C.barrier := |
| 57 | (hbound b hb hbStart).trans_lt |
| 58 | ((mul_le_mul_of_nonneg_left hbMax (by norm_num : (0 : ℝ) ≤ 3)).trans_lt C.barrier_large) |
| 59 | obtain ⟨y, hy, hyt, hyvalue, hminimum⟩ := |
| 60 | confinementRegion_exists_slice_minimum hM04 hM12 LG E C hb hbStart hvalue |
| 61 | have hbt : T - b ^ 2 = t := by rw [hbsq]; ring |
| 62 | refine ⟨y, hy, hyt.trans hbt, ?_, ?_⟩ |
| 63 | · rw [← hbsq, hyvalue] |
| 64 | simpa only [Real.sqrt_sq hb.le] using hbound b hb hbStart |
| 65 | · intro z hz hzt |
| 66 | rw [← hbsq] |
| 67 | exact hminimum z hz (hzt.trans hbt.symm) |
| 68 | |
| 69 | end PoincareMT.Proofs.M46 |