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.IntrinsicKernelSumTensor |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.SingleIntrinsicCotangentSlots |
| 3 | import OAI.RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection |
| 4 | |
| 5 | /-! # Intrinsic Kernel Sum Slots -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.IntrinsicKernelSumSlots.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The fixed source order-two slots are the literal native ThetaKernel slots, |
| 14 | with the two actual nonzero multiplicity scales retained. -/ |
| 15 | |
| 16 | open scoped Classical _root_.NumberField _root_.Matrix |
| 17 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 18 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData |
| 19 | |
| 20 | section |
| 21 | |
| 22 | attribute [local instance] BallArithmetic.CM.directNativeRealNumberField |
| 23 | |
| 24 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsCMField K] [IsGalois ℚ K] |
| 25 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} {d : Fin 2 → Fin places.count → Bool} |
| 26 | (Q : Lagrangians.CM.LagrangianPair K B places d) |
| 27 | |
| 28 | theorem direct_source_frame_coefficient_diagonal : |
| 29 | SourceIntrinsicFrameDeterminant.CM.directSourceIndexedFrameCoefficientMatrix K Q = |
| 30 | Matrix.diagonal (fun p : PeriodTotal.CM.TotalPositions K places => |
| 31 | SourceFrameComponents.CM.directSourceFrameScale K Q ((SourceIntrinsicTransition.CM.sourceTotalIndexEquiv K places) p).1 |
| 32 | ((SourceIntrinsicTransition.CM.sourceTotalIndexEquiv K places) p).2) := by |
| 33 | apply Matrix.ext_iff_mulVec.mpr |
| 34 | intro u |
| 35 | rw [SourceIntrinsicFrameDeterminant.CM.direct_source_indexed_frame_coefficient_apply] |
| 36 | funext p |
| 37 | rw [Matrix.mulVec_diagonal] |
| 38 | cases p <;> rfl |
| 39 | |
| 40 | end |
| 41 | |
| 42 | attribute [local instance] BallArithmetic.CM.directNativeRealNumberField |
| 43 | |
| 44 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsCMField K] [IsGalois ℚ K] |
| 45 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} (d : Fin 2 → Gal(K/ℚ) → Bool) |
| 46 | (Q : Lagrangians.CM.LagrangianPair K B places (fun k v => d k (places.representative v))) |
| 47 | (hμ : ∀ k, d k (places.representative places.distinguished) = true) |
| 48 | |
| 49 | theorem sum_comparison_dual_apply (u : PeriodTotal.CM.TotalPositions K places → ℂ) |
| 50 | (p : Fin places.count × (Fin 3 × Fin 2)) : |
| 51 | IntrinsicKernelSumTensor.CM.sumComparisonDualCoordinates K d Q u p = |
| 52 | (SourceFrameComponents.CM.directSourceFrameScale K Q p.1 p.2)⁻¹ * u ((SourceIntrinsicTransition.CM.sourceTotalIndexEquiv K places).symm p) := by |
| 53 | have hi : (SourceIntrinsicFrameDeterminant.CM.directSourceIndexedFrameCoefficientMatrix K Q)⁻¹ = |
| 54 | Matrix.diagonal (fun p : PeriodTotal.CM.TotalPositions K places => |
| 55 | (SourceFrameComponents.CM.directSourceFrameScale K Q ((SourceIntrinsicTransition.CM.sourceTotalIndexEquiv K places) p).1 |
| 56 | ((SourceIntrinsicTransition.CM.sourceTotalIndexEquiv K places) p).2)⁻¹) := by |
| 57 | apply Matrix.inv_eq_right_inv |
| 58 | rw [direct_source_frame_coefficient_diagonal, Matrix.diagonal_mul_diagonal] |
| 59 | simp only [mul_inv_cancel₀ (SourceFrameComponents.CM.direct_source_frame_scale_ne_zero K Q _ _), Matrix.diagonal_one] |
| 60 | rw [IntrinsicKernelSumTensor.CM.sumComparisonDualCoordinates, hi, Matrix.diagonal_transpose, Matrix.mulVec_diagonal] |
| 61 | rw [(SourceIntrinsicTransition.CM.sourceTotalIndexEquiv K places).apply_symm_apply] |
| 62 | |
| 63 | theorem sum_comparison_dual_slot (a : Fin 2 × Fin 2) : |
| 64 | IntrinsicKernelSumTensor.CM.sumComparisonDualCoordinates K d Q (TotalAdaptedDualSlots.CM.totalAdaptedDualSlot K places a) = |
| 65 | (SingleIntrinsicCotangentSlots.CM.singleNativeCotangentScale K Q a.2)⁻¹ • Pi.single |
| 66 | (RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slot (A := IntrinsicKernelArithmetic.CM.directSourceNativeSumArithmetic K Q hμ) a.1 a.2) 1 := by |
| 67 | funext p |
| 68 | rw [sum_comparison_dual_apply] |
| 69 | let e := SourceIntrinsicTransition.CM.sourceTotalIndexEquiv K places |
| 70 | let q : Fin places.count × (Fin 3 × Fin 2) := (places.distinguished, a.1.succ, a.2) |
| 71 | change (SourceFrameComponents.CM.directSourceFrameScale K Q p.1 p.2)⁻¹ * |
| 72 | (Pi.single (e.symm q) 1 : PeriodTotal.CM.TotalPositions K places → ℂ) (e.symm p) = |
| 73 | (SingleIntrinsicCotangentSlots.CM.singleNativeCotangentScale K Q a.2)⁻¹ * |
| 74 | (Pi.single q 1 : Fin places.count × (Fin 3 × Fin 2) → ℂ) p |
| 75 | by_cases hp : p = q |
| 76 | · subst p |
| 77 | simp only [Pi.single_eq_same, mul_one] |
| 78 | exact congrArg Inv.inv (SingleIntrinsicCotangentSlots.CM.single_native_cotangent_scale_slot K Q a.2 a.1) |
| 79 | · have he : e.symm p ≠ e.symm q := fun h => hp (e.symm.injective h) |
| 80 | simp only [Pi.single_apply, ite_eq_right he, ite_eq_right hp, mul_zero] |
| 81 | |
| 82 | end |
| 83 | |
| 84 | /-! The native ThetaKernel order-two projection is exactly the source's twice |
| 85 | alternating coefficient, including the factorial and both multiplicity |
| 86 | scales. The resulting normalization is constant and nonzero. -/ |
| 87 | |
| 88 | open scoped Classical _root_.NumberField _root_.Matrix _root_.Matrix.Norms.Elementwise |
| 89 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 90 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData OAI.RepresentationTheory.Theta.Adelic.DataTheta |
| 91 | open OAI.RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic OAI.RepresentationTheory.Theta.Kernel.IntrinsicExterior.Intrinsic |
| 92 | open OAI.RepresentationTheory.Theta.Kernel.Definitions.DerivativeFactorization |
| 93 | |
| 94 | attribute [local instance] BallArithmetic.CM.directNativeRealNumberField |
| 95 | |
| 96 | theorem two_tensor_smul_pair {V : Type} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 97 | (T : ContinuousMultilinearMap ℂ (fun _ : Fin 2 => V) ℂ) |
| 98 | (a b : ℂ) (u v : V) : T ![a • u, b • v] = a * b * T ![u, v] := by |
| 99 | let c : Fin 2 → ℂ := ![a, b] |
| 100 | have h := T.map_smul_univ c ![u, v] |
| 101 | have hv : (fun i => c i • (![u, v] i)) = ![a • u, b • v] := by |
| 102 | funext i |
| 103 | fin_cases i <;> rfl |
| 104 | rw [hv] at h |
| 105 | simpa only [c, Fin.prod_univ_two, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 106 | Matrix.head_cons, smul_eq_mul] using h |
| 107 | |
| 108 | theorem cancel_two_inverse_scales (a b t s : ℂ) (ha : a ≠ 0) (hb : b ≠ 0) |
| 109 | (h : a⁻¹ * b⁻¹ * t = s) : t = a * b * s := by |
| 110 | rw [← h] |
| 111 | field_simp |
| 112 | |
| 113 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsCMField K] [IsGalois ℚ K] |
| 114 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} (d : Fin 2 → Gal(K/ℚ) → Bool) |
| 115 | (Q : Lagrangians.CM.LagrangianPair K B places (fun k v => d k (places.representative v))) |
| 116 | (hμ : ∀ k, d k (places.representative places.distinguished) = true) |
| 117 | (N : RepresentationTheory.Theta.Adelic.DataTheta.ComparisonData _ _ _ (IntrinsicKernelArithmetic.CM.directSourceNativeSumArithmetic K Q hμ)) |
| 118 | (hN : RepresentationTheory.Theta.Adelic.DataTheta.CoordinateIdentification N (IntrinsicKernelArithmetic.CM.directSourceNativeSumFrames K Q)) |
| 119 | (hG : RepresentationTheory.Theta.Adelic.DataTheta.GeometryIdentification N) |
| 120 | (L : (j : Fin 2) → HeckeCycles.GeometricSource.CM.LinePeriod K B places (d j)) |
| 121 | (hL : ∀ j, (L j).coordinates.a = Q.a j ∧ (L j).coordinates.delta = Q.delta) |
| 122 | |
| 123 | def sumComparisonTopConstant (z₀ : B.Domain) : ℂ := |
| 124 | SingleIntrinsicCotangentSlots.CM.singleNativeCotangentScale K Q 0 * SingleIntrinsicCotangentSlots.CM.singleNativeCotangentScale K Q 1 * |
| 125 | KernelSumHalfRatio.CM.sumComparisonHalfRatio K d Q hμ N hN L hL z₀ |
| 126 | |
| 127 | include hG in |
| 128 | theorem sum_comparison_top_constant_ne_zero (z₀ : B.Domain) : |
| 129 | sumComparisonTopConstant K d Q hμ N hN L hL z₀ ≠ 0 := |
| 130 | mul_ne_zero (mul_ne_zero (SingleIntrinsicCotangentSlots.CM.single_native_cotangent_scale_ne_zero K Q 0) |
| 131 | (SingleIntrinsicCotangentSlots.CM.single_native_cotangent_scale_ne_zero K Q 1)) |
| 132 | (KernelSumHalfRatio.CM.sum_comparison_half_ratio_ne_zero K d Q hμ N hN hG L hL z₀) |
| 133 | |
| 134 | include hG in |
| 135 | theorem sum_comparison_native_tensor_slot (φ : RepresentationTheory.Theta.Kernel.Definitions.DerivativeFactorization.Input (PeriodTotal.CM.TotalPositions K places)) |
| 136 | (z₀ z : B.Domain) (a b : Fin 2 × Fin 2) : |
| 137 | RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N (IntrinsicKernelSum.CM.sumComparisonFiniteInput K Q hμ N hN (fun j => (L j).coordinates) hL φ) |
| 138 | 2 (SourceIntrinsicBall.CM.sourceNativeBallPoint K B z) |
| 139 | ![Pi.single (RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slot (A := IntrinsicKernelArithmetic.CM.directSourceNativeSumArithmetic K Q hμ) a.1 a.2) 1, |
| 140 | Pi.single (RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slot (A := IntrinsicKernelArithmetic.CM.directSourceNativeSumArithmetic K Q hμ) b.1 b.2) 1] = |
| 141 | SingleIntrinsicCotangentSlots.CM.singleNativeCotangentScale K Q a.2 * SingleIntrinsicCotangentSlots.CM.singleNativeCotangentScale K Q b.2 * |
| 142 | ((2 : ℂ)⁻¹ * KernelSumHalfRatio.CM.sumComparisonHalfRatio K d Q hμ N hN L hL z₀ * |
| 143 | InitialTensor.CM.splitThetaTensor K (L 0) (L 1) φ z.val a b) := by |
| 144 | let T := RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N |
| 145 | (IntrinsicKernelSum.CM.sumComparisonFiniteInput K Q hμ N hN (fun j => (L j).coordinates) hL φ) |
| 146 | 2 (SourceIntrinsicBall.CM.sourceNativeBallPoint K B z) |
| 147 | have ha := sum_comparison_dual_slot K d Q hμ a |
| 148 | have hb := sum_comparison_dual_slot K d Q hμ b |
| 149 | have he := congrArg₂ (fun u v => T ![u, v]) ha hb |
| 150 | have hm := two_tensor_smul_pair T (SingleIntrinsicCotangentSlots.CM.singleNativeCotangentScale K Q a.2)⁻¹ |
| 151 | (SingleIntrinsicCotangentSlots.CM.singleNativeCotangentScale K Q b.2)⁻¹ |
| 152 | (Pi.single (RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slot (A := IntrinsicKernelArithmetic.CM.directSourceNativeSumArithmetic K Q hμ) a.1 a.2) 1) |
| 153 | (Pi.single (RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slot (A := IntrinsicKernelArithmetic.CM.directSourceNativeSumArithmetic K Q hμ) b.1 b.2) 1) |
| 154 | have hs := IntrinsicKernelSumTensor.CM.sum_comparison_geometric_source_slots K d Q hμ N hN hG L hL φ z₀ z a b |
| 155 | exact cancel_two_inverse_scales _ _ _ _ |
| 156 | (SingleIntrinsicCotangentSlots.CM.single_native_cotangent_scale_ne_zero K Q a.2) |
| 157 | (SingleIntrinsicCotangentSlots.CM.single_native_cotangent_scale_ne_zero K Q b.2) ((he.trans hm).symm.trans hs) |
| 158 | |
| 159 | include hG in |
| 160 | theorem sum_comparison_native_top (φ : RepresentationTheory.Theta.Kernel.Definitions.DerivativeFactorization.Input (PeriodTotal.CM.TotalPositions K places)) (z₀ z : B.Domain) : |
| 161 | RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.thetaTopForm N (IntrinsicKernelSum.CM.sumComparisonFiniteInput K Q hμ N hN (fun j => (L j).coordinates) hL φ) |
| 162 | (SourceIntrinsicBall.CM.sourceNativeBallPoint K B z) = |
| 163 | (sumComparisonTopConstant K d Q hμ N hN L hL z₀ * |
| 164 | InitialTensor.CM.splitThetaTopCoefficient K (L 0) (L 1) φ z.val) • RepresentationTheory.Theta.Kernel.IntrinsicExterior.Intrinsic.area := by |
| 165 | let T := RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N |
| 166 | (IntrinsicKernelSum.CM.sumComparisonFiniteInput K Q hμ N hN (fun j => (L j).coordinates) hL φ) |
| 167 | 2 (SourceIntrinsicBall.CM.sourceNativeBallPoint K B z) |
| 168 | have hslots (i j : Fin 2) : RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding (A := IntrinsicKernelArithmetic.CM.directSourceNativeSumArithmetic K Q hμ) j |
| 169 | (if i = 0 then ![1, 0] else ![0, 1]) = |
| 170 | Pi.single (RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slot (A := IntrinsicKernelArithmetic.CM.directSourceNativeSumArithmetic K Q hμ) i j) 1 := by |
| 171 | fin_cases i <;> simp [RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding] |
| 172 | have ht : RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.secondCoefficient T = sumComparisonTopConstant K d Q hμ N hN L hL z₀ * |
| 173 | InitialTensor.CM.splitThetaTopCoefficient K (L 0) (L 1) φ z.val := by |
| 174 | change T ![RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding 0 ![1, 0], RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding 1 ![0, 1]] - |
| 175 | T ![RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding 0 ![0, 1], RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding 1 ![1, 0]] - |
| 176 | T ![RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding 1 ![1, 0], RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding 0 ![0, 1]] + |
| 177 | T ![RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding 1 ![0, 1], RepresentationTheory.Theta.Kernel.IntrinsicSecondProjection.Intrinsic.slotEmbedding 0 ![1, 0]] = _ |
| 178 | have h0 (j : Fin 2) := hslots 0 j |
| 179 | have h1 (j : Fin 2) := hslots 1 j |
| 180 | simp only [Fin.isValue, ite_true, one_ne_zero, ite_false] at h0 h1 |
| 181 | rw [h0, h1, h0, h1] |
| 182 | change RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N _ 2 _ _ - RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N _ 2 _ _ - |
| 183 | RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N _ 2 _ _ + RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N _ 2 _ _ = _ |
| 184 | rw [sum_comparison_native_tensor_slot K d Q hμ N hN hG L hL φ z₀ z (0, 0) (1, 1), |
| 185 | sum_comparison_native_tensor_slot K d Q hμ N hN hG L hL φ z₀ z (1, 0) (0, 1), |
| 186 | sum_comparison_native_tensor_slot K d Q hμ N hN hG L hL φ z₀ z (0, 1) (1, 0), |
| 187 | sum_comparison_native_tensor_slot K d Q hμ N hN hG L hL φ z₀ z (1, 1) (0, 0)] |
| 188 | dsimp only [sumComparisonTopConstant, InitialTensor.CM.splitThetaTopCoefficient, RepresentationTheory.Theta.Kernel.Calculus.doubleAlt] |
| 189 | ring |
| 190 | exact congrArg (fun c : ℂ => c • RepresentationTheory.Theta.Kernel.IntrinsicExterior.Intrinsic.area) ht |
| 191 | |
| 192 | end |
| 193 | |
| 194 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.IntrinsicKernelSumSlots.CM |