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 (c) 2026 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.CategoryTheory.Sites.SheafCohomology.Cech |
| 8 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 9 | |
| 10 | /-! # Section Cech Indices -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ordered.SectionCechIndices |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Category _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite _root_.TopologicalSpace |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | /-- Strictly increasing tuples indexing the ordered Cech complex in degree `n`. -/ |
| 21 | def OrderedCechIndex (ι : Type u) [Preorder ι] (n : ℕ) := |
| 22 | {i : Fin (n + 1) → ι // StrictMono i} |
| 23 | |
| 24 | /-- Deleting an entry from a strictly increasing tuple preserves strict increase. -/ |
| 25 | def OrderedCechIndex.delete {ι : Type u} [Preorder ι] {n : ℕ} |
| 26 | (i : OrderedCechIndex ι (n + 1)) (k : Fin (n + 2)) : |
| 27 | OrderedCechIndex ι n := |
| 28 | ⟨i.1 ∘ (SimplexCategory.δ k).toOrderHom, |
| 29 | i.2.comp ((SimplexCategory.δ k).toOrderHom.monotone.strictMono_of_injective |
| 30 | (by |
| 31 | simpa [SimplexCategory.δ] using |
| 32 | (Fin.succAboveOrderEmb k).injective))⟩ |
| 33 | |
| 34 | @[simp] |
| 35 | theorem OrderedCechIndex.delete_delete {ι : Type u} [Preorder ι] {n : ℕ} |
| 36 | (k : OrderedCechIndex ι (n + 1 + 1)) {i j : Fin (n + 2)} (hij : i ≤ j) : |
| 37 | (k.delete j.succ).delete i = (k.delete i.castSucc).delete j := by |
| 38 | apply Subtype.ext |
| 39 | funext a |
| 40 | have hδ := ConcreteCategory.congr_hom |
| 41 | (SimplexCategory.δ_comp_δ hij) |
| 42 | exact congrArg k.1 (hδ a) |
| 43 | |
| 44 | /-- There are no ordered Cech indices in degrees at least the size of a finite cover. -/ |
| 45 | theorem isEmpty_orderedCechIndex_of_card_le |
| 46 | (ι : Type u) [Fintype ι] [Preorder ι] (n : ℕ) (h : Fintype.card ι ≤ n) : |
| 47 | IsEmpty (OrderedCechIndex ι n) := by |
| 48 | constructor |
| 49 | intro i |
| 50 | have hi : n + 1 ≤ Fintype.card ι := by |
| 51 | simpa using Fintype.card_le_of_injective i.1 i.2.injective |
| 52 | omega |
| 53 | |
| 54 | /-- The formal coproduct of intersections indexed by strictly increasing tuples. -/ |
| 55 | noncomputable def orderedCechFormalObject {X : Scheme.{u}} |
| 56 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) : |
| 57 | FormalCoproduct X.Opens where |
| 58 | I := OrderedCechIndex ι n |
| 59 | obj i := ∏ᶜ fun k : Fin (n + 1) => U (i.1 k) |
| 60 | |
| 61 | /-- Deleting one entry induces a face map between ordered intersection families. -/ |
| 62 | noncomputable def orderedCechFace {X : Scheme.{u}} |
| 63 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) |
| 64 | (n : ℕ) (k : Fin (n + 2)) : |
| 65 | orderedCechFormalObject U (n + 1) ⟶ orderedCechFormalObject U n where |
| 66 | f i := i.delete k |
| 67 | φ i := (((FormalCoproduct.mk _ U).mapPower |
| 68 | (SimplexCategory.δ k).toOrderHom.toFun).φ i.1) |
| 69 | |
| 70 | theorem orderedCechFace_comp {X : Scheme.{u}} |
| 71 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) |
| 72 | {i j : Fin (n + 2)} (hij : i ≤ j) : |
| 73 | orderedCechFace U (n + 1) j.succ ≫ orderedCechFace U n i = |
| 74 | orderedCechFace U (n + 1) i.castSucc ≫ orderedCechFace U n j := by |
| 75 | let V : FormalCoproduct X.Opens := FormalCoproduct.mk _ U |
| 76 | have hmap : |
| 77 | V.mapPower (SimplexCategory.δ j.succ).toOrderHom.toFun ≫ |
| 78 | V.mapPower (SimplexCategory.δ i).toOrderHom.toFun = |
| 79 | V.mapPower (SimplexCategory.δ i.castSucc).toOrderHom.toFun ≫ |
| 80 | V.mapPower (SimplexCategory.δ j).toOrderHom.toFun := by |
| 81 | rw [← FormalCoproduct.mapPower_comp, |
| 82 | ← FormalCoproduct.mapPower_comp] |
| 83 | congr 1 |
| 84 | exact funext (ConcreteCategory.congr_hom |
| 85 | (SimplexCategory.δ_comp_δ hij)) |
| 86 | let hf : |
| 87 | (orderedCechFace U (n + 1) j.succ ≫ orderedCechFace U n i).f = |
| 88 | (orderedCechFace U (n + 1) i.castSucc ≫ orderedCechFace U n j).f := |
| 89 | funext fun k => OrderedCechIndex.delete_delete k hij |
| 90 | apply FormalCoproduct.hom_ext hf |
| 91 | intro k |
| 92 | have hk := ((FormalCoproduct.hom_ext_iff _ _).1 hmap).2 k.1 |
| 93 | change |
| 94 | ((V.mapPower (SimplexCategory.δ j.succ).toOrderHom.toFun ≫ |
| 95 | V.mapPower (SimplexCategory.δ i).toOrderHom.toFun).φ k.1 ≫ |
| 96 | eqToHom _) = |
| 97 | (V.mapPower (SimplexCategory.δ i.castSucc).toOrderHom.toFun ≫ |
| 98 | V.mapPower (SimplexCategory.δ j).toOrderHom.toFun).φ k.1 |
| 99 | simpa only using hk |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ordered.SectionCechIndices |