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.HilbertScheme.Presentations.Finite.PresentationPrimeLift |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.RingPointOpenLift |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FiniteType |
| 4 | |
| 5 | /-! # Target Prime Spreading -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.TargetPrimeSpreading |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A point of a scheme of finite type over a Noetherian affine base, |
| 12 | valued in an arbitrary prime localization, spreads to a principal open. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {B A : Type u} [CommRing B] [IsNoetherianRing B] [CommRing A] [Algebra B A] |
| 18 | variable {X : Scheme.{u}} (f : X ⟶ Spec (.of B)) [LocallyOfFiniteType f] |
| 19 | variable (p : Ideal A) [p.IsPrime] |
| 20 | |
| 21 | theorem spread_prime_point_over_noetherian_affine |
| 22 | (g : Spec (.of (Localization.AtPrime p)) ⟶ X) |
| 23 | (hg : g ≫ f = Spec.map (CommRingCat.ofHom |
| 24 | ((algebraMap A (Localization.AtPrime p)).comp (algebraMap B A)))) : |
| 25 | ∃ (s : A) (hs : s ∉ p) (j : Spec (.of (Localization.Away s)) ⟶ X), |
| 26 | Spec.map (CommRingCat.ofHom (Principal.PrimeLocalization.principalToPrimeMap p s hs)) ≫ j = g ∧ |
| 27 | j ≫ f = Spec.map (CommRingCat.ofHom |
| 28 | ((algebraMap A (Localization.Away s)).comp (algebraMap B A))) := by |
| 29 | let C := X.affineOpenCover |
| 30 | obtain ⟨i, gp, hgp⟩ := Local.RingPointOpenLift.localRingPoint_lift_openCover C.openCover g |
| 31 | change C.I₀ at i |
| 32 | let T : Type u := C.X i |
| 33 | let c : Spec (.of T) ⟶ X := C.f i |
| 34 | change Spec (.of (Localization.AtPrime p)) ⟶ Spec (.of T) at gp |
| 35 | change gp ≫ c = g at hgp |
| 36 | let β : B →+* T := (Spec.preimage (c ≫ f)).hom |
| 37 | let : Algebra B T := β.toAlgebra |
| 38 | have hβ : Spec.map (CommRingCat.ofHom β) = c ≫ f := Spec.map_preimage _ |
| 39 | have hft : LocallyOfFiniteType (Spec.map (CommRingCat.ofHom β)) := by |
| 40 | rw [hβ] |
| 41 | exact inferInstanceAs (LocallyOfFiniteType (C.f i ≫ f)) |
| 42 | have hβft : β.FiniteType := (HasRingHomProperty.Spec_iff (P := @LocallyOfFiniteType)).mp hft |
| 43 | let : Algebra.FiniteType B T := hβft |
| 44 | let : Algebra.FinitePresentation B T := Algebra.FinitePresentation.of_finiteType.mp inferInstance |
| 45 | let φ : T →+* Localization.AtPrime p := (Spec.preimage gp).hom |
| 46 | have hφ : Spec.map (CommRingCat.ofHom φ) = gp := Spec.map_preimage _ |
| 47 | have hφβ : φ.comp β = (algebraMap A (Localization.AtPrime p)).comp (algebraMap B A) := by |
| 48 | have h : CommRingCat.ofHom (φ.comp β) = CommRingCat.ofHom |
| 49 | ((algebraMap A (Localization.AtPrime p)).comp (algebraMap B A)) := by |
| 50 | apply Spec.map_injective |
| 51 | rw [CommRingCat.ofHom_comp, Spec.map_comp, hφ, hβ, ← Category.assoc, hgp] |
| 52 | exact hg |
| 53 | exact congrArg CommRingCat.Hom.hom h |
| 54 | obtain ⟨s, hs, k, hkB, hk⟩ := Finite.PresentationPrimeLift.finitePresentation_prime_localization_lift T p φ |
| 55 | (fun b => RingHom.congr_fun hφβ b) |
| 56 | refine ⟨s, hs, Spec.map (CommRingCat.ofHom k) ≫ c, ?_, ?_⟩ |
| 57 | · rw [← Category.assoc, ← Spec.map_comp] |
| 58 | change Spec.map (CommRingCat.ofHom ((Principal.PrimeLocalization.principalToPrimeMap p s hs).comp k)) ≫ c = g |
| 59 | rw [hk, hφ] |
| 60 | exact hgp |
| 61 | · rw [Category.assoc, ← hβ, ← Spec.map_comp] |
| 62 | have he : k.comp β = (algebraMap A (Localization.Away s)).comp (algebraMap B A) := RingHom.ext hkB |
| 63 | exact congrArg (fun h => Spec.map (CommRingCat.ofHom h)) he |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.TargetPrimeSpreading |