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.Laurent.DivisorPrimes |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.GenericFieldComposition |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | |
| 5 | /-! # Fiber Generic Point -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Laurent.FiberGenericPoint.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! # LineBundleCycles: the actual affine punctured-line projection -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | variable (R : Type) [CommRing R] |
| 18 | |
| 19 | def laurentProjection : Spec (CommRingCat.of (LaurentPolynomial R)) ⟶ Spec (CommRingCat.of R) := |
| 20 | Spec.map (CommRingCat.ofHom (algebraMap R (LaurentPolynomial R))) |
| 21 | |
| 22 | theorem laurentConstant_injective : Function.Injective (algebraMap R (LaurentPolynomial R)) := by |
| 23 | intro a b h |
| 24 | have hc := congrArg (LaurentPolynomial.eval₂ (RingHom.id R) (1 : Rˣ)) h |
| 25 | change LaurentPolynomial.eval₂ (RingHom.id R) (1 : Rˣ) (LaurentPolynomial.C a) = |
| 26 | LaurentPolynomial.eval₂ (RingHom.id R) (1 : Rˣ) (LaurentPolynomial.C b) at hc |
| 27 | simpa only [LaurentPolynomial.eval₂_C, RingHom.id_apply] using hc |
| 28 | |
| 29 | instance laurentProjection_flat : Flat (laurentProjection R) := by |
| 30 | let : Module.Flat R (LaurentPolynomial R) := Module.Flat.of_free |
| 31 | exact Flat.SpecMap_iff.mpr (RingHom.flat_algebraMap_iff.mpr inferInstance) |
| 32 | |
| 33 | instance laurent_noetherian [IsNoetherianRing R] : IsNoetherianRing (LaurentPolynomial R) := |
| 34 | IsLocalization.isNoetherianRing (Submonoid.powers (Polynomial.X : Polynomial R)) |
| 35 | (LaurentPolynomial R) inferInstance |
| 36 | |
| 37 | variable [IsDomain R] |
| 38 | |
| 39 | theorem laurentProjection_genericPoint : |
| 40 | laurentProjection R (genericPoint (Spec (CommRingCat.of (LaurentPolynomial R)))) = |
| 41 | genericPoint (Spec (CommRingCat.of R)) := by |
| 42 | rw [genericPoint_eq_bot_of_affine, genericPoint_eq_bot_of_affine] |
| 43 | apply PrimeSpectrum.ext |
| 44 | exact (RingHom.injective_iff_ker_eq_bot (algebraMap R (LaurentPolynomial R))).mp |
| 45 | (laurentConstant_injective R) |
| 46 | |
| 47 | def laurentFunctionFieldMap : (Spec (CommRingCat.of R)).functionField ⟶ |
| 48 | (Spec (CommRingCat.of (LaurentPolynomial R))).functionField := |
| 49 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (laurentProjection R) (laurentProjection_genericPoint R) |
| 50 | |
| 51 | def laurentPrimePoint (p : Spec (CommRingCat.of R)) : Spec (CommRingCat.of (LaurentPolynomial R)) := |
| 52 | ⟨PrimeExtension.BundleCycles.laurentPrimeExtension p.asIdeal, @PrimeExtension.BundleCycles.laurentPrimeExtension_isPrime R _ p.asIdeal (show PrimeSpectrum R from p).isPrime⟩ |
| 53 | |
| 54 | omit [IsDomain R] in |
| 55 | theorem laurentPrimePoint_projection (p : Spec (CommRingCat.of R)) : |
| 56 | laurentProjection R (laurentPrimePoint R p) = p := by |
| 57 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 58 | exact PrimeSpectrum.ext (PrimeExtension.BundleCycles.laurentPrimeExtension_under p.asIdeal) |
| 59 | |
| 60 | omit [IsDomain R] in |
| 61 | theorem laurentPrimePoint_injective : Function.Injective (laurentPrimePoint R) := |
| 62 | Function.LeftInverse.injective (laurentPrimePoint_projection R) |
| 63 | |
| 64 | omit [IsDomain R] in |
| 65 | theorem laurentPrimePoint_coheight [IsNoetherianRing R] (p : Spec (CommRingCat.of R)) : |
| 66 | Order.coheight (laurentPrimePoint R p) = Order.coheight p := by |
| 67 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 68 | rw [← idealHeight_eq_coheight, ← idealHeight_eq_coheight] |
| 69 | exact PrimeExtension.BundleCycles.laurentPrimeExtension_height p.asIdeal |
| 70 | |
| 71 | end |
| 72 | |
| 73 | /-! # LineBundleCycles: the actual generic point in each punctured-line fiber -/ |
| 74 | |
| 75 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 76 | |
| 77 | variable (R : Type) [CommRing R] |
| 78 | |
| 79 | theorem laurentProjection_surjective : Function.Surjective (laurentProjection R) := |
| 80 | Function.HasRightInverse.surjective ⟨laurentPrimePoint R, laurentPrimePoint_projection R⟩ |
| 81 | |
| 82 | theorem laurentPrimePoint_specializes (P : Spec (CommRingCat.of (LaurentPolynomial R))) : |
| 83 | laurentPrimePoint R (laurentProjection R P) ⤳ P := by |
| 84 | apply (PrimeSpectrum.le_iff_specializes _ _).mp |
| 85 | change PrimeExtension.BundleCycles.laurentPrimeExtension (P.asIdeal.under R) ≤ P.asIdeal |
| 86 | rw [PrimeExtension.BundleCycles.laurentPrimeExtension_eq_map] |
| 87 | exact Ideal.map_comap_le |
| 88 | |
| 89 | theorem laurentPrimePoint_specializes_fiber (p : Spec (CommRingCat.of R)) |
| 90 | (P : Spec (CommRingCat.of (LaurentPolynomial R))) (hP : laurentProjection R P = p) : |
| 91 | laurentPrimePoint R p ⤳ P := by |
| 92 | rw [← hP] |
| 93 | exact laurentPrimePoint_specializes R P |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Laurent.FiberGenericPoint.BundleCycles |