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 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Free |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Abelian |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Products |
| 4 | import Mathlib.LinearAlgebra.StdBasis |
| 5 | |
| 6 | /-! # Free Sheaf Sections -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Finite.FreeSheafSections.RingedModules |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A finite free module sheaf has genuinely free sections on every open. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | variable {C : Type} [SmallCategory C] (J : GrothendieckTopology C) |
| 17 | [HasSheafify J AddCommGrpCat.{0}] [J.WEqualsLocallyBijective AddCommGrpCat.{0}] |
| 18 | (R : Sheaf J RingCat.{0}) (I : Type) [Finite I] |
| 19 | |
| 20 | def finiteFreeSheafSectionIso (U : Cᵒᵖ) : |
| 21 | (SheafOfModules.free (R := R) I).val.obj U ≅ ModuleCat.of (R.obj.obj U) (I → R.obj.obj U) := by |
| 22 | classical |
| 23 | let : Fintype I := Fintype.ofFinite I |
| 24 | let : HasFiniteBiproducts (SheafOfModules.{0} R) := HasFiniteBiproducts.of_hasFiniteProducts |
| 25 | let A : I → SheafOfModules.{0} R := fun _ => SheafOfModules.unit R |
| 26 | let e : SheafOfModules.free (R := R) I ≅ ∏ᶜ A := |
| 27 | (biproduct.isoCoproduct A).symm ≪≫ biproduct.isoProduct A |
| 28 | exact (SheafOfModules.evaluation R U).mapIso e ≪≫ |
| 29 | PreservesProduct.iso (SheafOfModules.evaluation R U) A ≪≫ |
| 30 | ModuleCat.piIsoPi (fun i => (SheafOfModules.evaluation R U).obj (A i)) |
| 31 | |
| 32 | def finiteFreeSheafSectionBasis (U : Cᵒᵖ) : |
| 33 | Module.Basis I (R.obj.obj U) ((SheafOfModules.free (R := R) I).val.obj U) := by |
| 34 | let : Fintype I := Fintype.ofFinite I |
| 35 | exact (Pi.basisFun (R.obj.obj U) I).map (finiteFreeSheafSectionIso J R I U).symm.toLinearEquiv |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.Comparison.Betti.Finite.FreeSheafSections.RingedModules |