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.PrincipalOpens |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.LocalizationLift |
| 3 | |
| 4 | /-! # Functor -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CrystallinePrincipal.Functor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: principal opens inside an actual crystalline slice |
| 12 | |
| 13 | Principal localizations define a fully faithful functor to the slice over |
| 14 | the original crystalline object. The factorization and uniqueness proofs |
| 15 | use the constructed divided-power localization maps. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Localization OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.LocalizationLift |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalOpens.Category (Principal) |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 26 | {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of B)} (U : BigCrystallineSite.Object p B J δ f) |
| 27 | |
| 28 | def object (r : PrincipalOpens.Category.Principal U.ring) : Over U := Over.mk (Crystalline.Localization.hom U r.function) |
| 29 | |
| 30 | theorem hom_ext {T : Over U} {r : PrincipalOpens.Category.Principal U.ring} (a b : T ⟶ object U r) : a = b := by |
| 31 | apply (Over.forget U).map_injective |
| 32 | apply (cancel_mono (Crystalline.Localization.hom U r.function)).mp |
| 33 | exact (Over.w a).trans (Over.w b).symm |
| 34 | |
| 35 | theorem unit_of_factor {T : BigCrystallineSite.Object p B J δ f} (β : T ⟶ U) (r : U.ring) |
| 36 | (a : T ⟶ Crystalline.Localization.object U r) (ha : a ≫ Crystalline.Localization.hom U r = β) : |
| 37 | IsUnit (β.ringMap r) := by |
| 38 | have hu := (IsLocalization.Away.algebraMap_isUnit r).map a.ringMap.toRingHom |
| 39 | have he := congrArg (fun g : T ⟶ U => g.ringMap r) ha |
| 40 | exact he ▸ hu |
| 41 | |
| 42 | def map {r s : PrincipalOpens.Category.Principal U.ring} (a : r ⟶ s) : object U r ⟶ object U s := |
| 43 | Over.homMk |
| 44 | (Crystalline.LocalizationLift.liftHom (Crystalline.Localization.hom U r.function) s.function |
| 45 | ((PrimeSpectrum.basicOpen_le_basicOpen_iff_algebraMap_isUnit |
| 46 | (S := Crystalline.Localization.Ring U r.function)).mp (leOfHom a))) |
| 47 | (Crystalline.LocalizationLift.liftHom_comp (Crystalline.Localization.hom U r.function) s.function _) |
| 48 | |
| 49 | /-- The actual principal-open inclusion in the crystalline slice. -/ |
| 50 | def inclusion : PrincipalOpens.Category.Principal U.ring ⥤ Over U where |
| 51 | obj := object U |
| 52 | map := Functor.map U |
| 53 | map_id _ := hom_ext U _ _ |
| 54 | map_comp _ _ := hom_ext U _ _ |
| 55 | |
| 56 | instance inclusion_faithful : (inclusion U).Faithful where |
| 57 | map_injective _ := Subsingleton.elim _ _ |
| 58 | |
| 59 | def preimage {r s : PrincipalOpens.Category.Principal U.ring} (a : object U r ⟶ object U s) : r ⟶ s := |
| 60 | homOfLE ((PrimeSpectrum.basicOpen_le_basicOpen_iff_algebraMap_isUnit |
| 61 | (S := Crystalline.Localization.Ring U r.function)).mpr (unit_of_factor U (Crystalline.Localization.hom U r.function) s.function a.left (Over.w a))) |
| 62 | |
| 63 | instance inclusion_full : (inclusion U).Full where |
| 64 | map_surjective a := ⟨preimage U a, hom_ext U _ _⟩ |
| 65 | |
| 66 | def toTerminal (T : Over U) : T ⟶ object U (PrincipalOpens.Category.top U.ring) := |
| 67 | Over.homMk (Crystalline.LocalizationLift.liftHom T.hom 1 (by |
| 68 | change IsUnit (T.hom.ringMap.toRingHom 1) |
| 69 | rw [map_one] |
| 70 | exact isUnit_one)) (Crystalline.LocalizationLift.liftHom_comp T.hom 1 _) |
| 71 | |
| 72 | /-- The principal unit open remains terminal in the whole crystalline slice. -/ |
| 73 | def isTerminal : IsTerminal ((inclusion U).obj (PrincipalOpens.Category.top U.ring)) := |
| 74 | IsTerminal.ofUniqueHom (toTerminal U) (fun _ _ => hom_ext U _ _) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CrystallinePrincipal.Functor |