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.Geometry.ComplexBall.PrescribedSignsWeak |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.CM.TraceForm |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Pi |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Prod |
| 5 | |
| 6 | /-! # Prescribed Signs Period Transport -/ |
| 7 | |
| 8 | namespace OAI.Geometry.ComplexBall.PrescribedSignsPeriodTransport.Intrinsic |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | open scoped Classical TensorProduct |
| 15 | open OAI.AlgebraicGeometry.ComplexMultiplication.CM.TraceForm |
| 16 | |
| 17 | variable {E Place : Type*} [Field E] [Algebra ℚ E] [NumberField E] |
| 18 | |
| 19 | abbrev V (E : Type*) := Fin 3 → E |
| 20 | abbrev LineTensor (E : Type*) [Field E] := V E ⊗[E] E |
| 21 | abbrev SumTensor (E : Type*) [Field E] := V E ⊗[E] (E × E) |
| 22 | |
| 23 | def regroup (σ : Place → E →ₐ[ℚ] ℂ) |
| 24 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 25 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) : |
| 26 | (Fin 3 → (E →ₐ[ℚ] ℂ) → ℂ) ≃ₗ[ℂ] PrescribedSignsB.Ambient Place := by |
| 27 | let e : Place × Bool ≃ (E →ₐ[ℚ] ℂ) := Equiv.ofBijective _ hσ |
| 28 | refine { |
| 29 | toFun := fun x τ => (fun j => x j (σ τ), fun j => x j (AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ τ))) |
| 30 | invFun := fun x j ρ => if (e.symm ρ).2 then (x (e.symm ρ).1).2 j else (x (e.symm ρ).1).1 j |
| 31 | left_inv := ?_ |
| 32 | right_inv := ?_ |
| 33 | map_add' := fun _ _ => rfl |
| 34 | map_smul' := fun _ _ => rfl } |
| 35 | · intro x |
| 36 | funext j ρ |
| 37 | have he : (if (e.symm ρ).2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ (e.symm ρ).1) else σ (e.symm ρ).1) = ρ := e.apply_symm_apply ρ |
| 38 | dsimp only |
| 39 | split_ifs at he ⊢ with hb |
| 40 | · exact congrArg (x j) he |
| 41 | · exact congrArg (x j) he |
| 42 | · intro x |
| 43 | funext τ |
| 44 | have hfalse : e.symm (σ τ) = (τ, false) := e.symm_apply_apply (τ, false) |
| 45 | have htrue : e.symm (AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ τ)) = (τ, true) := e.symm_apply_apply (τ, true) |
| 46 | apply Prod.ext <;> funext j <;> simp [hfalse, htrue] |
| 47 | |
| 48 | def vectorCoordinates (σ : Place → E →ₐ[ℚ] ℂ) |
| 49 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 50 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) : |
| 51 | AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (V E) ≃ₗ[ℂ] PrescribedSignsB.Ambient Place := |
| 52 | (TensorProduct.piRight ℚ ℂ ℂ (fun _ : Fin 3 => E)) ≪≫ₗ |
| 53 | (LinearEquiv.piCongrRight (fun _ => AlgebraicGeometry.ComplexMultiplication.EmbeddingDecomposition.CM.fieldComplexificationEquiv E)) ≪≫ₗ regroup σ hσ |
| 54 | |
| 55 | lemma vectorCoordinates_tmul (σ : Place → E →ₐ[ℚ] ℂ) |
| 56 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 57 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 58 | (z : ℂ) (x : V E) : |
| 59 | vectorCoordinates σ hσ (z ⊗ₜ[ℚ] x) = z • PrescribedSignsB.embeddingCoordinates σ x := by |
| 60 | ext τ j <;> exact AlgebraicGeometry.ComplexMultiplication.EmbeddingDecomposition.CM.fieldComplexificationEquiv_tmul _ _ _ _ |
| 61 | |
| 62 | lemma vectorCoordinates_conjugation (σ : Place → E →ₐ[ℚ] ℂ) |
| 63 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 64 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 65 | (x : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (V E)) : |
| 66 | vectorCoordinates σ hσ (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation (V E) x) = |
| 67 | PrescribedSignsB.realConj (vectorCoordinates σ hσ x) := by |
| 68 | induction x using TensorProduct.inductionOn with |
| 69 | | add x y hx hy => |
| 70 | simp only [map_add, hx, hy] |
| 71 | exact (PrescribedSignsB.realConjLinearMap Place).map_add _ _ |>.symm |
| 72 | | tmul z x => |
| 73 | rw [AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation_tmul, vectorCoordinates_tmul, vectorCoordinates_tmul] |
| 74 | ext τ j <;> simp [PrescribedSignsB.realConj, PrescribedSignsB.embeddingCoordinates, AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding_apply] |
| 75 | |
| 76 | def lineReduction : LineTensor E ≃ₗ[E] V E := TensorProduct.rid E (V E) |
| 77 | |
| 78 | def lineCoordinates (σ : Place → E →ₐ[ℚ] ℂ) |
| 79 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 80 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) : |
| 81 | AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (LineTensor E) ≃ₗ[ℂ] PrescribedSignsB.Ambient Place := |
| 82 | LinearEquiv.baseChange ℚ ℂ _ _ ((lineReduction (E := E)).restrictScalars ℚ) ≪≫ₗ vectorCoordinates σ hσ |
| 83 | |
| 84 | lemma lineCoordinates_tmul (σ : Place → E →ₐ[ℚ] ℂ) |
| 85 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 86 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 87 | (z : ℂ) (v : V E) (w : E) : |
| 88 | lineCoordinates σ hσ (z ⊗ₜ[ℚ] (v ⊗ₜ[E] w)) = |
| 89 | z • PrescribedSignsB.embeddingCoordinates σ (w • v) := by |
| 90 | simp [lineCoordinates, lineReduction, vectorCoordinates_tmul] |
| 91 | |
| 92 | lemma lineCoordinates_conjugation (σ : Place → E →ₐ[ℚ] ℂ) |
| 93 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 94 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 95 | (x : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (LineTensor E)) : |
| 96 | lineCoordinates σ hσ (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation (LineTensor E) x) = |
| 97 | PrescribedSignsB.realConj (lineCoordinates σ hσ x) := by |
| 98 | exact congrArg (vectorCoordinates σ hσ) |
| 99 | (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.baseChange_coefficientConjugation ((lineReduction (E := E)).restrictScalars ℚ).toLinearMap x) |
| 100 | |>.trans (vectorCoordinates_conjugation σ hσ _) |
| 101 | |
| 102 | def sumReduction : SumTensor E ≃ₗ[E] LineTensor E × LineTensor E := |
| 103 | TensorProduct.prodRight E E (V E) E E |
| 104 | |
| 105 | def sumCoordinates (σ : Place → E →ₐ[ℚ] ℂ) |
| 106 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 107 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) : |
| 108 | AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (SumTensor E) ≃ₗ[ℂ] PrescribedSignsB.Ambient Place × PrescribedSignsB.Ambient Place := |
| 109 | LinearEquiv.baseChange ℚ ℂ _ _ ((sumReduction (E := E)).restrictScalars ℚ) ≪≫ₗ |
| 110 | TensorProduct.prodRight ℚ ℂ ℂ (LineTensor E) (LineTensor E) ≪≫ₗ |
| 111 | (lineCoordinates σ hσ).prodCongr (lineCoordinates σ hσ) |
| 112 | |
| 113 | lemma sumCoordinates_tmul (σ : Place → E →ₐ[ℚ] ℂ) |
| 114 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 115 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 116 | (z : ℂ) (v : V E) (w : E × E) : |
| 117 | sumCoordinates σ hσ (z ⊗ₜ[ℚ] (v ⊗ₜ[E] w)) = |
| 118 | (z • PrescribedSignsB.embeddingCoordinates σ (w.1 • v), z • PrescribedSignsB.embeddingCoordinates σ (w.2 • v)) := by |
| 119 | simp [sumCoordinates, sumReduction, lineCoordinates_tmul] |
| 120 | |
| 121 | lemma sumCoordinates_conjugation (σ : Place → E →ₐ[ℚ] ℂ) |
| 122 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 123 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 124 | (x : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (SumTensor E)) : |
| 125 | sumCoordinates σ hσ (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation (SumTensor E) x) = |
| 126 | (PrescribedSignsB.realConj (sumCoordinates σ hσ x).1, PrescribedSignsB.realConj (sumCoordinates σ hσ x).2) := by |
| 127 | induction x using TensorProduct.inductionOn with |
| 128 | | add x y hx hy => |
| 129 | simp only [map_add, hx, hy, Prod.fst_add, Prod.snd_add] |
| 130 | exact Prod.ext ((PrescribedSignsB.realConjLinearMap Place).map_add _ _).symm |
| 131 | ((PrescribedSignsB.realConjLinearMap Place).map_add _ _).symm |
| 132 | | tmul z v => |
| 133 | simp only [AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation_tmul, sumCoordinates, |
| 134 | LinearEquiv.trans_apply, LinearEquiv.baseChange_tmul, |
| 135 | TensorProduct.prodRight_tmul, LinearEquiv.prodCongr_apply] |
| 136 | apply Prod.ext |
| 137 | · simpa only [AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation_tmul] using |
| 138 | (lineCoordinates_conjugation σ hσ (z ⊗ₜ[ℚ] (((sumReduction (E := E)).restrictScalars ℚ) v).1)) |
| 139 | · simpa only [AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation_tmul] using |
| 140 | (lineCoordinates_conjugation σ hσ (z ⊗ₜ[ℚ] (((sumReduction (E := E)).restrictScalars ℚ) v).2)) |
| 141 | |
| 142 | end |
| 143 | |
| 144 | section |
| 145 | |
| 146 | open scoped Classical TensorProduct |
| 147 | open OAI.AlgebraicGeometry.ComplexMultiplication.CM.TraceForm |
| 148 | |
| 149 | variable {E Place : Type*} [Field E] [Algebra ℚ E] [NumberField E] |
| 150 | [NumberField.IsCMField E] [Fintype Place] |
| 151 | |
| 152 | def rationalVectorForm (δ a : E) (H : Matrix (Fin 3) (Fin 3) E) : |
| 153 | LinearMap.BilinForm ℚ (V E) := |
| 154 | ∑ j, ∑ k, (AlgebraicGeometry.ComplexMultiplication.CM.TraceForm.cmTracePairing E (δ * a * H j k)).flip.compl₁₂ |
| 155 | (LinearMap.proj j) (LinearMap.proj k) |
| 156 | |
| 157 | lemma rationalVectorForm_apply (δ a : E) (H : Matrix (Fin 3) (Fin 3) E) (x y : V E) : |
| 158 | rationalVectorForm δ a H x y = Algebra.trace ℚ E |
| 159 | (δ * a * (∑ j, ∑ k, x j * H j k * NumberField.IsCMField.complexConj E (y k))) := by |
| 160 | simp only [rationalVectorForm, LinearMap.sum_apply, LinearMap.compl₁₂_apply, |
| 161 | LinearMap.proj_apply, Finset.mul_sum, map_sum] |
| 162 | apply Finset.sum_congr rfl |
| 163 | intro j _ |
| 164 | apply Finset.sum_congr rfl |
| 165 | intro k _ |
| 166 | change Algebra.trace ℚ E (δ * a * H j k * NumberField.IsCMField.complexConj E (y k) * x j) = _ |
| 167 | congr 1 |
| 168 | ring |
| 169 | |
| 170 | def coordinateForm (B : Place → PrescribedSignsB.Bilin) (t : Place → ℂ) : |
| 171 | LinearMap.BilinForm ℂ (PrescribedSignsB.Ambient Place) := |
| 172 | ∑ τ, t τ • |
| 173 | ((B τ).compl₁₂ |
| 174 | ((LinearMap.fst ℂ PrescribedSignsB.Vec PrescribedSignsB.Vec).comp (LinearMap.proj τ)) |
| 175 | ((LinearMap.snd ℂ PrescribedSignsB.Vec PrescribedSignsB.Vec).comp (LinearMap.proj τ)) - |
| 176 | (B τ).flip.compl₁₂ |
| 177 | ((LinearMap.snd ℂ PrescribedSignsB.Vec PrescribedSignsB.Vec).comp (LinearMap.proj τ)) |
| 178 | ((LinearMap.fst ℂ PrescribedSignsB.Vec PrescribedSignsB.Vec).comp (LinearMap.proj τ))) |
| 179 | |
| 180 | lemma coordinateForm_apply (B : Place → PrescribedSignsB.Bilin) (t : Place → ℂ) (x y : PrescribedSignsB.Ambient Place) : |
| 181 | coordinateForm B t x y = PrescribedSignsB.tracePairing (fun τ u v => B τ u v) t x y := by |
| 182 | simp [coordinateForm, PrescribedSignsB.tracePairing] |
| 183 | |
| 184 | lemma vectorForm_transport (σ : Place → E →ₐ[ℚ] ℂ) |
| 185 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 186 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 187 | (δ a : E) (hδ : NumberField.IsCMField.complexConj E δ = -δ) |
| 188 | (ha : NumberField.IsCMField.complexConj E a = a) |
| 189 | (H : Matrix (Fin 3) (Fin 3) E) |
| 190 | (hH : ∀ j k, H j k = NumberField.IsCMField.complexConj E (H k j)) |
| 191 | (x y : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (V E)) : |
| 192 | (rationalVectorForm δ a H).baseChange ℂ x y = |
| 193 | coordinateForm (PrescribedSignsB.matrixB σ H) (fun τ => σ τ (δ * a)) |
| 194 | (vectorCoordinates σ hσ x) (vectorCoordinates σ hσ y) := by |
| 195 | induction x using TensorProduct.inductionOn with |
| 196 | | add x x' hx hx' => simp only [map_add, LinearMap.add_apply, hx, hx'] |
| 197 | | tmul z v => |
| 198 | induction y using TensorProduct.inductionOn with |
| 199 | | add y y' hy hy' => simp only [map_add, hy, hy'] |
| 200 | | tmul w v' => |
| 201 | rw [LinearMap.BilinForm.baseChange_tmul, vectorCoordinates_tmul, vectorCoordinates_tmul] |
| 202 | simp only [map_smul, LinearMap.smul_apply, smul_eq_mul] |
| 203 | rw [coordinateForm_apply] |
| 204 | have he : (fun τ u v => PrescribedSignsB.matrixB σ H τ u v) = PrescribedSignsB.localB σ H := by |
| 205 | funext τ u v |
| 206 | exact PrescribedSignsB.matrixB_apply σ H τ u v |
| 207 | rw [he, PrescribedSignsB.tracePairing_rational σ hσ δ a hδ ha H hH, rationalVectorForm_apply] |
| 208 | simp only [Algebra.smul_def] |
| 209 | change (↑(Algebra.trace ℚ E (δ * a * (∑ j, ∑ k, v j * H j k * NumberField.IsCMField.complexConj E (v' k)))) : ℂ) * (z * w) = _ |
| 210 | ring |
| 211 | |
| 212 | def rationalLineForm (δ a : E) (H : Matrix (Fin 3) (Fin 3) E) : |
| 213 | LinearMap.BilinForm ℚ (LineTensor E) := |
| 214 | (rationalVectorForm δ a H).compl₁₂ |
| 215 | ((lineReduction (E := E)).restrictScalars ℚ).toLinearMap |
| 216 | ((lineReduction (E := E)).restrictScalars ℚ).toLinearMap |
| 217 | |
| 218 | lemma baseChange_compl {X Y : Type*} [AddCommGroup X] [Module ℚ X] |
| 219 | [AddCommGroup Y] [Module ℚ Y] (B : LinearMap.BilinForm ℚ Y) (f : X →ₗ[ℚ] Y) |
| 220 | (x y : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X) : |
| 221 | LinearMap.BilinForm.baseChange ℂ (B.compl₁₂ f f) x y = |
| 222 | B.baseChange ℂ (f.baseChange ℂ x) (f.baseChange ℂ y) := by |
| 223 | induction x using TensorProduct.inductionOn with |
| 224 | | add x x' hx hx' => simp only [map_add, LinearMap.add_apply, hx, hx'] |
| 225 | | tmul z v => |
| 226 | induction y using TensorProduct.inductionOn with |
| 227 | | add y y' hy hy' => simp only [map_add, hy, hy'] |
| 228 | | tmul w v' => simp |
| 229 | |
| 230 | lemma lineForm_transport (σ : Place → E →ₐ[ℚ] ℂ) |
| 231 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 232 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 233 | (δ a : E) (hδ : NumberField.IsCMField.complexConj E δ = -δ) |
| 234 | (ha : NumberField.IsCMField.complexConj E a = a) |
| 235 | (H : Matrix (Fin 3) (Fin 3) E) |
| 236 | (hH : ∀ j k, H j k = NumberField.IsCMField.complexConj E (H k j)) |
| 237 | (x y : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (LineTensor E)) : |
| 238 | (rationalLineForm δ a H).baseChange ℂ x y = |
| 239 | coordinateForm (PrescribedSignsB.matrixB σ H) (fun τ => σ τ (δ * a)) |
| 240 | (lineCoordinates σ hσ x) (lineCoordinates σ hσ y) := by |
| 241 | rw [rationalLineForm, baseChange_compl] |
| 242 | exact vectorForm_transport σ hσ δ a hδ ha H hH _ _ |
| 243 | |
| 244 | lemma rationalLineForm_tmul (δ a : E) (H : Matrix (Fin 3) (Fin 3) E) |
| 245 | (v v' : V E) (w w' : E) : |
| 246 | rationalLineForm δ a H (v ⊗ₜ[E] w) (v' ⊗ₜ[E] w') = |
| 247 | Algebra.trace ℚ E (δ * |
| 248 | (∑ j, ∑ k, v j * H j k * NumberField.IsCMField.complexConj E (v' k)) * |
| 249 | (a * w * NumberField.IsCMField.complexConj E w')) := by |
| 250 | rw [rationalLineForm, LinearMap.compl₁₂_apply, rationalVectorForm_apply] |
| 251 | change Algebra.trace ℚ E (δ * a * (∑ j, ∑ k, (w * v j) * H j k * NumberField.IsCMField.complexConj E (w' * v' k))) = _ |
| 252 | congr 1 |
| 253 | simp only [map_mul] |
| 254 | simp only [Finset.mul_sum, Finset.sum_mul] |
| 255 | apply Finset.sum_congr rfl |
| 256 | intro j _ |
| 257 | apply Finset.sum_congr rfl |
| 258 | intro k _ |
| 259 | ring |
| 260 | |
| 261 | end |
| 262 | |
| 263 | section |
| 264 | |
| 265 | open scoped Classical TensorProduct |
| 266 | open OAI.AlgebraicGeometry.ComplexMultiplication.CM.TraceForm |
| 267 | |
| 268 | lemma positivePeriod_transport {X Y : Type*} |
| 269 | [AddCommGroup X] [Module ℂ X] [AddCommGroup Y] [Module ℂ Y] |
| 270 | (e : X ≃ₗ[ℂ] Y) (r : ℕ) (ψ : Y → Y → ℂ) (κ : Y → Y) |
| 271 | (κX : X → X) (hc : ∀ x, e (κX x) = κ (e x)) |
| 272 | (P : Submodule ℂ Y) (h : PrescribedSignsB.PositivePeriod r ψ κ P) : |
| 273 | PrescribedSignsB.PositivePeriod r (fun x y => ψ (e x) (e y)) κX (P.comap e.toLinearMap) := by |
| 274 | have hm : (P.comap e.toLinearMap).map e.toLinearMap = P := by |
| 275 | exact Submodule.map_comap_eq_of_surjective e.surjective P |
| 276 | refine ⟨?_, ?_, ?_, ?_, ?_⟩ |
| 277 | · exact (e.ofSubmodule' P).finrank_eq.trans h.1 |
| 278 | · exact (Submodule.Quotient.equiv _ _ e hm).finrank_eq.trans h.2.1 |
| 279 | · intro u hu v hv |
| 280 | exact h.2.2.1 (e u) hu (e v) hv |
| 281 | · intro u hu hne |
| 282 | dsimp only |
| 283 | rw [hc] |
| 284 | exact h.2.2.2.1 (e u) hu (fun he => hne (e.injective (he.trans e.map_zero.symm))) |
| 285 | · intro x |
| 286 | obtain ⟨uv, huv, huniq⟩ := h.2.2.2.2 (e x) |
| 287 | refine ⟨(e.symm uv.1, e.symm uv.2), ⟨?_, ?_, ?_⟩, ?_⟩ |
| 288 | · simpa only [Submodule.mem_comap, LinearEquiv.coe_coe, e.apply_symm_apply] using huv.1 |
| 289 | · simpa only [Submodule.mem_comap, LinearEquiv.coe_coe, e.apply_symm_apply] using huv.2.1 |
| 290 | · apply e.injective |
| 291 | simpa only [map_add, hc, e.apply_symm_apply] using huv.2.2 |
| 292 | · intro ab hab |
| 293 | have he : (e ab.1, e ab.2) = uv := huniq _ ⟨hab.1, hab.2.1, by |
| 294 | rw [hab.2.2, map_add, hc]⟩ |
| 295 | exact Prod.ext (e.eq_symm_apply.mpr (congrArg Prod.fst he)) |
| 296 | (e.eq_symm_apply.mpr (congrArg Prod.snd he)) |
| 297 | |
| 298 | lemma linePositivePeriod_transport |
| 299 | {E Place : Type*} [Field E] [Algebra ℚ E] [NumberField E] |
| 300 | [NumberField.IsCMField E] [Fintype Place] |
| 301 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 302 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 303 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 304 | (δ a : E) (hδ : NumberField.IsCMField.complexConj E δ = -δ) |
| 305 | (ha : NumberField.IsCMField.complexConj E a = a) |
| 306 | (H : Matrix (Fin 3) (Fin 3) E) |
| 307 | (hH : ∀ j k, H j k = NumberField.IsCMField.complexConj E (H k j)) |
| 308 | (r : ℕ) (P : Submodule ℂ (PrescribedSignsB.Ambient Place)) |
| 309 | (hp : PrescribedSignsB.PositivePeriod r |
| 310 | (fun x y => coordinateForm (PrescribedSignsB.matrixB σ H) (fun τ => σ τ (δ * a)) x y) |
| 311 | PrescribedSignsB.realConj P) : |
| 312 | PrescribedSignsB.PositivePeriod r (fun x y => (rationalLineForm δ a H).baseChange ℂ x y) |
| 313 | (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation (LineTensor E)) |
| 314 | (P.comap (lineCoordinates σ hσ).toLinearMap) := by |
| 315 | have ht := positivePeriod_transport (lineCoordinates σ hσ) r _ PrescribedSignsB.realConj |
| 316 | (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation (LineTensor E)) (lineCoordinates_conjugation σ hσ) P hp |
| 317 | have he : (fun x y => (rationalLineForm δ a H).baseChange ℂ x y) = |
| 318 | (fun x y => coordinateForm (PrescribedSignsB.matrixB σ H) (fun τ => σ τ (δ * a)) |
| 319 | (lineCoordinates σ hσ x) (lineCoordinates σ hσ y)) := by |
| 320 | funext x y |
| 321 | exact lineForm_transport σ hσ δ a hδ ha H hH x y |
| 322 | rw [he] |
| 323 | exact ht |
| 324 | |
| 325 | end |
| 326 | |
| 327 | section |
| 328 | |
| 329 | open scoped Classical |
| 330 | |
| 331 | /-- The homology complex structure acts by `-i` on the filtration and by |
| 332 | `i` on its conjugate. Its Riemann form therefore has the opposite sign to |
| 333 | our positive-period trace form. -/ |
| 334 | lemma riemannForm_sign {Y : Type*} [AddCommGroup Y] [Module ℂ Y] |
| 335 | (ψ : LinearMap.BilinForm ℂ Y) (u v : Y) |
| 336 | (hu : ψ u u = 0) (hv : ψ v v = 0) (hskew : ψ v u = -ψ u v) |
| 337 | (hpos : 0 < (ψ u v / Complex.I).re) : |
| 338 | 0 < (-ψ (u + v) ((-Complex.I) • u + Complex.I • v)).re := by |
| 339 | have he : -ψ (u + v) ((-Complex.I) • u + Complex.I • v) = |
| 340 | 2 * (ψ u v / Complex.I) := by |
| 341 | simp only [map_add, LinearMap.add_apply, map_smul, hu, hv, hskew, smul_eq_mul] |
| 342 | simp only [div_eq_mul_inv, Complex.inv_I] |
| 343 | ring |
| 344 | rw [he] |
| 345 | simpa using mul_pos (by norm_num : (0 : ℝ) < 2) hpos |
| 346 | |
| 347 | lemma homologyComplexStructure_quotient {Y : Type*} |
| 348 | [AddCommGroup Y] [Module ℂ Y] (P : Submodule ℂ Y) |
| 349 | (u v : Y) (hu : u ∈ P) : |
| 350 | P.mkQ ((-Complex.I) • u + Complex.I • v) = Complex.I • P.mkQ (u + v) := by |
| 351 | have hz : P.mkQ u = 0 := (Submodule.Quotient.mk_eq_zero P).mpr hu |
| 352 | simp only [map_add, map_smul, hz, smul_zero, zero_add] |
| 353 | |
| 354 | end |
| 355 | |
| 356 | open scoped Classical TensorProduct |
| 357 | open OAI.AlgebraicGeometry.ComplexMultiplication.CM.TraceForm |
| 358 | |
| 359 | lemma baseChange_conjugation {X : Type*} [AddCommGroup X] [Module ℚ X] |
| 360 | (B : LinearMap.BilinForm ℚ X) (x y : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X) : |
| 361 | B.baseChange ℂ (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X x) (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X y) = |
| 362 | star (B.baseChange ℂ x y) := by |
| 363 | induction x using TensorProduct.inductionOn with |
| 364 | | add x x' hx hx' => simp only [map_add, LinearMap.add_apply, hx, hx', star_add] |
| 365 | | tmul z v => |
| 366 | induction y using TensorProduct.inductionOn with |
| 367 | | add y y' hy hy' => simp only [map_add, hy, hy', star_add] |
| 368 | | tmul w v' => simp [Algebra.smul_def] |
| 369 | |
| 370 | lemma coordinateForm_skew {Place : Type*} [Fintype Place] |
| 371 | (B : Place → PrescribedSignsB.Bilin) (t : Place → ℂ) (x y : PrescribedSignsB.Ambient Place) : |
| 372 | coordinateForm B t y x = -coordinateForm B t x y := by |
| 373 | simp only [coordinateForm_apply, PrescribedSignsB.tracePairing, ← Finset.sum_neg_distrib] |
| 374 | apply Finset.sum_congr rfl |
| 375 | intro τ _ |
| 376 | ring |
| 377 | |
| 378 | /-- For a real vector written as `u + conjugate u`, the quotient complex |
| 379 | structure has the sign prescribed by `homologyComplexStructure_quotient`. |
| 380 | The negative rational trace form is strictly positive in that direction. -/ |
| 381 | lemma rational_riemann_positive {X : Type*} [AddCommGroup X] [Module ℚ X] |
| 382 | (B : LinearMap.BilinForm ℚ X) |
| 383 | (hskew : ∀ x y : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X, B.baseChange ℂ y x = -B.baseChange ℂ x y) |
| 384 | (r : ℕ) (P : Submodule ℂ (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X)) |
| 385 | (hp : PrescribedSignsB.PositivePeriod r (fun x y => B.baseChange ℂ x y) (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X) P) |
| 386 | (u : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X) (hu : u ∈ P) (hne : u ≠ 0) : |
| 387 | let v := AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X u |
| 388 | 0 < (-B.baseChange ℂ (u + v) ((-Complex.I) • u + Complex.I • v)).re := by |
| 389 | apply riemannForm_sign (B.baseChange ℂ) u (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X u) |
| 390 | · exact hp.2.2.1 u hu u hu |
| 391 | · have huu : B.baseChange ℂ u u = 0 := hp.2.2.1 u hu u hu |
| 392 | rw [baseChange_conjugation, huu, star_zero] |
| 393 | · exact hskew _ _ |
| 394 | · exact (hp.2.2.2.1 u hu hne).2 |
| 395 | |
| 396 | lemma realVector_period_split {X : Type*} [AddCommGroup X] [Module ℚ X] |
| 397 | (ψ : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X → AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X → ℂ) |
| 398 | (r : ℕ) (P : Submodule ℂ (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X)) |
| 399 | (hp : PrescribedSignsB.PositivePeriod r ψ (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X) P) |
| 400 | (x : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X) (hx : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X x = x) (hne : x ≠ 0) : |
| 401 | ∃ u ∈ P, u ≠ 0 ∧ x = u + AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X u := by |
| 402 | obtain ⟨⟨u,v⟩, ⟨hu,hv,he⟩, hun⟩ := hp.2.2.2.2 x |
| 403 | have hs : x = v + AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X u := by |
| 404 | calc |
| 405 | x = AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X x := hx.symm |
| 406 | _ = AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X (u + AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X v) := congrArg _ he |
| 407 | _ = v + AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X u := by |
| 408 | rw [map_add, AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation_involutive, add_comm] |
| 409 | have heq : (v,u) = (u,v) := hun _ ⟨hv, hu, hs⟩ |
| 410 | have hvu : v = u := congrArg Prod.fst heq |
| 411 | subst v |
| 412 | refine ⟨u, hu, ?_, he⟩ |
| 413 | intro hz |
| 414 | apply hne |
| 415 | simpa only [hz, map_zero, add_zero] using he |
| 416 | |
| 417 | lemma homologyJ_real {X : Type*} [AddCommGroup X] [Module ℚ X] |
| 418 | (u : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X) : |
| 419 | AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X ((-Complex.I) • u + Complex.I • AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X u) = |
| 420 | (-Complex.I) • u + Complex.I • AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X u := by |
| 421 | simp only [map_add, AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.coefficientConjugation_smul, star_neg, Complex.star_def, |
| 422 | Complex.conj_I, neg_neg, AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation_involutive] |
| 423 | exact add_comm _ _ |
| 424 | |
| 425 | lemma rationalRiemann_on_real {X : Type*} [AddCommGroup X] [Module ℚ X] |
| 426 | (B : LinearMap.BilinForm ℚ X) |
| 427 | (hskew : ∀ x y : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X, B.baseChange ℂ y x = -B.baseChange ℂ x y) |
| 428 | (r : ℕ) (P : Submodule ℂ (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X)) |
| 429 | (hp : PrescribedSignsB.PositivePeriod r (fun x y => B.baseChange ℂ x y) (AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X) P) |
| 430 | (x : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X) (hx : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X x = x) (hne : x ≠ 0) : |
| 431 | ∃ j : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification X, AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X j = j ∧ |
| 432 | P.mkQ j = Complex.I • P.mkQ x ∧ 0 < (-B.baseChange ℂ x j).re := by |
| 433 | obtain ⟨u, hu, hune, rfl⟩ := realVector_period_split _ r P hp x hx hne |
| 434 | exact ⟨(-Complex.I) • u + Complex.I • AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.coefficientConjugation X u, |
| 435 | homologyJ_real u, homologyComplexStructure_quotient P u _ hu, |
| 436 | rational_riemann_positive B hskew r P hp u hu hune⟩ |
| 437 | |
| 438 | lemma lineForm_skew |
| 439 | {E Place : Type*} [Field E] [Algebra ℚ E] [NumberField E] |
| 440 | [NumberField.IsCMField E] [Fintype Place] |
| 441 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 442 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 443 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 444 | (δ a : E) (hδ : NumberField.IsCMField.complexConj E δ = -δ) |
| 445 | (ha : NumberField.IsCMField.complexConj E a = a) |
| 446 | (H : Matrix (Fin 3) (Fin 3) E) |
| 447 | (hH : ∀ j k, H j k = NumberField.IsCMField.complexConj E (H k j)) |
| 448 | (x y : AlgebraicGeometry.ComplexMultiplication.WeightOne.CM.Complexification (LineTensor E)) : |
| 449 | (rationalLineForm δ a H).baseChange ℂ y x = |
| 450 | -(rationalLineForm δ a H).baseChange ℂ x y := by |
| 451 | rw [lineForm_transport σ hσ δ a hδ ha H hH y x, |
| 452 | lineForm_transport σ hσ δ a hδ ha H hH x y] |
| 453 | exact coordinateForm_skew _ _ _ _ |
| 454 | |
| 455 | end |
| 456 | |
| 457 | end OAI.Geometry.ComplexBall.PrescribedSignsPeriodTransport.Intrinsic |