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.FormalGeometry.Completion.SmoothLocalDomains |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 3 | |
| 4 | /-! # Smooth Stalk Domains -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothStalkDomains.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: domain stalks of actual smooth schemes over fields |
| 12 | |
| 13 | Affine sections of the structural morphism are smooth algebras. Their |
| 14 | prime localizations identify with the actual scheme stalks. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable (K : Type u) [Field K] {X : Scheme.{u}} |
| 25 | (f : X ⟶ Spec (CommRingCat.of K)) [Smooth f] |
| 26 | |
| 27 | include K f |
| 28 | |
| 29 | /-- Every stalk of a smooth scheme over a field is an integral domain. -/ |
| 30 | theorem smooth_field_stalk_isDomain (x : X) : IsDomain (X.presheaf.stalk x) := by |
| 31 | obtain ⟨_, ⟨U, hU, rfl⟩, hxU, -⟩ := |
| 32 | X.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ x) isOpen_univ |
| 33 | let := ((Scheme.ΓSpecIso (CommRingCat.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 34 | (Field.toIsField K)).toField |
| 35 | have hs := f.smooth_appLE (isAffineOpen_top _) hU (by simp) |
| 36 | algebraize [(f.appLE ⊤ U (by simp)).hom] |
| 37 | have : Algebra.Smooth Γ(Spec (CommRingCat.of K), ⊤) Γ(X, U) := hs |
| 38 | let p := (hU.primeIdealOf ⟨x, hxU⟩).asIdeal |
| 39 | have : IsDomain (Localization.AtPrime p) := |
| 40 | SmoothLocalDomains.Construction.smooth_field_localization_isDomain Γ(Spec (CommRingCat.of K), ⊤) Γ(X, U) p |
| 41 | algebraize [(X.presheaf.germ U x hxU).hom] |
| 42 | have := hU.isLocalization_stalk ⟨x, hxU⟩ |
| 43 | exact (IsLocalization.algEquiv p.primeCompl (X.presheaf.stalk x) |
| 44 | (Localization.AtPrime p)).toRingEquiv.toMulEquiv.isDomain _ |
| 45 | |
| 46 | theorem smooth_field_affine_sections_isIntegrallyClosed (U : X.Opens) |
| 47 | (hU : IsAffineOpen U) [IsDomain Γ(X, U)] : IsIntegrallyClosed Γ(X, U) := by |
| 48 | let := ((Scheme.ΓSpecIso (CommRingCat.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 49 | (Field.toIsField K)).toField |
| 50 | have hs := f.smooth_appLE (isAffineOpen_top _) hU (by simp) |
| 51 | algebraize [(f.appLE ⊤ U (by simp)).hom] |
| 52 | have : Algebra.Smooth Γ(Spec (CommRingCat.of K), ⊤) Γ(X, U) := hs |
| 53 | exact SmoothLocalDomains.Construction.smooth_field_domain_isIntegrallyClosed Γ(Spec (CommRingCat.of K), ⊤) Γ(X, U) |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothStalkDomains.Construction |