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.SheafCohomology.Projective.IdealModule |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.AffineRankOneRestriction |
| 9 | |
| 10 | /-! # Ideal Invertible -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.IdealInvertible |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! Actual rank-one frames for kernel ideals generated by nonzerodivisors. -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | universe u |
| 21 | |
| 22 | /-- A principal nonzerodivisor ideal has an explicit basis on its affine open. -/ |
| 23 | def principalIdealModuleSectionsEquiv {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 24 | [QuasiCompact f] (U : Y.affineOpens) (r : Γ(Y, U.1)) |
| 25 | (hspan : f.ker.ideal U = Ideal.span {r}) |
| 26 | (hnzd : r ∈ nonZeroDivisors Γ(Y, U.1)) : |
| 27 | Γ(Y, U.1) ≃ₗ[Γ(Y, U.1)] Γ(IdealModule.idealModule f, U.1) := |
| 28 | ((IdealModule.principalIdealEquiv r hnzd).trans |
| 29 | (LinearEquiv.ofEq _ _ hspan.symm)).trans |
| 30 | (IdealModule.idealModuleAppIdealIso f U).toLinearEquiv.symm |
| 31 | |
| 32 | /-- The affine-section basis gives a genuine local trivialization. -/ |
| 33 | def principalIdealModuleRestrictionIso {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 34 | [IsAffineHom f] (U : Y.affineOpens) (r : Γ(Y, U.1)) |
| 35 | (hspan : f.ker.ideal U = Ideal.span {r}) |
| 36 | (hnzd : r ∈ nonZeroDivisors Γ(Y, U.1)) : |
| 37 | Invertible.Scheme.Modules.unitObj U.1.toScheme ≅ (IdealModule.idealModule f).restrict U.1.ι := by |
| 38 | letI : (IdealModule.idealModule f).IsQuasicoherent := IdealModule.idealModule_quasicoherent f |
| 39 | exact AffineRankOneRestriction.affineRankOneRestrictionIso (IdealModule.idealModule f) U |
| 40 | (principalIdealModuleSectionsEquiv f U r hspan hnzd) |
| 41 | |
| 42 | /-- Affine-locally principal kernel ideals generated by nonzerodivisors are |
| 43 | invertible as actual sheaves of modules. -/ |
| 44 | theorem idealModule_isInvertible_of_locallyPrincipal {X Y : Scheme.{u}} |
| 45 | (f : X ⟶ Y) [IsAffineHom f] |
| 46 | (hlocal : ∀ y : Y, ∃ U : Y.affineOpens, y ∈ U.1 ∧ ∃ r : Γ(Y, U.1), |
| 47 | f.ker.ideal U = Ideal.span {r} ∧ r ∈ nonZeroDivisors Γ(Y, U.1)) : |
| 48 | Invertible.Scheme.Modules.IsInvertible (IdealModule.idealModule f) := by |
| 49 | choose U hy r hr hnzd using hlocal |
| 50 | refine ⟨Y, fun y => (U y).1, ?_, fun y => ?_⟩ |
| 51 | · apply top_unique |
| 52 | intro y _ |
| 53 | exact Opens.mem_iSup.mpr ⟨y, hy y⟩ |
| 54 | · exact ⟨Invertible.Scheme.Modules.pullbackIsoOfRestrictIso (IdealModule.idealModule f) (U y).1 |
| 55 | (principalIdealModuleRestrictionIso f (U y) (r y) (hr y) (hnzd y)).symm⟩ |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.IdealInvertible |