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.BaseChange |
| 2 | import Mathlib.Tactic |
| 3 | |
| 4 | /-! # Dual Base -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.DualBase.DualBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The native dual tensor equivalence and its naturality under precomposition. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | variable {R S V W : Type*} [Field R] [Field S] [Algebra R S] |
| 15 | [AddCommGroup V] [Module R V] [FiniteDimensional R V] |
| 16 | [AddCommGroup W] [Module R W] [FiniteDimensional R W] |
| 17 | |
| 18 | def equiv (S : Type*) [Field S] [Algebra R S] (V : Type*) [AddCommGroup V] |
| 19 | [Module R V] [FiniteDimensional R V] : |
| 20 | (S ⊗[R] Module.Dual R V) ≃ₗ[S] Module.Dual S (S ⊗[R] V) := |
| 21 | (TensorProduct.isBaseChange (R := R) (M := V) (S := S)).toDualBaseChange |
| 22 | |
| 23 | theorem equiv_tmul_one (a : S) (f : Module.Dual R V) (v : V) : |
| 24 | equiv S V (a ⊗ₜ[R] f) (1 ⊗ₜ[R] v) = a * algebraMap R S (f v) := |
| 25 | IsBaseChange.toDualBaseChange_tmul (TensorProduct.isBaseChange (R := R) (M := V) (S := S)) a f v |
| 26 | |
| 27 | theorem equiv_tmul_tmul (a b : S) (f : Module.Dual R V) (v : V) : |
| 28 | equiv S V (a ⊗ₜ[R] f) (b ⊗ₜ[R] v) = b * (a * algebraMap R S (f v)) := by |
| 29 | have hb : b ⊗ₜ[R] v = b • ((1 : S) ⊗ₜ[R] v) := by |
| 30 | rw [TensorProduct.smul_tmul', smul_eq_mul, mul_one] |
| 31 | rw [hb, map_smul, equiv_tmul_one, smul_eq_mul] |
| 32 | |
| 33 | theorem naturality (f : V →ₗ[R] W) (x : S ⊗[R] Module.Dual R W) : |
| 34 | equiv S V (f.dualMap.baseChange S x) = (equiv S W x).comp (f.baseChange S) := by |
| 35 | induction x using TensorProduct.inductionOn with |
| 36 | | tmul a g => |
| 37 | apply LinearMap.ext |
| 38 | intro y |
| 39 | induction y using TensorProduct.inductionOn with |
| 40 | | tmul b v => |
| 41 | change equiv S V (a ⊗ₜ[R] (g.comp f)) (b ⊗ₜ[R] v) = |
| 42 | equiv S W (a ⊗ₜ[R] g) (b ⊗ₜ[R] f v) |
| 43 | rw [equiv_tmul_tmul, equiv_tmul_tmul, LinearMap.comp_apply] |
| 44 | | add y z hy hz => simp only [map_add, hy, hz] |
| 45 | | add x y hx hy => simp only [map_add, hx, hy, LinearMap.add_comp] |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.NumberTheory.PadicHodge.GeometricComparison.DualBase.DualBaseChange |