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.BirationalDivisor |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.ImageDimension |
| 3 | |
| 4 | /-! # Birational Principal Divisor -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalPrincipalDivisor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Full principal-divisor pushforward for a proper birational morphism |
| 11 | to a scheme regular at its divisor points. Exceptional divisor terms have |
| 12 | zero native residue degree, as proved from their dimension. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm |
| 19 | |
| 20 | theorem pointPushforward_eq_zero_of_degrees {X Y : Scheme} (f : X ⟶ Y) |
| 21 | (c : X →₀ ℚ) (y : Y) |
| 22 | (h : ∀ x : X, c x ≠ 0 → f x = y → f.residueDegree x = 0) : |
| 23 | CyclePushforward.pointPushforward f c y = 0 := by |
| 24 | classical |
| 25 | rw [CyclePushforward.pointPushforward, Finsupp.linearCombination_apply, Finsupp.sum, Finsupp.finsetSum_apply] |
| 26 | apply Finset.sum_eq_zero |
| 27 | intro x hx |
| 28 | by_cases hxy : f x = y |
| 29 | · rw [h x (Finsupp.mem_support_iff.mp hx) hxy, Nat.cast_zero, Finsupp.single_zero, |
| 30 | smul_zero, Finsupp.zero_apply] |
| 31 | · rw [Finsupp.smul_apply, Finsupp.single_eq_of_ne (fun he => hxy he.symm), smul_zero] |
| 32 | |
| 33 | theorem dimension_eq_of_birational {K : Type} [Field K] |
| 34 | {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] |
| 35 | (f : X ⟶ Y) (hη : f (genericPoint X) = genericPoint Y) |
| 36 | [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] (g : Y ⟶ Spec (.of K)) : |
| 37 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (f ≫ g) := by |
| 38 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra g |
| 39 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra (f ≫ g) |
| 40 | let e := AlgEquiv.ofBijective (Cycles.Functoriality.FunctionFields.Construction.genericFieldAlgHom f hη g) |
| 41 | ((ConcreteCategory.isIso_iff_bijective (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)).mp inferInstance) |
| 42 | exact congrArg Cardinal.toNat e.trdeg_eq |
| 43 | |
| 44 | /-- Proper birational pushforward preserves the full finite principal |
| 45 | divisor, including the vanishing of every exceptional contribution. -/ |
| 46 | theorem principalDivisor_pushforward {K : Type} [Field K] |
| 47 | {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] |
| 48 | [AlgebraicGeometry.IsNoetherian X] [AlgebraicGeometry.IsNoetherian Y] |
| 49 | (f : X ⟶ Y) [IsProper f] (hη : f (genericPoint X) = genericPoint Y) |
| 50 | [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] (gY : Y ⟶ Spec (.of K)) [LocallyOfFiniteType gY] |
| 51 | (hDVR : ∀ y : Y, coheight y = 1 → IsDiscreteValuationRing (Y.presheaf.stalk y)) |
| 52 | (g : Y.functionField) : |
| 53 | CyclePushforward.pointPushforward f (Affine.DivisorNorm.rationalPrincipalDivisor X (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη g)) = |
| 54 | Affine.DivisorNorm.rationalPrincipalDivisor Y g := by |
| 55 | ext y |
| 56 | by_cases hy : coheight y = 1 |
| 57 | · let := hDVR y hy |
| 58 | exact BirationalDivisor.principalDivisor_coefficient f hη y g |
| 59 | · rw [Affine.DivisorNorm.rationalPrincipalDivisor_apply, Scheme.ord_eq_zero_of_coheight_neq_one hy, Int.cast_zero] |
| 60 | apply pointPushforward_eq_zero_of_degrees |
| 61 | intro x hx hxy |
| 62 | by_contra hd |
| 63 | have hxone : coheight x = 1 := by |
| 64 | by_contra hn |
| 65 | apply hx |
| 66 | rw [Affine.DivisorNorm.rationalPrincipalDivisor_apply, Scheme.ord_eq_zero_of_coheight_neq_one hn, Int.cast_zero] |
| 67 | have himage := Divisor.ImageDimension.coheight_image_eq_one f gY |
| 68 | (dimension_eq_of_birational f hη gY) x hxone hd |
| 69 | exact hy (hxy ▸ himage) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BirationalPrincipalDivisor |