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.Free.PresentationLinearSections |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ZeroPresheafSections |
| 3 | |
| 4 | /-! # Yoneda Ext Zero Evaluation -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Free.YonedaExtZeroEvaluation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The original free-representable degree-zero Ext functor is actual |
| 11 | evaluation, with the canonical coefficient universe lift. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | universe u v z |
| 16 | variable {C : Type (max u v)} [Category.{v} C] |
| 17 | (R : Type (max u v)) [CommRing R] (J : GrothendieckTopology C) |
| 18 | [HasSheafify J (ModuleCat.{max u v} R)] (U : C) |
| 19 | |
| 20 | def presheaf (P : Cᵒᵖ ⥤ ModuleCat.{max u v} R) : |
| 21 | (Presheaf.freeYoneda U (ModuleCat.of R R) ⟶ P) ≃ₗ[R] |
| 22 | (ModuleCat.of R R ⟶ P.obj (op U)) := |
| 23 | { AlgebraicGeometry.Crystalline.Cohomology.Free.YonedaAddEquiv.FreeYonedaAddEquiv.presheaf U (ModuleCat.of R R) P with |
| 24 | map_smul' := by |
| 25 | intro r a |
| 26 | change Sigma.ι (fun _ : U ⟶ U => ModuleCat.of R R) (𝟙 U) ≫ |
| 27 | (r • a.app (op U)) = _ |
| 28 | erw [Linear.comp_smul] |
| 29 | rfl } |
| 30 | |
| 31 | def homEquiv (M : Sheaf J (ModuleCat.{max u v} R)) : |
| 32 | (Sheaf.freeYoneda J U (ModuleCat.of R R) ⟶ M) ≃ₗ[R] M.obj.obj (op U) := |
| 33 | (LinearAdjunction.homLinearEquiv R (sheafificationAdjunction J (ModuleCat.{max u v} R)) |
| 34 | (Presheaf.freeYoneda U (ModuleCat.of R R)) M).trans |
| 35 | ((presheaf R U M.obj).trans |
| 36 | (ModuleCat.homLinearEquiv.trans (LinearMap.ringLmapEquivSelf R R _))) |
| 37 | |
| 38 | theorem homEquiv_natural {M N : Sheaf J (ModuleCat.{max u v} R)} |
| 39 | (a : Sheaf.freeYoneda J U (ModuleCat.of R R) ⟶ M) (b : M ⟶ N) : |
| 40 | homEquiv R J U N (a ≫ b) = b.hom.app (op U) (homEquiv R J U M a) := |
| 41 | PresentationSheafSections.freeSections_natural R J U b a |
| 42 | |
| 43 | variable [HasExt.{max u v z} (Sheaf J (ModuleCat.{max u v} R))] |
| 44 | |
| 45 | def equivalence (M : Sheaf J (ModuleCat.{max u v} R)) : |
| 46 | Abelian.Ext.{max u v z} (Sheaf.freeYoneda J U (ModuleCat.of R R)) M 0 ≃ₗ[R] |
| 47 | ULift.{z} (M.obj.obj (op U)) := |
| 48 | Abelian.Ext.linearEquiv₀.trans ((homEquiv R J U M).trans ULift.moduleEquiv.symm) |
| 49 | |
| 50 | theorem equivalence_mk (M : Sheaf J (ModuleCat.{max u v} R)) |
| 51 | (a : Sheaf.freeYoneda J U (ModuleCat.of R R) ⟶ M) : |
| 52 | equivalence R J U M (Abelian.Ext.mk₀ a) = ULift.up (homEquiv R J U M a) := |
| 53 | congrArg (fun b => ULift.up (homEquiv R J U M b)) (Abelian.Ext.linearEquiv₀.apply_symm_apply a) |
| 54 | |
| 55 | def iso : IntegralComparison.Ext.ModuleFunctor.functor R (Sheaf.freeYoneda J U (ModuleCat.of R R)) 0 ≅ |
| 56 | sheafToPresheaf J (ModuleCat.{max u v} R) ⋙ |
| 57 | (evaluation Cᵒᵖ (ModuleCat.{max u v} R)).obj (op U) ⋙ |
| 58 | ModuleCat.uliftFunctor.{z,max u v} R := |
| 59 | NatIso.ofComponents (fun M => (equivalence R J U M).toModuleIso) (by |
| 60 | intro M N b |
| 61 | apply ModuleCat.hom_ext |
| 62 | apply LinearMap.ext |
| 63 | intro x |
| 64 | obtain ⟨a, rfl⟩ := (Abelian.Ext.mk₀_bijective (Sheaf.freeYoneda J U (ModuleCat.of R R)) M).2 x |
| 65 | have h := (congrArg (equivalence R J U N) (Abelian.Ext.mk₀_comp_mk₀ a b)).trans |
| 66 | ((equivalence_mk R J U N (a ≫ b)).trans |
| 67 | (congrArg ULift.up (homEquiv_natural R J U a b))) |
| 68 | exact h.trans (congrArg |
| 69 | (fun y : ULift.{z} (M.obj.obj (op U)) => ULift.up (b.hom.app (op U) y.down)) |
| 70 | (equivalence_mk R J U M a).symm)) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Free.YonedaExtZeroEvaluation |