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.Local.Norm |
| 2 | import Mathlib.RingTheory.LocalRing.Length |
| 3 | |
| 4 | /-! # Semilocal Norm -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalNorm |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # ProjectionFormula: norm multiplicities with several primes above a local point |
| 12 | |
| 13 | Unlike the local extension calculation, this module permits a finite |
| 14 | Dedekind algebra with several maximal ideals above the base DVR. Its norm |
| 15 | exponent is the sum of their residue degrees, counted with the multiplicities |
| 16 | in the actual prime-ideal factorization. |
| 17 | -/ |
| 18 | |
| 19 | open IsLocalRing UniqueFactorizationMonoid |
| 20 | open scoped Classical |
| 21 | |
| 22 | variable {R S : Type*} [CommRing R] [CommRing S] [IsDomain R] |
| 23 | [IsDiscreteValuationRing R] [IsDedekindDomain S] |
| 24 | [Algebra R S] [Module.Finite R S] [Module.IsTorsionFree R S] |
| 25 | [PerfectField (FractionRing R)] |
| 26 | |
| 27 | /-- Every nonzero prime above a DVR contributes its own residue degree. -/ |
| 28 | theorem relNorm_prime (P : Ideal S) (hP : Prime P) : |
| 29 | Ideal.relNorm R P = maximalIdeal R ^ P.inertiaDeg R := by |
| 30 | let : P.IsMaximal := (Ideal.isPrime_of_prime hP).isMaximal hP.ne_zero |
| 31 | have hunder : P.under R = maximalIdeal R := eq_maximalIdeal inferInstance |
| 32 | let : P.LiesOver (maximalIdeal R) := |
| 33 | hunder ▸ inferInstanceAs (P.LiesOver (P.under R)) |
| 34 | exact Ideal.relNorm_eq_pow_of_isMaximal P (maximalIdeal R) |
| 35 | |
| 36 | /-- The sum uses the multiset of prime factors, so repeated factors retain |
| 37 | their divisor multiplicities. -/ |
| 38 | def normMultiplicity (R : Type*) [CommRing R] [Algebra R S] (I : Ideal S) : ℕ := |
| 39 | ((normalizedFactors I).map (fun P => P.inertiaDeg R)).sum |
| 40 | |
| 41 | theorem relNorm_eq_maximal_pow (I : Ideal S) (hI : I ≠ ⊥) : |
| 42 | Ideal.relNorm R I = maximalIdeal R ^ normMultiplicity R I := by |
| 43 | have hprod : ∀ l : Multiset (Ideal S), (∀ P ∈ l, Prime P) → |
| 44 | Ideal.relNorm R l.prod = maximalIdeal R ^ (l.map (fun P => P.inertiaDeg R)).sum := by |
| 45 | intro l |
| 46 | induction l using Multiset.induction_on with |
| 47 | | empty => simp |
| 48 | | @cons P l ih => |
| 49 | intro h |
| 50 | rw [Multiset.prod_cons, map_mul, relNorm_prime P (h P (Multiset.mem_cons_self P l)), |
| 51 | ih (fun Q hQ => h Q (Multiset.mem_cons_of_mem hQ)), |
| 52 | Multiset.map_cons, Multiset.sum_cons, pow_add] |
| 53 | have hfactor : (normalizedFactors I).prod = I := by |
| 54 | simpa only [normalize_eq] using prod_normalizedFactors_eq hI |
| 55 | change Ideal.relNorm R I = |
| 56 | maximalIdeal R ^ ((normalizedFactors I).map (fun P => P.inertiaDeg R)).sum |
| 57 | simpa only [hfactor] using hprod (normalizedFactors I) (prime_of_normalized_factor) |
| 58 | |
| 59 | /-- Norm of a nonzero element: sum all source-prime multiplicities weighted |
| 60 | by their native residue-field degrees. -/ |
| 61 | theorem ord_intNorm_eq_normMultiplicity (a : S) (ha : a ≠ 0) : |
| 62 | Ring.ord R (Algebra.intNorm R S a) = |
| 63 | (normMultiplicity R (Ideal.span {a}) : ℕ∞) := by |
| 64 | have hspan : Ideal.span ({a} : Set S) ≠ ⊥ := by |
| 65 | exact fun h => ha (Ideal.span_singleton_eq_bot.mp h) |
| 66 | have h := relNorm_eq_maximal_pow (R := R) (Ideal.span {a}) hspan |
| 67 | rw [Ideal.relNorm_singleton] at h |
| 68 | change Module.length R (R ⧸ Ideal.span {Algebra.intNorm R S a}) = _ |
| 69 | rw [h, IsDiscreteValuationRing.length_quotient_pow_maximalIdeal] |
| 70 | |
| 71 | attribute [local instance] FractionRing.liftAlgebra |
| 72 | |
| 73 | /-- The integer order of the field norm of a rational function is the |
| 74 | residue-weighted source multiplicity, including both zeros and poles and |
| 75 | all branches above the base point. -/ |
| 76 | theorem log_ordFrac_norm_div (a b : S) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 77 | WithZero.log (Ring.ordFrac R (Algebra.norm (FractionRing R) |
| 78 | (algebraMap S (FractionRing S) a / algebraMap S (FractionRing S) b))) = |
| 79 | (normMultiplicity R (Ideal.span {a}) : ℤ) - |
| 80 | (normMultiplicity R (Ideal.span {b}) : ℤ) := by |
| 81 | rw [div_eq_mul_inv, map_mul, Algebra.norm_inv, ← div_eq_mul_inv, |
| 82 | ← Algebra.algebraMap_intNorm_fractionRing, |
| 83 | ← Algebra.algebraMap_intNorm_fractionRing, map_div₀, |
| 84 | Ring.ordFrac_eq_ord R (Algebra.intNorm_ne_zero.mpr ha), |
| 85 | Ring.ordFrac_eq_ord R (Algebra.intNorm_ne_zero.mpr hb), |
| 86 | Ring.ordMonoidWithZeroHom_eq_coe R |
| 87 | (mem_nonZeroDivisors_of_ne_zero (Algebra.intNorm_ne_zero.mpr ha)) |
| 88 | (ord_intNorm_eq_normMultiplicity a ha), |
| 89 | Ring.ordMonoidWithZeroHom_eq_coe R |
| 90 | (mem_nonZeroDivisors_of_ne_zero (Algebra.intNorm_ne_zero.mpr hb)) |
| 91 | (ord_intNorm_eq_normMultiplicity b hb)] |
| 92 | exact WithZero.log_div (by simp) (by simp) |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalNorm |