Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | /- |
| 2 | Copyright 2026 Paul Lezeau and The Formal Conjectures Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.AlgebraicTopology.Singular.CoverSmallQuasiIso |
| 18 | import OAI.AlgebraicTopology.Singular.ExcisionLebesgue |
| 19 | import Mathlib.Analysis.Normed.Module.Convex |
| 20 | |
| 21 | /-! # Subdivision Affine Mesh -/ |
| 22 | |
| 23 | namespace OAI.AlgebraicTopology.Singular.SubdivisionAffineMesh |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | /-! |
| 28 | |
| 29 | # Mesh estimates for affine barycentric subdivision |
| 30 | |
| 31 | This file proves the quantitative geometric estimate behind the small-chain argument. In the |
| 32 | sup metric on the standard `n`-simplex, the affine simplex associated to every flag of nonempty |
| 33 | faces has diameter at most `n / (n + 1)`. The proof uses the exact face-barycenter coordinates |
| 34 | from `Singular.Subdivision.Affine`. |
| 35 | |
| 36 | The final theorem packages the metric conclusion needed for iterated subdivision: any family of |
| 37 | nonempty cells whose diameters are bounded by successive powers of this factor is eventually |
| 38 | subordinate to an arbitrary open cover of a compact metric space. Connecting that abstract |
| 39 | family to the chain-level iterate requires keeping the ancestry of every iterated affine flag; |
| 40 | that combinatorial bookkeeping is intentionally separate from the metric argument here. |
| 41 | -/ |
| 42 | |
| 43 | open _root_.CategoryTheory _root_.CategoryTheory.Limits PartialOrder Set Simplicial |
| 44 | |
| 45 | /-- The classical mesh-contraction factor for barycentric subdivision of an `n`-simplex. -/ |
| 46 | noncomputable def barycentricContractionFactor (n : ℕ) : ℝ := |
| 47 | (n : ℝ) / (n + 1) |
| 48 | |
| 49 | theorem barycentricContractionFactor_nonneg (n : ℕ) : |
| 50 | 0 ≤ barycentricContractionFactor n := by |
| 51 | unfold barycentricContractionFactor |
| 52 | positivity |
| 53 | |
| 54 | theorem barycentricContractionFactor_lt_one (n : ℕ) : |
| 55 | barycentricContractionFactor n < 1 := by |
| 56 | unfold barycentricContractionFactor |
| 57 | rw [div_lt_one (by positivity)] |
| 58 | norm_num |
| 59 | |
| 60 | /-- The intrinsic diameter of a nonempty standard simplex is one in the sup metric. -/ |
| 61 | theorem diam_univ_stdSimplex (n : ℕ) (hn : 1 ≤ n) : |
| 62 | Metric.diam (Set.univ : Set (Convexity.StdSimplex ℝ (Fin (n + 1)))) = 1 := by |
| 63 | let : Nontrivial (Fin (n + 1)) := |
| 64 | Fin.nontrivial_iff_two_le.mpr (Nat.add_le_add_right hn 1) |
| 65 | calc |
| 66 | Metric.diam (Set.univ : Set (Convexity.StdSimplex ℝ (Fin (n + 1)))) = |
| 67 | Metric.diam (Set.range (fun x : Convexity.StdSimplex ℝ (Fin (n + 1)) => |
| 68 | (x.weights : Fin (n + 1) → ℝ))) := |
| 69 | (Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex.isometry_weights (Fin (n + 1))).diam_range.symm |
| 70 | _ = 1 := Convexity.StdSimplex.diam_range_toFun_comp_weights_subset_closedBall_eq_one _ |
| 71 | |
| 72 | /-- Powers of the barycentric mesh factor eventually fall below every positive tolerance. -/ |
| 73 | theorem exists_barycentricContractionFactor_pow_lt |
| 74 | (n : ℕ) {ε : ℝ} (hε : 0 < ε) : |
| 75 | ∃ m : ℕ, barycentricContractionFactor n ^ m < ε := |
| 76 | exists_pow_lt_of_lt_one hε (barycentricContractionFactor_lt_one n) |
| 77 | |
| 78 | /-! ## Iterated affine-cell ancestry -/ |
| 79 | |
| 80 | /-- A top-dimensional flag in the barycentric subdivision of the standard `n`-simplex. -/ |
| 81 | abbrev TopAffineFlag (n : ℕ) := |
| 82 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)).obj |
| 83 | (Opposite.op (SimplexCategory.mk n)) |
| 84 | |
| 85 | /-- The affine cell map described by a finite ancestry of top-dimensional flags. The head of |
| 86 | the list is the newest (innermost) subdivision cell and the tail records its parent ancestry. -/ |
| 87 | noncomputable def iteratedAffineCellMap (n : ℕ) |
| 88 | (ancestry : List (TopAffineFlag n)) : |
| 89 | C(Convexity.StdSimplex ℝ (Fin (n + 1)), Convexity.StdSimplex ℝ (Fin (n + 1))) := |
| 90 | match ancestry with |
| 91 | | [] => ContinuousMap.id _ |
| 92 | | F :: ancestry => |
| 93 | (iteratedAffineCellMap n ancestry).comp (SubdivisionAffine.affineFlagContinuousMap n n F) |
| 94 | |
| 95 | @[simp] |
| 96 | theorem iteratedAffineCellMap_nil (n : ℕ) : |
| 97 | SubdivisionAffineMesh.iteratedAffineCellMap n [] = ContinuousMap.id _ := |
| 98 | rfl |
| 99 | |
| 100 | @[simp] |
| 101 | theorem iteratedAffineCellMap_cons |
| 102 | (n : ℕ) (F : TopAffineFlag n) (ancestry : List (TopAffineFlag n)) : |
| 103 | SubdivisionAffineMesh.iteratedAffineCellMap n (F :: ancestry) = |
| 104 | (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry).comp |
| 105 | (SubdivisionAffine.affineFlagContinuousMap n n F) := |
| 106 | rfl |
| 107 | |
| 108 | /-! ## Chain-level endpoint -/ |
| 109 | |
| 110 | /-- Iterating affine subdivision is additive in the exponent. This synchronization identity is |
| 111 | the algebraic tool for putting finitely many generatorwise subdivision depths over one common |
| 112 | depth. -/ |
| 113 | theorem affineSingularSubdivisionIterate_add |
| 114 | (X : TopCat) (m r : ℕ) : |
| 115 | SubdivisionAffineIteration.affineSingularSubdivisionIterate X (m + r) = |
| 116 | SubdivisionAffineIteration.affineSingularSubdivisionIterate X m ≫ |
| 117 | SubdivisionAffineIteration.affineSingularSubdivisionIterate X r := by |
| 118 | induction r with |
| 119 | | zero => simp |
| 120 | | succ r ih => |
| 121 | rw [Nat.add_succ, SubdivisionAffineIteration.affineSingularSubdivisionIterate_succ, ih, |
| 122 | SubdivisionAffineIteration.affineSingularSubdivisionIterate_succ, Category.assoc] |
| 123 | |
| 124 | /-- A sharply stated range bridge from geometry to the algebraic small-chain endpoint: it is |
| 125 | enough to prove that some affine-subdivision iterate of every chain lies in the degreewise range |
| 126 | of the cover-small inclusion. -/ |
| 127 | theorem coverSmallAffineSubdivisionEventuallySmall_of_iterate_mem_range |
| 128 | {iota : Type} (X : TopCat) (U : iota → Set X) |
| 129 | (h : ∀ (n : ℕ) (x : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n), |
| 130 | ∃ m : ℕ, (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n x ∈ |
| 131 | Set.range ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n)) : |
| 132 | ∀ (n : ℕ) (x : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n), |
| 133 | ∃ (m : ℕ) (y : (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X n), |
| 134 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n y = |
| 135 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n x := |
| 136 | fun n x ↦ h n x |
| 137 | |
| 138 | end |
| 139 | |
| 140 | end OAI.AlgebraicTopology.Singular.SubdivisionAffineMesh |