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 OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Intrinsic.CoefficientCechComplex |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ordered.CoefficientCechComplex |
| 9 | |
| 10 | /-! # Formal Projection -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OrderedCech.FormalProjection |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Category _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite _root_.TopologicalSpace |
| 17 | universe u |
| 18 | |
| 19 | /-- The ordered intersection family includes in the all-tuples intersection family. -/ |
| 20 | noncomputable def orderedCechFormalInclusion {X : Scheme.{u}} |
| 21 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) : |
| 22 | Ordered.SectionCechIndices.orderedCechFormalObject U n ⟶ |
| 23 | (FormalCoproduct.mk _ U).power (Fin (n + 1)) where |
| 24 | f i := i.1 |
| 25 | φ _ := 𝟙 _ |
| 26 | |
| 27 | theorem orderedCechFace_comp_formalInclusion {X : Scheme.{u}} |
| 28 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) |
| 29 | (n : ℕ) (k : Fin (n + 2)) : |
| 30 | Ordered.SectionCechIndices.orderedCechFace U n k ≫ orderedCechFormalInclusion U n = |
| 31 | orderedCechFormalInclusion U (n + 1) ≫ |
| 32 | (FormalCoproduct.mk _ U).mapPower |
| 33 | (SimplexCategory.δ k).toOrderHom.toFun := by |
| 34 | apply FormalCoproduct.hom_ext rfl |
| 35 | intro i |
| 36 | exact Subsingleton.elim _ _ |
| 37 | |
| 38 | /-- A native Cech coface before taking the alternating sum. -/ |
| 39 | noncomputable def coefficientCechCoface {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) |
| 40 | (M : X.Modules) {ι : Type u} (U : ι → X.Opens) |
| 41 | (n : ℕ) (k : Fin (n + 2)) : |
| 42 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex ρ M U).X n ⟶ (Intrinsic.CoefficientCechComplex.coefficientCechComplex ρ M U).X (n + 1) := |
| 43 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 44 | (FormalCoproduct.mk _ U).cech).obj (Coefficient.ModulePresheaf.coefficientModulePresheaf ρ M)).δ k |
| 45 | |
| 46 | theorem coefficientCechCoface_comp_π |
| 47 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 48 | {ι : Type u} (U : ι → X.Opens) (n : ℕ) |
| 49 | (k : Fin (n + 2)) (i : Fin (n + 2) → ι) : |
| 50 | coefficientCechCoface ρ M U n k ≫ |
| 51 | Pi.π (fun j : Fin (n + 2) → ι => |
| 52 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U (n + 1) j) i = |
| 53 | Pi.π (fun j : Fin (n + 1) → ι => |
| 54 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n j) |
| 55 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun) ≫ |
| 56 | (Coefficient.ModulePresheaf.coefficientModulePresheaf ρ M).map |
| 57 | (((FormalCoproduct.mk _ U).mapPower |
| 58 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op := by |
| 59 | change (Pi.lift fun j : Fin (n + 2) → ι => |
| 60 | Pi.π (fun l : Fin (n + 1) → ι => |
| 61 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n l) |
| 62 | (j ∘ (SimplexCategory.δ k).toOrderHom.toFun) ≫ |
| 63 | (Coefficient.ModulePresheaf.coefficientModulePresheaf ρ M).map |
| 64 | (((FormalCoproduct.mk _ U).mapPower |
| 65 | (SimplexCategory.δ k).toOrderHom.toFun).φ j).op) ≫ _ = _ |
| 66 | exact Pi.lift_comp_π _ i |
| 67 | |
| 68 | /-- Projection from all tuple components to strictly increasing components. -/ |
| 69 | noncomputable def coefficientCechToOrderedF |
| 70 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 71 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) : |
| 72 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex ρ M U).X n ⟶ Ordered.CoefficientCechTerms.orderedCoefficientCechObject ρ M U n := |
| 73 | ((FormalCoproduct.evalOp X.Opens |
| 74 | (ModuleCat.{u} R)).obj |
| 75 | (Coefficient.ModulePresheaf.coefficientModulePresheaf ρ M)).map (orderedCechFormalInclusion U n).op |
| 76 | |
| 77 | theorem coefficientCechCoface_comp_coefficientCechToOrderedF |
| 78 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 79 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) |
| 80 | (n : ℕ) (k : Fin (n + 2)) : |
| 81 | coefficientCechCoface ρ M U n k ≫ coefficientCechToOrderedF ρ M U (n + 1) = |
| 82 | coefficientCechToOrderedF ρ M U n ≫ Ordered.CoefficientCechTerms.orderedCoefficientCechCoface ρ M U n k := by |
| 83 | let F : (FormalCoproduct.{u} X.Opens)ᵒᵖ ⥤ |
| 84 | ModuleCat.{u} R := |
| 85 | ((FormalCoproduct.evalOp.{u} X.Opens |
| 86 | (ModuleCat.{u} R)).obj |
| 87 | (Coefficient.ModulePresheaf.coefficientModulePresheaf ρ M)) |
| 88 | change F.map ((FormalCoproduct.mk _ U).mapPower |
| 89 | (SimplexCategory.δ k).toOrderHom.toFun).op ≫ |
| 90 | F.map (orderedCechFormalInclusion U (n + 1)).op = |
| 91 | F.map (orderedCechFormalInclusion U n).op ≫ |
| 92 | F.map (Ordered.SectionCechIndices.orderedCechFace U n k).op |
| 93 | rw [← F.map_comp, ← F.map_comp, ← op_comp, ← op_comp, |
| 94 | orderedCechFace_comp_formalInclusion U n k] |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OrderedCech.FormalProjection |