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.AffinePrimePoint |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.ExtendedPrimeStalk |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.GenericFiberDivisorZero |
| 4 | |
| 5 | /-! # Affine Divisor Pullback -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Geometric.AffineDivisorPullback.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Pullback of rational principal divisors along the actual smooth affine |
| 12 | projection with geometrically integral fibers. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 15 | |
| 16 | variable (R S : Type) [CommRing R] [CommRing S] [Algebra R S] |
| 17 | [IsDomain R] [IsDomain S] [IsNoetherianRing R] [IsNoetherianRing S] |
| 18 | [Smooth (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)] |
| 19 | [GeometricallyIntegral (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)] |
| 20 | |
| 21 | theorem geometricAffineProjection_order (p : Spec (.of R)) (g : (Spec (.of R)).functionField) : |
| 22 | (Spec (.of S)).ord (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) g) |
| 23 | (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S p) = (Spec (.of R)).ord g p := by |
| 24 | let : p.asIdeal.IsPrime := (show PrimeSpectrum R from p).isPrime |
| 25 | by_cases hp : coheight p = 1 |
| 26 | · have hP : ((AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S p).asIdeal.under R).map |
| 27 | (algebraMap R S) = (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S p).asIdeal := by |
| 28 | change (Ideal.comap (algebraMap R S) (p.asIdeal.map (algebraMap R S))).map |
| 29 | (algebraMap R S) = p.asIdeal.map (algebraMap R S) |
| 30 | rw [AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection_comap_map] |
| 31 | have hmax := Affine.ExtendedPrimeStalk.BundleCycles.affineExtendedPrime_stalk_maximalIdeal (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S p) hP |
| 32 | have h := FlatMorphismOrder.BundleCycles.ord_flat_stalk_eq (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) |
| 33 | (Integral.FiberFieldNaturality.BundleCycles.integralFiberProjection_genericPoint (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)) |
| 34 | (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S p) ((AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_coheight R S p).trans hp) |
| 35 | (by rw [AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_projection]; exact hp) hmax g |
| 36 | exact h.trans (congrArg ((Spec (.of R)).ord g) (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_projection R S p)) |
| 37 | · rw [Scheme.ord_eq_zero_of_coheight_neq_one hp, |
| 38 | Scheme.ord_eq_zero_of_coheight_neq_one |
| 39 | (fun h => hp ((AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_coheight R S p).symm.trans h))] |
| 40 | |
| 41 | theorem geometricAffinePulledDivisor_support (g : (Spec (.of R)).functionField) (hg : g ≠ 0) |
| 42 | (P : Spec (.of S)) |
| 43 | (hP : (Spec (.of S)).ord (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) g) P ≠ 0) : |
| 44 | P ∈ Set.range (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S) := by |
| 45 | let : P.asIdeal.IsPrime := (show PrimeSpectrum S from P).isPrime |
| 46 | let : (P.asIdeal.comap (algebraMap R S)).IsPrime := inferInstance |
| 47 | let : ((P.asIdeal.comap (algebraMap R S)).map (algebraMap R S)).IsPrime := |
| 48 | AffinePrimeExtension.BundleCycles.geometricAffine_primeExtension R S _ |
| 49 | let : Module.Flat R S := RingHom.flat_algebraMap_iff.mp |
| 50 | ((Flat.SpecMap_iff (f := CommRingCat.ofHom (algebraMap R S))).mp |
| 51 | (inferInstanceAs (Flat (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)))) |
| 52 | have hheight : P.asIdeal.height = 1 := by |
| 53 | rw [idealHeight_eq_coheight] |
| 54 | by_contra hn |
| 55 | exact hP (Scheme.ord_eq_zero_of_coheight_neq_one hn _) |
| 56 | have hp : P.asIdeal.under R ≠ ⊥ := by |
| 57 | intro hp |
| 58 | apply hP |
| 59 | apply GenericFiberDivisorZero.BundleCycles.ord_pullback_zero_over_generic (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) |
| 60 | (Integral.FiberFieldNaturality.BundleCycles.integralFiberProjection_genericPoint (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)) g hg P |
| 61 | rw [genericPoint_eq_bot_of_affine] |
| 62 | exact PrimeSpectrum.ext hp |
| 63 | refine ⟨AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S P, ?_⟩ |
| 64 | exact PrimeSpectrum.ext (FlatPrimeExtension.BundleCycles.flatHeightOne_isExtended P.asIdeal hheight hp |
| 65 | (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection_comap_map R S _)) |
| 66 | |
| 67 | theorem geometricAffinePrincipalDivisor_pullback (g : (Spec (.of R)).functionField) (hg : g ≠ 0) : |
| 68 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (.of S)) |
| 69 | (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) g) = |
| 70 | Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) |
| 71 | (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (.of R)) g) := by |
| 72 | have he : Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) = |
| 73 | AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S := funext (fun p => (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_eq_fiberGeneric R S p).symm) |
| 74 | ext P |
| 75 | change _ = Finsupp.mapDomain (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S)) _ P |
| 76 | rw [he] |
| 77 | by_cases hP : P ∈ Set.range (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S) |
| 78 | · obtain ⟨p, rfl⟩ := hP |
| 79 | rw [Finsupp.mapDomain_apply_of_injective (AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_injective R S), |
| 80 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, |
| 81 | geometricAffineProjection_order] |
| 82 | · have hz : (Spec (.of S)).ord |
| 83 | (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S) g) P = 0 := by |
| 84 | by_contra hn |
| 85 | exact hP (geometricAffinePulledDivisor_support R S g hg P hn) |
| 86 | rw [Finsupp.mapDomain_of_notMem_range _ _ hP, RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, hz, Int.cast_zero] |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Geometric.AffineDivisorPullback.BundleCycles |