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.CanonicalAffineFrame |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.IdealInvertible |
| 9 | |
| 10 | /-! # Canonical Ideal Frame -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.CanonicalIdealFrame |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! Canonical trivializations of principal kernel ideals. -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 20 | universe u |
| 21 | |
| 22 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) [QuasiCompact f] |
| 23 | (U : Y.affineOpens) (r : Γ(Y, U.1)) (hr : r ∈ f.ker.ideal U) |
| 24 | |
| 25 | def localIdealElement : Γ(IdealModule.idealModule f, U.1) := |
| 26 | (IdealModule.idealModuleAppIdealIso f U).inv ⟨r, hr⟩ |
| 27 | |
| 28 | @[simp] |
| 29 | theorem idealModuleAppIdealIso_hom_localIdealElement : |
| 30 | (IdealModule.idealModuleAppIdealIso f U).hom (localIdealElement f U r hr) = ⟨r, hr⟩ := |
| 31 | Iso.inv_hom_id_apply _ _ |
| 32 | |
| 33 | def localIdealGeneratorHom : |
| 34 | Invertible.Scheme.Modules.unitObj U.1.toScheme ⟶ (IdealModule.idealModule f).restrict U.1.ι := |
| 35 | CanonicalAffineFrame.openGeneratorHom (IdealModule.idealModule f) U.1 (localIdealElement f U r hr) |
| 36 | |
| 37 | theorem localIdealElement_smul_bijective |
| 38 | (hspan : f.ker.ideal U = Ideal.span {r}) |
| 39 | (hnzd : r ∈ nonZeroDivisors Γ(Y, U.1)) : |
| 40 | Function.Bijective (fun a : Γ(Y, U.1) => a • localIdealElement f U r hr) := by |
| 41 | let e := IdealModule.idealModuleAppIdealIso f U |
| 42 | have he := ConcreteCategory.bijective_of_isIso e.hom |
| 43 | have hformula (a : Γ(Y, U.1)) : |
| 44 | (e.hom (a • localIdealElement f U r hr) : Γ(Y, U.1)) = a * r := by |
| 45 | rw [e.hom.hom.map_smul] |
| 46 | change (a • (IdealModule.idealModuleAppIdealIso f U).hom (localIdealElement f U r hr) : |
| 47 | f.ker.ideal U).val = _ |
| 48 | rw [idealModuleAppIdealIso_hom_localIdealElement] |
| 49 | rfl |
| 50 | constructor |
| 51 | · intro a b hab |
| 52 | have h := congrArg (fun x => (e.hom x : Γ(Y, U.1))) hab |
| 53 | rw [hformula, hformula] at h |
| 54 | exact (mul_cancel_right_mem_nonZeroDivisors hnzd).mp h |
| 55 | · intro y |
| 56 | have hy : (e.hom y : Γ(Y, U.1)) ∈ Ideal.span {r} := by |
| 57 | rw [← hspan] |
| 58 | exact (e.hom y).property |
| 59 | obtain ⟨a, ha⟩ := Ideal.mem_span_singleton'.mp hy |
| 60 | refine ⟨a, he.1 ?_⟩ |
| 61 | apply Subtype.ext |
| 62 | rw [hformula] |
| 63 | exact ha |
| 64 | |
| 65 | theorem isIso_localIdealGeneratorHom [IsAffineHom f] |
| 66 | (hspan : f.ker.ideal U = Ideal.span {r}) |
| 67 | (hnzd : r ∈ nonZeroDivisors Γ(Y, U.1)) : |
| 68 | IsIso (localIdealGeneratorHom f U r hr) := by |
| 69 | have : (IdealModule.idealModule f).IsQuasicoherent := IdealModule.idealModule_quasicoherent f |
| 70 | exact CanonicalAffineFrame.openGeneratorHom_isIso (IdealModule.idealModule f) U.1 U.2 _ |
| 71 | (localIdealElement_smul_bijective f U r hr hspan hnzd) |
| 72 | |
| 73 | def localIdealGeneratorIso [IsAffineHom f] |
| 74 | (hspan : f.ker.ideal U = Ideal.span {r}) |
| 75 | (hnzd : r ∈ nonZeroDivisors Γ(Y, U.1)) : |
| 76 | Invertible.Scheme.Modules.unitObj U.1.toScheme ≅ (IdealModule.idealModule f).restrict U.1.ι := by |
| 77 | letI := isIso_localIdealGeneratorHom f U r hr hspan hnzd |
| 78 | exact asIso (localIdealGeneratorHom f U r hr) |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.CanonicalIdealFrame |