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.FieldTheory.Perfect |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.RingTheory.TensorProduct.Basic |
| 4 | |
| 5 | /-! # Frobenius Basis -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FrobeniusBasis |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # The linear map determined by p-th powers of a basis -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | variable (p : ℕ) {R S ι : Type*} [CommRing R] [CommRing S] |
| 16 | [Algebra R S] (b : Module.Basis ι R S) |
| 17 | |
| 18 | def linear : S →ₗ[R] S := b.constr R (fun i => b i ^ p) |
| 19 | |
| 20 | theorem linear_basis (i : ι) : linear p b (b i) = b i ^ p := b.constr_basis R _ i |
| 21 | |
| 22 | variable [Fact p.Prime] [CharP S p] [Fintype ι] |
| 23 | |
| 24 | theorem power_sum (c : ι → R) : |
| 25 | (∑ i, c i • b i) ^ p = ∑ i, c i ^ p • b i ^ p := by |
| 26 | change frobenius S p (∑ i, c i • b i) = _ |
| 27 | rw [map_sum] |
| 28 | apply Finset.sum_congr rfl |
| 29 | intro i _ |
| 30 | change (c i • b i) ^ p = _ |
| 31 | simp only [Algebra.smul_def, mul_pow, map_pow] |
| 32 | |
| 33 | theorem power_mem_range (x : S) : x ^ p ∈ LinearMap.range (linear p b) := by |
| 34 | refine ⟨∑ i, b.repr x i ^ p • b i, ?_⟩ |
| 35 | rw [map_sum] |
| 36 | simp only [map_smul, linear_basis] |
| 37 | rw [← power_sum, b.sum_repr] |
| 38 | |
| 39 | theorem surjective_of_perfect [PerfectRing S p] : Function.Surjective (linear p b) := by |
| 40 | intro x |
| 41 | obtain ⟨y, hy⟩ := surjective_frobenius S p x |
| 42 | exact hy ▸ power_mem_range p b y |
| 43 | |
| 44 | theorem frobenius_surjective [CharP R p] [PerfectRing R p] |
| 45 | (h : Function.Surjective (linear p b)) : |
| 46 | Function.Surjective (frobenius S p) := by |
| 47 | intro x |
| 48 | obtain ⟨y, rfl⟩ := h x |
| 49 | refine ⟨∑ i, (frobeniusEquiv R p).symm (b.repr y i) • b i, ?_⟩ |
| 50 | change (∑ i, (frobeniusEquiv R p).symm (b.repr y i) • b i) ^ p = _ |
| 51 | rw [power_sum] |
| 52 | simp only [frobeniusEquiv_symm_pow_p] |
| 53 | exact (Module.Basis.constr_apply_fintype R b (fun i => b i ^ p) y).symm |
| 54 | |
| 55 | variable (T : Type*) [CommRing T] [Algebra R T] |
| 56 | |
| 57 | omit [Fact p.Prime] [CharP S p] [Fintype ι] in |
| 58 | theorem baseChange : (linear p b).baseChange T = linear p (b.baseChange T) := by |
| 59 | apply (b.baseChange T).ext |
| 60 | intro i |
| 61 | rw [linear_basis, Module.Basis.baseChange_apply, LinearMap.baseChange_tmul, |
| 62 | linear_basis, Algebra.TensorProduct.tmul_pow, one_pow] |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FrobeniusBasis |