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.RationalPullback |
| 2 | |
| 3 | /-! # Generic Fiber Divisor Zero -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # LineBundleCycles: a pulled-back rational divisor vanishes over the generic point |
| 11 | -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 14 | |
| 15 | variable {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] |
| 16 | |
| 17 | def RationalBoundary.BundleCycles.RationalUnitRepresentative.pullbackGeneric {g : Y.functionField} |
| 18 | (D : RationalBoundary.BundleCycles.RationalUnitRepresentative Y g) (f : X ⟶ Y) |
| 19 | (hη : f (genericPoint X) = genericPoint Y) : |
| 20 | RationalBoundary.BundleCycles.RationalUnitRepresentative X (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη g) := by |
| 21 | have hmem : genericPoint Y ∈ D.domain := |
| 22 | ((genericPoint_spec Y).mem_open_set_iff D.domain.isOpen).mpr |
| 23 | (by simpa using D.nonempty_domain) |
| 24 | have hn : Nonempty (f ⁻¹ᵁ D.domain) := ⟨⟨genericPoint X, by |
| 25 | change f (genericPoint X) ∈ D.domain |
| 26 | rw [hη] |
| 27 | exact hmem⟩⟩ |
| 28 | refine { domain := f ⁻¹ᵁ D.domain |
| 29 | nonempty_domain := hn |
| 30 | unit := Units.map (f.app D.domain).hom.toMonoidHom D.unit |
| 31 | represents := ?_ } |
| 32 | have h := ConcreteCategory.congr_hom (Deformation.FunctionField.BundleCycles.genericFieldMap_germOn f hη D.domain) |
| 33 | (D.unit : Γ(Y, D.domain)) |
| 34 | exact h.symm.trans (congrArg (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη) D.represents) |
| 35 | |
| 36 | theorem GenericFiberDivisorZero.BundleCycles.ord_pullback_zero_over_generic [IsLocallyNoetherian X] |
| 37 | (f : X ⟶ Y) (hη : f (genericPoint X) = genericPoint Y) |
| 38 | (g : Y.functionField) (hg : g ≠ 0) (x : X) (hx : f x = genericPoint Y) : |
| 39 | X.ord (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη g) x = 0 := by |
| 40 | let D := RationalBoundary.BundleCycles.rationalUnitRepresentative Y g hg |
| 41 | apply (D.pullbackGeneric f hη).ord_eq_zero x |
| 42 | change f x ∈ D.domain |
| 43 | rw [hx] |
| 44 | exact ((genericPoint_spec Y).mem_open_set_iff D.domain.isOpen).mpr |
| 45 | (by simpa using D.nonempty_domain) |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.Divisors.LineBundles |