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.Associator |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basic |
| 3 | import Mathlib.LinearAlgebra.BilinearMap |
| 4 | |
| 5 | /-! # Contraction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMReduction.Contraction.CM.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | The linear-algebra calculation used in CMReduction's composition step. The pairing |
| 13 | is an actual bilinear form, and the contraction is built from tensor-product |
| 14 | associators and evaluation. This module makes no cycle-algebraicity assumption. |
| 15 | -/ |
| 16 | |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | variable {K U V W : Type*} [Field K] |
| 20 | [AddCommGroup U] [Module K U] |
| 21 | [AddCommGroup V] [Module K V] |
| 22 | [AddCommGroup W] [Module K W] |
| 23 | |
| 24 | /-- Contract the two middle slots with the specified bilinear pairing. -/ |
| 25 | def middleContraction (Q : V →ₗ[K] V →ₗ[K] K) : |
| 26 | (U ⊗[K] V) ⊗[K] (V ⊗[K] W) →ₗ[K] U ⊗[K] W := |
| 27 | (TensorProduct.map (LinearMap.id : U →ₗ[K] U) |
| 28 | (TensorProduct.lid K W).toLinearMap).comp |
| 29 | ((TensorProduct.map (LinearMap.id : U →ₗ[K] U) |
| 30 | (TensorProduct.map (TensorProduct.lift Q) (LinearMap.id : W →ₗ[K] W))).comp |
| 31 | ((TensorProduct.map (LinearMap.id : U →ₗ[K] U) |
| 32 | (TensorProduct.assoc K V V W).symm.toLinearMap).comp |
| 33 | (TensorProduct.assoc K U V (V ⊗[K] W)).toLinearMap)) |
| 34 | |
| 35 | /-- The contraction multiplies the endpoint tensor by the middle pairing. -/ |
| 36 | theorem middleContraction_tmul (Q : V →ₗ[K] V →ₗ[K] K) |
| 37 | (u : U) (v v' : V) (w : W) : |
| 38 | middleContraction Q ((u ⊗ₜ[K] v) ⊗ₜ[K] (v' ⊗ₜ[K] w)) = |
| 39 | Q v v' • (u ⊗ₜ[K] w) := by |
| 40 | simp [middleContraction, TensorProduct.tmul_smul] |
| 41 | |
| 42 | /-- A nonzero middle pairing lets one recover the endpoint from its |
| 43 | contracted multiple in any linear subspace, including a cycle-class image. -/ |
| 44 | theorem endpoint_mem_of_contraction_mem (Q : V →ₗ[K] V →ₗ[K] K) |
| 45 | (S : Submodule K (U ⊗[K] W)) |
| 46 | (u : U) (v v' : V) (w : W) |
| 47 | (hQ : Q v v' ≠ 0) |
| 48 | (h : middleContraction Q ((u ⊗ₜ[K] v) ⊗ₜ[K] (v' ⊗ₜ[K] w)) ∈ S) : |
| 49 | u ⊗ₜ[K] w ∈ S := by |
| 50 | rw [middleContraction_tmul] at h |
| 51 | have hscaled := S.smul_mem (Q v v')⁻¹ h |
| 52 | simpa only [smul_smul, inv_mul_cancel₀ hQ, one_smul] using hscaled |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.HodgeConjecture.CMReduction.Contraction.CM.Construction |