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.FiberGenericPoint |
| 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.Laurent.DivisorPullback.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: complete rational-divisor pullback to the punctured 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 laurentProjection_order (p : Spec (CommRingCat.of R)) |
| 20 | (g : (Spec (CommRingCat.of R)).functionField) : |
| 21 | (Spec (CommRingCat.of (LaurentPolynomial R))).ord (FiberGenericPoint.BundleCycles.laurentFunctionFieldMap R g) (FiberGenericPoint.BundleCycles.laurentPrimePoint 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 : ((FiberGenericPoint.BundleCycles.laurentPrimePoint R p).asIdeal.under R).map |
| 26 | (algebraMap R (LaurentPolynomial R)) = (FiberGenericPoint.BundleCycles.laurentPrimePoint R p).asIdeal := by |
| 27 | change ((PrimeExtension.BundleCycles.laurentPrimeExtension p.asIdeal).under R).map _ = PrimeExtension.BundleCycles.laurentPrimeExtension p.asIdeal |
| 28 | rw [PrimeExtension.BundleCycles.laurentPrimeExtension_under] |
| 29 | exact (PrimeExtension.BundleCycles.laurentPrimeExtension_eq_map p.asIdeal).symm |
| 30 | have hmax := Affine.ExtendedPrimeStalk.BundleCycles.affineExtendedPrime_stalk_maximalIdeal (FiberGenericPoint.BundleCycles.laurentPrimePoint R p) hP |
| 31 | have h := FlatMorphismOrder.BundleCycles.ord_flat_stalk_eq (FiberGenericPoint.BundleCycles.laurentProjection R) (FiberGenericPoint.BundleCycles.laurentProjection_genericPoint R) |
| 32 | (FiberGenericPoint.BundleCycles.laurentPrimePoint R p) ((FiberGenericPoint.BundleCycles.laurentPrimePoint_coheight R p).trans hp) |
| 33 | (by rw [FiberGenericPoint.BundleCycles.laurentPrimePoint_projection]; exact hp) hmax g |
| 34 | exact h.trans (congrArg ((Spec (CommRingCat.of R)).ord g) (FiberGenericPoint.BundleCycles.laurentPrimePoint_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 ((FiberGenericPoint.BundleCycles.laurentPrimePoint_coheight R p).symm.trans h))] |
| 37 | |
| 38 | theorem laurentPulledDivisor_support (g : (Spec (CommRingCat.of R)).functionField) (hg : g ≠ 0) |
| 39 | (P : Spec (CommRingCat.of (LaurentPolynomial R))) |
| 40 | (hP : (Spec (CommRingCat.of (LaurentPolynomial R))).ord (FiberGenericPoint.BundleCycles.laurentFunctionFieldMap R g) P ≠ 0) : |
| 41 | P ∈ Set.range (FiberGenericPoint.BundleCycles.laurentPrimePoint R) := by |
| 42 | let : P.asIdeal.IsPrime := (show PrimeSpectrum (LaurentPolynomial 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 (FiberGenericPoint.BundleCycles.laurentProjection R) (FiberGenericPoint.BundleCycles.laurentProjection_genericPoint R) g hg P |
| 51 | rw [genericPoint_eq_bot_of_affine] |
| 52 | exact PrimeSpectrum.ext hp |
| 53 | refine ⟨FiberGenericPoint.BundleCycles.laurentProjection R P, ?_⟩ |
| 54 | exact PrimeSpectrum.ext (DivisorPrimes.BundleCycles.laurentHeightOne_isExtended P.asIdeal hheight hp) |
| 55 | |
| 56 | def laurentCycleExtension : (Spec (CommRingCat.of R) →₀ ℚ) →ₗ[ℚ] |
| 57 | (Spec (CommRingCat.of (LaurentPolynomial R)) →₀ ℚ) := |
| 58 | Finsupp.lmapDomain ℚ ℚ (FiberGenericPoint.BundleCycles.laurentPrimePoint R) |
| 59 | |
| 60 | theorem laurentPrincipalDivisor_pullback (g : (Spec (CommRingCat.of R)).functionField) (hg : g ≠ 0) : |
| 61 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (CommRingCat.of (LaurentPolynomial R))) (FiberGenericPoint.BundleCycles.laurentFunctionFieldMap R g) = |
| 62 | laurentCycleExtension R (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (CommRingCat.of R)) g) := by |
| 63 | ext P |
| 64 | by_cases hP : P ∈ Set.range (FiberGenericPoint.BundleCycles.laurentPrimePoint R) |
| 65 | · obtain ⟨p, rfl⟩ := hP |
| 66 | change _ = Finsupp.mapDomain (FiberGenericPoint.BundleCycles.laurentPrimePoint R) _ (FiberGenericPoint.BundleCycles.laurentPrimePoint R p) |
| 67 | rw [Finsupp.mapDomain_apply_of_injective (FiberGenericPoint.BundleCycles.laurentPrimePoint_injective R), |
| 68 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, laurentProjection_order] |
| 69 | · have hz : (Spec (CommRingCat.of (LaurentPolynomial R))).ord (FiberGenericPoint.BundleCycles.laurentFunctionFieldMap R g) P = 0 := by |
| 70 | by_contra hn |
| 71 | exact hP (laurentPulledDivisor_support R g hg P hn) |
| 72 | change _ = Finsupp.mapDomain (FiberGenericPoint.BundleCycles.laurentPrimePoint 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.Laurent.DivisorPullback.BundleCycles |