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.ArithmeticGroups.Lattices.ScalarLinearPreserver |
| 2 | |
| 3 | /-! # Algebra Determinant Preserver -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.AlgebraDeterminantPreserver.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A coefficient-algebra linear map preserves its determinant tensor |
| 10 | exactly when its representing matrix has determinant one. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | |
| 14 | theorem determinant_rows_specialLinear |
| 15 | {S : Type*} [CommRing S] {n : ℕ} |
| 16 | (g : Matrix.SpecialLinearGroup (Fin n) S) (v : Fin n → Fin n → S) : |
| 17 | Matrix.det (Matrix.of (fun i => Matrix.SpecialLinearGroup.toLin' g (v i))) = |
| 18 | Matrix.det (Matrix.of v) := by |
| 19 | have he : Matrix.of (fun i => Matrix.SpecialLinearGroup.toLin' g (v i)) = |
| 20 | Matrix.of v * (g : Matrix (Fin n) (Fin n) S).transpose := by |
| 21 | ext i j : 1 |
| 22 | change (∑ l, g j l * v i l) = ∑ l, v i l * g j l |
| 23 | apply Finset.sum_congr rfl |
| 24 | intro l _ |
| 25 | exact mul_comm _ _ |
| 26 | rw [he, Matrix.det_mul, Matrix.det_transpose, Matrix.SpecialLinearGroup.det_coe, mul_one] |
| 27 | |
| 28 | theorem specialLinear_exists_of_scalar_and_determinant_preserved |
| 29 | {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] {n : ℕ} |
| 30 | (f : (Fin n → S) ≃ₗ[R] (Fin n → S)) |
| 31 | (hscalar : ∀ (a : S) x, f (a • x) = a • f x) |
| 32 | (hdet : ∀ v : Fin n → Fin n → S, |
| 33 | Matrix.det (Matrix.of (fun i => f (v i))) = Matrix.det (Matrix.of v)) : |
| 34 | ∃ g : Matrix.SpecialLinearGroup (Fin n) S, |
| 35 | (Matrix.SpecialLinearGroup.toLin' g).restrictScalars R = f := by |
| 36 | let F := ScalarLinearPreserver.Construction.scalarLinearEquivOfCommutes f hscalar |
| 37 | let B := LinearMap.toMatrix' F.toLinearMap |
| 38 | have hB : Matrix.of (fun i => f (Pi.basisFun S (Fin n) i)) = B.transpose := by |
| 39 | ext i j : 1 |
| 40 | simp only [Matrix.of_apply, Matrix.transpose_apply, B, LinearMap.toMatrix'_apply, |
| 41 | Pi.basisFun_apply] |
| 42 | rfl |
| 43 | have hI : Matrix.of (Pi.basisFun S (Fin n)) = 1 := by |
| 44 | ext i j : 1 |
| 45 | simp [Pi.basisFun_apply, Pi.single_apply, Matrix.one_apply, eq_comm] |
| 46 | have hd : B.det = 1 := by |
| 47 | have hv := hdet (Pi.basisFun S (Fin n)) |
| 48 | rwa [hB, hI, Matrix.det_transpose, Matrix.det_one] at hv |
| 49 | let g : Matrix.SpecialLinearGroup (Fin n) S := ⟨B, hd⟩ |
| 50 | refine ⟨g, ?_⟩ |
| 51 | have he : Matrix.SpecialLinearGroup.toLin' g = F := by |
| 52 | apply LinearEquiv.toLinearMap_injective |
| 53 | change Matrix.toLin' (LinearMap.toMatrix' F.toLinearMap) = F.toLinearMap |
| 54 | exact Matrix.toLin'_toMatrix' _ |
| 55 | rw [he] |
| 56 | exact ScalarLinearPreserver.Construction.scalarLinearEquivOfCommutes_restrictScalars f hscalar |
| 57 | |
| 58 | theorem specialLinear_exists_iff_preserves_scalar_and_determinant |
| 59 | {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] {n : ℕ} |
| 60 | (f : (Fin n → S) ≃ₗ[R] (Fin n → S)) : |
| 61 | (∃ g : Matrix.SpecialLinearGroup (Fin n) S, |
| 62 | (Matrix.SpecialLinearGroup.toLin' g).restrictScalars R = f) ↔ |
| 63 | (∀ (a : S) x, f (a • x) = a • f x) ∧ |
| 64 | (∀ v : Fin n → Fin n → S, |
| 65 | Matrix.det (Matrix.of (fun i => f (v i))) = Matrix.det (Matrix.of v)) := by |
| 66 | constructor |
| 67 | · rintro ⟨g, rfl⟩ |
| 68 | exact ⟨fun a x => (Matrix.SpecialLinearGroup.toLin' g).map_smul a x, |
| 69 | determinant_rows_specialLinear g⟩ |
| 70 | · rintro ⟨hs, hd⟩ |
| 71 | exact specialLinear_exists_of_scalar_and_determinant_preserved f hs hd |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.ArithmeticGroups.Lattices.AlgebraDeterminantPreserver.Construction |