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 OAI.NumberTheory.PadicHodge.IntegralComparison.Module.ConstantSections |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Ulift |
| 3 | import Mathlib.Algebra.Homology.Functor |
| 4 | |
| 5 | /-! # Complex Map -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ConstantSection.ComplexMap |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # IntegralComparison: a map from a constant sheaf complex induces a coefficient-linear section map |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | universe u v w z |
| 18 | |
| 19 | variable {C : Type u} [Category.{v} C] (R : Type w) [CommRing R] |
| 20 | (J : GrothendieckTopology C) [HasSheafify J (ModuleCat.{w} R)] |
| 21 | [HasExt.{max w z} (Sheaf J (ModuleCat.{w} R))] |
| 22 | (D : CochainComplex (ModuleCat.{w} R) ℕ) (K : CochainComplex (Sheaf J (ModuleCat.{w} R)) ℕ) |
| 23 | (a : ((constantSheaf J (ModuleCat.{w} R)).mapHomologicalComplex (ComplexShape.up ℕ)).obj D ⟶ K) |
| 24 | |
| 25 | def source : CochainComplex (ModuleCat.{max w z} R) ℕ := |
| 26 | ((ModuleCat.uliftFunctor.{z, w} R).mapHomologicalComplex (ComplexShape.up ℕ)).obj D |
| 27 | |
| 28 | def target : CochainComplex (ModuleCat.{max w z} R) ℕ := |
| 29 | ((Ext.ModuleFunctor.functor R (Module.ConstantSections.constantUnit R J) 0).mapHomologicalComplex |
| 30 | (ComplexShape.up ℕ)).obj K |
| 31 | |
| 32 | def map : source R D ⟶ target R J K where |
| 33 | f n := ModuleCat.ofHom |
| 34 | ((Module.ConstantSections.sectionMap R J (D.X n) (K.X n) (a.f n)).comp ULift.moduleEquiv.toLinearMap) |
| 35 | comm' n m _ := by |
| 36 | apply ModuleCat.hom_ext |
| 37 | apply LinearMap.ext |
| 38 | intro x |
| 39 | exact Module.ConstantSections.section_natural R J (D.d n m) (K.d n m) (a.f n) (a.f m) |
| 40 | (a.comm n m).symm x.down |
| 41 | |
| 42 | theorem map_f_apply (n : ℕ) (x : (source R D).X n) : |
| 43 | (map R J D K a).f n x = Module.ConstantSections.sectionMap R J (D.X n) (K.X n) (a.f n) x.down := rfl |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ConstantSection.ComplexMap |