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.Projection |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.ExtendedPrimeStalk |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.GenericFiberDivisorZero |
| 4 | |
| 5 | /-! # Divisor Pullback -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.DivisorPullback.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: complete rational-divisor pullback to the affine line |
| 13 | -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 16 | |
| 17 | variable (R : Type) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 18 | |
| 19 | theorem polynomialProjection_order (p : Spec (CommRingCat.of R)) |
| 20 | (g : (Spec (CommRingCat.of R)).functionField) : |
| 21 | (Spec (CommRingCat.of (Polynomial R))).ord (Projection.BundleCycles.polynomialFunctionFieldMap R g) (Projection.BundleCycles.polynomialPrimePoint R p) = |
| 22 | (Spec (CommRingCat.of R)).ord g p := by |
| 23 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 24 | by_cases hp : coheight p = 1 |
| 25 | · have hP : ((Projection.BundleCycles.polynomialPrimePoint R p).asIdeal.under R).map |
| 26 | (algebraMap R (Polynomial R)) = (Projection.BundleCycles.polynomialPrimePoint R p).asIdeal := by |
| 27 | change (Ideal.comap (Polynomial.C : R →+* Polynomial R) (p.asIdeal.map Polynomial.C)).map Polynomial.C = |
| 28 | p.asIdeal.map Polynomial.C |
| 29 | rw [PrimeExtension.BundleCycles.polynomialPrimeExtension_comap] |
| 30 | have hmax := Affine.ExtendedPrimeStalk.BundleCycles.affineExtendedPrime_stalk_maximalIdeal (Projection.BundleCycles.polynomialPrimePoint R p) hP |
| 31 | have h := FlatMorphismOrder.BundleCycles.ord_flat_stalk_eq (Projection.BundleCycles.polynomialProjection R) (Projection.BundleCycles.polynomialProjection_genericPoint R) |
| 32 | (Projection.BundleCycles.polynomialPrimePoint R p) ((Projection.BundleCycles.polynomialPrimePoint_coheight R p).trans hp) |
| 33 | (by rw [Projection.BundleCycles.polynomialPrimePoint_projection]; exact hp) hmax g |
| 34 | exact h.trans (congrArg ((Spec (CommRingCat.of R)).ord g) (Projection.BundleCycles.polynomialPrimePoint_projection R p)) |
| 35 | · rw [Scheme.ord_eq_zero_of_coheight_neq_one hp, |
| 36 | Scheme.ord_eq_zero_of_coheight_neq_one (fun h => hp ((Projection.BundleCycles.polynomialPrimePoint_coheight R p).symm.trans h))] |
| 37 | |
| 38 | theorem polynomialPulledDivisor_support (g : (Spec (CommRingCat.of R)).functionField) (hg : g ≠ 0) |
| 39 | (P : Spec (CommRingCat.of (Polynomial R))) |
| 40 | (hP : (Spec (CommRingCat.of (Polynomial R))).ord (Projection.BundleCycles.polynomialFunctionFieldMap R g) P ≠ 0) : |
| 41 | P ∈ Set.range (Projection.BundleCycles.polynomialPrimePoint R) := by |
| 42 | let : P.asIdeal.IsPrime := (show PrimeSpectrum (Polynomial R) from P).isPrime |
| 43 | have hheight : P.asIdeal.height = 1 := by |
| 44 | rw [idealHeight_eq_coheight] |
| 45 | by_contra hn |
| 46 | exact hP (Scheme.ord_eq_zero_of_coheight_neq_one hn _) |
| 47 | have hp : P.asIdeal.under R ≠ ⊥ := by |
| 48 | intro hp |
| 49 | apply hP |
| 50 | apply GenericFiberDivisorZero.BundleCycles.ord_pullback_zero_over_generic (Projection.BundleCycles.polynomialProjection R) (Projection.BundleCycles.polynomialProjection_genericPoint R) g hg P |
| 51 | rw [genericPoint_eq_bot_of_affine] |
| 52 | exact PrimeSpectrum.ext hp |
| 53 | refine ⟨Projection.BundleCycles.polynomialProjection R P, ?_⟩ |
| 54 | exact PrimeSpectrum.ext (PrimeExtension.BundleCycles.polynomialHeightOne_isExtended P.asIdeal hheight hp) |
| 55 | |
| 56 | def polynomialCycleExtension : (Spec (CommRingCat.of R) →₀ ℚ) →ₗ[ℚ] |
| 57 | (Spec (CommRingCat.of (Polynomial R)) →₀ ℚ) := |
| 58 | Finsupp.lmapDomain ℚ ℚ (Projection.BundleCycles.polynomialPrimePoint R) |
| 59 | |
| 60 | theorem polynomialPrincipalDivisor_pullback (g : (Spec (CommRingCat.of R)).functionField) (hg : g ≠ 0) : |
| 61 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (CommRingCat.of (Polynomial R))) (Projection.BundleCycles.polynomialFunctionFieldMap R g) = |
| 62 | polynomialCycleExtension R (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (CommRingCat.of R)) g) := by |
| 63 | ext P |
| 64 | by_cases hP : P ∈ Set.range (Projection.BundleCycles.polynomialPrimePoint R) |
| 65 | · obtain ⟨p, rfl⟩ := hP |
| 66 | change _ = Finsupp.mapDomain (Projection.BundleCycles.polynomialPrimePoint R) _ (Projection.BundleCycles.polynomialPrimePoint R p) |
| 67 | rw [Finsupp.mapDomain_apply_of_injective (Projection.BundleCycles.polynomialPrimePoint_injective R), |
| 68 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, polynomialProjection_order] |
| 69 | · have hz : (Spec (CommRingCat.of (Polynomial R))).ord (Projection.BundleCycles.polynomialFunctionFieldMap R g) P = 0 := by |
| 70 | by_contra hn |
| 71 | exact hP (polynomialPulledDivisor_support R g hg P hn) |
| 72 | change _ = Finsupp.mapDomain (Projection.BundleCycles.polynomialPrimePoint R) _ P |
| 73 | rw [Finsupp.mapDomain_of_notMem_range _ _ hP, RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, hz, Int.cast_zero] |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.DivisorPullback.BundleCycles |