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.RepresentationTheory.Theta.Geometric.DiagonalEigen |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Pi |
| 3 | |
| 4 | /-! # Diagonal Extension -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.DiagonalExtension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A proved diagonal action retains its diagonal coordinates after |
| 11 | extension of the scalar field. -/ |
| 12 | |
| 13 | open scoped TensorProduct Classical |
| 14 | |
| 15 | variable {R k I : Type} [Ring R] [Field k] [Fintype I] [DecidableEq I] |
| 16 | (χ : I → R →+* k) |
| 17 | |
| 18 | def diagonalOperator (a : R) : Module.End k (I → k) := |
| 19 | LinearMap.pi (fun i => χ i a • LinearMap.proj i) |
| 20 | |
| 21 | variable (F : Type) [Field F] [Algebra k F] |
| 22 | |
| 23 | theorem tensorDiagonal_coordinates (a : R) (z : F ⊗[k] (I → k)) : |
| 24 | TensorProduct.piScalarRight k F F I ((diagonalOperator χ a).baseChange F z) = |
| 25 | diagonalOperator (fun i => (algebraMap k F).comp (χ i)) a |
| 26 | (TensorProduct.piScalarRight k F F I z) := by |
| 27 | induction z using TensorProduct.inductionOn with |
| 28 | | add u v hu hv => simp only [map_add, hu, hv] |
| 29 | | tmul c v => |
| 30 | funext i |
| 31 | simp only [LinearMap.baseChange_tmul, TensorProduct.piScalarRight_apply, |
| 32 | TensorProduct.piScalarRightHom_tmul] |
| 33 | change (χ i a * v i) • c = algebraMap k F (χ i a) * (v i • c) |
| 34 | rw [Algebra.smul_def, Algebra.smul_def, map_mul, mul_assoc] |
| 35 | |
| 36 | variable {V : Type} [AddCommGroup V] [Module k V] |
| 37 | (e : (I → k) ≃ₗ[k] V) (A : R → Module.End k V) |
| 38 | (hA : ∀ a v, A a (e v) = e (diagonalOperator χ a v)) |
| 39 | |
| 40 | def extendedDiagonalEquiv : (I → F) ≃ₗ[F] F ⊗[k] V := |
| 41 | (TensorProduct.piScalarRight k F F I).symm.trans (e.baseChange k F _ _) |
| 42 | |
| 43 | include hA |
| 44 | |
| 45 | omit [Fintype I] [DecidableEq I] in |
| 46 | theorem tensorAction_intertwining (a : R) (z : F ⊗[k] (I → k)) : |
| 47 | (A a).baseChange F ((e.baseChange k F _ _) z) = |
| 48 | (e.baseChange k F _ _) ((diagonalOperator χ a).baseChange F z) := by |
| 49 | induction z using TensorProduct.inductionOn with |
| 50 | | add u v hu hv => simp only [map_add, hu, hv] |
| 51 | | tmul c v => exact congrArg (fun w : V => c ⊗ₜ[k] w) (hA a v) |
| 52 | |
| 53 | theorem extendedDiagonal_intertwining (a : R) (v : I → F) : |
| 54 | (A a).baseChange F (extendedDiagonalEquiv F e v) = |
| 55 | extendedDiagonalEquiv F e (diagonalOperator (fun i => (algebraMap k F).comp (χ i)) a v) := by |
| 56 | change (A a).baseChange F ((e.baseChange k F _ _) ((TensorProduct.piScalarRight k F F I).symm v)) = _ |
| 57 | rw [tensorAction_intertwining χ F e A hA] |
| 58 | apply (e.baseChange k F _ _).congr_arg |
| 59 | apply (TensorProduct.piScalarRight k F F I).injective |
| 60 | rw [tensorDiagonal_coordinates, LinearEquiv.apply_symm_apply] |
| 61 | exact ((TensorProduct.piScalarRight k F F I).apply_symm_apply _).symm |
| 62 | |
| 63 | omit e A hA [DecidableEq I] in |
| 64 | theorem extendedDiagonal_finrank (τ : R →+* k) : |
| 65 | Module.finrank F (DiagonalEigen.diagonalEigenSpace (fun i => (algebraMap k F).comp (χ i)) |
| 66 | ((algebraMap k F).comp τ)) = Fintype.card {i : I // χ i = τ} := by |
| 67 | rw [DiagonalEigen.diagonalEigen_finrank] |
| 68 | apply Fintype.card_congr |
| 69 | exact Equiv.subtypeEquivRight (fun i => ⟨fun h => RingHom.ext (fun a => |
| 70 | (algebraMap k F).injective (congrArg (fun f : R →+* F => f a) h)), fun h => congrArg _ h⟩) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.RepresentationTheory.Theta.Geometric.DiagonalExtension |