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.NumberTheory.PadicHodge.PeriodInvariants.AlgebraTraceBaseChange |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.LinearAlgebra.FiniteDimensional.Basic |
| 4 | |
| 5 | /-! # Trace Pairing Basis -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.TracePairingBasis |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # A basis realizes the trace pairing as an endomorphism compatible with base change -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | variable {R S ι : Type*} [CommRing R] [CommRing S] [Algebra R S] [Fintype ι] |
| 16 | (b : Module.Basis ι R S) |
| 17 | |
| 18 | def linear : S →ₗ[R] S := |
| 19 | b.equivFun.symm.toLinearMap.comp (LinearMap.pi (fun i => Algebra.traceForm R S (b i))) |
| 20 | |
| 21 | theorem coordinate (x : S) (i : ι) : |
| 22 | b.equivFun (linear b x) i = Algebra.trace R S (b i * x) := by |
| 23 | change b.equivFun (b.equivFun.symm (fun i => Algebra.traceForm R S (b i) x)) i = _ |
| 24 | rw [LinearEquiv.apply_symm_apply] |
| 25 | rfl |
| 26 | |
| 27 | theorem linear_apply (x : S) : linear b x = ∑ i, Algebra.trace R S (b i * x) • b i := |
| 28 | b.equivFun_symm_apply (fun i => Algebra.trace R S (b i * x)) |
| 29 | |
| 30 | theorem injective (h : (Algebra.traceForm R S).Nondegenerate) : Function.Injective (linear b) := by |
| 31 | apply LinearMap.ker_eq_bot.mp |
| 32 | apply LinearMap.ker_eq_bot'.mpr |
| 33 | intro x hx |
| 34 | have hc : ∀ i, Algebra.traceForm R S (b i) x = 0 := by |
| 35 | intro i |
| 36 | have he := congrArg (fun y => b.equivFun y i) hx |
| 37 | rw [coordinate, map_zero, Pi.zero_apply] at he |
| 38 | exact he |
| 39 | apply h.2 x |
| 40 | intro y |
| 41 | rw [← b.sum_repr y, map_sum, LinearMap.sum_apply] |
| 42 | apply Finset.sum_eq_zero |
| 43 | intro i _ |
| 44 | rw [map_smul, LinearMap.smul_apply, hc, smul_zero] |
| 45 | |
| 46 | variable [Module.Free R S] [Module.Finite R S] |
| 47 | (T : Type*) [CommRing T] [Algebra R T] |
| 48 | |
| 49 | theorem baseChange : (linear b).baseChange T = linear (b.baseChange T) := by |
| 50 | apply (b.baseChange T).ext |
| 51 | intro i |
| 52 | rw [Module.Basis.baseChange_apply, LinearMap.baseChange_tmul, linear_apply, linear_apply] |
| 53 | rw [TensorProduct.tmul_sum] |
| 54 | apply Finset.sum_congr rfl |
| 55 | intro j _ |
| 56 | rw [Module.Basis.baseChange_apply, Algebra.TensorProduct.tmul_mul_tmul, one_mul, |
| 57 | AlgebraTraceBaseChange.includeRight] |
| 58 | rw [TensorProduct.tmul_smul, IsScalarTower.algebraMap_smul] |
| 59 | |
| 60 | theorem surjective {K E κ : Type*} [Field K] [CommRing E] [Algebra K E] |
| 61 | [FiniteDimensional K E] [Fintype κ] (c : Module.Basis κ K E) |
| 62 | (h : (Algebra.traceForm K E).Nondegenerate) : Function.Surjective (linear c) := |
| 63 | LinearMap.injective_iff_surjective.mp (injective c h) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.TracePairingBasis |