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.Polynomial.PrimeExtension |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.GenericFieldComposition |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | |
| 5 | /-! # Projection -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.Projection.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # LineBundleCycles: the actual affine-line projection and its extended prime points -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Polynomial |
| 14 | |
| 15 | variable (R : Type) [CommRing R] |
| 16 | |
| 17 | def polynomialProjection : Spec (.of R[X]) ⟶ Spec (.of R) := |
| 18 | Spec.map (CommRingCat.ofHom (algebraMap R R[X])) |
| 19 | |
| 20 | instance polynomialProjection_flat : Flat (polynomialProjection R) := |
| 21 | Flat.SpecMap_iff.mpr (RingHom.flat_algebraMap_iff.mpr Module.Flat.of_free) |
| 22 | |
| 23 | def polynomialPrimePoint (p : Spec (.of R)) : Spec (.of R[X]) := |
| 24 | ⟨p.asIdeal.map C, by |
| 25 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 26 | infer_instance⟩ |
| 27 | |
| 28 | theorem polynomialPrimePoint_projection (p : Spec (.of R)) : |
| 29 | polynomialProjection R (polynomialPrimePoint R p) = p := |
| 30 | PrimeSpectrum.ext (PrimeExtension.BundleCycles.polynomialPrimeExtension_comap p.asIdeal) |
| 31 | |
| 32 | theorem polynomialPrimePoint_injective : Function.Injective (polynomialPrimePoint R) := |
| 33 | Function.LeftInverse.injective (polynomialPrimePoint_projection R) |
| 34 | |
| 35 | theorem polynomialPrimePoint_coheight [IsNoetherianRing R] (p : Spec (.of R)) : |
| 36 | Order.coheight (polynomialPrimePoint R p) = Order.coheight p := by |
| 37 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 38 | rw [← idealHeight_eq_coheight, ← idealHeight_eq_coheight] |
| 39 | exact PrimeExtension.BundleCycles.polynomialPrimeExtension_height p.asIdeal |
| 40 | |
| 41 | theorem polynomialPrimePoint_specializes (P : Spec (.of R[X])) : |
| 42 | polynomialPrimePoint R (polynomialProjection R P) ⤳ P := by |
| 43 | apply (PrimeSpectrum.le_iff_specializes _ _).mp |
| 44 | exact Ideal.map_comap_le |
| 45 | |
| 46 | variable [IsDomain R] |
| 47 | |
| 48 | theorem polynomialProjection_genericPoint : |
| 49 | polynomialProjection R (genericPoint (Spec (.of R[X]))) = genericPoint (Spec (.of R)) := by |
| 50 | rw [genericPoint_eq_bot_of_affine, genericPoint_eq_bot_of_affine] |
| 51 | apply PrimeSpectrum.ext |
| 52 | exact (RingHom.injective_iff_ker_eq_bot (algebraMap R R[X])).mp C_injective |
| 53 | |
| 54 | def polynomialFunctionFieldMap : (Spec (.of R)).functionField ⟶ (Spec (.of R[X])).functionField := |
| 55 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (polynomialProjection R) (polynomialProjection_genericPoint R) |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.Projection.BundleCycles |