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.ExactLength |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.RingTheory.FiniteType |
| 4 | |
| 5 | /-! # Free Tensor Length -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FreeTensorLength |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Tensoring by a finite free module multiplies length by its rank. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] [Nontrivial R] |
| 19 | |
| 20 | theorem tensor_length (M P : ModuleCat.{u} R) [Module.Free R P] [Module.Finite R P] : |
| 21 | Module.length R (M ⊗[R] P) = (Module.finrank R P : ℕ∞) * Module.length R M := by |
| 22 | rw [(TensorProduct.equivFinsuppOfBasisRight (Module.Free.chooseBasis R P)).length_eq, |
| 23 | Module.length_finsupp] |
| 24 | congr 1 |
| 25 | simpa [ENat.card] using congrArg (fun n : ℕ => (n : ℕ∞)) |
| 26 | (Module.finrank_eq_card_basis (Module.Free.chooseBasis R P)).symm |
| 27 | |
| 28 | theorem tensor_length_ne_top (M P : ModuleCat.{u} R) [Module.Free R P] [Module.Finite R P] |
| 29 | (hM : Module.length R M ≠ ⊤) : Module.length R (M ⊗[R] P) ≠ ⊤ := by |
| 30 | rw [tensor_length R M P] |
| 31 | lift Module.length R M to ℕ using hM with l hl |
| 32 | rw [← Nat.cast_mul] |
| 33 | exact ENat.natCast_ne_top _ |
| 34 | |
| 35 | theorem tensor_rationalLength (M P : ModuleCat.{u} R) [Module.Free R P] [Module.Finite R P] : |
| 36 | ExactLength.rationalLength R (.of R (M ⊗[R] P)) = |
| 37 | (Module.finrank R P : ℚ) * ExactLength.rationalLength R M := by |
| 38 | unfold ExactLength.rationalLength |
| 39 | rw [tensor_length R M P, ENat.toNat_mul, ENat.toNat_natCast, Nat.cast_mul] |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FreeTensorLength |