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 The AINTLIB contributors. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: AINTLIB ModularCurves project |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CechTuple.SectionHomotopyDegrees |
| 8 | import Mathlib.Algebra.Homology.Homotopy |
| 9 | |
| 10 | /-! # Alternating Null Homotopy -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.AlternatingNullHomotopy |
| 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 | noncomputable def coefficientCechAlternatingHomotopyComponent |
| 20 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 21 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) |
| 22 | (i j : ℕ) (h : (ComplexShape.up ℕ).Rel j i) : |
| 23 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).X i ⟶ |
| 24 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).X j := by |
| 25 | change j + 1 = i at h |
| 26 | subst i |
| 27 | exact CechTuple.SectionHomotopy.coefficientCechAlternatingHomotopyF coefficientMap M U j |
| 28 | |
| 29 | noncomputable def coefficientCechAlternatingNullHomotopicMap |
| 30 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 31 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) : |
| 32 | Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U ⟶ Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U := |
| 33 | Homotopy.nullHomotopicMap' fun i j h => |
| 34 | coefficientCechAlternatingHomotopyComponent coefficientMap M U i j h |
| 35 | |
| 36 | theorem coefficientCechAlternatingNullHomotopicMap_f_zero |
| 37 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 38 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) : |
| 39 | (coefficientCechAlternatingNullHomotopicMap coefficientMap M U).f 0 = |
| 40 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).d 0 1 ≫ |
| 41 | CechTuple.SectionHomotopy.coefficientCechAlternatingHomotopyF coefficientMap M U 0 := by |
| 42 | let h01 : (ComplexShape.up ℕ).Rel 0 1 := |
| 43 | ComplexShape.up_mk 0 1 rfl |
| 44 | rw [coefficientCechAlternatingNullHomotopicMap, |
| 45 | Homotopy.nullHomotopicMap'_f_of_not_rel_right h01] |
| 46 | · rfl |
| 47 | · intro l hl |
| 48 | change l + 1 = 0 at hl |
| 49 | omega |
| 50 | |
| 51 | theorem coefficientCechAlternatingNullHomotopicMap_f_succ |
| 52 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 53 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) : |
| 54 | (coefficientCechAlternatingNullHomotopicMap coefficientMap M U).f (n + 1) = |
| 55 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).d (n + 1) (n + 2) ≫ |
| 56 | CechTuple.SectionHomotopy.coefficientCechAlternatingHomotopyF coefficientMap M U (n + 1) + |
| 57 | CechTuple.SectionHomotopy.coefficientCechAlternatingHomotopyF coefficientMap M U n ≫ |
| 58 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).d n (n + 1) := by |
| 59 | let hn : (ComplexShape.up ℕ).Rel n (n + 1) := |
| 60 | ComplexShape.up_mk n (n + 1) rfl |
| 61 | let hn' : (ComplexShape.up ℕ).Rel (n + 1) (n + 2) := |
| 62 | ComplexShape.up_mk (n + 1) (n + 2) rfl |
| 63 | rw [coefficientCechAlternatingNullHomotopicMap, |
| 64 | Homotopy.nullHomotopicMap'_f hn hn'] |
| 65 | rfl |
| 66 | |
| 67 | theorem coefficientCechAlternatingNullHomotopicMap_eq |
| 68 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 69 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) : |
| 70 | coefficientCechAlternatingNullHomotopicMap coefficientMap M U = |
| 71 | OrderedCech.ComplexProjection.coefficientCechToOrdered coefficientMap M U ≫ |
| 72 | CoefficientCech.AlternatingMap.orderedToCoefficientCechAlternating coefficientMap M U - |
| 73 | 𝟙 (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U) := by |
| 74 | apply HomologicalComplex.hom_ext |
| 75 | intro n |
| 76 | cases n with |
| 77 | | zero => |
| 78 | rw [coefficientCechAlternatingNullHomotopicMap_f_zero] |
| 79 | exact CechTuple.SectionHomotopyDegrees.coefficientCechAlternatingHomotopy_identity_zero coefficientMap M U |
| 80 | | succ n => |
| 81 | rw [coefficientCechAlternatingNullHomotopicMap_f_succ] |
| 82 | exact CechTuple.SectionHomotopyDegrees.coefficientCechAlternatingHomotopy_identity_succ coefficientMap M U n |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.AlternatingNullHomotopy |