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.AffineLine.GenericPoint |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.DivisorPullback |
| 3 | |
| 4 | /-! # Divisor Pullback -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.AffineLine.DivisorPullback.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # LineBundleCycles: complete rational-divisor pullback to the relative affine line -/ |
| 11 | |
| 12 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 13 | |
| 14 | variable (X : Scheme.{0}) |
| 15 | |
| 16 | variable [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 17 | |
| 18 | theorem affineLineOrder_on_chart (U : X.affineOpens) [Nonempty U.1] |
| 19 | (g : X.functionField) (P : Spec (CommRingCat.of (Polynomial Γ(X, U.1)))) : |
| 20 | (Charts.BundleCycles.affineLine X).ord (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (Charts.BundleCycles.affineLineProjection X) g) (Charts.BundleCycles.affineLinePolynomialChart X U P) = |
| 21 | (Spec (CommRingCat.of (Polynomial Γ(X, U.1)))).ord |
| 22 | (LineBundles.Polynomial.Projection.BundleCycles.polynomialFunctionFieldMap Γ(X, U.1) (RationalDivisorRestriction.BundleCycles.openFunctionFieldMap U.2.fromSpec g)) P := by |
| 23 | have h := congrArg (fun k => k g) (GenericPoint.BundleCycles.affineLineFunctionField_on_chart X U) |
| 24 | exact (RationalDivisorRestriction.BundleCycles.ord_openImmersion (Charts.BundleCycles.affineLinePolynomialChart X U) (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (Charts.BundleCycles.affineLineProjection X) g) P).symm.trans |
| 25 | (congrArg (fun a => (Spec (CommRingCat.of (Polynomial Γ(X, U.1)))).ord a P) h) |
| 26 | |
| 27 | theorem affineLineProjection_order (x : X) (g : X.functionField) : |
| 28 | (Charts.BundleCycles.affineLine X).ord (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (Charts.BundleCycles.affineLineProjection X) g) (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (Charts.BundleCycles.affineLineProjection X) x) = |
| 29 | X.ord g x := by |
| 30 | obtain ⟨V, hV, hx, _⟩ := exists_isAffineOpen_mem_and_subset (Opens.mem_top x) |
| 31 | let U : X.affineOpens := ⟨V, hV⟩ |
| 32 | have : IsNoetherianRing Γ(X, U.1) := IsLocallyNoetherian.component_noetherian U |
| 33 | have : IsOpenImmersion U.2.fromSpec := IsAffineOpen.isOpenImmersion_fromSpec U.2 |
| 34 | have : Nonempty U.1 := ⟨⟨x, hx⟩⟩ |
| 35 | obtain ⟨p, hp⟩ := (congrArg (fun s : Set X => x ∈ s) U.2.range_fromSpec).mpr hx |
| 36 | have he := GenericPoint.BundleCycles.affineLineFiberGenericPoint_on_chart X U p |
| 37 | rw [hp] at he |
| 38 | rw [he] |
| 39 | exact (affineLineOrder_on_chart X U g (LineBundles.Polynomial.Projection.BundleCycles.polynomialPrimePoint Γ(X, U.1) p)).trans |
| 40 | ((LineBundles.Polynomial.DivisorPullback.BundleCycles.polynomialProjection_order Γ(X, U.1) p (RationalDivisorRestriction.BundleCycles.openFunctionFieldMap U.2.fromSpec g)).trans |
| 41 | ((RationalDivisorRestriction.BundleCycles.ord_openImmersion U.2.fromSpec g p).trans (congrArg (X.ord g) hp))) |
| 42 | |
| 43 | theorem affineLinePulledDivisor_support (g : X.functionField) (hg : g ≠ 0) |
| 44 | (y : Charts.BundleCycles.affineLine X) |
| 45 | (hy : (Charts.BundleCycles.affineLine X).ord (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (Charts.BundleCycles.affineLineProjection X) g) y ≠ 0) : |
| 46 | y ∈ Set.range (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (Charts.BundleCycles.affineLineProjection X)) := by |
| 47 | obtain ⟨U, P, rfl⟩ := Charts.BundleCycles.affineLinePolynomialChart_covers X y |
| 48 | have hp : U.2.fromSpec (LineBundles.Polynomial.Projection.BundleCycles.polynomialProjection Γ(X, U.1) P) ∈ (U.1 : Set X) := by |
| 49 | rw [← U.2.range_fromSpec] |
| 50 | exact ⟨_, rfl⟩ |
| 51 | have : IsOpenImmersion U.2.fromSpec := IsAffineOpen.isOpenImmersion_fromSpec U.2 |
| 52 | have : Nonempty U.1 := ⟨⟨_, hp⟩⟩ |
| 53 | have hg' : RationalDivisorRestriction.BundleCycles.openFunctionFieldMap U.2.fromSpec g ≠ 0 := |
| 54 | (map_ne_zero_iff _ (RationalDivisorRestriction.BundleCycles.openFunctionFieldMap U.2.fromSpec).hom.injective).mpr hg |
| 55 | have hP : (Spec (CommRingCat.of (Polynomial Γ(X, U.1)))).ord |
| 56 | (LineBundles.Polynomial.Projection.BundleCycles.polynomialFunctionFieldMap Γ(X, U.1) (RationalDivisorRestriction.BundleCycles.openFunctionFieldMap U.2.fromSpec g)) P ≠ 0 := |
| 57 | fun hz => hy ((affineLineOrder_on_chart X U g P).trans hz) |
| 58 | obtain ⟨p, rfl⟩ := LineBundles.Polynomial.DivisorPullback.BundleCycles.polynomialPulledDivisor_support Γ(X, U.1) _ hg' P hP |
| 59 | exact ⟨U.2.fromSpec p, GenericPoint.BundleCycles.affineLineFiberGenericPoint_on_chart X U p⟩ |
| 60 | |
| 61 | theorem affineLinePrincipalDivisor_pullback (g : X.functionField) (hg : g ≠ 0) : |
| 62 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Charts.BundleCycles.affineLine X) (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (Charts.BundleCycles.affineLineProjection X) g) = |
| 63 | Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension (Charts.BundleCycles.affineLineProjection X) (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g) := by |
| 64 | ext y |
| 65 | by_cases hy : y ∈ Set.range (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (Charts.BundleCycles.affineLineProjection X)) |
| 66 | · obtain ⟨x, rfl⟩ := hy |
| 67 | change _ = Finsupp.mapDomain (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (Charts.BundleCycles.affineLineProjection X)) _ (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (Charts.BundleCycles.affineLineProjection X) x) |
| 68 | rw [Finsupp.mapDomain_apply_of_injective (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint_injective (Charts.BundleCycles.affineLineProjection X)), |
| 69 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, affineLineProjection_order] |
| 70 | · have hz : (Charts.BundleCycles.affineLine X).ord (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (Charts.BundleCycles.affineLineProjection X) g) y = 0 := by |
| 71 | by_contra hn |
| 72 | exact hy (affineLinePulledDivisor_support X g hg y hn) |
| 73 | change _ = Finsupp.mapDomain (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (Charts.BundleCycles.affineLineProjection X)) _ y |
| 74 | rw [Finsupp.mapDomain_of_notMem_range _ _ hy, RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply, hz, Int.cast_zero] |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.Divisors.LineBundles.AffineLine.DivisorPullback.BundleCycles |