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.RepresentationTheory.Hecke.RadialDilation.FiniteConjugation |
| 2 | import OAI.RepresentationTheory.Hecke.RadialDilation.FiniteIntegralGenerators |
| 3 | |
| 4 | /-! # Finite Masked Generators -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Hecke.RadialDilation.FiniteMaskedGenerators.Realization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Retain a set of finite places and put the identity at all other places. -/ |
| 13 | |
| 14 | open scoped Classical _root_.Matrix |
| 15 | open _root_.Matrix IsDedekindDomain IsDedekindDomain.HeightOneSpectrum |
| 16 | |
| 17 | def finitePlaceIdempotent (S : Set (HeightOneSpectrum ℤ)) : Theta.PoissonAutomorphyNormalizationData.AQf := |
| 18 | (Theta.IntegralAdeles.PoissonAutomorphyConstruction.integralProductHomeomorph (fun v => if v ∈ S then 1 else 0)).val |
| 19 | |
| 20 | theorem finitePlaceIdempotent_eval (S : Set (HeightOneSpectrum ℤ)) (v : HeightOneSpectrum ℤ) : |
| 21 | FiniteSchur.Realization.finitePrimeEval v (finitePlaceIdempotent S) = if v ∈ S then 1 else 0 := by |
| 22 | change (↑(if v ∈ S then (1 : v.adicCompletionIntegers ℚ) else 0) : v.adicCompletion ℚ) = _ |
| 23 | by_cases hv : v ∈ S <;> simp [hv] |
| 24 | |
| 25 | def finitePlaceMask (S : Set (HeightOneSpectrum ℤ)) (a : Theta.PoissonAutomorphyNormalizationData.AQf) : Theta.PoissonAutomorphyNormalizationData.AQf := |
| 26 | finitePlaceIdempotent S * a |
| 27 | |
| 28 | theorem finitePlaceMask_eval (S : Set (HeightOneSpectrum ℤ)) (v : HeightOneSpectrum ℤ) (a : Theta.PoissonAutomorphyNormalizationData.AQf) : |
| 29 | FiniteSchur.Realization.finitePrimeEval v (finitePlaceMask S a) = if v ∈ S then FiniteSchur.Realization.finitePrimeEval v a else 0 := by |
| 30 | unfold finitePlaceMask |
| 31 | rw [map_mul, finitePlaceIdempotent_eval] |
| 32 | by_cases hv : v ∈ S <;> simp [hv] |
| 33 | |
| 34 | theorem finitePlaceMask_integral {S : Set (HeightOneSpectrum ℤ)} {a : Theta.PoissonAutomorphyNormalizationData.AQf} |
| 35 | (ha : ∀ v ∈ S, a v ∈ v.adicCompletionIntegers ℚ) : finitePlaceMask S a ∈ Theta.AdelicSupport.PoissonAutomorphyConstruction.integralAdele := by |
| 36 | intro v |
| 37 | change FiniteSchur.Realization.finitePrimeEval v (finitePlaceMask S a) ∈ v.adicCompletionIntegers ℚ |
| 38 | rw [finitePlaceMask_eval] |
| 39 | by_cases hv : v ∈ S |
| 40 | · rw [ite_eq_left hv] |
| 41 | exact ha v hv |
| 42 | · simp only [ite_eq_right hv, zero_mem] |
| 43 | |
| 44 | variable {κ : Type*} [DecidableEq κ] |
| 45 | |
| 46 | def finiteMaskMatrix (S : Set (HeightOneSpectrum ℤ)) (A : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf) : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf := |
| 47 | fun i j => (1 : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf) i j + finitePlaceMask S (A i j - (1 : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf) i j) |
| 48 | |
| 49 | theorem finiteMaskMatrix_eval (S : Set (HeightOneSpectrum ℤ)) (A : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf) |
| 50 | (v : HeightOneSpectrum ℤ) : |
| 51 | (finiteMaskMatrix S A).map (FiniteSchur.Realization.finitePrimeEval v) = if v ∈ S then A.map (FiniteSchur.Realization.finitePrimeEval v) else 1 := by |
| 52 | apply Matrix.ext |
| 53 | intro i j |
| 54 | change FiniteSchur.Realization.finitePrimeEval v ((1 : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf) i j + |
| 55 | finitePlaceMask S (A i j - (1 : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf) i j)) = _ |
| 56 | rw [map_add, finitePlaceMask_eval, map_sub, FiniteConjugation.Realization.finitePrimeEval_matrix_one] |
| 57 | by_cases hv : v ∈ S <;> simp [hv] |
| 58 | |
| 59 | theorem finiteMaskMatrix_one (S : Set (HeightOneSpectrum ℤ)) : |
| 60 | finiteMaskMatrix S (1 : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf) = 1 := by |
| 61 | apply FiniteConjugation.Realization.finiteMatrix_ext |
| 62 | intro v |
| 63 | rw [finiteMaskMatrix_eval] |
| 64 | by_cases hv : v ∈ S <;> simp [hv] |
| 65 | |
| 66 | variable [Fintype κ] |
| 67 | |
| 68 | theorem finiteMaskMatrix_mul (S : Set (HeightOneSpectrum ℤ)) (A B : Matrix κ κ Theta.PoissonAutomorphyNormalizationData.AQf) : |
| 69 | finiteMaskMatrix S (A * B) = finiteMaskMatrix S A * finiteMaskMatrix S B := by |
| 70 | apply FiniteConjugation.Realization.finiteMatrix_ext |
| 71 | intro v |
| 72 | rw [Matrix.map_mul, finiteMaskMatrix_eval, finiteMaskMatrix_eval, finiteMaskMatrix_eval, |
| 73 | Matrix.map_mul] |
| 74 | by_cases hv : v ∈ S <;> simp [hv] |
| 75 | |
| 76 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 77 | |
| 78 | theorem finiteMaskMatrix_symplectic (S : Set (HeightOneSpectrum ℤ)) (g : Theta.PoissonAutomorphyNormalizationData.Sp ι Theta.PoissonAutomorphyNormalizationData.AQf) : |
| 79 | finiteMaskMatrix S g.val ∈ Matrix.symplecticGroup ι Theta.PoissonAutomorphyNormalizationData.AQf := by |
| 80 | apply SymplecticGroup.mem_iff'.mpr |
| 81 | apply FiniteConjugation.Realization.finiteMatrix_ext |
| 82 | intro v |
| 83 | simp only [Matrix.map_mul, Matrix.transpose_map, Matrix.map_J, finiteMaskMatrix_eval] |
| 84 | by_cases hv : v ∈ S |
| 85 | · simp only [ite_eq_left hv] |
| 86 | exact SymplecticGroup.mem_iff'.mp (SymplecticGroup.map_mem g.property (FiniteSchur.Realization.finitePrimeEval v)) |
| 87 | · simp only [ite_eq_right hv, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] |
| 88 | |
| 89 | def finiteMaskSymplectic (S : Set (HeightOneSpectrum ℤ)) : Theta.PoissonAutomorphyNormalizationData.Sp ι Theta.PoissonAutomorphyNormalizationData.AQf →* Theta.PoissonAutomorphyNormalizationData.Sp ι Theta.PoissonAutomorphyNormalizationData.AQf where |
| 90 | toFun g := ⟨finiteMaskMatrix S g.val, finiteMaskMatrix_symplectic S g⟩ |
| 91 | map_one' := Subtype.ext (finiteMaskMatrix_one S) |
| 92 | map_mul' g h := Subtype.ext (finiteMaskMatrix_mul S g.val h.val) |
| 93 | |
| 94 | theorem finiteMaskSymplectic_projection (S : Set (HeightOneSpectrum ℤ)) (g : Theta.PoissonAutomorphyNormalizationData.Sp ι Theta.PoissonAutomorphyNormalizationData.AQf) |
| 95 | (v : HeightOneSpectrum ℤ) : |
| 96 | Theta.PoissonAutomorphyNormalizationData.mapSp (FiniteSchur.Realization.finitePrimeEval v) (finiteMaskSymplectic S g) = |
| 97 | if v ∈ S then Theta.PoissonAutomorphyNormalizationData.mapSp (FiniteSchur.Realization.finitePrimeEval v) g else 1 := by |
| 98 | apply Subtype.ext |
| 99 | change (finiteMaskMatrix S g.val).map (FiniteSchur.Realization.finitePrimeEval v) = _ |
| 100 | rw [finiteMaskMatrix_eval] |
| 101 | by_cases hv : v ∈ S <;> simp [hv, Theta.PoissonAutomorphyNormalizationData.mapSp] |
| 102 | |
| 103 | theorem finiteMaskSymplectic_partition (S : Set (HeightOneSpectrum ℤ)) (g : Theta.PoissonAutomorphyNormalizationData.Sp ι Theta.PoissonAutomorphyNormalizationData.AQf) : |
| 104 | finiteMaskSymplectic S g * finiteMaskSymplectic Sᶜ g = g := by |
| 105 | apply Subtype.ext |
| 106 | apply FiniteConjugation.Realization.finiteMatrix_ext |
| 107 | intro v |
| 108 | change (Theta.PoissonAutomorphyNormalizationData.mapSp (FiniteSchur.Realization.finitePrimeEval v) (finiteMaskSymplectic S g * finiteMaskSymplectic Sᶜ g)).val = _ |
| 109 | rw [map_mul, finiteMaskSymplectic_projection, finiteMaskSymplectic_projection] |
| 110 | by_cases hv : v ∈ S <;> simp [hv, Theta.PoissonAutomorphyNormalizationData.mapSp] |
| 111 | |
| 112 | end |
| 113 | |
| 114 | /-! A finite exceptional set makes retained unipotent coefficients integral. -/ |
| 115 | |
| 116 | open scoped Classical _root_.Matrix |
| 117 | open _root_.Matrix Filter IsDedekindDomain IsDedekindDomain.HeightOneSpectrum |
| 118 | |
| 119 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 120 | |
| 121 | theorem map_ringUpper {K L : Type*} [CommRing K] [CommRing L] (f : K →+* L) |
| 122 | (B : Matrix ι ι K) (hB : B.IsSymm) : |
| 123 | Theta.PoissonAutomorphyNormalizationData.mapSp f (QuadraticCommutator.Realization.ringUpper B hB) = QuadraticCommutator.Realization.ringUpper (B.map f) (hB.map f) := by |
| 124 | apply Subtype.ext |
| 125 | change (Matrix.fromBlocks (1 : Matrix ι ι K) B 0 1).map f = |
| 126 | Matrix.fromBlocks 1 (B.map f) 0 1 |
| 127 | simp [Matrix.fromBlocks_map] |
| 128 | |
| 129 | theorem map_ringLower {K L : Type*} [CommRing K] [CommRing L] (f : K →+* L) |
| 130 | (B : Matrix ι ι K) (hB : B.IsSymm) : |
| 131 | Theta.PoissonAutomorphyNormalizationData.mapSp f (RingWeyl.Realization.ringLower K B hB) = RingWeyl.Realization.ringLower L (B.map f) (hB.map f) := by |
| 132 | apply Subtype.ext |
| 133 | change (Matrix.fromBlocks (1 : Matrix ι ι K) 0 B 1).map f = |
| 134 | Matrix.fromBlocks 1 0 (B.map f) 1 |
| 135 | simp [Matrix.fromBlocks_map] |
| 136 | |
| 137 | def finiteMaskCoefficients (S : Set (HeightOneSpectrum ℤ)) (B : Matrix ι ι Theta.PoissonAutomorphyNormalizationData.AQf) : Matrix ι ι Theta.PoissonAutomorphyNormalizationData.AQf := |
| 138 | fun i j => finitePlaceMask S (B i j) |
| 139 | |
| 140 | omit [Fintype ι] [DecidableEq ι] in |
| 141 | theorem finiteMaskCoefficients_symmetric (S : Set (HeightOneSpectrum ℤ)) |
| 142 | (B : Matrix ι ι Theta.PoissonAutomorphyNormalizationData.AQf) (hB : B.IsSymm) : (finiteMaskCoefficients S B).IsSymm := by |
| 143 | apply Matrix.IsSymm.ext |
| 144 | intro i j |
| 145 | exact congrArg (finitePlaceMask S) (hB.apply i j) |
| 146 | |
| 147 | theorem finiteMaskSymplectic_upper (S : Set (HeightOneSpectrum ℤ)) |
| 148 | (B : Matrix ι ι Theta.PoissonAutomorphyNormalizationData.AQf) (hB : B.IsSymm) : |
| 149 | finiteMaskSymplectic S (QuadraticCommutator.Realization.ringUpper B hB) = |
| 150 | QuadraticCommutator.Realization.ringUpper (finiteMaskCoefficients S B) (finiteMaskCoefficients_symmetric S B hB) := by |
| 151 | apply Subtype.ext |
| 152 | apply Matrix.ext |
| 153 | intro i j |
| 154 | cases i <;> cases j <;> |
| 155 | simp [finiteMaskSymplectic, finiteMaskMatrix, QuadraticCommutator.Realization.ringUpper, finiteMaskCoefficients, |
| 156 | finitePlaceMask, Matrix.fromBlocks, Matrix.one_apply] |
| 157 | |
| 158 | theorem finiteMaskSymplectic_lower (S : Set (HeightOneSpectrum ℤ)) |
| 159 | (B : Matrix ι ι Theta.PoissonAutomorphyNormalizationData.AQf) (hB : B.IsSymm) : |
| 160 | finiteMaskSymplectic S (RingWeyl.Realization.ringLower Theta.PoissonAutomorphyNormalizationData.AQf B hB) = |
| 161 | RingWeyl.Realization.ringLower Theta.PoissonAutomorphyNormalizationData.AQf (finiteMaskCoefficients S B) (finiteMaskCoefficients_symmetric S B hB) := by |
| 162 | apply Subtype.ext |
| 163 | apply Matrix.ext |
| 164 | intro i j |
| 165 | cases i <;> cases j <;> |
| 166 | simp [finiteMaskSymplectic, finiteMaskMatrix, RingWeyl.Realization.ringLower, finiteMaskCoefficients, |
| 167 | finitePlaceMask, Matrix.fromBlocks, Matrix.one_apply] |
| 168 | |
| 169 | omit [DecidableEq ι] in |
| 170 | theorem exists_finite_mask_integral_coefficients (B : Matrix ι ι Theta.PoissonAutomorphyNormalizationData.AQf) : |
| 171 | ∃ S : Finset (HeightOneSpectrum ℤ), ∀ T : Finset (HeightOneSpectrum ℤ), S ⊆ T → |
| 172 | FiniteIntegralQuadratic.Realization.HalfIntegralMatrix (finiteMaskCoefficients (T : Set (HeightOneSpectrum ℤ))ᶜ B) := by |
| 173 | have hevent : ∀ᶠ v : HeightOneSpectrum ℤ in cofinite, |
| 174 | ∀ i j, (algebraMap ℚ Theta.PoissonAutomorphyNormalizationData.AQf (1 / 2) * B i j) v ∈ v.adicCompletionIntegers ℚ := by |
| 175 | apply Filter.eventually_all.mpr |
| 176 | intro i |
| 177 | apply Filter.eventually_all.mpr |
| 178 | intro j |
| 179 | exact (algebraMap ℚ Theta.PoissonAutomorphyNormalizationData.AQf (1 / 2) * B i j).property |
| 180 | have hfinite := Filter.eventually_cofinite.mp hevent |
| 181 | refine ⟨hfinite.toFinset, ?_⟩ |
| 182 | intro T hST i j |
| 183 | have heq : algebraMap ℚ Theta.PoissonAutomorphyNormalizationData.AQf (1 / 2) * |
| 184 | finiteMaskCoefficients (T : Set (HeightOneSpectrum ℤ))ᶜ B i j = |
| 185 | finitePlaceMask (T : Set (HeightOneSpectrum ℤ))ᶜ (algebraMap ℚ Theta.PoissonAutomorphyNormalizationData.AQf (1 / 2) * B i j) := by |
| 186 | unfold finiteMaskCoefficients finitePlaceMask |
| 187 | ring |
| 188 | rw [heq] |
| 189 | apply finitePlaceMask_integral |
| 190 | intro v hv |
| 191 | have hvS : v ∉ hfinite.toFinset := fun h => hv (hST h) |
| 192 | have hall : ∀ i j, (algebraMap ℚ Theta.PoissonAutomorphyNormalizationData.AQf (1 / 2) * B i j) v ∈ v.adicCompletionIntegers ℚ := by |
| 193 | simpa only [Set.Finite.mem_toFinset, Set.mem_ofPred_eq, not_not] using hvS |
| 194 | exact hall i j |
| 195 | |
| 196 | end |
| 197 | |
| 198 | end OAI.RepresentationTheory.Hecke.RadialDilation.FiniteMaskedGenerators.Realization |