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.OverGenerator |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.CanonicalIdealFrame |
| 9 | |
| 10 | /-! # Ideal Over Frame -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.IdealOverFrame |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! In canonical local frames the kernel inclusion is its defining equation. -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 20 | universe u |
| 21 | |
| 22 | theorem localIdealGeneratorOverTrivialization_inv_comp |
| 23 | {X Y : Scheme.{u}} (f : X ⟶ Y) [IsAffineHom f] |
| 24 | (U : Y.affineOpens) (r : Γ(Y, U.1)) (hr : r ∈ f.ker.ideal U) |
| 25 | (hspan : f.ker.ideal U = Ideal.span {r}) |
| 26 | (hnzd : r ∈ nonZeroDivisors Γ(Y, U.1)) : |
| 27 | let eGen := CanonicalIdealFrame.localIdealGeneratorIso f U r hr hspan hnzd |
| 28 | let eOver := Invertible.Scheme.Modules.overTrivializationOfRestrictIso |
| 29 | (IdealModule.idealModule f) U.1 eGen.symm |
| 30 | eOver.inv ≫ (IdealModule.idealModuleToUnit f).over U.1 = |
| 31 | Dual.SheafOfModules.overUnitScalarEnd Y.ringCatSheaf U.1 r := by |
| 32 | dsimp only |
| 33 | rw [OverGenerator.overTrivialization_inv_eq_overGenerator (IdealModule.idealModule f) U.1 |
| 34 | (CanonicalIdealFrame.localIdealElement f U r hr) (CanonicalIdealFrame.localIdealGeneratorIso f U r hr hspan hnzd) rfl] |
| 35 | rw [OverGenerator.overGeneratorHom_comp] |
| 36 | have hs : (IdealModule.idealModuleToUnit f).val.app (op U.1) |
| 37 | (CanonicalIdealFrame.localIdealElement f U r hr) = r := by |
| 38 | rw [← IdealModule.idealModuleAppIdealIso_coe, CanonicalIdealFrame.idealModuleAppIdealIso_hom_localIdealElement] |
| 39 | rw [hs] |
| 40 | rfl |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.IdealOverFrame |