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 Mathlib.AlgebraicGeometry.OrderOfVanishing |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.Scheme |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.Local |
| 4 | import OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |
| 5 | import OAI.AlgebraicGeometry.Foundations.Scheme.AffineSectionFiniteType |
| 6 | |
| 7 | /-! # Support Normalization -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.SupportNormalization.Constructions |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Finiteness of the actual normalization of each support stalk. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {k : Type u} [Field k] [CharZero k] |
| 20 | {X : Scheme.{u}} [IsIntegral X] |
| 21 | |
| 22 | theorem finite_stalk_normalization (f : X ⟶ Spec (.of k)) |
| 23 | [LocallyOfFiniteType f] (x : X) : |
| 24 | Module.Finite (X.presheaf.stalk x) |
| 25 | (integralClosure (X.presheaf.stalk x) X.functionField) := by |
| 26 | let U : X.Opens := (X.affineCover.f (X.affineCover.idx x)).opensRange |
| 27 | have hU : IsAffineOpen U := isAffineOpen_opensRange (X.affineCover.f _) |
| 28 | let x' : U := ⟨x, X.affineCover.covers x⟩ |
| 29 | let : Nonempty U := ⟨x'⟩ |
| 30 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 31 | let : Algebra.FiniteType k Γ(X, U) := |
| 32 | (RingHom.finiteType_respectsIso.cancel_left_isIso |
| 33 | (Scheme.ΓSpecIso (.of k)).inv (f.appLE ⊤ U le_top)).mpr |
| 34 | (f.finiteType_appLE (isAffineOpen_top _) hU le_top) |
| 35 | let M := (hU.primeIdealOf x').asIdeal.primeCompl |
| 36 | let := TopCat.Presheaf.algebra_section_stalk X.presheaf x' |
| 37 | let := hU.isLocalization_stalk x' |
| 38 | let := functionField_isFractionRing_of_isAffineOpen X U hU |
| 39 | let := functionField_isScalarTower X U x' |
| 40 | exact Thom.Finite.Normalization.Constructions.finite_integralClosure_localization |
| 41 | k Γ(X, U) (X.presheaf.stalk x) X.functionField M |
| 42 | |
| 43 | /-- Normalization of the local ring at a codimension-one point is a finite |
| 44 | Dedekind algebra, even when that point is singular. -/ |
| 45 | theorem stalk_normalization_isDedekind (f : X ⟶ Spec (.of k)) |
| 46 | [LocallyOfFiniteType f] (x : X) (hx : Order.coheight x = 1) : |
| 47 | IsDedekindDomain (integralClosure (X.presheaf.stalk x) X.functionField) := by |
| 48 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 49 | let : Ring.KrullDimLE 1 (X.presheaf.stalk x) := |
| 50 | krullDimLE_of_coheight_le hx.le |
| 51 | let := finite_stalk_normalization f x |
| 52 | exact Normalization.Local.Constructions.isDedekindDomain_integralClosure |
| 53 | (X.presheaf.stalk x) X.functionField |
| 54 | |
| 55 | /-- The order of a regular germ equals the quotient length on its actual |
| 56 | normalization, rather than on an assumed regular replacement. -/ |
| 57 | theorem ord_eq_stalk_normalization_length (f : X ⟶ Spec (.of k)) |
| 58 | [LocallyOfFiniteType f] (x : X) (hx : Order.coheight x = 1) |
| 59 | (a : X.presheaf.stalk x) (ha : a ≠ 0) : |
| 60 | Ring.ord (X.presheaf.stalk x) a = Module.length (X.presheaf.stalk x) |
| 61 | ((integralClosure (X.presheaf.stalk x) X.functionField) ⧸ |
| 62 | Ideal.span {algebraMap (X.presheaf.stalk x) |
| 63 | (integralClosure (X.presheaf.stalk x) X.functionField) a}) := by |
| 64 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 65 | let : Ring.KrullDimLE 1 (X.presheaf.stalk x) := |
| 66 | krullDimLE_of_coheight_le hx.le |
| 67 | let := finite_stalk_normalization f x |
| 68 | let : IsFractionRing (integralClosure (X.presheaf.stalk x) X.functionField) |
| 69 | X.functionField := integralClosure.isFractionRing_of_finite_extension |
| 70 | X.functionField X.functionField |
| 71 | exact Thom.Finite.Colength.Constructions.ord_eq_length_birational_extension |
| 72 | (X.presheaf.stalk x) (integralClosure (X.presheaf.stalk x) X.functionField) |
| 73 | X.functionField a ha |
| 74 | |
| 75 | /-- The same comparison computes the geometric integer order of an arbitrary |
| 76 | nonzero quotient of germs, including its poles. -/ |
| 77 | theorem ord_fraction_eq_normalization_lengths [IsLocallyNoetherian X] |
| 78 | (f : X ⟶ Spec (.of k)) [LocallyOfFiniteType f] |
| 79 | (x : X) (hx : Order.coheight x = 1) |
| 80 | (a b : X.presheaf.stalk x) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 81 | X.ord (algebraMap (X.presheaf.stalk x) X.functionField a / |
| 82 | algebraMap (X.presheaf.stalk x) X.functionField b) x = |
| 83 | ((Module.length (X.presheaf.stalk x) |
| 84 | ((integralClosure (X.presheaf.stalk x) X.functionField) ⧸ |
| 85 | Ideal.span {algebraMap (X.presheaf.stalk x) |
| 86 | (integralClosure (X.presheaf.stalk x) X.functionField) a})).toNat : ℤ) - |
| 87 | ((Module.length (X.presheaf.stalk x) |
| 88 | ((integralClosure (X.presheaf.stalk x) X.functionField) ⧸ |
| 89 | Ideal.span {algebraMap (X.presheaf.stalk x) |
| 90 | (integralClosure (X.presheaf.stalk x) X.functionField) b})).toNat : ℤ) := by |
| 91 | let : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 92 | rw [← ord_eq_stalk_normalization_length f x hx a ha, |
| 93 | ← ord_eq_stalk_normalization_length f x hx b hb, |
| 94 | Scheme.ord_eq_ordHom_of_coheight_eq_one hx] |
| 95 | change WithZero.log (Ring.ordFrac (X.presheaf.stalk x) |
| 96 | (algebraMap (X.presheaf.stalk x) X.functionField a / |
| 97 | algebraMap (X.presheaf.stalk x) X.functionField b)) = _ |
| 98 | rw [map_div₀, Ring.ordFrac_eq_ord _ ha, Ring.ordFrac_eq_ord _ hb, |
| 99 | Ring.ordMonoidWithZeroHom_eq_coe _ (mem_nonZeroDivisors_of_ne_zero ha) |
| 100 | (ENat.natCast_toNat (Ring.ord_ne_top (mem_nonZeroDivisors_of_ne_zero ha))).symm, |
| 101 | Ring.ordMonoidWithZeroHom_eq_coe _ (mem_nonZeroDivisors_of_ne_zero hb) |
| 102 | (ENat.natCast_toNat (Ring.ord_ne_top (mem_nonZeroDivisors_of_ne_zero hb))).symm] |
| 103 | exact WithZero.log_div (by simp) (by simp) |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.CycleClass.Thom.SupportNormalization.Constructions |