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 |
| 2 | |
| 3 | /-! # Matrix Extension -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Rational.MatrixExtension.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Extend an actual rational coordinate equivalence to any commutative |
| 10 | Q-algebra by its finite matrix, retaining the inverse and continuity. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix |
| 13 | |
| 14 | variable {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J] |
| 15 | |
| 16 | theorem inverse_matrix (e : (I → ℚ) ≃ₗ[ℚ] (J → ℚ)) : |
| 17 | LinearMap.toMatrix' e.symm.toLinearMap * LinearMap.toMatrix' e.toLinearMap = 1 := by |
| 18 | have h : e.symm.toLinearMap.comp e.toLinearMap = LinearMap.id := by |
| 19 | apply LinearMap.ext |
| 20 | exact e.symm_apply_apply |
| 21 | rw [← LinearMap.toMatrix'_comp, h, LinearMap.toMatrix'_id] |
| 22 | |
| 23 | theorem matrix_inverse (e : (I → ℚ) ≃ₗ[ℚ] (J → ℚ)) : |
| 24 | LinearMap.toMatrix' e.toLinearMap * LinearMap.toMatrix' e.symm.toLinearMap = 1 := by |
| 25 | have h : e.toLinearMap.comp e.symm.toLinearMap = LinearMap.id := by |
| 26 | apply LinearMap.ext |
| 27 | exact e.apply_symm_apply |
| 28 | rw [← LinearMap.toMatrix'_comp, h, LinearMap.toMatrix'_id] |
| 29 | |
| 30 | variable (R : Type*) [CommRing R] [Algebra ℚ R] |
| 31 | |
| 32 | def equivalence (e : (I → ℚ) ≃ₗ[ℚ] (J → ℚ)) : (I → R) ≃ₗ[R] (J → R) where |
| 33 | toFun x := (LinearMap.toMatrix' e.toLinearMap).map (algebraMap ℚ R) *ᵥ x |
| 34 | invFun y := (LinearMap.toMatrix' e.symm.toLinearMap).map (algebraMap ℚ R) *ᵥ y |
| 35 | left_inv x := by |
| 36 | dsimp only |
| 37 | have h1 : (1 : Matrix I I ℚ).map (algebraMap ℚ R) = 1 := |
| 38 | Matrix.map_one (algebraMap ℚ R) (map_zero (algebraMap ℚ R)) (map_one (algebraMap ℚ R)) |
| 39 | rw [Matrix.mulVec_mulVec, ← Matrix.map_mul, inverse_matrix, h1, Matrix.one_mulVec] |
| 40 | right_inv y := by |
| 41 | dsimp only |
| 42 | have h1 : (1 : Matrix J J ℚ).map (algebraMap ℚ R) = 1 := |
| 43 | Matrix.map_one (algebraMap ℚ R) (map_zero (algebraMap ℚ R)) (map_one (algebraMap ℚ R)) |
| 44 | rw [Matrix.mulVec_mulVec, ← Matrix.map_mul, matrix_inverse, h1, Matrix.one_mulVec] |
| 45 | map_add' := Matrix.mulVec_add _ |
| 46 | map_smul' := Matrix.mulVec_smul _ |
| 47 | |
| 48 | theorem rational (e : (I → ℚ) ≃ₗ[ℚ] (J → ℚ)) (x : I → ℚ) : |
| 49 | equivalence R e (fun i => algebraMap ℚ R (x i)) = fun j => algebraMap ℚ R (e x j) := by |
| 50 | funext j |
| 51 | exact (RingHom.map_mulVec (algebraMap ℚ R) (LinearMap.toMatrix' e.toLinearMap) x j).symm.trans |
| 52 | (congrArg (algebraMap ℚ R) (congrFun (LinearMap.toMatrix'_mulVec e.toLinearMap x) j)) |
| 53 | |
| 54 | variable [TopologicalSpace R] [IsTopologicalRing R] |
| 55 | |
| 56 | def continuousEquivalence (e : (I → ℚ) ≃ₗ[ℚ] (J → ℚ)) : (I → R) ≃L[R] (J → R) where |
| 57 | toLinearEquiv := equivalence R e |
| 58 | continuous_toFun := by |
| 59 | apply continuous_pi |
| 60 | intro j |
| 61 | change Continuous (fun x : I → R => ∑ i, _ * x i) |
| 62 | fun_prop |
| 63 | continuous_invFun := by |
| 64 | apply continuous_pi |
| 65 | intro i |
| 66 | change Continuous (fun y : J → R => ∑ j, _ * y j) |
| 67 | fun_prop |
| 68 | |
| 69 | theorem continuous_rational (e : (I → ℚ) ≃ₗ[ℚ] (J → ℚ)) (x : I → ℚ) : |
| 70 | continuousEquivalence R e (fun i => algebraMap ℚ R (x i)) = fun j => algebraMap ℚ R (e x j) := |
| 71 | rational R e x |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Rational.MatrixExtension.CM |