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.Divisors.LineBundles.Geometric.AffinePrimeExtension |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.FlatPrimeExtension |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.FiberFieldNaturality |
| 4 | |
| 5 | /-! # Affine Prime Point -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Geometric.AffinePrimePoint.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Extended prime points of a smooth affine morphism with geometrically |
| 12 | integral fibers are its actual fiber generic points and preserve codimension. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 15 | |
| 16 | variable (R S : Type) [CommRing R] [CommRing S] [Algebra R S] |
| 17 | [IsNoetherianRing R] [Smooth (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)] |
| 18 | [GeometricallyIntegral (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)] |
| 19 | |
| 20 | def geometricAffinePrimePoint (p : Spec (.of R)) : Spec (.of S) := |
| 21 | ⟨p.asIdeal.map (algebraMap R S), by |
| 22 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 23 | exact AffinePrimeExtension.BundleCycles.geometricAffine_primeExtension R S p.asIdeal⟩ |
| 24 | |
| 25 | theorem geometricAffinePrimePoint_projection (p : Spec (.of R)) : |
| 26 | AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S (geometricAffinePrimePoint R S p) = p := |
| 27 | PrimeSpectrum.ext (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection_comap_map R S p.asIdeal) |
| 28 | |
| 29 | theorem geometricAffinePrimePoint_injective : Function.Injective (geometricAffinePrimePoint R S) := |
| 30 | Function.LeftInverse.injective (geometricAffinePrimePoint_projection R S) |
| 31 | |
| 32 | theorem geometricAffinePrimePoint_specializes (P : Spec (.of S)) : |
| 33 | geometricAffinePrimePoint R S (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S P) ⤳ P := by |
| 34 | apply (PrimeSpectrum.le_iff_specializes _ _).mp |
| 35 | exact Ideal.map_comap_le |
| 36 | |
| 37 | theorem geometricAffinePrimePoint_eq_fiberGeneric (p : Spec (.of R)) : |
| 38 | geometricAffinePrimePoint R S p = Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) p := by |
| 39 | apply Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint_unique _ _ _ (geometricAffinePrimePoint_projection R S p) |
| 40 | intro P hP |
| 41 | simpa only [hP] using geometricAffinePrimePoint_specializes R S P |
| 42 | |
| 43 | theorem geometricAffinePrimePoint_coheight [IsNoetherianRing S] (p : Spec (.of R)) : |
| 44 | Order.coheight (geometricAffinePrimePoint R S p) = Order.coheight p := by |
| 45 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 46 | let : (p.asIdeal.map (algebraMap R S)).IsPrime := AffinePrimeExtension.BundleCycles.geometricAffine_primeExtension R S p.asIdeal |
| 47 | let : Module.Flat R S := RingHom.flat_algebraMap_iff.mp |
| 48 | ((Flat.SpecMap_iff (f := CommRingCat.ofHom (algebraMap R S))).mp |
| 49 | (inferInstanceAs (Flat (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)))) |
| 50 | rw [← idealHeight_eq_coheight, ← idealHeight_eq_coheight] |
| 51 | exact FlatPrimeExtension.BundleCycles.flatPrimeExtension_height p.asIdeal (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection_comap_map R S p.asIdeal) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Geometric.AffinePrimePoint.BundleCycles |