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.AlgebraicGeometry.CycleClass.Thom.LocalizationStalks |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.MorphismOrderStalk |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.SupportStalkModule |
| 4 | |
| 5 | /-! # From Stalk Order -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.FromStalkOrder.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual map from the spectrum of a stalk preserves every local |
| 12 | ring and coheight. Consequently it preserves original scheme orders. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.CycleClass.Thom.LocalizationStalks.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.RationalOrderTransport.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.MorphismOrderStalk.Constructions |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | universe u |
| 22 | variable (X : Scheme.{u}) (x : X) |
| 23 | |
| 24 | theorem fromSpecStalk_localStalk_isIso (y : Spec (X.presheaf.stalk x)) : |
| 25 | IsIso ((X.fromSpecStalk x).stalkMap y) := by |
| 26 | obtain ⟨U, hU, hxU, _⟩ := exists_isAffineOpen_mem_and_subset (show x ∈ (⊤ : X.Opens) from trivial) |
| 27 | let R := Γ(X, U) |
| 28 | let S := X.presheaf.stalk x |
| 29 | let : Algebra R S := (X.presheaf.germ U x hxU).hom.toAlgebra |
| 30 | let M := (hU.primeIdealOf ⟨x, hxU⟩).asIdeal.primeCompl |
| 31 | let : IsLocalization M S := hU.isLocalization_stalk ⟨x, hxU⟩ |
| 32 | let l := Spec.map (X.presheaf.germ U x hxU) |
| 33 | let c := hU.fromSpec |
| 34 | have hl : IsIso (l.stalkMap y) := LocalizationStalks.Constructions.localizationStalkMap_isIso R S M y |
| 35 | have hc : IsIso (c.stalkMap (l y)) := inferInstance |
| 36 | let e := (@asIso _ _ _ _ (c.stalkMap (l y)) hc) ≪≫ (@asIso _ _ _ _ (l.stalkMap y) hl) |
| 37 | have he : e.hom = (l ≫ c).stalkMap y := (Scheme.Hom.stalkMap_comp l c y).symm |
| 38 | have hi : IsIso ((l ≫ c).stalkMap y) := (congrArg (fun k => IsIso k) he).mp e.isIso_hom |
| 39 | exact (congrArg (fun f : Spec S ⟶ X => IsIso (f.stalkMap y)) |
| 40 | (hU.fromSpecStalk_eq_fromSpecStalk hxU)).mp hi |
| 41 | |
| 42 | theorem fromSpecStalk_coheight (y : Spec (X.presheaf.stalk x)) : |
| 43 | Order.coheight (X.fromSpecStalk x y) = Order.coheight y := by |
| 44 | obtain ⟨U, hU, hxU, _⟩ := exists_isAffineOpen_mem_and_subset (show x ∈ (⊤ : X.Opens) from trivial) |
| 45 | let R := Γ(X, U) |
| 46 | let S := X.presheaf.stalk x |
| 47 | let : Algebra R S := (X.presheaf.germ U x hxU).hom.toAlgebra |
| 48 | let M := (hU.primeIdealOf ⟨x, hxU⟩).asIdeal.primeCompl |
| 49 | let : IsLocalization M S := hU.isLocalization_stalk ⟨x, hxU⟩ |
| 50 | rw [← hU.fromSpecStalk_eq_fromSpecStalk hxU] |
| 51 | change Order.coheight (hU.fromSpec ((Spec.map (X.presheaf.germ U x hxU)) y)) = _ |
| 52 | rw [coheight_eq_of_isOpenImmersion] |
| 53 | exact LocalizationStalks.Constructions.localization_coheight R S M y |
| 54 | |
| 55 | variable [IsIntegral X] |
| 56 | |
| 57 | def stalkFieldMap : X.functionField ⟶ (Spec (X.presheaf.stalk x)).functionField := |
| 58 | RationalOrderTransport.Constructions.genericFieldMap (X.fromSpecStalk x) (SupportStalkModule.Constructions.genericPoint_image X x) |
| 59 | |
| 60 | instance stalkFieldMap_isIso : IsIso (stalkFieldMap X x) := by |
| 61 | let := fromSpecStalk_localStalk_isIso X x (genericPoint (Spec (X.presheaf.stalk x))) |
| 62 | unfold stalkFieldMap RationalOrderTransport.Constructions.genericFieldMap |
| 63 | infer_instance |
| 64 | |
| 65 | variable [IsLocallyNoetherian X] |
| 66 | |
| 67 | theorem ord_fromSpecStalk (g : X.functionField) (y : Spec (X.presheaf.stalk x)) : |
| 68 | (Spec (X.presheaf.stalk x)).ord (stalkFieldMap X x g) y = X.ord g (X.fromSpecStalk x y) := by |
| 69 | let := fromSpecStalk_localStalk_isIso X x y |
| 70 | let : IsIso (RationalOrderTransport.Constructions.genericFieldMap (X.fromSpecStalk x) (SupportStalkModule.Constructions.genericPoint_image X x)) := |
| 71 | stalkFieldMap_isIso X x |
| 72 | exact MorphismOrderStalk.Constructions.ord_of_stalkMap_isIso (X.fromSpecStalk x) (SupportStalkModule.Constructions.genericPoint_image X x) |
| 73 | y (fromSpecStalk_coheight X x y) g |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.CycleClass.Thom.FromStalkOrder.Constructions |