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.Dual.Basis |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Map |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Associator |
| 4 | |
| 5 | /-! # Bilinear Tensor Symmetry -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.BilinearTensorSymmetry |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Evaluating the alternating coefficient tensor of a bilinear |
| 12 | form detects its symmetry. The calculation uses the original basis and |
| 13 | its dual coordinate forms, without an exterior-algebra comparison. -/ |
| 14 | |
| 15 | open scoped TensorProduct BigOperators |
| 16 | |
| 17 | variable {k V : Type*} [CommRing k] [AddCommGroup V] [Module k V] |
| 18 | |
| 19 | def dualTensorEvaluation (z w : V) : |
| 20 | Module.Dual k V ⊗[k] Module.Dual k V →ₗ[k] k := |
| 21 | (TensorProduct.lid k k).toLinearMap.comp |
| 22 | (TensorProduct.map (LinearMap.applyₗ' k z) (LinearMap.applyₗ' k w)) |
| 23 | |
| 24 | theorem dualTensorEvaluation_tmul (z w : V) (p q : Module.Dual k V) : |
| 25 | dualTensorEvaluation z w (p ⊗ₜ[k] q) = p z * q w := by |
| 26 | change (TensorProduct.lid k k) |
| 27 | (TensorProduct.map (LinearMap.applyₗ' k z) (LinearMap.applyₗ' k w) (p ⊗ₜ[k] q)) = _ |
| 28 | rw [TensorProduct.map_tmul] |
| 29 | exact TensorProduct.lid_tmul (q w) (p z) |
| 30 | |
| 31 | theorem dualTensorEvaluation_comm (z w : V) (t : Module.Dual k V ⊗[k] Module.Dual k V) : |
| 32 | dualTensorEvaluation z w (TensorProduct.comm k (Module.Dual k V) (Module.Dual k V) t) = |
| 33 | dualTensorEvaluation w z t := by |
| 34 | induction t using TensorProduct.inductionOn with |
| 35 | | tmul p q => rw [TensorProduct.comm_tmul, dualTensorEvaluation_tmul, dualTensorEvaluation_tmul, mul_comm] |
| 36 | | add t u ht hu => rw [map_add, map_add, map_add, ht, hu] |
| 37 | |
| 38 | variable {I : Type*} [Fintype I] (b : Module.Basis I k V) |
| 39 | (F : V →ₗ[k] V →ₗ[k] k) |
| 40 | |
| 41 | def bilinearCoefficientTensor : Module.Dual k V ⊗[k] Module.Dual k V := |
| 42 | ∑ i, F (b i) ⊗ₜ[k] b.coord i |
| 43 | |
| 44 | theorem bilinearCoefficientTensor_evaluate (z w : V) : |
| 45 | dualTensorEvaluation z w (bilinearCoefficientTensor b F) = F w z := by |
| 46 | unfold bilinearCoefficientTensor |
| 47 | rw [map_sum] |
| 48 | simp only [dualTensorEvaluation_tmul, Module.Basis.coord_apply] |
| 49 | have h := congrArg (fun x => F x z) (b.sum_repr w) |
| 50 | simp only [map_sum, map_smul, LinearMap.sum_apply, LinearMap.smul_apply, smul_eq_mul] at h |
| 51 | exact (Finset.sum_congr rfl (fun i _ => mul_comm (F (b i) z) (b.repr w i))).trans h |
| 52 | |
| 53 | theorem bilinear_symm_of_alternating_coefficientTensor_zero |
| 54 | (h : bilinearCoefficientTensor b F - |
| 55 | TensorProduct.comm k (Module.Dual k V) (Module.Dual k V) (bilinearCoefficientTensor b F) = 0) |
| 56 | (z w : V) : F z w = F w z := by |
| 57 | have he := congrArg (dualTensorEvaluation z w) h |
| 58 | rw [map_sub, map_zero, dualTensorEvaluation_comm, |
| 59 | bilinearCoefficientTensor_evaluate, bilinearCoefficientTensor_evaluate] at he |
| 60 | exact (sub_eq_zero.mp he).symm |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.BilinearTensorSymmetry |