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.CokernelLength |
| 2 | import Mathlib.RingTheory.OrderOfVanishing.Basic |
| 3 | import Mathlib.RingTheory.LocalRing.Length |
| 4 | |
| 5 | /-! # Length -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Length |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # ProjectionFormula: divisor lengths under finite birational enlargement |
| 13 | |
| 14 | This module compares the actual quotient lengths before and after an |
| 15 | injective finite-colength extension. The base ring need not be normal. |
| 16 | -/ |
| 17 | |
| 18 | open LinearMap _root_.Submodule |
| 19 | |
| 20 | variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] |
| 21 | |
| 22 | theorem range_mul (a : S) : |
| 23 | (LinearMap.mul R S a).range = (Ideal.span {a}).restrictScalars R := by |
| 24 | ext b |
| 25 | change (∃ x, a * x = b) ↔ b ∈ Ideal.span {a} |
| 26 | rw [Ideal.mem_span_singleton] |
| 27 | constructor |
| 28 | · rintro ⟨x, hx⟩ |
| 29 | exact ⟨x, hx.symm⟩ |
| 30 | · rintro ⟨x, hx⟩ |
| 31 | exact ⟨x, hx.symm⟩ |
| 32 | |
| 33 | def mulCokernelEquiv (a : S) : |
| 34 | (S ⧸ (LinearMap.mul R S a).range) ≃ₗ[R] S ⧸ Ideal.span {a} := |
| 35 | (Submodule.quotEquivOfEq _ _ (range_mul (R := R) a)).trans |
| 36 | (Submodule.Quotient.restrictScalarsEquiv R (Ideal.span {a})) |
| 37 | |
| 38 | /-- Restricted quotient length is additive on multiplication by nonzero |
| 39 | elements, even when the extension ring has several maximal ideals. -/ |
| 40 | theorem length_quotient_mul [IsDomain S] (a b : S) (hb : b ≠ 0) : |
| 41 | Module.length R (S ⧸ Ideal.span {a * b}) = |
| 42 | Module.length R (S ⧸ Ideal.span {a}) + Module.length R (S ⧸ Ideal.span {b}) := by |
| 43 | have hcomp : (LinearMap.mul R S b).comp (LinearMap.mul R S a) = |
| 44 | LinearMap.mul R S (a * b) := by |
| 45 | apply LinearMap.ext |
| 46 | intro x |
| 47 | exact (mul_left_comm b a x).trans (mul_assoc a b x).symm |
| 48 | have h := CokernelLength.length_cokernel_comp |
| 49 | (LinearMap.mul R S a) (LinearMap.mul R S b) (mul_right_injective₀ hb) |
| 50 | rw [hcomp] at h |
| 51 | rw [← (mulCokernelEquiv (R := R) (a * b)).length_eq, |
| 52 | ← (mulCokernelEquiv (R := R) a).length_eq, |
| 53 | ← (mulCokernelEquiv (R := R) b).length_eq] |
| 54 | exact h |
| 55 | |
| 56 | /-- Quotient-length comparison used for the normalization of a singular |
| 57 | one-dimensional local ring. The finite-colength condition is independent of |
| 58 | the element whose order is being computed. -/ |
| 59 | theorem ord_eq_length_extension [IsDomain S] |
| 60 | (hinj : Function.Injective (algebraMap R S)) |
| 61 | (hfinite : Module.length R (S ⧸ (Algebra.linearMap R S).range) ≠ ⊤) |
| 62 | (a : R) (ha : algebraMap R S a ≠ 0) : |
| 63 | Ring.ord R a = Module.length R (S ⧸ Ideal.span {algebraMap R S a}) := by |
| 64 | have hcomm : (Algebra.linearMap R S).comp (LinearMap.mul R R a) = |
| 65 | (LinearMap.mul R S (algebraMap R S a)).comp (Algebra.linearMap R S) := by |
| 66 | apply LinearMap.ext |
| 67 | intro x |
| 68 | exact map_mul (algebraMap R S) a x |
| 69 | have h := CokernelLength.length_cokernel_eq_of_finite_colength |
| 70 | (Algebra.linearMap R S) (LinearMap.mul R R a) |
| 71 | (LinearMap.mul R S (algebraMap R S a)) hinj (mul_right_injective₀ ha) hcomm hfinite |
| 72 | exact (mulCokernelEquiv (R := R) a).length_eq.symm.trans |
| 73 | (h.trans (mulCokernelEquiv (R := R) (algebraMap R S a)).length_eq) |
| 74 | |
| 75 | /-- For one local branch, the comparison has exactly the residue-degree |
| 76 | weight of algebraic cycle pushforward. The source ring may be singular. -/ |
| 77 | theorem ord_eq_residueDegree_mul_ord [IsDomain S] |
| 78 | [IsLocalRing R] [IsLocalRing S] [IsLocalHom (algebraMap R S)] |
| 79 | [Module.Finite (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField S)] |
| 80 | (hinj : Function.Injective (algebraMap R S)) |
| 81 | (hfinite : Module.length R (S ⧸ (Algebra.linearMap R S).range) ≠ ⊤) |
| 82 | (a : R) (ha : algebraMap R S a ≠ 0) : |
| 83 | Ring.ord R a = |
| 84 | (Module.finrank (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField S) : ℕ∞) * |
| 85 | Ring.ord S (algebraMap R S a) := by |
| 86 | rw [ord_eq_length_extension hinj hfinite a ha, |
| 87 | IsLocalRing.length_restrictScalars R S (S ⧸ Ideal.span {algebraMap R S a}), |
| 88 | Module.length_eq_finrank] |
| 89 | exact mul_comm _ _ |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Length |