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.IntersectionTheory.ProjectionFormula.Generic.FiberDimension |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.FiberFields |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FunctionDivisor |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalPrincipalDivisor |
| 5 | |
| 6 | /-! # Divisor -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.Divisor |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Functions algebraic over the base's function field have zero order |
| 13 | at every normal point above its generic point. In relative dimension one |
| 14 | this kills their entire principal-divisor pushforward. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.FiberFields OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward |
| 21 | |
| 22 | theorem ord_eq_zero {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] [IsLocallyNoetherian X] |
| 23 | (f : X ⟶ Y) (hη : f (genericPoint X) = genericPoint Y) |
| 24 | (x : X) (hx : f x = genericPoint Y) [IsIntegrallyClosed (X.presheaf.stalk x)] |
| 25 | (g : X.functionField) (hg : g ≠ 0) : |
| 26 | letI := Generic.FiberFields.fieldAlgebra f hη |
| 27 | IsAlgebraic Y.functionField g → X.ord g x = 0 := by |
| 28 | let := Generic.FiberFields.fieldAlgebra f hη |
| 29 | intro ha |
| 30 | by_cases hxone : coheight x = 1 |
| 31 | · let := Generic.FiberFields.stalkAlgebra f x hx |
| 32 | let := Generic.FiberFields.stalkTower f hη x hx |
| 33 | let : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hxone.le |
| 34 | obtain ⟨a, hau, hag⟩ := FunctionDivisor.algebraic_isUnit_integer |
| 35 | Y.functionField (X.presheaf.stalk x) X.functionField g hg ha |
| 36 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hxone] |
| 37 | change WithZero.log (Ring.ordFrac (X.presheaf.stalk x) g) = 0 |
| 38 | rw [← hag, Ring.ordFrac_of_isUnit hau, WithZero.log_one] |
| 39 | · exact Scheme.ord_eq_zero_of_coheight_neq_one hxone g |
| 40 | |
| 41 | theorem principalDivisor_pushforward {K : Type} [Field K] |
| 42 | {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] [AlgebraicGeometry.IsNoetherian X] |
| 43 | (f : X ⟶ Y) (hη : f (genericPoint X) = genericPoint Y) |
| 44 | (gY : Y ⟶ Spec (.of K)) [LocallyOfFiniteType gY] [LocallyOfFiniteType (f ≫ gY)] |
| 45 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension gY + 1 = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (f ≫ gY)) |
| 46 | (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 47 | (g : X.functionField) (hg : g ≠ 0) : |
| 48 | letI := Generic.FiberFields.fieldAlgebra f hη |
| 49 | IsAlgebraic Y.functionField g → CyclePushforward.pointPushforward f (Affine.DivisorNorm.rationalPrincipalDivisor X g) = 0 := by |
| 50 | let := Generic.FiberFields.fieldAlgebra f hη |
| 51 | intro ha |
| 52 | ext y |
| 53 | apply BirationalPrincipalDivisor.pointPushforward_eq_zero_of_degrees |
| 54 | intro x hx _ |
| 55 | by_contra hdeg |
| 56 | have hxone : coheight x = 1 := by |
| 57 | by_contra h |
| 58 | apply hx |
| 59 | rw [Affine.DivisorNorm.rationalPrincipalDivisor_apply, Scheme.ord_eq_zero_of_coheight_neq_one h, Int.cast_zero] |
| 60 | have hxy := Generic.FiberDimension.image_eq_genericPoint f gY hdim x hxone hdeg |
| 61 | let := hNormal x |
| 62 | exact hx (by rw [Affine.DivisorNorm.rationalPrincipalDivisor_apply, ord_eq_zero f hη x hxy g hg ha, Int.cast_zero]) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.Divisor |