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.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ReflectionDeterminant |
| 2 | import Mathlib.LinearAlgebra.Matrix.SesquilinearForm |
| 3 | |
| 4 | /-! # Matrix Reflection Embedding -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.MatrixReflectionEmbedding |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Literal matrix Hermitian forms and their reflection maps commute |
| 11 | with field embeddings that respect the involutions. The comparison is |
| 12 | proved on matrix coefficients, not assumed as an identification of actions. |
| 13 | -/ |
| 14 | |
| 15 | section Form |
| 16 | |
| 17 | variable {E : Type*} [Field E] |
| 18 | |
| 19 | def matrixReflectionForm (σ : E →+* E) (H : Matrix (Fin 3) (Fin 3) E) : |
| 20 | (Fin 3 → E) →ₗ[E] (Fin 3 → E) →ₛₗ[σ] E := |
| 21 | Matrix.toLinearMap₂'Aux (RingHom.id E) σ H |
| 22 | |
| 23 | theorem matrixReflectionForm_apply (σ : E →+* E) (H : Matrix (Fin 3) (Fin 3) E) |
| 24 | (x y : Fin 3 → E) : |
| 25 | matrixReflectionForm σ H x y = ∑ i, ∑ j, x i * H i j * σ (y j) := by |
| 26 | change (∑ i, ∑ j, σ (y j) • (x i) • H i j) = _ |
| 27 | apply Finset.sum_congr rfl |
| 28 | intro i _ |
| 29 | apply Finset.sum_congr rfl |
| 30 | intro j _ |
| 31 | change σ (y j) * (x i * H i j) = _ |
| 32 | ring |
| 33 | |
| 34 | theorem matrixReflectionForm_symmetry |
| 35 | (σ : E →+* E) (hσ : Function.Involutive σ) (H : Matrix (Fin 3) (Fin 3) E) |
| 36 | (hH : ∀ i j, H i j = σ (H j i)) (x y : Fin 3 → E) : |
| 37 | matrixReflectionForm σ H x y = σ (matrixReflectionForm σ H y x) := by |
| 38 | rw [matrixReflectionForm_apply, matrixReflectionForm_apply] |
| 39 | simp only [map_sum, map_mul] |
| 40 | rw [Finset.sum_comm] |
| 41 | apply Finset.sum_congr rfl |
| 42 | intro j _ |
| 43 | apply Finset.sum_congr rfl |
| 44 | intro i _ |
| 45 | rw [hH i j, hσ (x i)] |
| 46 | ring |
| 47 | |
| 48 | end Form |
| 49 | |
| 50 | variable {E K : Type*} [Field E] [Field K] |
| 51 | (σ : E →+* E) (τ : K →+* K) (μ : E →+* K) |
| 52 | (hμ : ∀ a, μ (σ a) = τ (μ a)) (H : Matrix (Fin 3) (Fin 3) E) |
| 53 | |
| 54 | include hμ |
| 55 | |
| 56 | theorem matrixReflectionForm_embedding (x y : Fin 3 → E) : |
| 57 | μ (matrixReflectionForm σ H x y) = |
| 58 | matrixReflectionForm τ (H.map μ) (fun i => μ (x i)) (fun i => μ (y i)) := by |
| 59 | simp only [matrixReflectionForm_apply, map_sum, map_mul, hμ, Matrix.map_apply] |
| 60 | |
| 61 | theorem matrixReflectionForm_embedding_ne_zero (v : Fin 3 → E) |
| 62 | (hv : matrixReflectionForm σ H v v ≠ 0) : |
| 63 | matrixReflectionForm τ (H.map μ) (fun i => μ (v i)) (fun i => μ (v i)) ≠ 0 := by |
| 64 | intro h |
| 65 | apply hv |
| 66 | apply μ.injective |
| 67 | exact (matrixReflectionForm_embedding σ τ μ hμ H v v).trans (h.trans (map_zero μ).symm) |
| 68 | |
| 69 | theorem matrixReflection_embedding_apply |
| 70 | (v : Fin 3 → E) (hv : matrixReflectionForm σ H v v ≠ 0) |
| 71 | (hv' : matrixReflectionForm τ (H.map μ) (fun i => μ (v i)) (fun i => μ (v i)) ≠ 0) |
| 72 | (x : Fin 3 → E) : |
| 73 | (fun i => μ (Hermitian.Reflection.hermitianReflection σ (matrixReflectionForm σ H) v hv x i)) = |
| 74 | Hermitian.Reflection.hermitianReflection τ (matrixReflectionForm τ (H.map μ)) |
| 75 | (fun i => μ (v i)) hv' (fun i => μ (x i)) := by |
| 76 | ext i |
| 77 | change μ (x i - (2 * (matrixReflectionForm σ H x v / |
| 78 | matrixReflectionForm σ H v v)) * v i) = |
| 79 | μ (x i) - (2 * (matrixReflectionForm τ (H.map μ) (fun j => μ (x j)) |
| 80 | (fun j => μ (v j)) / matrixReflectionForm τ (H.map μ) |
| 81 | (fun j => μ (v j)) (fun j => μ (v j)))) * μ (v i) |
| 82 | simp only [map_sub, map_mul, map_ofNat, map_div₀] |
| 83 | rw [matrixReflectionForm_embedding σ τ μ hμ H x v, |
| 84 | matrixReflectionForm_embedding σ τ μ hμ H v v] |
| 85 | |
| 86 | theorem matrixReflection_toMatrix_embedding |
| 87 | (v : Fin 3 → E) (hv : matrixReflectionForm σ H v v ≠ 0) |
| 88 | (hv' : matrixReflectionForm τ (H.map μ) (fun i => μ (v i)) (fun i => μ (v i)) ≠ 0) : |
| 89 | (LinearMap.toMatrix' |
| 90 | (Hermitian.Reflection.hermitianReflection σ (matrixReflectionForm σ H) v hv).toLinearMap).map μ = |
| 91 | LinearMap.toMatrix' (Hermitian.Reflection.hermitianReflection τ (matrixReflectionForm τ (H.map μ)) |
| 92 | (fun i => μ (v i)) hv').toLinearMap := by |
| 93 | ext i j |
| 94 | change μ (Hermitian.Reflection.hermitianReflection σ (matrixReflectionForm σ H) v hv (Pi.single j 1) i) = |
| 95 | Hermitian.Reflection.hermitianReflection τ (matrixReflectionForm τ (H.map μ)) |
| 96 | (fun k => μ (v k)) hv' (Pi.single j 1) i |
| 97 | have hsingle : (fun k : Fin 3 => μ ((Pi.single j (1 : E) : Fin 3 → E) k)) = |
| 98 | (Pi.single j (1 : K) : Fin 3 → K) := by |
| 99 | ext k |
| 100 | by_cases h : k = j <;> simp [h] |
| 101 | have he := congrFun (matrixReflection_embedding_apply σ τ μ hμ H v hv hv' (Pi.single j 1)) i |
| 102 | exact he.trans (congrArg (fun w => Hermitian.Reflection.hermitianReflection τ (matrixReflectionForm τ (H.map μ)) |
| 103 | (fun k => μ (v k)) hv' w i) hsingle) |
| 104 | |
| 105 | /-- The matrix comparison controls the action on every target-field vector. -/ |
| 106 | theorem matrixReflection_embedding_mulVec |
| 107 | (v : Fin 3 → E) (hv : matrixReflectionForm σ H v v ≠ 0) |
| 108 | (hv' : matrixReflectionForm τ (H.map μ) (fun i => μ (v i)) (fun i => μ (v i)) ≠ 0) |
| 109 | (x : Fin 3 → K) : |
| 110 | ((LinearMap.toMatrix' |
| 111 | (Hermitian.Reflection.hermitianReflection σ (matrixReflectionForm σ H) v hv).toLinearMap).map μ).mulVec x = |
| 112 | Hermitian.Reflection.hermitianReflection τ (matrixReflectionForm τ (H.map μ)) (fun i => μ (v i)) hv' x := by |
| 113 | rw [matrixReflection_toMatrix_embedding σ τ μ hμ H v hv hv'] |
| 114 | exact LinearMap.toMatrix'_mulVec _ x |
| 115 | |
| 116 | theorem twoMatrixReflections_toMatrix_embedding |
| 117 | (v w : Fin 3 → E) |
| 118 | (hv : matrixReflectionForm σ H v v ≠ 0) (hw : matrixReflectionForm σ H w w ≠ 0) |
| 119 | (hv' : matrixReflectionForm τ (H.map μ) (fun i => μ (v i)) (fun i => μ (v i)) ≠ 0) |
| 120 | (hw' : matrixReflectionForm τ (H.map μ) (fun i => μ (w i)) (fun i => μ (w i)) ≠ 0) : |
| 121 | (LinearMap.toMatrix' |
| 122 | (ReflectionDeterminant.twoHermitianReflections σ (matrixReflectionForm σ H) v w hv hw).toLinearMap).map μ = |
| 123 | LinearMap.toMatrix' (ReflectionDeterminant.twoHermitianReflections τ (matrixReflectionForm τ (H.map μ)) |
| 124 | (fun i => μ (v i)) (fun i => μ (w i)) hv' hw').toLinearMap := by |
| 125 | change (LinearMap.toMatrix' |
| 126 | ((Hermitian.Reflection.hermitianReflection σ (matrixReflectionForm σ H) v hv).toLinearMap.comp |
| 127 | (Hermitian.Reflection.hermitianReflection σ (matrixReflectionForm σ H) w hw).toLinearMap)).map μ = |
| 128 | LinearMap.toMatrix' |
| 129 | ((Hermitian.Reflection.hermitianReflection τ (matrixReflectionForm τ (H.map μ)) |
| 130 | (fun i => μ (v i)) hv').toLinearMap.comp |
| 131 | (Hermitian.Reflection.hermitianReflection τ (matrixReflectionForm τ (H.map μ)) |
| 132 | (fun i => μ (w i)) hw').toLinearMap) |
| 133 | rw [LinearMap.toMatrix'_comp, LinearMap.toMatrix'_comp, Matrix.map_mul, |
| 134 | matrixReflection_toMatrix_embedding σ τ μ hμ H v hv hv', |
| 135 | matrixReflection_toMatrix_embedding σ τ μ hμ H w hw hw'] |
| 136 | |
| 137 | theorem twoMatrixReflections_embedding_mulVec |
| 138 | (v w : Fin 3 → E) |
| 139 | (hv : matrixReflectionForm σ H v v ≠ 0) (hw : matrixReflectionForm σ H w w ≠ 0) |
| 140 | (hv' : matrixReflectionForm τ (H.map μ) (fun i => μ (v i)) (fun i => μ (v i)) ≠ 0) |
| 141 | (hw' : matrixReflectionForm τ (H.map μ) (fun i => μ (w i)) (fun i => μ (w i)) ≠ 0) |
| 142 | (x : Fin 3 → K) : |
| 143 | ((LinearMap.toMatrix' |
| 144 | (ReflectionDeterminant.twoHermitianReflections σ (matrixReflectionForm σ H) v w hv hw).toLinearMap).map μ).mulVec x = |
| 145 | ReflectionDeterminant.twoHermitianReflections τ (matrixReflectionForm τ (H.map μ)) |
| 146 | (fun i => μ (v i)) (fun i => μ (w i)) hv' hw' x := by |
| 147 | rw [twoMatrixReflections_toMatrix_embedding σ τ μ hμ H v w hv hw hv' hw'] |
| 148 | exact LinearMap.toMatrix'_mulVec _ x |
| 149 | |
| 150 | end |
| 151 | |
| 152 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.MatrixReflectionEmbedding |