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.AffineDivisorPullback |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.FiberOpen |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Principal.DivisorOpenRestriction |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.FiberFieldNaturality |
| 5 | |
| 6 | /-! # Affine Scheme Divisor -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Smooth.AffineSchemeDivisor.BundleCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The affine divisor formula transported through the canonical spectrum |
| 13 | isomorphisms of the source and target schemes. -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | theorem smoothAffineSchemePrincipalDivisor_pullback {E X : Scheme.{0}} |
| 18 | [IsAffine E] [IsAffine X] [IsIntegral E] [IsIntegral X] |
| 19 | [AlgebraicGeometry.IsNoetherian E] [AlgebraicGeometry.IsNoetherian X] |
| 20 | (p : E ⟶ X) [Smooth p] [GeometricallyIntegral p] |
| 21 | (g : X.functionField) (hg : g ≠ 0) : |
| 22 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor E (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap p g) = |
| 23 | Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension p (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g) := by |
| 24 | let R := Γ(X, ⊤) |
| 25 | let S := Γ(E, ⊤) |
| 26 | let : Algebra R S := p.appTop.hom.toAlgebra |
| 27 | let : IsNoetherianRing R := IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top X⟩ |
| 28 | let : IsNoetherianRing S := IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top E⟩ |
| 29 | let q := AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S |
| 30 | have hs : IsPullback q E.isoSpec.inv X.isoSpec.inv p := |
| 31 | IsPullback.of_vert_isIso ⟨Scheme.isoSpec_inv_naturality p⟩ |
| 32 | let : Smooth q := MorphismProperty.of_isPullback hs.flip inferInstance |
| 33 | let : GeometricallyIntegral q := MorphismProperty.of_isPullback hs.flip inferInstance |
| 34 | have hfield : RationalDivisorRestriction.BundleCycles.openFunctionFieldMap E.isoSpec.inv (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap p g) = |
| 35 | Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap q (RationalDivisorRestriction.BundleCycles.openFunctionFieldMap X.isoSpec.inv g) := |
| 36 | ConcreteCategory.congr_hom |
| 37 | (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap_openSquare p q X.isoSpec.inv E.isoSpec.inv hs.w.symm) g |
| 38 | have hg' : RationalDivisorRestriction.BundleCycles.openFunctionFieldMap X.isoSpec.inv g ≠ 0 := |
| 39 | (map_ne_zero_iff _ (RationalDivisorRestriction.BundleCycles.openFunctionFieldMap X.isoSpec.inv).hom.injective).mpr hg |
| 40 | have hlocal : |
| 41 | Finsupp.comapDomain E.isoSpec.inv (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor E (Integral.FiberFieldNaturality.BundleCycles.integralFiberFunctionFieldMap p g)) |
| 42 | E.isoSpec.inv.isOpenEmbedding.injective.injOn = |
| 43 | Finsupp.comapDomain E.isoSpec.inv (Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension p (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor X g)) |
| 44 | E.isoSpec.inv.isOpenEmbedding.injective.injOn := by |
| 45 | rw [Principal.DivisorOpenRestriction.BundleCycles.rationalPrincipalPointDivisor_openRestriction, hfield, |
| 46 | Integral.FiberOpen.BundleCycles.integralFiberCycleExtension_openSquare p q X.isoSpec.inv E.isoSpec.inv hs.w, |
| 47 | Principal.DivisorOpenRestriction.BundleCycles.rationalPrincipalPointDivisor_openRestriction] |
| 48 | exact Geometric.AffineDivisorPullback.BundleCycles.geometricAffinePrincipalDivisor_pullback R S _ hg' |
| 49 | ext z |
| 50 | obtain ⟨a, rfl⟩ := E.isoSpec.inv.surjective z |
| 51 | exact congrArg (fun w : Spec (.of S) →₀ ℚ => w a) hlocal |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Smooth.AffineSchemeDivisor.BundleCycles |