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.Smooth.LocalizedBase |
| 2 | |
| 3 | /-! # Stalk Fiber -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkFiber |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The closed fiber of each actual stalk map of a smooth morphism |
| 10 | is a domain. The ring map is the native scheme stalk map. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem quotient_domain {X Y : Scheme.{u}} (f : X ⟶ Y) [Smooth f] (x : X) : |
| 19 | IsDomain ((X.presheaf.stalk x) ⧸ |
| 20 | (IsLocalRing.maximalIdeal (Y.presheaf.stalk (f x))).map (f.stalkMap x).hom) := by |
| 21 | obtain ⟨U, hU, V, hV, hxV, hVU, hsm⟩ := Smooth.exists_isStandardSmooth f x |
| 22 | let R := Γ(Y, U) |
| 23 | let A := Γ(X, V) |
| 24 | let T := Y.presheaf.stalk (f x) |
| 25 | let S := X.presheaf.stalk x |
| 26 | let : Algebra R A := (f.appLE U V hVU).hom.toAlgebra |
| 27 | let : Algebra.Smooth R A := hsm.smooth |
| 28 | let : Algebra R T := Y.presheaf.algebra_section_stalk ⟨f x, hVU hxV⟩ |
| 29 | let : Algebra A S := X.presheaf.algebra_section_stalk ⟨x, hxV⟩ |
| 30 | let : Algebra T S := (f.stalkMap x).hom.toAlgebra |
| 31 | let : IsLocalHom (algebraMap T S) := f.toLRSHom.prop x |
| 32 | let : Algebra R S := ((f.stalkMap x).hom.comp (Y.presheaf.germ U (f x) (hVU hxV)).hom).toAlgebra |
| 33 | let : IsScalarTower R T S := IsScalarTower.of_algebraMap_eq' rfl |
| 34 | let : IsScalarTower R A S := IsScalarTower.of_algebraMap_eq' (by |
| 35 | ext a |
| 36 | change f.stalkMap x (Y.presheaf.germ U (f x) (hVU hxV) a) = |
| 37 | X.presheaf.germ V x hxV (f.appLE U V hVU a) |
| 38 | simp only [Scheme.Hom.germ_stalkMap_apply, Scheme.Hom.appLE, |
| 39 | CommRingCat.hom_comp, RingHom.coe_comp, Function.comp_apply, X.presheaf.germ_res_apply]) |
| 40 | let p := (hU.primeIdealOf ⟨f x, hVU hxV⟩).asIdeal |
| 41 | let q := (hV.primeIdealOf ⟨x, hxV⟩).asIdeal |
| 42 | let : IsLocalization.AtPrime T p := hU.isLocalization_stalk ⟨f x, hVU hxV⟩ |
| 43 | let : IsLocalization.AtPrime S q := hV.isLocalization_stalk ⟨x, hxV⟩ |
| 44 | have hp : q.comap (algebraMap R A) = p := by |
| 45 | exact congrArg PrimeSpectrum.asIdeal (IsAffineOpen.comap_primeIdealOf_appLE U hU V hV hVU hxV) |
| 46 | have hNM : Algebra.algebraMapSubmonoid A p.primeCompl ≤ q.primeCompl := by |
| 47 | rintro _ ⟨a, ha, rfl⟩ |
| 48 | change algebraMap R A a ∉ q |
| 49 | intro h |
| 50 | exact ha (show a ∈ p from hp ▸ h) |
| 51 | exact LocalizedBase.quotient_domain R A T S p.primeCompl q.primeCompl hNM |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkFiber |