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.SemilocalNormalization |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Normalization |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.ResidueDegree |
| 5 | |
| 6 | /-! # Normalized Stalk Divisor -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalizedStalkDivisor |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! At each codimension-one point of an integral finite-type scheme, the |
| 13 | actual divisor coefficient is obtained by pushing the principal divisor |
| 14 | from the finite normalization of the stalk. No smoothness or normality of |
| 15 | the original support is assumed. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry IsDedekindDomain _root_.Order |
| 20 | open scoped Classical BigOperators |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Order OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Normalization |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | variable {k : Type u} [Field k] [CharZero k] |
| 27 | {X : Scheme.{u}} [IsIntegral X] |
| 28 | (f : X ⟶ Spec (.of k)) [LocallyOfFiniteType f] |
| 29 | |
| 30 | /-- The given rational function in the function field of the actual |
| 31 | normalized stalk spectrum, through the canonical fraction-field maps. -/ |
| 32 | def normalizedStalkFunction (x : X) (hx : coheight x = 1) (g : X.functionField) : |
| 33 | (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField))).functionField := by |
| 34 | let S := integralClosure (X.presheaf.stalk x) X.functionField |
| 35 | let : IsDedekindDomain S := Support.Normalization.stalk_normalization_isDedekind f x hx |
| 36 | let : IsFractionRing S X.functionField := |
| 37 | integralClosure.isFractionRing_of_finite_extension X.functionField X.functionField |
| 38 | exact Affine.Order.affineFunctionFieldIso S ((FractionRing.algEquiv S X.functionField).symm g) |
| 39 | |
| 40 | /-- The weighted principal cycle of the normalized local curve has exactly |
| 41 | the original scheme's order as its coefficient at the closed point. -/ |
| 42 | theorem normalizedStalk_pushforward [IsLocallyNoetherian X] |
| 43 | (x : X) (hx : coheight x = 1) (g : X.functionField) (hg : g ≠ 0) : |
| 44 | letI := Support.Normalization.stalk_normalization_isDedekind f x hx |
| 45 | CyclePushforward.pointPushforward (Spec.map (CommRingCat.ofHom |
| 46 | (algebraMap (X.presheaf.stalk x) (integralClosure (X.presheaf.stalk x) X.functionField)))) |
| 47 | (Affine.DivisorNorm.rationalPrincipalDivisor |
| 48 | (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField))) |
| 49 | (normalizedStalkFunction f x hx g)) = |
| 50 | Finsupp.single (IsLocalRing.closedPoint (X.presheaf.stalk x) : Spec (X.presheaf.stalk x)) |
| 51 | (X.ord g x : ℚ) := by |
| 52 | let R := X.presheaf.stalk x |
| 53 | let S := integralClosure R X.functionField |
| 54 | let : IsDedekindDomain S := Support.Normalization.stalk_normalization_isDedekind f x hx |
| 55 | let : Module.Finite R S := Support.Normalization.finite_stalk_normalization f x |
| 56 | let : IsFractionRing S X.functionField := |
| 57 | integralClosure.isFractionRing_of_finite_extension X.functionField X.functionField |
| 58 | let : Ring.KrullDimLE 1 R := krullDimLE_of_coheight_le hx.le |
| 59 | let : Finite (HeightOneSpectrum S) := BranchOrder.finite_heightOneSpectrum R S |
| 60 | let := Fintype.ofFinite (HeightOneSpectrum S) |
| 61 | rw [Affine.DivisorNorm.pushforward_rationalPrincipalDivisor_local] |
| 62 | congr 1 |
| 63 | simp_rw [normalizedStalkFunction, Affine.Order.schemeOrder_eq_localOrder] |
| 64 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx] |
| 65 | change (∑ P : HeightOneSpectrum S, (P.asIdeal.inertiaDeg R : ℚ) * |
| 66 | (SemilocalDivisorNorm.localOrder P ((FractionRing.algEquiv S X.functionField).symm g) : ℚ)) = |
| 67 | ((WithZero.log (Ring.ordFrac R g) : ℤ) : ℚ) |
| 68 | rw [SemilocalNormalization.log_ordFrac_eq_sum R S X.functionField g hg] |
| 69 | simp only [Int.cast_sum, Int.cast_mul, Int.cast_natCast] |
| 70 | |
| 71 | set_option backward.isDefEq.respectTransparency false in |
| 72 | /-- Composing with the actual stalk-spectrum map gives the original |
| 73 | divisor's coefficient as a cycle on the original scheme. -/ |
| 74 | theorem normalizedStalk_pushforward_to_scheme [IsLocallyNoetherian X] |
| 75 | (x : X) (hx : coheight x = 1) (g : X.functionField) (hg : g ≠ 0) : |
| 76 | letI := Support.Normalization.stalk_normalization_isDedekind f x hx |
| 77 | CyclePushforward.pointPushforward (Spec.map (CommRingCat.ofHom |
| 78 | (algebraMap (X.presheaf.stalk x) (integralClosure (X.presheaf.stalk x) X.functionField))) ≫ |
| 79 | X.fromSpecStalk x) |
| 80 | (Affine.DivisorNorm.rationalPrincipalDivisor |
| 81 | (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField))) |
| 82 | (normalizedStalkFunction f x hx g)) = Finsupp.single x (X.ord g x : ℚ) := by |
| 83 | let := Support.Normalization.stalk_normalization_isDedekind f x hx |
| 84 | rw [CyclePushforward.pointPushforward_comp, LinearMap.comp_apply, normalizedStalk_pushforward f x hx g hg, |
| 85 | CyclePushforward.pointPushforward_single, Stalk.ResidueDegree.fromSpecStalk_residueDegree, |
| 86 | Nat.cast_one, mul_one] |
| 87 | exact congrArg (fun y : X => Finsupp.single y (X.ord g x : ℚ)) |
| 88 | (Scheme.fromSpecStalk_closedPoint (X := X) (x := x)) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalizedStalkDivisor |