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.RegularDivisor |
| 2 | |
| 3 | /-! # Regular Order -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Open.RegularOrder.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # LineBundleCycles: actual regular germs on arbitrary open neighborhoods have nonnegative local-length orders -/ |
| 10 | |
| 11 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 12 | |
| 13 | variable {X : Scheme.{0}} [IsIntegral X] [IsLocallyNoetherian X] |
| 14 | (U : X.Opens) [Nonempty U] (a : Γ(X, U)) |
| 15 | |
| 16 | theorem openRegular_order_length (ha : a ≠ 0) (x : X) (hxU : x ∈ U) (hx : coheight x = 1) : |
| 17 | X.ord (X.germToFunctionField U a) x = |
| 18 | ((Module.length (X.presheaf.stalk x) |
| 19 | ((X.presheaf.stalk x) ⧸ Ideal.span {X.presheaf.germ U x hxU a})).toNat : ℤ) := by |
| 20 | have : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 21 | have hg : X.presheaf.germ U x hxU a ≠ 0 := |
| 22 | (map_ne_zero_iff _ (germ_injective_of_isIntegral X x hxU)).mpr ha |
| 23 | have hf : X.germToFunctionField U a ≠ 0 := |
| 24 | (map_ne_zero_iff _ (X.germToFunctionField_injective U)).mpr ha |
| 25 | apply (Scheme.ord_eq_iff hx hf).mpr |
| 26 | change Ring.ordFrac (X.presheaf.stalk x) (X.germToFunctionField U a) = _ |
| 27 | rw [← Scheme.algebraMap_germ_eq_germToFunctionField (X := X) (x := x) hxU a, |
| 28 | Ring.ordFrac_eq_ord (X.presheaf.stalk x) hg] |
| 29 | apply Ring.ordMonoidWithZeroHom_eq_coe _ (mem_nonZeroDivisors_iff_ne_zero.mpr hg) |
| 30 | exact (ENat.natCast_toNat (Ring.ord_ne_top (mem_nonZeroDivisors_iff_ne_zero.mpr hg))).symm |
| 31 | |
| 32 | theorem openRegular_order_nonnegative (ha : a ≠ 0) (x : X) (hxU : x ∈ U) : |
| 33 | 0 ≤ X.ord (X.germToFunctionField U a) x := by |
| 34 | by_cases hx : coheight x = 1 |
| 35 | · rw [openRegular_order_length U a ha x hxU hx] |
| 36 | exact Int.natCast_nonneg _ |
| 37 | · rw [Scheme.ord_eq_zero_of_coheight_neq_one hx] |
| 38 | |
| 39 | theorem openRegular_order_zero_of_isUnit_germ (x : X) (hxU : x ∈ U) |
| 40 | (ha : IsUnit (X.presheaf.germ U x hxU a)) : X.ord (X.germToFunctionField U a) x = 0 := by |
| 41 | by_cases hx : coheight x = 1 |
| 42 | · have : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 43 | have hf : X.germToFunctionField U a ≠ 0 := by |
| 44 | rw [← Scheme.algebraMap_germ_eq_germToFunctionField (X := X) (x := x) hxU a] |
| 45 | exact (ha.map (algebraMap _ X.functionField)).ne_zero |
| 46 | apply (Scheme.ord_eq_iff hx hf).mpr |
| 47 | change Ring.ordFrac (X.presheaf.stalk x) (X.germToFunctionField U a) = 1 |
| 48 | rw [← Scheme.algebraMap_germ_eq_germToFunctionField (X := X) (x := x) hxU a] |
| 49 | exact Ring.ordFrac_of_isUnit ha |
| 50 | · exact Scheme.ord_eq_zero_of_coheight_neq_one hx _ |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Open.RegularOrder.BundleCycles |