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.Intrinsic.RealPeriodMaps |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.MixedFromComplexComponents |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Pi |
| 5 | |
| 6 | /-! # Mixed Period Coordinates -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Intrinsic.MixedPeriodCoordinates |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The original rational period marking extends to an actual real |
| 13 | equivalence with the mixed embedding space. Arbitrary complex maps at the |
| 14 | selected places therefore act on the native real tangent space, with an |
| 15 | exact comparison on every rational period. -/ |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.AbelianUniformizationEq.Constructions.AbelianUniformization |
| 18 | open _root_.NumberField _root_.NumberField.mixedEmbedding |
| 19 | open scoped TensorProduct _root_.NumberField |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Intrinsic.RealPeriodMaps.IntrinsicRationalPeriods |
| 22 | |
| 23 | variable (E : Type) [Field E] [NumberField E] [aE : Algebra ℚ E] |
| 24 | |
| 25 | def mixedScalarRealification : ℝ ⊗[ℚ] E ≃ₗ[ℝ] mixedSpace E := by |
| 26 | cases Subsingleton.elim aE (DivisionRing.toRatAlgebra : Algebra ℚ E) |
| 27 | exact ((NumberField.integralBasis E).baseChange ℝ).equiv |
| 28 | (NumberField.mixedEmbedding.latticeBasis E) (Equiv.refl _) |
| 29 | |
| 30 | theorem mixedScalarRealification_one_tmul (a : E) : |
| 31 | mixedScalarRealification E (1 ⊗ₜ[ℚ] a) = mixedEmbedding E a := by |
| 32 | cases Subsingleton.elim aE (DivisionRing.toRatAlgebra : Algebra ℚ E) |
| 33 | have h : ((mixedScalarRealification E).toLinearMap.restrictScalars ℚ).comp |
| 34 | (TensorProduct.mk ℚ ℝ E 1) = (mixedEmbedding E).toRatAlgHom.toLinearMap := by |
| 35 | apply (NumberField.integralBasis E).ext |
| 36 | intro i |
| 37 | change mixedScalarRealification E (1 ⊗ₜ[ℚ] NumberField.integralBasis E i) = |
| 38 | mixedEmbedding E (NumberField.integralBasis E i) |
| 39 | rw [← Module.Basis.baseChange_apply] |
| 40 | simp only [mixedScalarRealification, Module.Basis.equiv_apply, Equiv.refl_apply, |
| 41 | NumberField.mixedEmbedding.latticeBasis_apply] |
| 42 | exact LinearMap.congr_fun h a |
| 43 | |
| 44 | def mixedVectorRealification : |
| 45 | ℝ ⊗[ℚ] (Fin 3 → E) ≃ₗ[ℝ] (Fin 3 → mixedSpace E) := |
| 46 | (TensorProduct.piRight ℚ ℝ ℝ (fun _ : Fin 3 => E)).trans |
| 47 | (LinearEquiv.piCongrRight (fun _ : Fin 3 => mixedScalarRealification E)) |
| 48 | |
| 49 | theorem mixedVectorRealification_one_tmul (x : Fin 3 → E) : |
| 50 | mixedVectorRealification E (1 ⊗ₜ[ℚ] x) = |
| 51 | fun i => mixedEmbedding E (x i) := by |
| 52 | funext i |
| 53 | exact mixedScalarRealification_one_tmul E (x i) |
| 54 | |
| 55 | def mixedTraceFunctional (ξ : E) : mixedSpace E →ₗ[ℝ] ℝ := |
| 56 | (NumberField.mixedEmbedding.latticeBasis E).constr ℝ |
| 57 | (fun i => (Algebra.trace ℚ E (ξ * NumberField.integralBasis E i) : ℝ)) |
| 58 | |
| 59 | theorem mixedTraceFunctional_embedding (ξ a : E) : |
| 60 | mixedTraceFunctional E ξ (mixedEmbedding E a) = (Algebra.trace ℚ E (ξ * a) : ℝ) := by |
| 61 | cases Subsingleton.elim aE (DivisionRing.toRatAlgebra : Algebra ℚ E) |
| 62 | have h : ((mixedTraceFunctional E ξ).restrictScalars ℚ).comp |
| 63 | (mixedEmbedding E).toRatAlgHom.toLinearMap = |
| 64 | (Algebra.linearMap ℚ ℝ).comp |
| 65 | ((Algebra.trace ℚ E).comp (LinearMap.mul ℚ E ξ)) := by |
| 66 | apply (NumberField.integralBasis E).ext |
| 67 | intro i |
| 68 | change mixedTraceFunctional E ξ (mixedEmbedding E (NumberField.integralBasis E i)) = |
| 69 | (Algebra.trace ℚ E (ξ * NumberField.integralBasis E i) : ℝ) |
| 70 | rw [← NumberField.mixedEmbedding.latticeBasis_apply, mixedTraceFunctional, |
| 71 | Module.Basis.constr_basis] |
| 72 | exact LinearMap.congr_fun h a |
| 73 | |
| 74 | variable (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) |
| 75 | |
| 76 | def nativePeriodRealification : |
| 77 | ℝ ⊗[ℚ] RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A ≃ₗ[ℝ] HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A := |
| 78 | ((RationalPeriods.IntrinsicRationalPeriods.rationalPeriodBasis A).baseChange ℝ).equiv (RationalPeriods.IntrinsicRationalPeriods.realPeriodBasis A) (Equiv.refl _) |
| 79 | |
| 80 | theorem nativePeriodRealification_one_tmul (x : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A) : |
| 81 | nativePeriodRealification A (1 ⊗ₜ[ℚ] x) = x.val := by |
| 82 | have h : ((nativePeriodRealification A).toLinearMap.restrictScalars ℚ).comp |
| 83 | (TensorProduct.mk ℚ ℝ (RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A) 1) = (RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A).subtype := by |
| 84 | apply (RationalPeriods.IntrinsicRationalPeriods.rationalPeriodBasis A).ext |
| 85 | intro i |
| 86 | change nativePeriodRealification A (1 ⊗ₜ[ℚ] RationalPeriods.IntrinsicRationalPeriods.rationalPeriodBasis A i) = |
| 87 | (RationalPeriods.IntrinsicRationalPeriods.rationalPeriodBasis A i).val |
| 88 | rw [← Module.Basis.baseChange_apply] |
| 89 | simpa only [nativePeriodRealification, Module.Basis.equiv_apply, Equiv.refl_apply] |
| 90 | using (RealPeriodMaps.IntrinsicRationalPeriods.rationalPeriodBasis_real A i).symm |
| 91 | exact LinearMap.congr_fun h x |
| 92 | |
| 93 | def nativeMixedPeriodCoordinates (e : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A ≃ₗ[ℚ] (Fin 3 → E)) : |
| 94 | HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A ≃ₗ[ℝ] (Fin 3 → mixedSpace E) := |
| 95 | (nativePeriodRealification A).symm.trans |
| 96 | ((e.baseChange ℚ ℝ (RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A) (Fin 3 → E)).trans |
| 97 | (mixedVectorRealification E)) |
| 98 | |
| 99 | theorem nativeMixedPeriodCoordinates_rational |
| 100 | (e : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A ≃ₗ[ℚ] (Fin 3 → E)) (x : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A) : |
| 101 | nativeMixedPeriodCoordinates E A e x.val = fun i => mixedEmbedding E (e x i) := by |
| 102 | have hx : (nativePeriodRealification A).symm x.val = 1 ⊗ₜ[ℚ] x := |
| 103 | (nativePeriodRealification A).symm_apply_eq.mpr (nativePeriodRealification_one_tmul A x).symm |
| 104 | change mixedVectorRealification E |
| 105 | (e.baseChange ℚ ℝ (RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A) (Fin 3 → E) |
| 106 | ((nativePeriodRealification A).symm x.val)) = _ |
| 107 | rw [hx] |
| 108 | exact mixedVectorRealification_one_tmul E (e x) |
| 109 | |
| 110 | theorem nativeMixedPeriodCoordinates_intertwines |
| 111 | (e : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A ≃ₗ[ℚ] (Fin 3 → E)) |
| 112 | (f : Module.End ℝ (HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A)) (g : Module.End ℚ (RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A)) |
| 113 | (hg : ∀ x : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A, f x.val = (g x).val) |
| 114 | (a : E) (he : ∀ x, e (g x) = a • e x) (x : HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A) : |
| 115 | nativeMixedPeriodCoordinates E A e (f x) = |
| 116 | mixedEmbedding E a • nativeMixedPeriodCoordinates E A e x := by |
| 117 | let m : Module.End ℝ (Fin 3 → mixedSpace E) := { |
| 118 | toFun v := mixedEmbedding E a • v |
| 119 | map_add' v w := smul_add _ v w |
| 120 | map_smul' r v := smul_comm _ r v } |
| 121 | have h : (nativeMixedPeriodCoordinates E A e).toLinearMap.comp f = |
| 122 | m.comp (nativeMixedPeriodCoordinates E A e).toLinearMap := by |
| 123 | apply (RationalPeriods.IntrinsicRationalPeriods.realPeriodBasis A).ext |
| 124 | intro i |
| 125 | change nativeMixedPeriodCoordinates E A e (f (RationalPeriods.IntrinsicRationalPeriods.realPeriodBasis A i)) = |
| 126 | mixedEmbedding E a • nativeMixedPeriodCoordinates E A e (RationalPeriods.IntrinsicRationalPeriods.realPeriodBasis A i) |
| 127 | rw [← RealPeriodMaps.IntrinsicRationalPeriods.rationalPeriodBasis_real, hg, nativeMixedPeriodCoordinates_rational, |
| 128 | nativeMixedPeriodCoordinates_rational, he] |
| 129 | funext j |
| 130 | exact (mixedEmbedding E).map_mul a (e (RationalPeriods.IntrinsicRationalPeriods.rationalPeriodBasis A i) j) |
| 131 | exact LinearMap.congr_fun h x |
| 132 | |
| 133 | variable [IsCMField E] {Place : Type*} [Fintype Place] |
| 134 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 135 | (hσ : Function.Bijective |
| 136 | (fun p : Place × Bool => if p.2 then ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 137 | (e : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A ≃ₗ[ℚ] (Fin 3 → E)) |
| 138 | |
| 139 | def nativeMixedComponentChange (q : Place → Geometry.ComplexBall.PrescribedSignsB.Vec ≃ₗ[ℂ] Geometry.ComplexBall.PrescribedSignsB.Vec) : |
| 140 | HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A ≃ₗ[ℝ] HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A := |
| 141 | (nativeMixedPeriodCoordinates E A e).trans |
| 142 | (((MixedFromComplexComponents.cmMixedOfComplexComponents σ hσ q).restrictScalars ℝ).trans |
| 143 | (nativeMixedPeriodCoordinates E A e).symm) |
| 144 | |
| 145 | omit [Fintype Place] in |
| 146 | theorem nativeMixedComponentChange_coordinates |
| 147 | (q : Place → Geometry.ComplexBall.PrescribedSignsB.Vec ≃ₗ[ℂ] Geometry.ComplexBall.PrescribedSignsB.Vec) (x : HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A) : |
| 148 | nativeMixedPeriodCoordinates E A e (nativeMixedComponentChange E A σ hσ e q x) = |
| 149 | MixedFromComplexComponents.cmMixedOfComplexComponents σ hσ q (nativeMixedPeriodCoordinates E A e x) := by |
| 150 | simp only [nativeMixedComponentChange, LinearEquiv.trans_apply, |
| 151 | LinearEquiv.restrictScalars_apply, LinearEquiv.apply_symm_apply] |
| 152 | |
| 153 | omit [Fintype Place] in |
| 154 | theorem nativeMixedComponentChange_selected |
| 155 | (q : Place → Geometry.ComplexBall.PrescribedSignsB.Vec ≃ₗ[ℂ] Geometry.ComplexBall.PrescribedSignsB.Vec) (x : HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A) (p : Place) : |
| 156 | CMSelectedMixed.cmSelectedMixedCoordinates σ hσ |
| 157 | (nativeMixedPeriodCoordinates E A e (nativeMixedComponentChange E A σ hσ e q x)) p = |
| 158 | q p (CMSelectedMixed.cmSelectedMixedCoordinates σ hσ (nativeMixedPeriodCoordinates E A e x) p) := by |
| 159 | rw [nativeMixedComponentChange_coordinates, MixedFromComplexComponents.cmMixedOfComplexComponents_intertwines] |
| 160 | |
| 161 | omit [Fintype Place] in |
| 162 | theorem nativeMixedComponentChange_commutes |
| 163 | (q : Place → Geometry.ComplexBall.PrescribedSignsB.Vec ≃ₗ[ℂ] Geometry.ComplexBall.PrescribedSignsB.Vec) |
| 164 | (f : Module.End ℝ (HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A)) (g : Module.End ℚ (RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A)) |
| 165 | (hg : ∀ x : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A, f x.val = (g x).val) |
| 166 | (a : E) (he : ∀ x, e (g x) = a • e x) (x : HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A) : |
| 167 | nativeMixedComponentChange E A σ hσ e q (f x) = |
| 168 | f (nativeMixedComponentChange E A σ hσ e q x) := by |
| 169 | apply (nativeMixedPeriodCoordinates E A e).injective |
| 170 | rw [nativeMixedComponentChange_coordinates, |
| 171 | nativeMixedPeriodCoordinates_intertwines E A e f g hg a he, |
| 172 | nativeMixedPeriodCoordinates_intertwines E A e f g hg a he, |
| 173 | nativeMixedComponentChange_coordinates] |
| 174 | exact (MixedFromComplexComponents.cmMixedOfComplexComponents σ hσ q).map_smul (mixedEmbedding E a) _ |
| 175 | |
| 176 | def nativeMixedHermitianForm (H : Matrix (Fin 3) (Fin 3) E) : |
| 177 | HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A →ₗ[ℝ] HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A →ₗ[ℝ] mixedSpace E := |
| 178 | (CMMixedHermitianForm.cmMixedHermitianForm H).compl₁₂ |
| 179 | (nativeMixedPeriodCoordinates E A e).toLinearMap |
| 180 | (nativeMixedPeriodCoordinates E A e).toLinearMap |
| 181 | |
| 182 | theorem nativeMixedHermitianForm_rational |
| 183 | (H : Matrix (Fin 3) (Fin 3) E) (x y : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A) : |
| 184 | nativeMixedHermitianForm E A e H x.val y.val = |
| 185 | mixedEmbedding E (Datum.RankThreePELDatum.matrixHermitian H (e x) (e y)) := by |
| 186 | change CMMixedHermitianForm.cmMixedHermitianForm H (nativeMixedPeriodCoordinates E A e x.val) |
| 187 | (nativeMixedPeriodCoordinates E A e y.val) = _ |
| 188 | rw [nativeMixedPeriodCoordinates_rational, nativeMixedPeriodCoordinates_rational, |
| 189 | CMMixedHermitianForm.cmMixedHermitianForm_embedding] |
| 190 | |
| 191 | omit [Fintype Place] in |
| 192 | theorem nativeMixedComponentChange_preserves_form |
| 193 | (H : Matrix (Fin 3) (Fin 3) E) (q : Place → Geometry.ComplexBall.PrescribedSignsB.Vec ≃ₗ[ℂ] Geometry.ComplexBall.PrescribedSignsB.Vec) |
| 194 | (hq : ∀ p x y, Datum.RankThreePELDatum.complexMatrixHermitian (σ p).toRingHom H |
| 195 | (q p x) (q p y) = Datum.RankThreePELDatum.complexMatrixHermitian (σ p).toRingHom H x y) |
| 196 | (x y : HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A) : |
| 197 | nativeMixedHermitianForm E A e H (nativeMixedComponentChange E A σ hσ e q x) |
| 198 | (nativeMixedComponentChange E A σ hσ e q y) = |
| 199 | nativeMixedHermitianForm E A e H x y := by |
| 200 | change CMMixedHermitianForm.cmMixedHermitianForm H (nativeMixedPeriodCoordinates E A e |
| 201 | (nativeMixedComponentChange E A σ hσ e q x)) |
| 202 | (nativeMixedPeriodCoordinates E A e (nativeMixedComponentChange E A σ hσ e q y)) = _ |
| 203 | rw [nativeMixedComponentChange_coordinates, nativeMixedComponentChange_coordinates] |
| 204 | exact (MixedFromComplexComponents.cmMixedOfComplexComponents_isometry_iff σ hσ H q).mpr hq _ _ |
| 205 | |
| 206 | omit [Fintype Place] in |
| 207 | theorem nativeMixedComponentChange_preserves_trace |
| 208 | (H : Matrix (Fin 3) (Fin 3) E) (ξ : E) |
| 209 | (B : HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A →ₗ[ℝ] HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A →ₗ[ℝ] ℝ) |
| 210 | (hB : ∀ x y : RationalPeriods.IntrinsicRationalPeriods.rationalPeriods A, |
| 211 | B x.val y.val = (Algebra.trace ℚ E |
| 212 | (ξ * Datum.RankThreePELDatum.matrixHermitian H (e x) (e y)) : ℝ)) |
| 213 | (q : Place → Geometry.ComplexBall.PrescribedSignsB.Vec ≃ₗ[ℂ] Geometry.ComplexBall.PrescribedSignsB.Vec) |
| 214 | (hq : ∀ p x y, Datum.RankThreePELDatum.complexMatrixHermitian (σ p).toRingHom H |
| 215 | (q p x) (q p y) = Datum.RankThreePELDatum.complexMatrixHermitian (σ p).toRingHom H x y) |
| 216 | (x y : HodgeConjecture.DegreeTwo.Transport.Constructions.AbelianModel A) : |
| 217 | B (nativeMixedComponentChange E A σ hσ e q x) |
| 218 | (nativeMixedComponentChange E A σ hσ e q y) = B x y := by |
| 219 | have h : B = (nativeMixedHermitianForm E A e H).compr₂ (mixedTraceFunctional E ξ) := by |
| 220 | apply Real.PeriodBilinearExt.realPeriodBilinear_ext A |
| 221 | intro v w |
| 222 | change B v.val w.val = mixedTraceFunctional E ξ (nativeMixedHermitianForm E A e H v.val w.val) |
| 223 | rw [nativeMixedHermitianForm_rational, mixedTraceFunctional_embedding] |
| 224 | exact hB v w |
| 225 | rw [h] |
| 226 | change mixedTraceFunctional E ξ |
| 227 | (nativeMixedHermitianForm E A e H (nativeMixedComponentChange E A σ hσ e q x) |
| 228 | (nativeMixedComponentChange E A σ hσ e q y)) = _ |
| 229 | rw [nativeMixedComponentChange_preserves_form E A σ hσ e H q hq] |
| 230 | rfl |
| 231 | |
| 232 | end |
| 233 | |
| 234 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Intrinsic.MixedPeriodCoordinates |