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.Affine.SpaceChartBaseChange |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.AffineSpace.DivisorPullback |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.FiberOpen |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Principal.DivisorOpenRestriction |
| 5 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Open.ImmersionNoetherian |
| 6 | |
| 7 | /-! # Locally Affine Space Divisor -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.LocallyAffineSpaceDivisor.BundleCycles |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! # LineBundleCycles: global rational principal-divisor pullback for actual affine-space bundles -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | theorem locallyAffineSpacePrincipalDivisor_pullback {E X : Scheme.{0}} |
| 18 | [IsIntegral E] [IsIntegral X] [AlgebraicGeometry.IsNoetherian E] |
| 19 | [AlgebraicGeometry.IsNoetherian X] (p : E ⟶ X) [GeometricallyIntegral p] |
| 20 | (h : Affine.SpaceChartBaseChange.BundleCycles.HasAffineSpaceCharts p) (g : X.functionField) (hg : g ≠ 0) : |
| 21 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor E (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap p g) = |
| 22 | Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension p (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g) := by |
| 23 | ext z |
| 24 | obtain ⟨U, i, ι, hι, j, hi, hj, hx, hs⟩ := h (p z) |
| 25 | let := hι |
| 26 | let := hi |
| 27 | let := hj |
| 28 | obtain ⟨u, hu⟩ := hx |
| 29 | have : Nonempty U := ⟨u⟩ |
| 30 | have : IsIntegral U := isIntegral_of_isOpenImmersion i |
| 31 | have : AlgebraicGeometry.IsNoetherian U := Open.ImmersionNoetherian.BundleCycles.openImmersion_isNoetherian i |
| 32 | obtain ⟨a, ha, hja⟩ := Scheme.exists_preimage_of_isPullback hs u z hu |
| 33 | have hfield : RationalDivisorRestriction.BundleCycles.openFunctionFieldMap j (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap p g) = |
| 34 | Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap (AffineSpace ι U ↘ U) (RationalDivisorRestriction.BundleCycles.openFunctionFieldMap i g) := |
| 35 | ConcreteCategory.congr_hom |
| 36 | (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap_openSquare p (AffineSpace ι U ↘ U) i j hs.w.symm) g |
| 37 | have hg' : RationalDivisorRestriction.BundleCycles.openFunctionFieldMap i g ≠ 0 := |
| 38 | (map_ne_zero_iff _ (RationalDivisorRestriction.BundleCycles.openFunctionFieldMap i).hom.injective).mpr hg |
| 39 | have hlocal : |
| 40 | Finsupp.comapDomain j (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor E (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap p g)) |
| 41 | j.isOpenEmbedding.injective.injOn = |
| 42 | Finsupp.comapDomain j (Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension p (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g)) |
| 43 | j.isOpenEmbedding.injective.injOn := by |
| 44 | rw [Principal.DivisorOpenRestriction.BundleCycles.rationalPrincipalPointDivisor_openRestriction, hfield, |
| 45 | LineBundles.AffineSpace.DivisorPullback.BundleCycles.affineSpacePrincipalDivisor_pullback U ι _ hg', |
| 46 | Integral.FiberOpen.BundleCycles.integralFiberCycleExtension_openRestriction p (AffineSpace ι U ↘ U) i j hs, |
| 47 | Principal.DivisorOpenRestriction.BundleCycles.rationalPrincipalPointDivisor_openRestriction] |
| 48 | have hcoeff := congrArg (fun w : AffineSpace ι U →₀ ℚ => w a) hlocal |
| 49 | change RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor E (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap p g) (j a) = |
| 50 | Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension p (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g) (j a) at hcoeff |
| 51 | simpa only [hja] using hcoeff |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.Divisors.LineBundles.LocallyAffineSpaceDivisor.BundleCycles |