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.SourceFrameComponents |
| 2 | |
| 3 | /-! # Source Intrinsic Transition -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.SourceIntrinsicTransition.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Exact index and coefficient equivalences between the two source |
| 12 | line blocks and the native tensor frame. -/ |
| 13 | |
| 14 | open scoped Classical _root_.NumberField |
| 15 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 16 | |
| 17 | attribute [local instance] BallArithmetic.CM.directNativeRealNumberField |
| 18 | |
| 19 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsCMField K] [IsGalois ℚ K] |
| 20 | |
| 21 | def sourceTotalIndexEquiv (places : HeckeCycles.GeometricSource.CM.Places K) : |
| 22 | PeriodTotal.CM.TotalPositions K places ≃ Fin places.count × (Fin 3 × Fin 2) where |
| 23 | toFun p := Sum.elim (fun vi => (vi.1, vi.2, 0)) (fun vi => (vi.1, vi.2, 1)) p |
| 24 | invFun p := SourceFrameComponents.CM.sourceTotalSlot K places p.1 p.2.1 p.2.2 |
| 25 | left_inv p := by cases p <;> rfl |
| 26 | right_inv p := by rcases p with ⟨v, i, j⟩; fin_cases j <;> rfl |
| 27 | |
| 28 | omit [IsGalois ℚ K] in |
| 29 | theorem source_total_index_pairing (places : HeckeCycles.GeometricSource.CM.Places K) |
| 30 | (x y : ((Fin places.count × (Fin 3 × Fin 2)) ⊕ (Fin places.count × (Fin 3 × Fin 2))) → ℚ) : |
| 31 | RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.coordinatePairing |
| 32 | (fun i => x (((sourceTotalIndexEquiv K places).sumCongr (sourceTotalIndexEquiv K places)) i)) |
| 33 | (fun i => y (((sourceTotalIndexEquiv K places).sumCongr (sourceTotalIndexEquiv K places)) i)) = |
| 34 | RepresentationTheory.Theta.Adelic.DataTheta.standardPairing x y := |
| 35 | Equiv.sum_comp (sourceTotalIndexEquiv K places) |
| 36 | (fun i => x (.inl i) * y (.inr i) - x (.inr i) * y (.inl i)) |
| 37 | |
| 38 | variable {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} {d : Fin 2 → Fin places.count → Bool} |
| 39 | (Q : Lagrangians.CM.LagrangianPair K B places d) |
| 40 | |
| 41 | theorem direct_source_frame_coefficients_bijective : |
| 42 | Function.Bijective (SourceFrameComponents.CM.directSourceFrameCoefficients K Q) := by |
| 43 | constructor |
| 44 | · intro u w h |
| 45 | funext p |
| 46 | let i := sourceTotalIndexEquiv K places p |
| 47 | have hi := congrFun h i |
| 48 | change SourceFrameComponents.CM.directSourceFrameScale K Q i.1 i.2 * u ((sourceTotalIndexEquiv K places).symm i) = |
| 49 | SourceFrameComponents.CM.directSourceFrameScale K Q i.1 i.2 * w ((sourceTotalIndexEquiv K places).symm i) at hi |
| 50 | have hu := mul_left_cancel₀ (SourceFrameComponents.CM.direct_source_frame_scale_ne_zero K Q i.1 i.2) hi |
| 51 | simpa only [i, Equiv.symm_apply_apply] using hu |
| 52 | · intro w |
| 53 | let e := sourceTotalIndexEquiv K places |
| 54 | refine ⟨fun p => w (e p) / SourceFrameComponents.CM.directSourceFrameScale K Q (e p).1 (e p).2, ?_⟩ |
| 55 | funext i |
| 56 | change SourceFrameComponents.CM.directSourceFrameScale K Q i.1 i.2 * |
| 57 | (w (e (e.symm i)) / SourceFrameComponents.CM.directSourceFrameScale K Q (e (e.symm i)).1 (e (e.symm i)).2) = w i |
| 58 | rw [e.apply_symm_apply] |
| 59 | exact mul_div_cancel₀ _ (SourceFrameComponents.CM.direct_source_frame_scale_ne_zero K Q i.1 i.2) |
| 60 | |
| 61 | def directSourceFrameCoefficientEquiv : (PeriodTotal.CM.TotalPositions K places → ℂ) ≃ₗ[ℂ] |
| 62 | (Fin places.count × (Fin 3 × Fin 2) → ℂ) := |
| 63 | LinearEquiv.ofBijective (SourceFrameComponents.CM.directSourceFrameCoefficients K Q) (direct_source_frame_coefficients_bijective K Q) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | section |
| 68 | |
| 69 | /-! The fixed change from the original total rational coordinates to |
| 70 | the native tensor coordinates is an actual rational symplectic matrix. -/ |
| 71 | |
| 72 | open scoped Classical _root_.NumberField _root_.Matrix |
| 73 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 74 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData |
| 75 | |
| 76 | attribute [local instance] BallArithmetic.CM.directNativeRealNumberField |
| 77 | |
| 78 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsCMField K] [IsGalois ℚ K] |
| 79 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} {d : Fin 2 → Fin places.count → Bool} |
| 80 | (Q : Lagrangians.CM.LagrangianPair K B places d) (hμ : ∀ j, d j places.distinguished = true) |
| 81 | (hother : ∃ τ : Gal(K/ℚ), τ ≠ 1 ∧ τ ≠ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K) |
| 82 | |
| 83 | def directSourceIndexedRationalCoordinates : |
| 84 | TransportNew.CM.TensorPositions K ≃ₗ[ℚ] ((PeriodTotal.CM.TotalPositions K places ⊕ PeriodTotal.CM.TotalPositions K places) → ℚ) := |
| 85 | (IntrinsicCoordinates.CM.directSourceRationalCoordinates K Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 86 | B.b B.conjugate_b (BallArithmetic.CM.direct_source_ball_b_ne_zero K B) Q.a |
| 87 | (BallArithmetic.CM.direct_source_a_fixed K Q) (BallArithmetic.CM.direct_source_a_ne_zero K Q) |
| 88 | (BallArithmetic.CM.directSourceBallArithmeticData K Q hμ hother)).trans |
| 89 | (LinearEquiv.funCongrLeft ℚ ℚ ((sourceTotalIndexEquiv K places).sumCongr (sourceTotalIndexEquiv K places))) |
| 90 | |
| 91 | theorem direct_source_indexed_pairing (x y : TransportNew.CM.TensorPositions K) : |
| 92 | RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.coordinatePairing (directSourceIndexedRationalCoordinates K Q hμ hother x) |
| 93 | (directSourceIndexedRationalCoordinates K Q hμ hother y) = |
| 94 | Algebra.trace ℚ K (Q.delta * TransportNew.CM.tensorHermitian K B.b Q.a x y) := by |
| 95 | let r := IntrinsicCoordinates.CM.directSourceRationalCoordinates K Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 96 | B.b B.conjugate_b (BallArithmetic.CM.direct_source_ball_b_ne_zero K B) Q.a |
| 97 | (BallArithmetic.CM.direct_source_a_fixed K Q) (BallArithmetic.CM.direct_source_a_ne_zero K Q) (BallArithmetic.CM.directSourceBallArithmeticData K Q hμ hother) |
| 98 | change RepresentationTheory.Hecke.RadialDilation.FramePositivity.Realization.coordinatePairing (fun i => r x (((sourceTotalIndexEquiv K places).sumCongr |
| 99 | (sourceTotalIndexEquiv K places)) i)) (fun i => r y (((sourceTotalIndexEquiv K places).sumCongr |
| 100 | (sourceTotalIndexEquiv K places)) i)) = _ |
| 101 | refine (source_total_index_pairing K places (r x) (r y)).trans ?_ |
| 102 | exact IntrinsicCoordinates.CM.direct_source_rational_coordinates_pairing K Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 103 | B.b B.conjugate_b (BallArithmetic.CM.direct_source_ball_b_ne_zero K B) Q.a |
| 104 | (BallArithmetic.CM.direct_source_a_fixed K Q) (BallArithmetic.CM.direct_source_a_ne_zero K Q) |
| 105 | (BallArithmetic.CM.directSourceBallArithmeticData K Q hμ hother) x y |
| 106 | |
| 107 | variable (C : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) |
| 108 | |
| 109 | def sourceNativeTransitionLinear : |
| 110 | ((PeriodTotal.CM.TotalPositions K places ⊕ PeriodTotal.CM.TotalPositions K places) → ℚ) ≃ₗ[ℚ] |
| 111 | ((PeriodTotal.CM.TotalPositions K places ⊕ PeriodTotal.CM.TotalPositions K places) → ℚ) := |
| 112 | (PeriodTotal.CM.totalSymplecticCoordinates K C).symm.trans (directSourceIndexedRationalCoordinates K Q hμ hother) |
| 113 | |
| 114 | def sourceNativeTransitionMatrix : |
| 115 | Matrix (PeriodTotal.CM.TotalPositions K places ⊕ PeriodTotal.CM.TotalPositions K places) |
| 116 | (PeriodTotal.CM.TotalPositions K places ⊕ PeriodTotal.CM.TotalPositions K places) ℚ := |
| 117 | LinearMap.toMatrix' (sourceNativeTransitionLinear K Q hμ hother C).toLinearMap |
| 118 | |
| 119 | theorem source_native_transition_matrix_apply (x : TransportNew.CM.TensorPositions K) : |
| 120 | (sourceNativeTransitionMatrix K Q hμ hother C).mulVec (PeriodTotal.CM.totalSymplecticCoordinates K C x) = |
| 121 | directSourceIndexedRationalCoordinates K Q hμ hother x := by |
| 122 | rw [sourceNativeTransitionMatrix, LinearMap.toMatrix'_mulVec] |
| 123 | change directSourceIndexedRationalCoordinates K Q hμ hother |
| 124 | ((PeriodTotal.CM.totalSymplecticCoordinates K C).symm (PeriodTotal.CM.totalSymplecticCoordinates K C x)) = _ |
| 125 | rw [LinearEquiv.symm_apply_apply] |
| 126 | |
| 127 | theorem source_native_transition_symplectic |
| 128 | (hC : ∀ j, (C j).a = Q.a j ∧ (C j).delta = Q.delta) : |
| 129 | sourceNativeTransitionMatrix K Q hμ hother C ∈ Matrix.symplecticGroup (PeriodTotal.CM.TotalPositions K places) ℚ := by |
| 130 | apply RepresentationTheory.Hecke.RadialDilation.PairingTransport.Realization.preserving_coordinatePairing_symplectic |
| 131 | intro x y |
| 132 | obtain ⟨u, rfl⟩ := (PeriodTotal.CM.totalSymplecticCoordinates K C).surjective x |
| 133 | obtain ⟨v, rfl⟩ := (PeriodTotal.CM.totalSymplecticCoordinates K C).surjective y |
| 134 | rw [source_native_transition_matrix_apply, source_native_transition_matrix_apply, |
| 135 | direct_source_indexed_pairing, PeriodTotal.CM.total_symplectic_coordinates_pairing K C Q.delta Q.a hC] |
| 136 | |
| 137 | def sourceNativeSymplecticTransition |
| 138 | (hC : ∀ j, (C j).a = Q.a j ∧ (C j).delta = Q.delta) : |
| 139 | Matrix.symplecticGroup (PeriodTotal.CM.TotalPositions K places) ℚ := |
| 140 | ⟨sourceNativeTransitionMatrix K Q hμ hother C, source_native_transition_symplectic K Q hμ hother C hC⟩ |
| 141 | |
| 142 | end |
| 143 | |
| 144 | /-! The fixed rational symplectic transition complexifies to the |
| 145 | literal source-to-native tensor map, as checked on all rational vectors. -/ |
| 146 | |
| 147 | open scoped Classical _root_.NumberField _root_.Matrix |
| 148 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 149 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData OAI.RepresentationTheory.Theta.Adelic.DataTheta |
| 150 | open OAI.RepresentationTheory.Theta.Adelic.GeometricGaussians |
| 151 | |
| 152 | attribute [local instance] BallArithmetic.CM.directNativeRealNumberField |
| 153 | |
| 154 | def indexedSwappedPhaseMap {I J V : Type} [AddCommMonoid V] [Module ℂ V] [TopologicalSpace V] |
| 155 | (e : I ≃ J) (N : ((J ⊕ J) → ℂ) ≃L[ℂ] V) : ((I ⊕ I) → ℂ) →ₗ[ℂ] V where |
| 156 | toFun α := N (RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => α ((e.sumCongr e).symm i))) |
| 157 | map_add' α β := by |
| 158 | have h : RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => (α + β) ((e.sumCongr e).symm i)) = |
| 159 | RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => α ((e.sumCongr e).symm i)) + RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => β ((e.sumCongr e).symm i)) := by |
| 160 | funext i |
| 161 | cases i <;> rfl |
| 162 | exact (congrArg N h).trans (N.map_add _ _) |
| 163 | map_smul' c α := by |
| 164 | have h : RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => (c • α) ((e.sumCongr e).symm i)) = |
| 165 | c • RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => α ((e.sumCongr e).symm i)) := by |
| 166 | funext i |
| 167 | cases i <;> rfl |
| 168 | exact (congrArg N h).trans (N.map_smul c _) |
| 169 | |
| 170 | theorem indexed_swapped_phase_map_apply {I J V : Type} |
| 171 | [AddCommMonoid V] [Module ℂ V] [TopologicalSpace V] |
| 172 | (e : I ≃ J) (N : ((J ⊕ J) → ℂ) ≃L[ℂ] V) (α : (I ⊕ I) → ℂ) : |
| 173 | indexedSwappedPhaseMap e N α = N (RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => α ((e.sumCongr e).symm i))) := rfl |
| 174 | |
| 175 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsCMField K] [IsGalois ℚ K] |
| 176 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} {d : Fin 2 → Fin places.count → Bool} |
| 177 | (Q : Lagrangians.CM.LagrangianPair K B places d) (hμ : ∀ j, d j places.distinguished = true) |
| 178 | (hother : ∃ τ : Gal(K/ℚ), τ ≠ 1 ∧ τ ≠ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K) |
| 179 | |
| 180 | abbrev directSourcePhaseRealization : |
| 181 | ((PeriodTotal.CM.TotalPositions K places ⊕ PeriodTotal.CM.TotalPositions K places) → ℂ) →ₗ[ℂ] |
| 182 | RepresentationTheory.Theta.Adelic.BallGeometryData.ComplexPhase (BallArithmetic.CM.directSourceBallArithmeticData K Q hμ hother) := |
| 183 | indexedSwappedPhaseMap (sourceTotalIndexEquiv K places) |
| 184 | (SourceComponents.CM.directSourceComparison K Q hμ hother).complexPhase |
| 185 | |
| 186 | theorem direct_source_phase_rational (x : TransportNew.CM.TensorPositions K) : |
| 187 | directSourcePhaseRealization K Q hμ hother |
| 188 | (fun i => (directSourceIndexedRationalCoordinates K Q hμ hother x i : ℂ)) = |
| 189 | SourceComponents.CM.directSourceComplexComponents K Q hμ hother (ComplexTransition.CM.totalEmbedding K x) := by |
| 190 | let e := (sourceTotalIndexEquiv K places).sumCongr (sourceTotalIndexEquiv K places) |
| 191 | let r := IntrinsicCoordinates.CM.directSourceRationalCoordinates K Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 192 | B.b B.conjugate_b (BallArithmetic.CM.direct_source_ball_b_ne_zero K B) Q.a |
| 193 | (BallArithmetic.CM.direct_source_a_fixed K Q) (BallArithmetic.CM.direct_source_a_ne_zero K Q) (BallArithmetic.CM.directSourceBallArithmeticData K Q hμ hother) |
| 194 | have hinput : RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => (directSourceIndexedRationalCoordinates K Q hμ hother x (e.symm i) : ℂ)) = |
| 195 | (fun i => ((SourceComponents.CM.directSourceComparison K Q hμ hother).rationalPhase |
| 196 | ((SourceComponents.CM.directSourceFrames K Q).rational.coordinates |
| 197 | (QuadraticTensor.CM.quadraticTensorPosition K Q.delta Q.delta_imaginary Q.delta_ne_zero x)) i : ℂ)) := by |
| 198 | refine funext (fun i : (Fin places.count × (Fin 3 × Fin 2)) ⊕ |
| 199 | (Fin places.count × (Fin 3 × Fin 2)) => ?_) |
| 200 | cases i with |
| 201 | | inl i => |
| 202 | change ((r x (e (e.symm (.inr i))) : ℚ) : ℂ) = ((r x (.inr i) : ℚ) : ℂ) |
| 203 | exact congrArg (fun j => ((r x j : ℚ) : ℂ)) (e.apply_symm_apply (.inr i)) |
| 204 | | inr i => |
| 205 | change ((r x (e (e.symm (.inl i))) : ℚ) : ℂ) = ((r x (.inl i) : ℚ) : ℂ) |
| 206 | exact congrArg (fun j => ((r x j : ℚ) : ℂ)) (e.apply_symm_apply (.inl i)) |
| 207 | change (SourceComponents.CM.directSourceComparison K Q hμ hother).complexPhase |
| 208 | (RepresentationTheory.Theta.Adelic.DataTheta.swapPhase (fun i => (directSourceIndexedRationalCoordinates K Q hμ hother x (e.symm i) : ℂ))) = _ |
| 209 | refine (congrArg (SourceComponents.CM.directSourceComparison K Q hμ hother).complexPhase hinput).trans ?_ |
| 210 | exact SourceComponents.CM.direct_source_complex_phase_rational K Q hμ hother x |
| 211 | |
| 212 | variable (C : Fin 2 → HeckeCycles.GeometricSource.CM.SymplecticCoordinates K B places) |
| 213 | |
| 214 | theorem source_native_transition_complex_rational (x : TransportNew.CM.TensorPositions K) : |
| 215 | (sourceNativeTransitionMatrix K Q hμ hother C).map (algebraMap ℚ ℂ) *ᵥ |
| 216 | (fun i => (PeriodTotal.CM.totalSymplecticCoordinates K C x i : ℂ)) = |
| 217 | fun i => (directSourceIndexedRationalCoordinates K Q hμ hother x i : ℂ) := by |
| 218 | funext i |
| 219 | exact (RingHom.map_mulVec (algebraMap ℚ ℂ) (sourceNativeTransitionMatrix K Q hμ hother C) |
| 220 | (PeriodTotal.CM.totalSymplecticCoordinates K C x) i).symm.trans |
| 221 | (congrArg (algebraMap ℚ ℂ) (congrFun (source_native_transition_matrix_apply K Q hμ hother C x) i)) |
| 222 | |
| 223 | theorem source_native_complex_transition (w : ComplexTransition.CM.TotalAmbient K) : |
| 224 | directSourcePhaseRealization K Q hμ hother |
| 225 | ((sourceNativeTransitionMatrix K Q hμ hother C).map (algebraMap ℚ ℂ) *ᵥ |
| 226 | ComplexTransition.CM.totalComplexCoordinates K C w) = SourceComponents.CM.directSourceComplexComponents K Q hμ hother w := by |
| 227 | let f := (directSourcePhaseRealization K Q hμ hother).comp |
| 228 | ((Matrix.toLin' ((sourceNativeTransitionMatrix K Q hμ hother C).map (algebraMap ℚ ℂ))).comp |
| 229 | (ComplexTransition.CM.totalComplexCoordinates K C).toLinearMap) |
| 230 | have he : f = SourceComponents.CM.directSourceComplexComponents K Q hμ hother := by |
| 231 | apply ComplexTransition.CM.linear_maps_eq_of_rational_coordinates (PeriodTotal.CM.totalSymplecticCoordinates K C) |
| 232 | (ComplexTransition.CM.totalComplexCoordinates K C) (ComplexTransition.CM.totalEmbedding K) (ComplexTransition.CM.total_complex_coordinates_embedding K C) |
| 233 | intro x |
| 234 | change directSourcePhaseRealization K Q hμ hother |
| 235 | ((sourceNativeTransitionMatrix K Q hμ hother C).map (algebraMap ℚ ℂ) *ᵥ |
| 236 | ComplexTransition.CM.totalComplexCoordinates K C (ComplexTransition.CM.totalEmbedding K x)) = _ |
| 237 | rw [ComplexTransition.CM.total_complex_coordinates_embedding, source_native_transition_complex_rational, |
| 238 | direct_source_phase_rational] |
| 239 | exact LinearMap.congr_fun he w |
| 240 | |
| 241 | end |
| 242 | |
| 243 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.SourceIntrinsicTransition.CM |