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.GeometricComparison.Linear |
| 2 | |
| 3 | /-! # Semilinear Charpoly To -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.SemilinearCharpolyTo.SemilinearCharpoly |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Characteristic polynomials under an actual change of coefficient field. -/ |
| 10 | |
| 11 | universe u v w z |
| 12 | variable {R : Type u} [Field R] {S : Type v} [Field S] (σ : R ≃+* S) |
| 13 | |
| 14 | instance invPair : RingHomInvPair σ.toRingHom σ.symm.toRingHom := |
| 15 | RingHomInvPair.of_ringEquiv σ |
| 16 | |
| 17 | instance invPairSymm : RingHomInvPair σ.symm.toRingHom σ.toRingHom := |
| 18 | RingHomInvPair.of_ringEquiv_symm σ |
| 19 | |
| 20 | variable {V : Type w} [AddCommGroup V] [Module R V] |
| 21 | {W : Type z} [AddCommGroup W] [Module S W] |
| 22 | |
| 23 | theorem finite (e : V ≃ₛₗ[σ.toRingHom] W) [FiniteDimensional R V] : FiniteDimensional S W := |
| 24 | Module.Finite.of_surjective e.toLinearMap e.surjective |
| 25 | |
| 26 | def basis {ι : Type*} (b : Module.Basis ι R V) (e : V ≃ₛₗ[σ.toRingHom] W) : |
| 27 | Module.Basis ι S W := by |
| 28 | letI : Module R W := Module.compHom W σ.toRingHom |
| 29 | let eR : V ≃ₗ[R] W := |
| 30 | { e.toAddEquiv with |
| 31 | map_smul' := fun r x => e.map_smulₛₗ r x } |
| 32 | exact (b.map eR).mapCoeffs σ (fun _ _ => rfl) |
| 33 | |
| 34 | theorem basis_apply {ι : Type*} (b : Module.Basis ι R V) (e : V ≃ₛₗ[σ.toRingHom] W) (i : ι) : |
| 35 | basis σ b e i = e (b i) := by |
| 36 | let : Module R W := Module.compHom W σ.toRingHom |
| 37 | let eR : V ≃ₗ[R] W := |
| 38 | { e.toAddEquiv with map_smul' := fun r x => e.map_smulₛₗ r x } |
| 39 | exact ((b.map eR).mapCoeffs_apply σ (fun _ _ => rfl) i).trans (b.map_apply eR i) |
| 40 | |
| 41 | theorem basis_repr {ι : Type*} [Fintype ι] (b : Module.Basis ι R V) |
| 42 | (e : V ≃ₛₗ[σ.toRingHom] W) (x : V) (i : ι) : |
| 43 | (basis σ b e).repr (e x) i = σ (b.repr x i) := by |
| 44 | classical |
| 45 | have hx : e x = ∑ j, σ (b.repr x j) • basis σ b e j := by |
| 46 | conv_lhs => rw [← b.sum_repr x] |
| 47 | rw [map_sum] |
| 48 | apply Finset.sum_congr rfl |
| 49 | intro j _ |
| 50 | rw [basis_apply] |
| 51 | exact e.map_smulₛₗ _ _ |
| 52 | rw [hx] |
| 53 | simp [Finsupp.single_apply] |
| 54 | |
| 55 | theorem toMatrix_map {ι : Type*} [Fintype ι] [DecidableEq ι] (b : Module.Basis ι R V) |
| 56 | (e : V ≃ₛₗ[σ.toRingHom] W) (T : Module.End R V) (U : Module.End S W) |
| 57 | (h : ∀ x, e (T x) = U (e x)) : |
| 58 | LinearMap.toMatrix (basis σ b e) (basis σ b e) U = (LinearMap.toMatrix b b T).map σ := by |
| 59 | ext i j |
| 60 | simp only [LinearMap.toMatrix_apply, Matrix.map_apply] |
| 61 | rw [basis_apply, ← h, basis_repr] |
| 62 | |
| 63 | theorem charpoly_map [FiniteDimensional R V] [FiniteDimensional S W] |
| 64 | (e : V ≃ₛₗ[σ.toRingHom] W) (T : Module.End R V) (U : Module.End S W) |
| 65 | (h : ∀ x, e (T x) = U (e x)) : U.charpoly = T.charpoly.map σ.toRingHom := by |
| 66 | classical |
| 67 | let b := Module.finBasis R V |
| 68 | rw [← LinearMap.charpoly_toMatrix U (basis σ b e), ← LinearMap.charpoly_toMatrix T b, |
| 69 | toMatrix_map σ b e T U h] |
| 70 | exact Matrix.charpoly_map _ σ.toRingHom |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.GeometricComparison.SemilinearCharpolyTo.SemilinearCharpoly |