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.Defs |
| 3 | import Mathlib.Topology.Algebra.Module.ContinuousLinearMap.PiProd |
| 4 | |
| 5 | /-! # Finite Tensor Coordinates -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteTensorCoordinates |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Finite coordinates for tensor products and their continuous maps |
| 13 | |
| 14 | A basis of the finite free second factor identifies the tensor product |
| 15 | with a finite family of coefficient vectors. Tensor maps then become |
| 16 | finite matrices of continuous linear coefficient maps. |
| 17 | -/ |
| 18 | |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | variable {R M N E F I J : Type*} [CommRing R] |
| 22 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 23 | [AddCommGroup E] [Module R E] [AddCommGroup F] [Module R F] |
| 24 | [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] |
| 25 | |
| 26 | def coordinates (b : Module.Basis I R E) : M ⊗[R] E ≃ₗ[R] (I → M) := |
| 27 | (TensorProduct.congr (LinearEquiv.refl R M) b.equivFun).trans (TensorProduct.piScalarRight R R M I) |
| 28 | |
| 29 | theorem coordinates_tmul (b : Module.Basis I R E) (m : M) (e : E) (i : I) : |
| 30 | coordinates b (m ⊗ₜ[R] e) i = b.repr e i • m := by |
| 31 | simp [coordinates, TensorProduct.piScalarRight_apply] |
| 32 | |
| 33 | theorem coordinates_symm (b : Module.Basis I R E) (v : I → M) : |
| 34 | (coordinates b).symm v = ∑ i, v i ⊗ₜ[R] b i := by |
| 35 | apply (coordinates b).injective |
| 36 | rw [LinearEquiv.apply_symm_apply, map_sum] |
| 37 | funext j |
| 38 | simp [coordinates_tmul, Module.Basis.repr_self, Finsupp.single_apply] |
| 39 | |
| 40 | theorem map_coordinates (b : Module.Basis I R E) (c : Module.Basis J R F) |
| 41 | (f : M →ₗ[R] N) (g : E →ₗ[R] F) (v : I → M) (j : J) : |
| 42 | coordinates c (TensorProduct.map f g ((coordinates b).symm v)) j = |
| 43 | ∑ i, c.repr (g (b i)) j • f (v i) := by |
| 44 | rw [coordinates_symm, map_sum, map_sum] |
| 45 | simp only [Finset.sum_apply, TensorProduct.map_tmul, coordinates_tmul] |
| 46 | |
| 47 | variable [TopologicalSpace R] [TopologicalSpace M] [IsTopologicalAddGroup M] [ContinuousSMul R M] |
| 48 | [TopologicalSpace N] [IsTopologicalAddGroup N] [ContinuousSMul R N] |
| 49 | |
| 50 | def matrixMap (b : Module.Basis I R E) (c : Module.Basis J R F) |
| 51 | (f : M →L[R] N) (g : E →ₗ[R] F) : (I → M) →L[R] (J → N) := |
| 52 | ContinuousLinearMap.pi (fun j => ∑ i, c.repr (g (b i)) j • f.comp (ContinuousLinearMap.proj i)) |
| 53 | |
| 54 | omit [DecidableEq I] [Fintype J] [DecidableEq J] [IsTopologicalAddGroup M] [ContinuousSMul R M] in |
| 55 | theorem matrixMap_apply (b : Module.Basis I R E) (c : Module.Basis J R F) |
| 56 | (f : M →L[R] N) (g : E →ₗ[R] F) (v : I → M) (j : J) : |
| 57 | matrixMap b c f g v j = ∑ i, c.repr (g (b i)) j • f (v i) := by |
| 58 | simp [matrixMap] |
| 59 | |
| 60 | omit [IsTopologicalAddGroup M] [ContinuousSMul R M] in |
| 61 | theorem matrixMap_coordinates (b : Module.Basis I R E) (c : Module.Basis J R F) |
| 62 | (f : M →L[R] N) (g : E →ₗ[R] F) (z : M ⊗[R] E) : |
| 63 | matrixMap b c f g (coordinates b z) = coordinates c (TensorProduct.map f.toLinearMap g z) := by |
| 64 | funext j |
| 65 | rw [matrixMap_apply] |
| 66 | have h := map_coordinates b c f.toLinearMap g (coordinates b z) j |
| 67 | rw [LinearEquiv.symm_apply_apply] at h |
| 68 | exact h.symm |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteTensorCoordinates |