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.IntersectionTheory.ProjectionFormula.LocalizationStalks |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Preimmersion |
| 3 | |
| 4 | /-! # Localization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.Localization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every point of the spectrum of an actual scheme stalk has the same |
| 11 | local ring and codimension as its image in the scheme. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem stalkMap_isIso (X : Scheme.{u}) (x : X) |
| 21 | (p : Spec (X.presheaf.stalk x)) : IsIso ((X.fromSpecStalk x).stalkMap p) := by |
| 22 | obtain ⟨U, hU, hx, _⟩ := exists_isAffineOpen_mem_and_subset (TopologicalSpace.Opens.mem_top x) |
| 23 | let A := Γ(X, U) |
| 24 | let R := X.presheaf.stalk x |
| 25 | let : Algebra A R := (X.presheaf.germ U x hx).hom.toAlgebra |
| 26 | let : IsLocalization (hU.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl R := |
| 27 | hU.isLocalization_stalk ⟨x, hx⟩ |
| 28 | let : IsIso ((Spec.map (X.presheaf.germ U x hx)).stalkMap p) := |
| 29 | LocalizationStalks.localization_stalkMap_isIso A R |
| 30 | (hU.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl p |
| 31 | rw [← hU.fromSpecStalk_eq_fromSpecStalk hx, IsAffineOpen.fromSpecStalk, |
| 32 | Scheme.Hom.stalkMap_comp] |
| 33 | infer_instance |
| 34 | |
| 35 | theorem coheight_image (X : Scheme.{u}) (x : X) |
| 36 | (p : Spec (X.presheaf.stalk x)) : |
| 37 | Order.coheight (X.fromSpecStalk x p) = Order.coheight p := by |
| 38 | obtain ⟨U, hU, hx, _⟩ := exists_isAffineOpen_mem_and_subset (TopologicalSpace.Opens.mem_top x) |
| 39 | let A := Γ(X, U) |
| 40 | let R := X.presheaf.stalk x |
| 41 | let : Algebra A R := (X.presheaf.germ U x hx).hom.toAlgebra |
| 42 | let : IsLocalization (hU.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl R := |
| 43 | hU.isLocalization_stalk ⟨x, hx⟩ |
| 44 | rw [← hU.fromSpecStalk_eq_fromSpecStalk hx, IsAffineOpen.fromSpecStalk, |
| 45 | Scheme.Hom.comp_apply, coheight_eq_of_isOpenImmersion] |
| 46 | exact LocalizationStalks.localization_coheight A R |
| 47 | (hU.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl p |
| 48 | |
| 49 | theorem height_eq_coheight_image (X : Scheme.{u}) (x : X) |
| 50 | (p : Spec (X.presheaf.stalk x)) : |
| 51 | p.asIdeal.height = Order.coheight (X.fromSpecStalk x p) := by |
| 52 | rw [coheight_image, idealHeight_eq_coheight] |
| 53 | |
| 54 | theorem genericPoint_image (X : Scheme.{u}) [IsIntegral X] (x : X) : |
| 55 | X.fromSpecStalk x (genericPoint (Spec (X.presheaf.stalk x))) = genericPoint X := by |
| 56 | have hmem : genericPoint X ∈ Set.range (X.fromSpecStalk x) := by |
| 57 | rw [Scheme.range_fromSpecStalk] |
| 58 | exact (genericPoint_spec X).specializes trivial |
| 59 | obtain ⟨p, hp⟩ := hmem |
| 60 | apply Inseparable.eq |
| 61 | apply Specializes.antisymm |
| 62 | · rw [← hp] |
| 63 | exact ((genericPoint_spec (Spec (X.presheaf.stalk x))).specializes trivial).map |
| 64 | (X.fromSpecStalk x).continuous |
| 65 | · exact (genericPoint_spec X).specializes trivial |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.Localization |