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.ExhaustiveSectionNaturality |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.SheafLinear |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 5 | import Mathlib.Algebra.Category.ModuleCat.Ulift |
| 6 | |
| 7 | /-! # Zero Presheaf Sections -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ZeroPresheafSections |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # IntegralComparison: degree-zero Ext sections agree naturally with presheaf sections |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory |
| 18 | |
| 19 | universe u v w z |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] (R : Type w) [CommRing R] |
| 22 | (J : GrothendieckTopology C) [HasSheafify J (ModuleCat.{w} R)] |
| 23 | |
| 24 | abbrev constantUnit : Sheaf J (ModuleCat.{w} R) := |
| 25 | (constantSheaf J (ModuleCat.{w} R)).obj (ModuleCat.of R R) |
| 26 | |
| 27 | def homLinearEquiv (M : Sheaf J (ModuleCat.{w} R)) : |
| 28 | (constantUnit R J ⟶ M) ≃ₗ[R] ((Functor.const Cᵒᵖ).obj (ModuleCat.of R R) ⟶ M.obj) := |
| 29 | LinearAdjunction.homLinearEquiv R (sheafificationAdjunction J (ModuleCat.{w} R)) |
| 30 | ((Functor.const Cᵒᵖ).obj (ModuleCat.of R R)) M |
| 31 | |
| 32 | theorem homLinearEquiv_natural {M N : Sheaf J (ModuleCat.{w} R)} |
| 33 | (a : constantUnit R J ⟶ M) (b : M ⟶ N) : |
| 34 | homLinearEquiv R J N (a ≫ b) = homLinearEquiv R J M a ≫ b.hom := |
| 35 | (sheafificationAdjunction J (ModuleCat.{w} R)).homEquiv_naturality_right a b |
| 36 | |
| 37 | variable [HasExt.{max u w z} (Sheaf J (ModuleCat.{w} R))] |
| 38 | |
| 39 | def equivalence (M : Sheaf J (ModuleCat.{w} R)) : |
| 40 | Abelian.Ext.{max u w z} (constantUnit R J) M 0 ≃ₗ[R] |
| 41 | ULift.{z} ((Functor.const Cᵒᵖ).obj (ModuleCat.of R R) ⟶ M.obj) := |
| 42 | Abelian.Ext.linearEquiv₀.trans ((homLinearEquiv R J M).trans ULift.moduleEquiv.symm) |
| 43 | |
| 44 | theorem equivalence_mk (M : Sheaf J (ModuleCat.{w} R)) (a : constantUnit R J ⟶ M) : |
| 45 | equivalence R J M (Abelian.Ext.mk₀ a) = ULift.up (homLinearEquiv R J M a) := |
| 46 | congrArg (fun b => ULift.up (homLinearEquiv R J M b)) (Abelian.Ext.linearEquiv₀.apply_symm_apply a) |
| 47 | |
| 48 | def iso : ModuleFunctor.functor R (constantUnit R J) 0 ≅ |
| 49 | sheafToPresheaf J (ModuleCat.{w} R) ⋙ |
| 50 | ExhaustiveSectionNaturality.globalSectionsFunctor R (ModuleCat.of R R) ⋙ |
| 51 | ModuleCat.uliftFunctor.{z, max u w} R := |
| 52 | NatIso.ofComponents (fun M => (equivalence R J M).toModuleIso) (by |
| 53 | intro M N b |
| 54 | apply ModuleCat.hom_ext |
| 55 | apply LinearMap.ext |
| 56 | intro x |
| 57 | obtain ⟨a, rfl⟩ := (Abelian.Ext.mk₀_bijective (constantUnit R J) M).2 x |
| 58 | have h := (congrArg (equivalence R J N) (Abelian.Ext.mk₀_comp_mk₀ a b)).trans |
| 59 | ((equivalence_mk R J N (a ≫ b)).trans (congrArg ULift.up (homLinearEquiv_natural R J a b))) |
| 60 | exact h.trans (congrArg |
| 61 | (fun y : ULift.{z} ((Functor.const Cᵒᵖ).obj (ModuleCat.of R R) ⟶ M.obj) => ULift.up (y.down ≫ b.hom)) |
| 62 | (equivalence_mk R J M a).symm)) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ZeroPresheafSections |