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.Affine.InternalHom |
| 2 | import Mathlib.CategoryTheory.Linear.Yoneda |
| 3 | import Mathlib.Algebra.Homology.Additive |
| 4 | |
| 5 | /-! # Internal Hom Complex -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.InternalHomComplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual affine internal-Hom section comparison, including all |
| 12 | differentials of a complex. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] |
| 21 | |
| 22 | local notation "Γₐ" => OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.InternalHom.sections (R := R) |
| 23 | |
| 24 | instance sections_additive : (Γₐ).Additive where |
| 25 | map_add {_M _N} _f _g := rfl |
| 26 | |
| 27 | variable (N : (Spec (CommRingCat.of R)).Modules) |
| 28 | |
| 29 | def sectionHom : (Spec (CommRingCat.of R)).Modulesᵒᵖ ⥤ ModuleCat R := |
| 30 | SchemeInternalHom.functor N ⋙ Γₐ |
| 31 | |
| 32 | def algebraicHom : (Spec (CommRingCat.of R)).Modulesᵒᵖ ⥤ ModuleCat R := |
| 33 | (Γₐ).op ⋙ (linearYoneda R (ModuleCat R)).obj ((Γₐ).obj N) |
| 34 | |
| 35 | instance sectionHom_additive : (sectionHom N).Additive := by |
| 36 | unfold sectionHom |
| 37 | infer_instance |
| 38 | |
| 39 | instance algebraicHom_additive : (algebraicHom N).Additive := by |
| 40 | unfold algebraicHom |
| 41 | infer_instance |
| 42 | |
| 43 | def comparison : sectionHom N ⟶ algebraicHom N where |
| 44 | app M := ModuleCat.ofHom (R := R) (X := (sectionHom N).obj M) |
| 45 | (Y := (algebraicHom N).obj M) (InternalHom.evaluation M.unop N) |
| 46 | naturality {M P} f := by |
| 47 | ext q |
| 48 | exact InternalHom.precomp P.unop N f.unop q |
| 49 | |
| 50 | theorem comparison_isIso (M : (Spec (CommRingCat.of R)).Modulesᵒᵖ) |
| 51 | [M.unop.IsQuasicoherent] : IsIso ((comparison N).app M) := |
| 52 | (ConcreteCategory.isIso_iff_bijective _).mpr |
| 53 | (InternalHom.evaluation_bijective M.unop N) |
| 54 | |
| 55 | def complexMap {ι : Type*} (c : ComplexShape ι) |
| 56 | (K : HomologicalComplex (Spec (CommRingCat.of R)).Modulesᵒᵖ c) : |
| 57 | ((sectionHom N).mapHomologicalComplex c).obj K ⟶ |
| 58 | ((algebraicHom N).mapHomologicalComplex c).obj K := |
| 59 | ((comparison N).mapHomologicalComplex c).app K |
| 60 | |
| 61 | theorem complexMap_isIso {ι : Type*} (c : ComplexShape ι) |
| 62 | (K : HomologicalComplex (Spec (CommRingCat.of R)).Modulesᵒᵖ c) |
| 63 | [∀ i, (K.X i).unop.IsQuasicoherent] : IsIso (complexMap N c K) := by |
| 64 | let (i : ι) : IsIso ((complexMap N c K).f i) := comparison_isIso N (K.X i) |
| 65 | exact HomologicalComplex.Hom.isIso_of_components _ |
| 66 | |
| 67 | def complexIso {ι : Type*} (c : ComplexShape ι) |
| 68 | (K : HomologicalComplex (Spec (CommRingCat.of R)).Modulesᵒᵖ c) |
| 69 | [∀ i, (K.X i).unop.IsQuasicoherent] : |
| 70 | ((sectionHom N).mapHomologicalComplex c).obj K ≅ |
| 71 | ((algebraicHom N).mapHomologicalComplex c).obj K := by |
| 72 | letI := complexMap_isIso N c K |
| 73 | exact asIso (complexMap N c K) |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.InternalHomComplex |