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.SectionRows |
| 8 | |
| 9 | /-! # Section Maps -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CechTuple.SectionMaps |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Category _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite _root_.TopologicalSpace |
| 16 | universe u |
| 17 | |
| 18 | open Set |
| 19 | |
| 20 | /-- Postcomposing a tuple row with restriction only changes its target tuple. -/ |
| 21 | theorem coefficientCechTupleRow_comp_restriction |
| 22 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 23 | {ι : Type u} (U : ι → X.Opens) {n m l : ℕ} |
| 24 | (i : Fin (n + 1) → ι) (j : Fin (m + 1) → ι) |
| 25 | (hji : Set.range j ⊆ Set.range i) (x : FreeCech.TupleChains.CechTupleChain ι l) |
| 26 | (hx : FreeCech.TupleChains.CechTupleChain.SupportedBy x (Set.range j)) : |
| 27 | SectionRows.coefficientCechTupleRow coefficientMap M U j x ≫ |
| 28 | SectionRestrictions.coefficientCechTupleRestriction coefficientMap M U i j hji = |
| 29 | SectionRows.coefficientCechTupleRow coefficientMap M U i x := by |
| 30 | classical |
| 31 | rw [SectionRows.coefficientCechTupleRow, SectionRows.coefficientCechTupleRow, |
| 32 | Finsupp.lsum_apply, Finsupp.lsum_apply] |
| 33 | rw [Finsupp.sum, Finsupp.sum, sum_comp] |
| 34 | apply Finset.sum_congr rfl |
| 35 | intro k hk |
| 36 | have hkj := hx hk |
| 37 | simp only [LinearMap.toSpanSingleton_apply] |
| 38 | rw [zsmul_comp, |
| 39 | SectionRows.coefficientCechTupleRowBasis_comp_restriction |
| 40 | coefficientMap M U i j k hkj hji] |
| 41 | |
| 42 | /-- One row of the restriction matrix associated to a support-nonincreasing tuple-chain map. -/ |
| 43 | noncomputable def coefficientCechTupleMapComponent |
| 44 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 45 | {ι : Type u} (U : ι → X.Opens) {n m : ℕ} |
| 46 | (f : FreeCech.TupleChains.CechTupleChain ι n →ₗ[ℤ] FreeCech.TupleChains.CechTupleChain ι m) |
| 47 | (_hf : FreeCech.TupleHomotopySupport.CechTupleSupportNonincreasing f) |
| 48 | (i : Fin (n + 1) → ι) : |
| 49 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).X m ⟶ Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n i := |
| 50 | SectionRows.coefficientCechTupleRow coefficientMap M U i (f (Finsupp.single i 1)) |
| 51 | |
| 52 | /-- The cochain map between two degrees dual to a support-nonincreasing tuple-chain map. -/ |
| 53 | noncomputable def coefficientCechTupleMapF |
| 54 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 55 | {ι : Type u} (U : ι → X.Opens) {n m : ℕ} |
| 56 | (f : FreeCech.TupleChains.CechTupleChain ι n →ₗ[ℤ] FreeCech.TupleChains.CechTupleChain ι m) |
| 57 | (hf : FreeCech.TupleHomotopySupport.CechTupleSupportNonincreasing f) : |
| 58 | (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).X m ⟶ (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).X n := |
| 59 | Pi.lift fun i => coefficientCechTupleMapComponent coefficientMap M U f hf i |
| 60 | |
| 61 | theorem coefficientCechTupleMapF_comp_π |
| 62 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 63 | {ι : Type u} (U : ι → X.Opens) {n m : ℕ} |
| 64 | (f : FreeCech.TupleChains.CechTupleChain ι n →ₗ[ℤ] FreeCech.TupleChains.CechTupleChain ι m) |
| 65 | (hf : FreeCech.TupleHomotopySupport.CechTupleSupportNonincreasing f) |
| 66 | (i : Fin (n + 1) → ι) : |
| 67 | coefficientCechTupleMapF coefficientMap M U f hf ≫ |
| 68 | Pi.π (fun q : Fin (n + 1) → ι => |
| 69 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n q) i = |
| 70 | coefficientCechTupleMapComponent coefficientMap M U f hf i := |
| 71 | Pi.lift_comp_π _ i |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CechTuple.SectionMaps |