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 Mathlib.LinearAlgebra.TensorProduct.Pi |
| 2 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 3 | |
| 4 | /-! # Finite Tensor Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Large.FiniteTensorCoordinates.LargeFiniteTensorCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Finite coefficient bases on the original large cohomology modules -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (R ξ V : Type u) [CommRing R] [Fintype ξ] [AddCommGroup V] [Module R V] |
| 17 | (b : Module.Basis ξ R V) |
| 18 | (M N : Type (u + 2)) [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 19 | |
| 20 | def equiv : M ⊗[R] V ≃ₗ[R] (ξ → M) := by |
| 21 | classical |
| 22 | exact (TensorProduct.congr (LinearEquiv.refl R M) b.equivFun).trans |
| 23 | (TensorProduct.piScalarRight R R M ξ) |
| 24 | |
| 25 | theorem tmul (m : M) (v : V) (i : ξ) : equiv R ξ V b M (m ⊗ₜ[R] v) i = b.equivFun v i • m := rfl |
| 26 | |
| 27 | theorem naturality (f : M →ₗ[R] N) : |
| 28 | (equiv R ξ V b N).toLinearMap.comp (TensorProduct.map f LinearMap.id) = |
| 29 | (LinearMap.pi (fun i => f.comp (LinearMap.proj i))).comp (equiv R ξ V b M).toLinearMap := by |
| 30 | apply TensorProduct.ext |
| 31 | apply LinearMap.ext |
| 32 | intro m |
| 33 | apply LinearMap.ext |
| 34 | intro v |
| 35 | funext i |
| 36 | change b.equivFun v i • f m = f (b.equivFun v i • m) |
| 37 | exact (f.map_smul _ _).symm |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Large.FiniteTensorCoordinates.LargeFiniteTensorCoordinates |