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.Matrix.ToLin |
| 2 | import Mathlib.LinearAlgebra.Determinant |
| 3 | |
| 4 | /-! # Semilinear Basis Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.SemilinearBasisCoordinates.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Coordinate matrices commute with semilinear specialization when the |
| 11 | chosen bases specialize to one another. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | theorem semilinear_map_basis_coordinates |
| 16 | {R S V W ι : Type*} [CommRing R] [CommRing S] |
| 17 | [AddCommGroup V] [Module R V] [AddCommGroup W] [Module S W] [Fintype ι] |
| 18 | (σ : R →+* S) (b : Module.Basis ι R V) (c : Module.Basis ι S W) |
| 19 | (f : V →ₛₗ[σ] W) (hf : ∀ i, f (b i) = c i) (x : V) (i : ι) : |
| 20 | c.repr (f x) i = σ (b.repr x i) := by |
| 21 | have h : f x = ∑ j, σ (b.repr x j) • c j := by |
| 22 | conv_lhs => rw [← b.sum_repr x] |
| 23 | simp only [map_sum, map_smulₛₗ, hf] |
| 24 | rw [h] |
| 25 | simp [Finsupp.single_apply] |
| 26 | |
| 27 | theorem semilinear_intertwining_matrix |
| 28 | {R S V W ι : Type*} [CommRing R] [CommRing S] |
| 29 | [AddCommGroup V] [Module R V] [AddCommGroup W] [Module S W] [Fintype ι] |
| 30 | (σ : R →+* S) (b : Module.Basis ι R V) (c : Module.Basis ι S W) |
| 31 | (f : V →ₛₗ[σ] W) (hf : ∀ i, f (b i) = c i) |
| 32 | (A : Module.End R V) (B : Module.End S W) (hAB : ∀ x, f (A x) = B (f x)) : |
| 33 | (LinearMap.toMatrix b b A).map σ = LinearMap.toMatrix c c B := by |
| 34 | ext i j : 1 |
| 35 | rw [Matrix.map_apply, LinearMap.toMatrix_apply, LinearMap.toMatrix_apply, |
| 36 | ← semilinear_map_basis_coordinates σ b c f hf, hAB, hf] |
| 37 | |
| 38 | theorem semilinear_intertwining_determinant |
| 39 | {R S V W ι : Type*} [CommRing R] [CommRing S] |
| 40 | [AddCommGroup V] [Module R V] [AddCommGroup W] [Module S W] [Fintype ι] |
| 41 | (σ : R →+* S) (b : Module.Basis ι R V) (c : Module.Basis ι S W) |
| 42 | (f : V →ₛₗ[σ] W) (hf : ∀ i, f (b i) = c i) |
| 43 | (A : Module.End R V) (B : Module.End S W) (hAB : ∀ x, f (A x) = B (f x)) : |
| 44 | σ (LinearMap.det A) = LinearMap.det B := by |
| 45 | rw [← LinearMap.det_toMatrix b, RingHom.map_det, RingHom.mapMatrix_apply, |
| 46 | semilinear_intertwining_matrix σ b c f hf A B hAB, LinearMap.det_toMatrix] |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.NumberTheory.ArithmeticGroups.Lattices.SemilinearBasisCoordinates.Construction |