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.CycleClass.Thom.TorAlgebra.DiagonalQuotient |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Annihilator |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Euler |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Thom.RetractLocalLength |
| 5 | |
| 6 | /-! # Diagonal Length -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.DiagonalLength.Tor |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Reduction to the diagonal preserves the exact lengths of native |
| 13 | Tor modules, globally and after localization at corresponding primes. |
| 14 | The proof uses the diagonal ideal's actual annihilation of Tor. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.AlgebraDiagonalQuotient OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.ExternalQuotient |
| 20 | Euler.Tor LocalizedModuleLength.Constructions |
| 21 | |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | set_option backward.isDefEq.respectTransparency.types false |
| 24 | |
| 25 | universe u |
| 26 | variable (k R : Type u) [Field k] [CommRing R] [Algebra k R] (I J : Ideal R) |
| 27 | |
| 28 | abbrev torModule (n : ℕ) : ModuleCat.{u} (R ⊗[k] R) := |
| 29 | (((Tor (ModuleCat (R ⊗[k] R)) n).obj |
| 30 | (ModuleCat.of (R ⊗[k] R) ((R ⊗[k] R) ⧸ AlgebraDiagonalQuotient.diagonalIdeal k R))).obj |
| 31 | (ModuleCat.of (R ⊗[k] R) ((R ⊗[k] R) ⧸ ExternalQuotient.productIdeal k R R I J))) |
| 32 | |
| 33 | theorem diagonal_le_annihilator (n : ℕ) : |
| 34 | AlgebraDiagonalQuotient.diagonalIdeal k R ≤ Module.annihilator (R ⊗[k] R) (torModule k R I J n) := by |
| 35 | intro a ha |
| 36 | apply Module.mem_annihilator.mpr |
| 37 | apply Annihilator.Tor.first |
| 38 | apply Module.mem_annihilator.mp |
| 39 | rwa [Ideal.annihilator_quotient] |
| 40 | |
| 41 | theorem tor_length (n : ℕ) : |
| 42 | Module.length (R ⊗[k] R) (torModule k R I J n) = |
| 43 | Module.length R (((Tor (ModuleCat R) n).obj (ModuleCat.of R (R ⧸ I))).obj |
| 44 | (ModuleCat.of R (R ⧸ J))) := |
| 45 | (RetractModuleLength.Constructions.length_eq R (R ⊗[k] R) (Algebra.TensorProduct.lmul'' k) |
| 46 | (torModule k R I J n) (diagonal_le_annihilator k R I J n)).trans |
| 47 | (DiagonalQuotient.Tor.torIso k R I J n).toLinearEquiv.length_eq |
| 48 | |
| 49 | theorem tor_localLength (q : PrimeSpectrum R) (n : ℕ) : |
| 50 | LocalizedModuleLength.Constructions.localLength (R ⊗[k] R) (torModule k R I J n) |
| 51 | (PrimeSpectrum.comap (Algebra.TensorProduct.lmul' k).toRingHom q) = |
| 52 | LocalizedModuleLength.Constructions.localLength R (((Tor (ModuleCat R) n).obj (ModuleCat.of R (R ⧸ I))).obj |
| 53 | (ModuleCat.of R (R ⧸ J))) q := |
| 54 | (RetractLocalLength.Constructions.localLength_eq R (R ⊗[k] R) (Algebra.TensorProduct.lmul'' k) |
| 55 | (torModule k R I J n) (diagonal_le_annihilator k R I J n) q).trans |
| 56 | (LocalizedModuleLength.Constructions.localLength_equiv (DiagonalQuotient.Tor.torIso k R I J n).toLinearEquiv q) |
| 57 | |
| 58 | theorem euler_eq (d : ℕ) : |
| 59 | Euler.Tor.euler (R ⊗[k] R) |
| 60 | (ModuleCat.of (R ⊗[k] R) ((R ⊗[k] R) ⧸ AlgebraDiagonalQuotient.diagonalIdeal k R)) |
| 61 | (ModuleCat.of (R ⊗[k] R) ((R ⊗[k] R) ⧸ ExternalQuotient.productIdeal k R R I J)) d = |
| 62 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ I)) (ModuleCat.of R (R ⧸ J)) d := by |
| 63 | apply Finset.sum_congr rfl |
| 64 | intro n _ |
| 65 | exact congrArg (fun l : ℕ∞ => (-1 : ℚ) ^ n * (l.toNat : ℚ)) (tor_length k R I J n) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.DiagonalLength.Tor |