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.HodgeConjecture.ThetaCycle.Prescribed |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoordinateComparison |
| 3 | |
| 4 | /-! # Coefficient Periods -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoefficientPeriods.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The explicit line/annihilator frame is holomorphic, has the prescribed |
| 13 | range, and has a positive isotropic matrix in the constructed coordinates. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 17 | |
| 18 | variable (K : IntermediateField ℚ ℂ) |
| 19 | [NumberField K] [IsGalois ℚ K] [NumberField.IsCMField K] |
| 20 | |
| 21 | def ballMatrix (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) := |
| 22 | Geometry.ComplexBall.PrescribedSignsB.matrixB (HeckeCycles.ReferenceDatum.CM.embeddings K places) (Matrix.diagonal ![1, 1, B.b]) |
| 23 | |
| 24 | theorem ball_frame_denominator (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) (z : HeckeCycles.GeometricSource.CM.BallChart) : |
| 25 | ballMatrix K B places places.distinguished (Geometry.ComplexBall.PrescribedSignsB.lineVector z) |
| 26 | (Geometry.ComplexBall.PrescribedSignsB.axis 2) ≠ 0 := by |
| 27 | have he : ballMatrix K B places places.distinguished (Geometry.ComplexBall.PrescribedSignsB.lineVector z) |
| 28 | (Geometry.ComplexBall.PrescribedSignsB.axis 2) = (B.b : ℂ) := by |
| 29 | simp [ballMatrix, Geometry.ComplexBall.PrescribedSignsB.matrixB_apply, NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.localB_diagonal, |
| 30 | Geometry.ComplexBall.PrescribedSignsB.axis, Geometry.ComplexBall.PrescribedSignsB.lineVector, HeckeCycles.ReferenceDatum.CM.embeddings_distinguished] |
| 31 | rw [he] |
| 32 | intro hz |
| 33 | have hn := B.negative |
| 34 | simp only [hz, Complex.zero_re, lt_self_iff_false] at hn |
| 35 | |
| 36 | theorem native_frame_range (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) |
| 37 | (d : Gal(K/ℚ) → Bool) (z : HeckeCycles.GeometricSource.CM.BallChart) (w : HeckeCycles.GeometricSource.CM.Ambient K) : |
| 38 | w ∈ LinearMap.range (Prescribed.CM.nativePeriodFrame K B places d z) ↔ |
| 39 | HeckeCycles.GeometricSource.CM.prescribed K B places d z w := by |
| 40 | have hr := Geometry.ComplexBall.PrescribedSignsB.globalFrame_range (ballMatrix K B places) |
| 41 | places.distinguished (fun i => d (places.representative i)) z |
| 42 | (ball_frame_denominator K B places z) (Symplectic.CM.galoisToPaired K places w) |
| 43 | simp only [ballMatrix, Geometry.ComplexBall.PrescribedSignsB.matrixB_apply] at hr |
| 44 | change Symplectic.CM.galoisToPaired K places w ∈ LinearMap.range |
| 45 | (Geometry.ComplexBall.PrescribedSignsB.globalFrame (ballMatrix K B places) places.distinguished |
| 46 | (fun i => d (places.representative i)) z) ↔ |
| 47 | Geometry.ComplexBall.PrescribedSignsB.Prescribed (Lagrangians.CM.pairedBallForm K B places) places.distinguished |
| 48 | (fun i => d (places.representative i)) z (Symplectic.CM.galoisToPaired K places w) at hr |
| 49 | rw [← Prescribed.CM.paired_prescribed_iff K B places d z w, ← hr] |
| 50 | constructor |
| 51 | · rintro ⟨v, rfl⟩ |
| 52 | refine ⟨fun i j => v (i, j), ?_⟩ |
| 53 | change _ = (Symplectic.CM.galoisToPaired K places) |
| 54 | ((Symplectic.CM.galoisToPaired K places).symm (RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.flatFrame _ _ _ z v)) |
| 55 | rw [LinearEquiv.apply_symm_apply] |
| 56 | rfl |
| 57 | · rintro ⟨v, hv⟩ |
| 58 | refine ⟨fun p => v p.1 p.2, ?_⟩ |
| 59 | apply (Symplectic.CM.galoisToPaired K places).injective |
| 60 | change (Symplectic.CM.galoisToPaired K places) ((Symplectic.CM.galoisToPaired K places).symm |
| 61 | (RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.flatFrame _ _ _ z (fun p => v p.1 p.2))) = _ |
| 62 | rw [LinearEquiv.apply_symm_apply] |
| 63 | exact hv |
| 64 | |
| 65 | theorem native_frame_holomorphic (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) |
| 66 | (d : Gal(K/ℚ) → Bool) (v : HeckeCycles.GeometricSource.CM.Positions K places → ℂ) : |
| 67 | DifferentiableOn ℂ (fun z => Prescribed.CM.nativePeriodFrame K B places d z v) B.domain := by |
| 68 | have hf := Geometry.ComplexBall.PrescribedSignsB.globalFrame_differentiable (ballMatrix K B places) |
| 69 | places.distinguished (fun i => d (places.representative i)) B.domain |
| 70 | (fun z _ => ball_frame_denominator K B places z) (fun i j => v (i, j)) |
| 71 | exact (Symplectic.CM.galoisToPaired K places).symm.toContinuousLinearEquiv.differentiable.comp_differentiableOn hf |
| 72 | |
| 73 | theorem constructed_global_frame_positive (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) |
| 74 | (d : Fin 2 → Fin places.count → Bool) (P : Lagrangians.CM.LagrangianPair K B places d) |
| 75 | (i : Fin 2) (z : HeckeCycles.GeometricSource.CM.BallChart) (hz : z ∈ B.domain) : |
| 76 | Geometry.ComplexBall.PrescribedSignsB.PositivePeriod (3 * Fintype.card (Fin places.count)) |
| 77 | (Geometry.ComplexBall.PrescribedSignsB.tracePairing (Lagrangians.CM.pairedBallForm K B places) |
| 78 | (fun τ => HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.delta * P.a i))) |
| 79 | Geometry.ComplexBall.PrescribedSignsB.realConj |
| 80 | (LinearMap.range (Geometry.ComplexBall.PrescribedSignsB.globalFrame (ballMatrix K B places) |
| 81 | places.distinguished (d i) z)) := by |
| 82 | have hr : LinearMap.range (Geometry.ComplexBall.PrescribedSignsB.globalFrame (ballMatrix K B places) |
| 83 | places.distinguished (d i) z) = P.family i z := by |
| 84 | ext u |
| 85 | have h := Geometry.ComplexBall.PrescribedSignsB.globalFrame_range (ballMatrix K B places) |
| 86 | places.distinguished (d i) z (ball_frame_denominator K B places z) u |
| 87 | simp only [ballMatrix, Geometry.ComplexBall.PrescribedSignsB.matrixB_apply] at h |
| 88 | exact h.trans ((P.prescribed_positive i z hz).1 u).symm |
| 89 | rw [hr, Fintype.card_fin] |
| 90 | exact (P.prescribed_positive i z hz).2 |
| 91 | |
| 92 | end |
| 93 | |
| 94 | /-! Build the prescribed period pair with specified Hermitian coefficients. |
| 95 | This permits the new rational lines to retain the original trace polarization. -/ |
| 96 | |
| 97 | open scoped Classical |
| 98 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 99 | |
| 100 | variable (K : IntermediateField ℚ ℂ) |
| 101 | [NumberField K] [IsGalois ℚ K] [NumberField.IsCMField K] |
| 102 | |
| 103 | theorem positive_period_of_coefficient_signs (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) |
| 104 | (d : Fin places.count → Bool) (δ a : K) |
| 105 | (hδ : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K δ = -δ) (ha : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K a = a) |
| 106 | (hs : ∀ τ, if τ = places.distinguished ∨ d τ = true |
| 107 | then (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a)).im < 0 |
| 108 | else 0 < (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a)).im) |
| 109 | (z : HeckeCycles.GeometricSource.CM.BallChart) (hz : z ∈ B.domain) : |
| 110 | Geometry.ComplexBall.PrescribedSignsB.PositivePeriod (3 * places.count) |
| 111 | (Geometry.ComplexBall.PrescribedSignsB.tracePairing (Lagrangians.CM.pairedBallForm K B places) |
| 112 | (fun τ => HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a))) Geometry.ComplexBall.PrescribedSignsB.realConj |
| 113 | (LinearMap.range (Geometry.ComplexBall.PrescribedSignsB.globalFrame (ballMatrix K B places) |
| 114 | places.distinguished d z)) := by |
| 115 | let BM := ballMatrix K B places |
| 116 | have hBM (τ : Fin places.count) : Geometry.ComplexBall.PrescribedSignsB.HermitianB (BM τ) := |
| 117 | Geometry.ComplexBall.PrescribedSignsB.matrixB_hermitian (HeckeCycles.ReferenceDatum.CM.embeddings K places) |
| 118 | (Matrix.diagonal ![1, 1, B.b]) (NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.diagonal_hermitian B.b B.conjugate_b) τ |
| 119 | have hc (τ : Fin places.count) (hτ : τ ≠ places.distinguished) : |
| 120 | Geometry.ComplexBall.PrescribedSignsB.PositiveB (BM τ) := by |
| 121 | intro x hx |
| 122 | simpa only [BM, ballMatrix, Geometry.ComplexBall.PrescribedSignsB.matrixB_apply] using |
| 123 | NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.diagonal_positive_definite (HeckeCycles.ReferenceDatum.CM.embeddings K places) B.b τ |
| 124 | ((HeckeCycles.ReferenceDatum.CM.source_signature K B places).2.2.2 τ hτ) x hx |
| 125 | have hp : ∀ x : Geometry.ComplexBall.PrescribedSignsB.Vec, x ≠ 0 → x 2 = 0 → |
| 126 | 0 < (BM places.distinguished x (star x)).re := by |
| 127 | intro x hx hx2 |
| 128 | simpa only [BM, ballMatrix, Geometry.ComplexBall.PrescribedSignsB.matrixB_apply] using |
| 129 | NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.diagonal_positive_plane |
| 130 | (HeckeCycles.ReferenceDatum.CM.embeddings K places) B.b places.distinguished x hx hx2 |
| 131 | have ht (τ : Fin places.count) : (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a)).re = 0 := |
| 132 | Geometry.ComplexBall.PrescribedSignsB.coefficient_real_zero (HeckeCycles.ReferenceDatum.CM.embeddings K places τ) δ a hδ ha |
| 133 | have hsign (τ : Fin places.count) : |
| 134 | if Geometry.ComplexBall.PrescribedSignsB.wantedSign BM places.distinguished d τ |
| 135 | then 0 < (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a)).im |
| 136 | else (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a)).im < 0 := by |
| 137 | by_cases hτ : τ = places.distinguished |
| 138 | · simpa [Geometry.ComplexBall.PrescribedSignsB.wantedSign, hτ] using hs τ |
| 139 | · cases hd : d τ <;> |
| 140 | simpa [Geometry.ComplexBall.PrescribedSignsB.wantedSign, hτ, hd, hc τ hτ] using hs τ |
| 141 | have hz' : (BM places.distinguished (Geometry.ComplexBall.PrescribedSignsB.lineVector z) |
| 142 | (star (Geometry.ComplexBall.PrescribedSignsB.lineVector z))).re < 0 := by |
| 143 | have hz'' : z ∈ {w : HeckeCycles.GeometricSource.CM.BallChart | (Lagrangians.CM.pairedBallForm K B places places.distinguished |
| 144 | (Geometry.ComplexBall.PrescribedSignsB.lineVector w) (star (Geometry.ComplexBall.PrescribedSignsB.lineVector w))).re < 0} := by |
| 145 | rw [Lagrangians.CM.paired_ball_domain K B places] |
| 146 | exact hz |
| 147 | simpa only [BM, ballMatrix, Geometry.ComplexBall.PrescribedSignsB.matrixB_apply, Lagrangians.CM.pairedBallForm, |
| 148 | Set.mem_ofPred_eq] using hz'' |
| 149 | have hpositive := Geometry.ComplexBall.PrescribedSignsB.globalFrame_positivePeriod BM hBM |
| 150 | places.distinguished d z (ball_frame_denominator K B places z) |
| 151 | (fun τ => HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a)) ht (by |
| 152 | intro τ u hu hne |
| 153 | exact Geometry.ComplexBall.PrescribedSignsB.wantedSign_positive BM hBM places.distinguished hp |
| 154 | (fun τ hτ => Or.inl (hc τ hτ)) d z hz' (ball_frame_denominator K B places z) |
| 155 | τ _ (ht τ) (hsign τ) u hu hne) |
| 156 | simpa only [Fintype.card_fin, BM, ballMatrix, Geometry.ComplexBall.PrescribedSignsB.matrixB_apply, |
| 157 | Lagrangians.CM.pairedBallForm] using hpositive |
| 158 | |
| 159 | theorem exists_lagrangian_pair_with_coefficients (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) |
| 160 | (d : Fin 2 → Fin places.count → Bool) (δ : K) (a : Fin 2 → K) |
| 161 | (hδ0 : δ ≠ 0) (hδ : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K δ = -δ) |
| 162 | (ha0 : ∀ i, a i ≠ 0) (ha : ∀ i, ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K (a i) = a i) |
| 163 | (hs : ∀ i τ, if τ = places.distinguished ∨ d i τ = true |
| 164 | then (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a i)).im < 0 |
| 165 | else 0 < (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a i)).im) : |
| 166 | ∃ P : Lagrangians.CM.LagrangianPair K B places d, P.delta = δ ∧ P.a = a := by |
| 167 | obtain ⟨Q⟩ := Lagrangians.CM.exists_lagrangian_pair K B places d |
| 168 | have hr (i : Fin 2) (z : HeckeCycles.GeometricSource.CM.BallChart) (hz : z ∈ B.domain) : |
| 169 | LinearMap.range (Geometry.ComplexBall.PrescribedSignsB.globalFrame (ballMatrix K B places) |
| 170 | places.distinguished (d i) z) = Q.family i z := by |
| 171 | ext u |
| 172 | have h := Geometry.ComplexBall.PrescribedSignsB.globalFrame_range (ballMatrix K B places) |
| 173 | places.distinguished (d i) z (ball_frame_denominator K B places z) u |
| 174 | simp only [ballMatrix, Geometry.ComplexBall.PrescribedSignsB.matrixB_apply] at h |
| 175 | exact h.trans ((Q.prescribed_positive i z hz).1 u).symm |
| 176 | have hpositive (i : Fin 2) (z : HeckeCycles.GeometricSource.CM.BallChart) (hz : z ∈ B.domain) : |
| 177 | Geometry.ComplexBall.PrescribedSignsB.PositivePeriod (3 * places.count) |
| 178 | (Geometry.ComplexBall.PrescribedSignsB.tracePairing (Lagrangians.CM.pairedBallForm K B places) |
| 179 | (fun τ => HeckeCycles.ReferenceDatum.CM.embeddings K places τ (δ * a i))) Geometry.ComplexBall.PrescribedSignsB.realConj |
| 180 | (Q.family i z) := by |
| 181 | rw [← hr i z hz] |
| 182 | exact positive_period_of_coefficient_signs K B places (d i) δ (a i) hδ (ha i) (hs i) z hz |
| 183 | refine ⟨{ |
| 184 | delta := δ |
| 185 | delta_ne_zero := hδ0 |
| 186 | delta_imaginary := hδ |
| 187 | a := a |
| 188 | a_sign := fun i => ⟨ha0 i, ha i, by simpa using hs i places.distinguished⟩ |
| 189 | family := Q.family |
| 190 | holomorphic := Q.holomorphic |
| 191 | prescribed_positive := fun i z hz => ⟨(Q.prescribed_positive i z hz).1, hpositive i z hz⟩ |
| 192 | total_holomorphic := Q.total_holomorphic |
| 193 | total_positive := ?_ |
| 194 | rational_trace := ?_ |
| 195 | }, rfl, rfl⟩ |
| 196 | · intro z hz |
| 197 | apply Geometry.ComplexBall.PrescribedSignsB.positivePeriod_prod (3 * places.count) _ _ |
| 198 | (Geometry.ComplexBall.PrescribedSignsB.realConjLinearMap (Fin places.count)) |
| 199 | (Geometry.ComplexBall.PrescribedSignsB.realConjLinearMap (Fin places.count)) _ _ |
| 200 | _ (hpositive 0 z hz) (hpositive 1 z hz) |
| 201 | simp [Geometry.ComplexBall.PrescribedSignsB.Ambient, Geometry.ComplexBall.PrescribedSignsB.Vec, |
| 202 | Module.finrank_pi_fintype, Module.finrank_prod] |
| 203 | omega |
| 204 | · intro i x y |
| 205 | have h := Geometry.ComplexBall.PrescribedSignsB.tracePairing_rational (HeckeCycles.ReferenceDatum.CM.embeddings K places) |
| 206 | (HeckeCycles.ReferenceDatum.CM.embeddings_complete K places) δ (a i) hδ (ha i) |
| 207 | (Matrix.diagonal ![1, 1, B.b]) (NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.diagonal_hermitian B.b B.conjugate_b) x y |
| 208 | rw [NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.trace_matrix_diagonal] at h |
| 209 | exact h |
| 210 | |
| 211 | end |
| 212 | |
| 213 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoefficientPeriods.CM |