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.TransportNew |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.SurfaceFamily |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.IntrinsicRefinement |
| 4 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoordinateComparison |
| 5 | |
| 6 | /-! # Period Total -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.PeriodTotal.CM |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Assemble the concrete principal surfaces and four period lines. |
| 15 | All fields are constructed from the arithmetic hypotheses and full ReferenceFamily; |
| 16 | theta descent, extraction and nonvanishing are not fields of this setup. -/ |
| 17 | |
| 18 | open scoped Classical _root_.Matrix.Norms.Elementwise |
| 19 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 20 | open _root_.Module |
| 21 | |
| 22 | variable (K : IntermediateField ℚ ℂ) |
| 23 | [NumberField K] [IsGalois ℚ K] [NumberField.IsCMField K] |
| 24 | |
| 25 | structure RationalPeriodApproximation |
| 26 | (v : Fin 4 → ComplexMultiplication.OddSignSwitch.CM.OddSignPattern (fun g : Gal(K/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * g)) |
| 27 | (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) |
| 28 | (P : Lagrangians.CM.LagrangianPair K B places (fun i τ => FourSplittings.CM.initialThetaSigns K v i (places.representative τ))) |
| 29 | (ε : ℝ) where |
| 30 | basis : Basis (Fin 2) K (Analysis.DifferentialForms.Coordinates.LocalApproximation.W K) |
| 31 | orthogonal : Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian P.a (basis 0) (basis 1) = 0 |
| 32 | nondegenerate : ∀ i, Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian P.a (basis i) (basis i) ≠ 0 |
| 33 | orthocomplement : ∀ y, y ∈ Submodule.span K {basis 1} ↔ |
| 34 | Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian P.a (basis 0) y = 0 |
| 35 | coefficient_signs : ∀ i τ, 0 < |
| 36 | (ComplexMultiplication.SignSwitch.CM.signValue (FourSplittings.CM.newThetaSigns K v i (places.representative τ)) : ℝ) * |
| 37 | (-(HeckeCycles.ReferenceDatum.CM.embeddings K places τ P.delta).im) * |
| 38 | (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian P.a (basis i) (basis i))).re |
| 39 | periods : (i : Fin 2) → HeckeCycles.GeometricSource.CM.LinePeriod K B places (FourSplittings.CM.newThetaSigns K v i) |
| 40 | coefficients : ∀ i, |
| 41 | (periods i).coordinates.a = Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian P.a (basis i) (basis i) ∧ |
| 42 | (periods i).coordinates.delta = P.delta |
| 43 | compact_close : ∀ τ, dist |
| 44 | (Analysis.DifferentialForms.Coordinates.LocalApproximation.compactPeriod (HeckeCycles.ReferenceDatum.CM.embeddings K places τ) basis |
| 45 | (fun i => FourSplittings.CM.newThetaSigns K v i (places.representative τ))) |
| 46 | (Analysis.DifferentialForms.Coordinates.LocalApproximation.compactPeriod (HeckeCycles.ReferenceDatum.CM.embeddings K places τ) (Pi.basisFun K (Fin 2)) |
| 47 | (fun i => FourSplittings.CM.initialThetaSigns K v i (places.representative τ))) < ε |
| 48 | |
| 49 | structure FourPeriodSetup |
| 50 | (v : Fin 4 → ComplexMultiplication.OddSignSwitch.CM.OddSignPattern (fun g : Gal(K/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * g)) (Nbase : ℕ) where |
| 51 | ball : HeckeCycles.GeometricSource.CM.BallDatum K |
| 52 | places : HeckeCycles.GeometricSource.CM.Places K |
| 53 | depth : ℕ |
| 54 | depth_ge_three : 3 ≤ depth |
| 55 | base_divides : Nbase ∣ depth |
| 56 | surface : (N : ℕ) → 0 < N → depth ∣ N → Cm.PrincipalBallSurface K ball N |
| 57 | pair : Lagrangians.CM.LagrangianPair K ball places (fun i τ => FourSplittings.CM.initialThetaSigns K v i (places.representative τ)) |
| 58 | initialPeriods : (i : Fin 2) → HeckeCycles.GeometricSource.CM.LinePeriod K ball places (FourSplittings.CM.initialThetaSigns K v i) |
| 59 | initial_coefficients : ∀ i, |
| 60 | (initialPeriods i).coordinates.a = pair.a i ∧ (initialPeriods i).coordinates.delta = pair.delta |
| 61 | approximate : ∀ ε : ℝ, 0 < ε → Nonempty (RationalPeriodApproximation K v ball places pair ε) |
| 62 | |
| 63 | theorem exists_four_period_setup (hReferenceFamily : Moduli.CM.ReferenceFamilyInput) |
| 64 | (v : Fin 4 → ComplexMultiplication.OddSignSwitch.CM.OddSignPattern (fun g : Gal(K/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * g)) |
| 65 | (hb : ∀ τ, ComplexMultiplication.SignSwitch.CM.signValue ((v 0).val τ) + ComplexMultiplication.SignSwitch.CM.signValue ((v 1).val τ) = |
| 66 | ComplexMultiplication.SignSwitch.CM.signValue ((v 2).val τ) + ComplexMultiplication.SignSwitch.CM.signValue ((v 3).val τ)) |
| 67 | (hi : ∀ i, (v i).val 1 = true) |
| 68 | (hother : ∃ τ : Gal(K/ℚ), τ ≠ 1 ∧ τ ≠ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K) |
| 69 | (Nbase : ℕ) (hNbase : 0 < Nbase) : Nonempty (FourPeriodSetup K v Nbase) := by |
| 70 | obtain ⟨B₀⟩ := BallDatum.CM.exists_ball_datum K hother |
| 71 | let places := Places.CM.placesFromType K (v 0) (hi 0) |
| 72 | obtain ⟨B, _, N₀, hN₀, hbase, hsurf⟩ := |
| 73 | SurfaceFamily.CM.exists_principal_surface_family K hReferenceFamily B₀ places (fun _ => false) Nbase hNbase |
| 74 | obtain ⟨P, L, hL, happ⟩ := FourSplittings.CM.exists_four_pattern_splittings K B places v hb hi |
| 75 | refine ⟨{ |
| 76 | ball := B |
| 77 | places := places |
| 78 | depth := N₀ |
| 79 | depth_ge_three := hN₀ |
| 80 | base_divides := hbase |
| 81 | surface := fun N hn hd => Classical.choice (hsurf N hn hd) |
| 82 | pair := P |
| 83 | initialPeriods := L |
| 84 | initial_coefficients := hL |
| 85 | approximate := ?_ |
| 86 | }⟩ |
| 87 | intro ε hε |
| 88 | obtain ⟨b, horth, hnd, hcompl, hsign, hdist⟩ := happ ε hε |
| 89 | have hμ : ∀ i, FourSplittings.CM.newThetaSigns K v i 1 = true := by |
| 90 | intro i |
| 91 | fin_cases i <;> simp [FourSplittings.CM.newThetaSigns, FourSplittings.CM.thetaSign, hi] |
| 92 | obtain ⟨Ln, hLn⟩ := TransportNew.CM.new_line_periods_on_original_space K (FourSplittings.CM.initialThetaSigns K v) |
| 93 | (FourSplittings.CM.newThetaSigns K v) P hμ b hnd hsign |
| 94 | exact ⟨⟨b, horth, hnd, hcompl, hsign, Ln, hLn, hdist⟩⟩ |
| 95 | |
| 96 | theorem setup_principal_refinement |
| 97 | {v : Fin 4 → ComplexMultiplication.OddSignSwitch.CM.OddSignPattern (fun g : Gal(K/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * g)} {Nbase : ℕ} |
| 98 | (D : FourPeriodSetup K v Nbase) (N M : ℕ) (hN : 0 < N) (hM : 0 < M) |
| 99 | (hDN : D.depth ∣ N) (hDM : D.depth ∣ M) (hNM : N ∣ M) : |
| 100 | Nonempty (Cm.PrincipalRefinement K (D.surface N hN hDN) (D.surface M hM hDM)) := |
| 101 | IntrinsicRefinement.CM.principal_refinement_of_dvd D.ball N M _ _ hNM |
| 102 | |
| 103 | end |
| 104 | |
| 105 | section |
| 106 | |
| 107 | /-! ThetaCycle: rational symplectic coordinates on the same total tensor space. -/ |
| 108 | |
| 109 | open scoped Classical |
| 110 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 111 | |
| 112 | variable (K : IntermediateField ℚ ℂ) |
| 113 | [NumberField K] [NumberField.IsCMField K] |
| 114 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} |
| 115 | |
| 116 | def tensorLineCoordinates : TransportNew.CM.TensorPositions K ≃ₗ[ℚ] (Fin 2 → HeckeCycles.GeometricSource.CM.Vec K) where |
| 117 | toFun x i j := x j i |
| 118 | invFun x j i := x i j |
| 119 | left_inv _ := rfl |
| 120 | right_inv _ := rfl |
| 121 | map_add' _ _ := rfl |
| 122 | map_smul' _ _ := rfl |
| 123 | |
| 124 | abbrev TotalPositions (places : HeckeCycles.GeometricSource.CM.Places K) := Sum (HeckeCycles.GeometricSource.CM.Positions K places) (HeckeCycles.GeometricSource.CM.Positions K places) |
| 125 | |
| 126 | /-- The two line coordinate systems are assembled into one position block |
| 127 | and one momentum block, in the index order of the fixed total theta input. -/ |
| 128 | def totalSymplecticCoordinates (C : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) : |
| 129 | TransportNew.CM.TensorPositions K ≃ₗ[ℚ] (Sum (TotalPositions K places) (TotalPositions K places) → ℚ) := |
| 130 | (tensorLineCoordinates K).trans <| |
| 131 | (LinearEquiv.finTwoArrow ℚ (HeckeCycles.GeometricSource.CM.Vec K)).trans <| |
| 132 | ((C 0).rational.prodCongr (C 1).rational).trans <| |
| 133 | (LinearEquiv.prodProdProdComm ℚ _ _ _ _).trans <| |
| 134 | ((LinearEquiv.sumArrowLequivProdArrow (HeckeCycles.GeometricSource.CM.Positions K places) (HeckeCycles.GeometricSource.CM.Positions K places) ℚ ℚ).symm.prodCongr |
| 135 | (LinearEquiv.sumArrowLequivProdArrow (HeckeCycles.GeometricSource.CM.Positions K places) (HeckeCycles.GeometricSource.CM.Positions K places) ℚ ℚ).symm).trans |
| 136 | (LinearEquiv.sumArrowLequivProdArrow (TotalPositions K places) (TotalPositions K places) ℚ ℚ).symm |
| 137 | |
| 138 | theorem total_symplectic_coordinates_pairing |
| 139 | (C : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) (δ : K) (a : Fin 2 → K) |
| 140 | (hc : ∀ i, (C i).a = a i ∧ (C i).delta = δ) (x y : TransportNew.CM.TensorPositions K) : |
| 141 | RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.coordinatePairing (totalSymplecticCoordinates K C x) (totalSymplecticCoordinates K C y) = |
| 142 | Algebra.trace ℚ K (δ * TransportNew.CM.tensorHermitian K B.b a x y) := by |
| 143 | change (∑ j : TotalPositions K places, _) = _ |
| 144 | rw [Fintype.sum_sum_type] |
| 145 | change (∑ j, (((C 0).rational (fun k => x k 0)).1 j * |
| 146 | ((C 0).rational (fun k => y k 0)).2 j - |
| 147 | ((C 0).rational (fun k => x k 0)).2 j * ((C 0).rational (fun k => y k 0)).1 j)) + |
| 148 | (∑ j, (((C 1).rational (fun k => x k 1)).1 j * |
| 149 | ((C 1).rational (fun k => y k 1)).2 j - |
| 150 | ((C 1).rational (fun k => x k 1)).2 j * ((C 1).rational (fun k => y k 1)).1 j)) = _ |
| 151 | have hs (i : Fin 2) : |
| 152 | (∑ j, (((C i).rational (fun k => x k i)).1 j * |
| 153 | ((C i).rational (fun k => y k i)).2 j - |
| 154 | ((C i).rational (fun k => x k i)).2 j * ((C i).rational (fun k => y k i)).1 j)) = |
| 155 | Algebra.trace ℚ K ((C i).delta * (C i).a * |
| 156 | HeckeCycles.GeometricSource.CM.hermitian K B.b (fun k => x k i) (fun k => y k i)) := by |
| 157 | rw [(C i).symplectic] |
| 158 | apply Finset.sum_congr rfl |
| 159 | intro j _ |
| 160 | ring |
| 161 | rw [hs 0, hs 1, |
| 162 | (hc 0).1, (hc 0).2, (hc 1).1, (hc 1).2, TransportNew.CM.tensor_hermitian_blocks] |
| 163 | simp only [Fin.sum_univ_two, mul_add, ← mul_assoc, map_add] |
| 164 | |
| 165 | end |
| 166 | |
| 167 | /-! ThetaCycle: the approximating basis gives an actual rational symplectic matrix. -/ |
| 168 | |
| 169 | open scoped Classical _root_.Matrix |
| 170 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM _root_.Module |
| 171 | |
| 172 | variable (K : IntermediateField ℚ ℂ) |
| 173 | [NumberField K] [NumberField.IsCMField K] |
| 174 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} |
| 175 | |
| 176 | /-- A vector expressed in the new line coordinates is sent to its original |
| 177 | coordinates in the same rational tensor space. -/ |
| 178 | def totalBasisTransition (C D : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) |
| 179 | (b : Basis (Fin 2) K (Analysis.DifferentialForms.Coordinates.LocalApproximation.W K)) : |
| 180 | (Sum (TotalPositions K places) (TotalPositions K places) → ℚ) ≃ₗ[ℚ] |
| 181 | (Sum (TotalPositions K places) (TotalPositions K places) → ℚ) := |
| 182 | (totalSymplecticCoordinates K D).symm.trans <| |
| 183 | ((TransportNew.CM.tensorBasisChange K b).restrictScalars ℚ).trans (totalSymplecticCoordinates K C) |
| 184 | |
| 185 | theorem total_basis_transition_pairing |
| 186 | (C D : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) (δ : K) (a : Fin 2 → K) |
| 187 | (ha : ∀ i, ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K (a i) = a i) |
| 188 | (b : Basis (Fin 2) K (Analysis.DifferentialForms.Coordinates.LocalApproximation.W K)) |
| 189 | (horth : Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) (b 1) = 0) |
| 190 | (hc : ∀ i, (C i).a = a i ∧ (C i).delta = δ) |
| 191 | (hd : ∀ i, (D i).a = Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i) ∧ (D i).delta = δ) |
| 192 | (x y : Sum (TotalPositions K places) (TotalPositions K places) → ℚ) : |
| 193 | RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.coordinatePairing (totalBasisTransition K C D b x) (totalBasisTransition K C D b y) = |
| 194 | RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.coordinatePairing x y := by |
| 195 | change RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.coordinatePairing |
| 196 | (totalSymplecticCoordinates K C (TransportNew.CM.tensorBasisChange K b ((totalSymplecticCoordinates K D).symm x))) |
| 197 | (totalSymplecticCoordinates K C (TransportNew.CM.tensorBasisChange K b ((totalSymplecticCoordinates K D).symm y))) = _ |
| 198 | rw [total_symplectic_coordinates_pairing K C δ a hc, |
| 199 | TransportNew.CM.tensor_trace_basis_isometry K B.b δ a ha b horth, |
| 200 | ← total_symplectic_coordinates_pairing K D δ _ hd] |
| 201 | simp only [LinearEquiv.apply_symm_apply] |
| 202 | |
| 203 | def totalBasisMatrix (C D : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) |
| 204 | (b : Basis (Fin 2) K (Analysis.DifferentialForms.Coordinates.LocalApproximation.W K)) := |
| 205 | LinearMap.toMatrix' (totalBasisTransition K C D b).toLinearMap |
| 206 | |
| 207 | theorem total_basis_matrix_coordinates |
| 208 | (C D : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) |
| 209 | (b : Basis (Fin 2) K (Analysis.DifferentialForms.Coordinates.LocalApproximation.W K)) (x : TransportNew.CM.TensorPositions K) : |
| 210 | totalBasisMatrix K C D b *ᵥ (totalSymplecticCoordinates K D x) = |
| 211 | totalSymplecticCoordinates K C (TransportNew.CM.tensorBasisChange K b x) := by |
| 212 | change Matrix.toLin' (LinearMap.toMatrix' (totalBasisTransition K C D b).toLinearMap) |
| 213 | (totalSymplecticCoordinates K D x) = _ |
| 214 | rw [Matrix.toLin'_toMatrix'] |
| 215 | change totalSymplecticCoordinates K C |
| 216 | (TransportNew.CM.tensorBasisChange K b ((totalSymplecticCoordinates K D).symm (totalSymplecticCoordinates K D x))) = _ |
| 217 | rw [LinearEquiv.symm_apply_apply] |
| 218 | |
| 219 | /-- The same coordinate equation holds under every scalar extension, |
| 220 | including the real, complex, and finite-adelic realizations. -/ |
| 221 | theorem total_basis_matrix_baseChange {R : Type*} [CommRing R] (f : ℚ →+* R) |
| 222 | (C D : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) |
| 223 | (b : Basis (Fin 2) K (Analysis.DifferentialForms.Coordinates.LocalApproximation.W K)) (x : TransportNew.CM.TensorPositions K) : |
| 224 | (totalBasisMatrix K C D b).map f *ᵥ (fun i => f (totalSymplecticCoordinates K D x i)) = |
| 225 | fun i => f (totalSymplecticCoordinates K C (TransportNew.CM.tensorBasisChange K b x) i) := by |
| 226 | funext i |
| 227 | have hm := f.map_mulVec (totalBasisMatrix K C D b) (totalSymplecticCoordinates K D x) i |
| 228 | rw [total_basis_matrix_coordinates] at hm |
| 229 | exact hm.symm |
| 230 | |
| 231 | theorem total_basis_matrix_symplectic |
| 232 | (C D : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) (δ : K) (a : Fin 2 → K) |
| 233 | (ha : ∀ i, ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K (a i) = a i) |
| 234 | (b : Basis (Fin 2) K (Analysis.DifferentialForms.Coordinates.LocalApproximation.W K)) |
| 235 | (horth : Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) (b 1) = 0) |
| 236 | (hc : ∀ i, (C i).a = a i ∧ (C i).delta = δ) |
| 237 | (hd : ∀ i, (D i).a = Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i) ∧ (D i).delta = δ) : |
| 238 | totalBasisMatrix K C D b ∈ Matrix.symplecticGroup (TotalPositions K places) ℚ := by |
| 239 | apply RepresentationTheory.Hecke.RadialDilation.PairingTransport.Realization.preserving_coordinatePairing_symplectic |
| 240 | intro x y |
| 241 | change RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.coordinatePairing |
| 242 | ((LinearMap.toMatrix' (totalBasisTransition K C D b).toLinearMap) *ᵥ x) |
| 243 | ((LinearMap.toMatrix' (totalBasisTransition K C D b).toLinearMap) *ᵥ y) = _ |
| 244 | simp only [← Matrix.toLin'_apply, Matrix.toLin'_toMatrix', LinearEquiv.coe_coe] |
| 245 | exact total_basis_transition_pairing K C D δ a ha b horth hc hd x y |
| 246 | |
| 247 | /-- The change of splitting is an element of the literal rational symplectic |
| 248 | group used by the total finite Weil action. All its data come from the setup. -/ |
| 249 | def approximationSymplecticMatrix [IsGalois ℚ K] |
| 250 | {v : Fin 4 → ComplexMultiplication.OddSignSwitch.CM.OddSignPattern (fun g : Gal(K/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * g)} {Nbase : ℕ} |
| 251 | (D : FourPeriodSetup K v Nbase) {ε : ℝ} |
| 252 | (A : RationalPeriodApproximation K v D.ball D.places D.pair ε) : |
| 253 | Matrix.symplecticGroup (TotalPositions K D.places) ℚ := |
| 254 | ⟨totalBasisMatrix K (fun i => (D.initialPeriods i).coordinates) |
| 255 | (fun i => (A.periods i).coordinates) A.basis, |
| 256 | total_basis_matrix_symplectic K _ _ D.pair.delta D.pair.a |
| 257 | (fun i => (D.pair.a_sign i).2.1) A.basis A.orthogonal |
| 258 | D.initial_coefficients A.coefficients⟩ |
| 259 | |
| 260 | end |
| 261 | |
| 262 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.PeriodTotal.CM |