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.Flat.Extension |
| 2 | import Mathlib.RingTheory.LocalRing.Length |
| 3 | |
| 4 | /-! # Tor Length -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.TorLength |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Under a flat local extension, every Tor length is multiplied by the |
| 11 | length of the closed fiber. The same holds for the bounded alternating sum |
| 12 | in the geometric intersection coefficient, with its exact ENat.toNat |
| 13 | convention. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | open scoped TensorProduct BigOperators |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R S : Type u) [CommRing R] [CommRing S] [IsLocalRing R] [IsLocalRing S] |
| 21 | [Algebra R S] [IsLocalHom (algebraMap R S)] [Module.Flat R S] |
| 22 | |
| 23 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Extension |
| 24 | |
| 25 | theorem tor_length (M N : ModuleCat.{u} R) (n : ℕ) : |
| 26 | Module.length S (((Tor (ModuleCat S) n).obj ((Extension.baseChange R S).obj M)).obj |
| 27 | ((Extension.baseChange R S).obj N)) = |
| 28 | Module.length R (((Tor (ModuleCat R) n).obj M).obj N) * |
| 29 | Module.length S (S ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R S)) := by |
| 30 | rw [(Extension.torBaseChangeIso R S M N n).toLinearEquiv.length_eq] |
| 31 | exact IsLocalRing.length_baseChange R S _ |
| 32 | |
| 33 | theorem euler_length (M N : ModuleCat.{u} R) (d : ℕ) : |
| 34 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 35 | (Module.length S (((Tor (ModuleCat S) i).obj ((Extension.baseChange R S).obj M)).obj |
| 36 | ((Extension.baseChange R S).obj N))).toNat) = |
| 37 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 38 | (Module.length R (((Tor (ModuleCat R) i).obj M).obj N)).toNat) * |
| 39 | (Module.length S (S ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R S))).toNat := by |
| 40 | simp only [tor_length, ENat.toNat_mul, Nat.cast_mul, ← mul_assoc, Finset.sum_mul] |
| 41 | |
| 42 | theorem euler_length_of_maximalIdeal (M N : ModuleCat.{u} R) (d : ℕ) |
| 43 | (h : (IsLocalRing.maximalIdeal R).map (algebraMap R S) = IsLocalRing.maximalIdeal S) : |
| 44 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 45 | (Module.length S (((Tor (ModuleCat S) i).obj ((Extension.baseChange R S).obj M)).obj |
| 46 | ((Extension.baseChange R S).obj N))).toNat) = |
| 47 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 48 | (Module.length R (((Tor (ModuleCat R) i).obj M).obj N)).toNat) := by |
| 49 | rw [euler_length, h] |
| 50 | have hl : Module.length S (S ⧸ IsLocalRing.maximalIdeal S) = 1 := by |
| 51 | rw [Module.length_eq_of_surjective (M := S ⧸ IsLocalRing.maximalIdeal S) |
| 52 | (show Function.Surjective (algebraMap S (S ⧸ IsLocalRing.maximalIdeal S)) from |
| 53 | Ideal.Quotient.mk_surjective)] |
| 54 | exact Module.length_eq_one (IsLocalRing.ResidueField S) (IsLocalRing.ResidueField S) |
| 55 | rw [hl] |
| 56 | norm_num |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.TorLength |