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.Ord |
| 2 | |
| 3 | /-! # Regular Divisor -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.RegularDivisor.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # LineBundleCycles: effective divisors of nonzero regular functions |
| 11 | |
| 12 | On an integral Noetherian scheme, the principal divisor of a nonzero |
| 13 | global section has nonnegative coefficients. At a codimension-one point |
| 14 | its coefficient is the finite length of the local quotient by that section. |
| 15 | These are the multiplicities needed in specialization along t = 0. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 19 | |
| 20 | universe u |
| 21 | variable (X : Scheme.{u}) [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 22 | |
| 23 | instance integralTopNonempty : Nonempty (⊤ : X.Opens) := ⟨⟨genericPoint X, by trivial⟩⟩ |
| 24 | |
| 25 | /-- Regard a global regular function as an element of the actual function field. -/ |
| 26 | def globalFunctionFieldElement (a : Γ(X, ⊤)) : X.functionField := |
| 27 | X.germToFunctionField ⊤ a |
| 28 | |
| 29 | omit [AlgebraicGeometry.IsNoetherian X] in |
| 30 | theorem globalFunctionFieldElement_ne_zero (a : Γ(X, ⊤)) (ha : a ≠ 0) : |
| 31 | globalFunctionFieldElement X a ≠ 0 := |
| 32 | (map_ne_zero_iff _ (X.germToFunctionField_injective ⊤)).mpr ha |
| 33 | |
| 34 | /-- The actual finite principal divisor of a global regular function. -/ |
| 35 | def regularFunctionDivisor (a : Γ(X, ⊤)) : X →₀ ℤ := |
| 36 | Ord.BundleCycles.principalDivisor X (globalFunctionFieldElement X a) |
| 37 | |
| 38 | /-- At codimension one, a nonzero regular function has its local quotient |
| 39 | length as multiplicity. Finiteness of the length is proved from Noetherianity |
| 40 | and the local dimension bound. -/ |
| 41 | theorem regularFunctionDivisor_coeff_length (a : Γ(X, ⊤)) (ha : a ≠ 0) |
| 42 | (x : X) (hx : coheight x = 1) : |
| 43 | regularFunctionDivisor X a x = |
| 44 | ((Module.length (X.presheaf.stalk x) |
| 45 | ((X.presheaf.stalk x) ⧸ Ideal.span {X.presheaf.germ ⊤ x (by trivial) a})).toNat : ℤ) := by |
| 46 | have : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 47 | have hg : X.presheaf.germ ⊤ x (by trivial) a ≠ 0 := |
| 48 | (map_ne_zero_iff _ (germ_injective_of_isIntegral X x (by trivial))).mpr ha |
| 49 | change X.ord (X.germToFunctionField ⊤ a) x = _ |
| 50 | apply (Scheme.ord_eq_iff hx (globalFunctionFieldElement_ne_zero X a ha)).mpr |
| 51 | change Ring.ordFrac (X.presheaf.stalk x) (X.germToFunctionField ⊤ a) = _ |
| 52 | rw [← Scheme.algebraMap_germ_eq_germToFunctionField (X := X) (x := x) (by trivial) a, |
| 53 | Ring.ordFrac_eq_ord (X.presheaf.stalk x) hg] |
| 54 | apply Ring.ordMonoidWithZeroHom_eq_coe _ (mem_nonZeroDivisors_iff_ne_zero.mpr hg) |
| 55 | exact (ENat.natCast_toNat (Ring.ord_ne_top (mem_nonZeroDivisors_iff_ne_zero.mpr hg))).symm |
| 56 | |
| 57 | theorem regularFunctionDivisor_nonnegative (a : Γ(X, ⊤)) (ha : a ≠ 0) (x : X) : |
| 58 | 0 ≤ regularFunctionDivisor X a x := by |
| 59 | by_cases hx : coheight x = 1 |
| 60 | · rw [regularFunctionDivisor_coeff_length X a ha x hx] |
| 61 | exact Int.natCast_nonneg _ |
| 62 | · change 0 ≤ X.ord (globalFunctionFieldElement X a) x |
| 63 | rw [Scheme.ord_eq_zero_of_coheight_neq_one hx] |
| 64 | |
| 65 | /-- The divisor has no coefficient where the section is a local unit. -/ |
| 66 | theorem regularFunctionDivisor_eq_zero_of_isUnit_germ (a : Γ(X, ⊤)) (x : X) |
| 67 | (ha : IsUnit (X.presheaf.germ ⊤ x (by trivial) a)) : regularFunctionDivisor X a x = 0 := by |
| 68 | by_cases hx : coheight x = 1 |
| 69 | · have : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 70 | change X.ord (X.germToFunctionField ⊤ a) x = 0 |
| 71 | have hfield : X.germToFunctionField ⊤ a ≠ 0 := by |
| 72 | rw [← Scheme.algebraMap_germ_eq_germToFunctionField (X := X) (x := x) (by trivial) a] |
| 73 | exact (ha.map (algebraMap _ X.functionField)).ne_zero |
| 74 | apply (Scheme.ord_eq_iff hx hfield).mpr |
| 75 | change Ring.ordFrac (X.presheaf.stalk x) (X.germToFunctionField ⊤ a) = 1 |
| 76 | rw [← Scheme.algebraMap_germ_eq_germToFunctionField (X := X) (x := x) (by trivial) a] |
| 77 | exact Ring.ordFrac_of_isUnit ha |
| 78 | · exact Scheme.ord_eq_zero_of_coheight_neq_one hx _ |
| 79 | |
| 80 | theorem regularFunctionDivisor_support_subset (a : Γ(X, ⊤)) : |
| 81 | ((regularFunctionDivisor X a).support : Set X) ⊆ (X.basicOpen a : Set X)ᶜ := by |
| 82 | classical |
| 83 | intro x hx hxa |
| 84 | apply (Finsupp.mem_support_iff.mp hx) |
| 85 | apply regularFunctionDivisor_eq_zero_of_isUnit_germ |
| 86 | exact (Scheme.mem_basicOpen X a x (by trivial)).mp hxa |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.Divisors.LineBundles.RegularDivisor.BundleCycles |