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.Finite.Colength |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalLength |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.Normalization |
| 4 | |
| 5 | /-! # Divisor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Divisor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # ProjectionFormula: local divisor multiplicities under finite normalization |
| 13 | |
| 14 | The original local domain may be singular and its normalization may have |
| 15 | several branches. Quotient lengths express the original order as the sum |
| 16 | of the residue degrees of the prime factors in the normalization. |
| 17 | -/ |
| 18 | |
| 19 | open UniqueFactorizationMonoid |
| 20 | |
| 21 | variable {R S K : Type*} [CommRing R] [CommRing S] [IsDomain R] |
| 22 | [IsLocalRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 23 | [IsDedekindDomain S] [Field K] [Algebra R S] [Module.Finite R S] |
| 24 | [Algebra R K] [Algebra S K] [IsScalarTower R S K] |
| 25 | [IsFractionRing R K] [IsFractionRing S K] |
| 26 | |
| 27 | /-- The prime factors are taken in the normalization, with multiplicity. -/ |
| 28 | def branchMultiplicity (R S : Type*) [CommRing R] [CommRing S] |
| 29 | [IsDedekindDomain S] [Algebra R S] (a : R) : ℕ := |
| 30 | ((normalizedFactors (Ideal.span ({algebraMap R S a} : Set S))).map |
| 31 | (fun P => P.inertiaDeg R)).sum |
| 32 | |
| 33 | include K in |
| 34 | theorem ord_eq_branchMultiplicity (a : R) (ha : a ≠ 0) : |
| 35 | Ring.ord R a = (branchMultiplicity R S a : ℕ∞) := by |
| 36 | have hi : Function.Injective (algebraMap R S) := by |
| 37 | apply Function.Injective.of_comp (f := algebraMap S K) |
| 38 | simpa only [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq] using |
| 39 | IsFractionRing.injective R K |
| 40 | rw [ProjectionFormula.Finite.Colength.ord_eq_length_birational_extension R S K a ha] |
| 41 | exact SemilocalLength.length_quotient_eq_sum _ |
| 42 | (fun h => ha (hi (by simpa using Ideal.span_singleton_eq_bot.mp h))) |
| 43 | |
| 44 | /-- The corresponding equality for a rational function includes both zeros |
| 45 | and poles, using the same integer-valued order as the geometric divisor. -/ |
| 46 | theorem log_ordFrac_div (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 47 | WithZero.log (Ring.ordFrac R (algebraMap R K a / algebraMap R K b)) = |
| 48 | (branchMultiplicity R S a : ℤ) - (branchMultiplicity R S b : ℤ) := by |
| 49 | rw [map_div₀, Ring.ordFrac_eq_ord R ha, Ring.ordFrac_eq_ord R hb, |
| 50 | Ring.ordMonoidWithZeroHom_eq_coe R (mem_nonZeroDivisors_of_ne_zero ha) |
| 51 | (ord_eq_branchMultiplicity (S := S) (K := K) a ha), |
| 52 | Ring.ordMonoidWithZeroHom_eq_coe R (mem_nonZeroDivisors_of_ne_zero hb) |
| 53 | (ord_eq_branchMultiplicity (S := S) (K := K) b hb)] |
| 54 | exact WithZero.log_div (by simp) (by simp) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Divisor |