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.CrystallinePrincipal.PrincipalPullback |
| 2 | |
| 3 | /-! # Product Localization -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ProductLocalization |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Principal localization of an actual crystalline product is the product with the localized factor. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | |
| 13 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Localization OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.LocalizationMaps OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.LocalizationLift |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 18 | {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of B)} |
| 19 | {U V : BigCrystallineSite.Object p B J δ f} (P : BinaryFan U V) (hP : IsLimit P) (r : U.ring) |
| 20 | |
| 21 | def cone : BinaryFan (Localization.object U r) V := |
| 22 | BinaryFan.mk (LocalizationMaps.localizedHom P.fst r) (Localization.hom P.pt (P.fst.ringMap r) ≫ P.snd) |
| 23 | |
| 24 | def baseLift (s : BinaryFan (Localization.object U r) V) : s.pt ⟶ P.pt := |
| 25 | hP.lift (BinaryFan.mk (s.fst ≫ Localization.hom U r) s.snd) |
| 26 | |
| 27 | theorem baseLift_fst (s : BinaryFan (Localization.object U r) V) : baseLift P hP r s ≫ P.fst = s.fst ≫ Localization.hom U r := |
| 28 | hP.fac (BinaryFan.mk (s.fst ≫ Localization.hom U r) s.snd) ⟨WalkingPair.left⟩ |
| 29 | |
| 30 | theorem baseLift_snd (s : BinaryFan (Localization.object U r) V) : baseLift P hP r s ≫ P.snd = s.snd := |
| 31 | hP.fac (BinaryFan.mk (s.fst ≫ Localization.hom U r) s.snd) ⟨WalkingPair.right⟩ |
| 32 | |
| 33 | theorem baseLift_unit (s : BinaryFan (Localization.object U r) V) : IsUnit ((baseLift P hP r s).ringMap (P.fst.ringMap r)) := by |
| 34 | have hu := (IsLocalization.Away.algebraMap_isUnit (S := Localization.Ring U r) r).map s.fst.ringMap.toRingHom |
| 35 | have he := congrArg (fun a : s.pt ⟶ U => a.ringMap r) (baseLift_fst P hP r s) |
| 36 | exact he.symm ▸ hu |
| 37 | |
| 38 | def lift (s : BinaryFan (Localization.object U r) V) : s.pt ⟶ (cone P r).pt := |
| 39 | LocalizationLift.liftHom (baseLift P hP r s) (P.fst.ringMap r) (baseLift_unit P hP r s) |
| 40 | |
| 41 | theorem lift_fst (s : BinaryFan (Localization.object U r) V) : ProductLocalization.lift P hP r s ≫ (cone P r).fst = s.fst := by |
| 42 | apply (cancel_mono (Localization.hom U r)).mp |
| 43 | exact (Category.assoc _ _ _).trans |
| 44 | ((congrArg (fun b => ProductLocalization.lift P hP r s ≫ b) (LocalizationMaps.localizedHom_square P.fst r)).trans |
| 45 | ((Category.assoc _ _ _).symm.trans |
| 46 | ((congrArg (fun b => b ≫ P.fst) |
| 47 | (LocalizationLift.liftHom_comp (baseLift P hP r s) (P.fst.ringMap r) (baseLift_unit P hP r s))).trans |
| 48 | (baseLift_fst P hP r s)))) |
| 49 | |
| 50 | theorem lift_snd (s : BinaryFan (Localization.object U r) V) : ProductLocalization.lift P hP r s ≫ (cone P r).snd = s.snd := by |
| 51 | change LocalizationLift.liftHom (baseLift P hP r s) (P.fst.ringMap r) _ ≫ (Localization.hom P.pt (P.fst.ringMap r) ≫ P.snd) = _ |
| 52 | rw [← Category.assoc, LocalizationLift.liftHom_comp, baseLift_snd] |
| 53 | |
| 54 | def isProduct : IsLimit (cone P r) := by |
| 55 | apply BinaryFan.isLimitMk (ProductLocalization.lift P hP r) (lift_fst P hP r) (lift_snd P hP r) |
| 56 | intro s a ha hb |
| 57 | apply (cancel_mono (Localization.hom P.pt (P.fst.ringMap r))).mp |
| 58 | change a ≫ Localization.hom P.pt (P.fst.ringMap r) = |
| 59 | LocalizationLift.liftHom (baseLift P hP r s) (P.fst.ringMap r) _ ≫ Localization.hom P.pt (P.fst.ringMap r) |
| 60 | rw [LocalizationLift.liftHom_comp] |
| 61 | apply BinaryFan.IsLimit.hom_ext hP |
| 62 | · exact (Category.assoc _ _ _).trans |
| 63 | ((congrArg (fun b => a ≫ b) (LocalizationMaps.localizedHom_square P.fst r).symm).trans |
| 64 | ((Category.assoc _ _ _).symm.trans |
| 65 | ((congrArg (fun b => b ≫ Localization.hom U r) ha).trans (baseLift_fst P hP r s).symm))) |
| 66 | · exact (Category.assoc _ _ _).trans (hb.trans (baseLift_snd P hP r s).symm) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ProductLocalization |