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.BallFrameMatrices |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoefficientPeriods |
| 3 | |
| 4 | /-! # Source Frame Action -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.SourceFrameAction.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! ThetaCycle: the actual source line-annihilator frame transforms by an |
| 11 | explicit block matrix over all places. Its determinant is the square of |
| 12 | the projective denominator; every compact block has determinant one. -/ |
| 13 | |
| 14 | open scoped Classical _root_.Matrix |
| 15 | open _root_.Matrix OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 17 | |
| 18 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsGalois ℚ K] |
| 19 | [NumberField.IsCMField K] |
| 20 | |
| 21 | theorem source_local_frame_weighted (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) |
| 22 | (i : Fin places.count) (z : HeckeCycles.GeometricSource.CM.BallChart) (u : Fin 3 → ℂ) : |
| 23 | Geometry.ComplexBall.PrescribedSignsB.localFrame (CoefficientPeriods.CM.ballMatrix K B places i) z u = |
| 24 | CMExtraction.UnitaryFrameAction.weightedFrame (HeckeCycles.ReferenceDatum.CM.embeddings K places i B.b) z u := by |
| 25 | have hB : CoefficientPeriods.CM.ballMatrix K B places i = |
| 26 | Matrix.toBilin' (CMExtraction.UnitaryFrameAction.diagonalForm (HeckeCycles.ReferenceDatum.CM.embeddings K places i B.b)) := by |
| 27 | apply congrArg Matrix.toBilin' |
| 28 | apply Matrix.ext |
| 29 | intro j k |
| 30 | fin_cases j <;> fin_cases k <;> simp [CMExtraction.UnitaryFrameAction.diagonalForm] |
| 31 | rw [hB] |
| 32 | ext j <;> fin_cases j <;> |
| 33 | simp [Geometry.ComplexBall.PrescribedSignsB.localFrame, Geometry.ComplexBall.PrescribedSignsB.axis, Geometry.ComplexBall.PrescribedSignsB.lineVector, |
| 34 | Matrix.toBilin'_apply, CMExtraction.UnitaryFrameAction.diagonalForm, CMExtraction.UnitaryFrameAction.weightedFrame, CMExtraction.UnitaryFrameAction.weightedAnnihilator, |
| 35 | RepresentationTheory.Theta.Adelic.DeterminantCoordinates.lineVector, Fin.sum_univ_succ] |
| 36 | ring |
| 37 | |
| 38 | theorem ball_ambient_action_paired (places : HeckeCycles.GeometricSource.CM.Places K) (g : HeckeCycles.GeometricSource.CM.Vec K ≃ₗ[K] HeckeCycles.GeometricSource.CM.Vec K) |
| 39 | (w : HeckeCycles.GeometricSource.CM.Ambient K) (i : Fin places.count) : |
| 40 | Symplectic.CM.galoisToPaired K places (SourceSymplecticAction.CM.ballAmbientAction K g w) i = |
| 41 | ((SourceSymplecticAction.CM.ballEmbeddingMatrix K g (places.representative i)).mulVec (Symplectic.CM.galoisToPaired K places w i).1, |
| 42 | (SourceSymplecticAction.CM.ballEmbeddingMatrix K g (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * places.representative i)).mulVec |
| 43 | (Symplectic.CM.galoisToPaired K places w i).2) := by |
| 44 | rw [Symplectic.CM.galoisToPaired_apply, Symplectic.CM.galoisToPaired_apply] |
| 45 | rfl |
| 46 | |
| 47 | variable (g : HeckeCycles.GeometricSource.CM.Vec K ≃ₗ[K] HeckeCycles.GeometricSource.CM.Vec K) (hdet : LinearMap.det g.toLinearMap = 1) |
| 48 | (B : HeckeCycles.GeometricSource.CM.BallDatum K) (places : HeckeCycles.GeometricSource.CM.Places K) (d : Gal(K/ℚ) → Bool) |
| 49 | |
| 50 | def sourceFramePlaceMatrix (z : HeckeCycles.GeometricSource.CM.BallChart) (i : Fin places.count) : |
| 51 | Matrix (Fin 3) (Fin 3) ℂ := |
| 52 | if i = places.distinguished then BallFrameMatrices.CM.sourceActiveFrameMatrix K g hdet B z |
| 53 | else if d (places.representative i) then SourceSymplecticAction.CM.ballEmbeddingMatrix K g (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * places.representative i) |
| 54 | else SourceSymplecticAction.CM.ballEmbeddingMatrix K g (places.representative i) |
| 55 | |
| 56 | def sourceFrameMatrix (z : HeckeCycles.GeometricSource.CM.BallChart) : Matrix (HeckeCycles.GeometricSource.CM.Positions K places) (HeckeCycles.GeometricSource.CM.Positions K places) ℂ := |
| 57 | Matrix.reindexRingEquiv ℂ (Equiv.prodComm (Fin 3) (Fin places.count)) |
| 58 | (Matrix.blockDiagonal (sourceFramePlaceMatrix K g hdet B places d z)) |
| 59 | |
| 60 | theorem source_frame_matrix_entry (z : HeckeCycles.GeometricSource.CM.BallChart) (i j : Fin places.count) (a b : Fin 3) : |
| 61 | sourceFrameMatrix K g hdet B places d z (i, a) (j, b) = |
| 62 | if i = j then sourceFramePlaceMatrix K g hdet B places d z i a b else 0 := rfl |
| 63 | |
| 64 | theorem source_frame_matrix_mulVec (z : HeckeCycles.GeometricSource.CM.BallChart) (x : HeckeCycles.GeometricSource.CM.Positions K places → ℂ) |
| 65 | (i : Fin places.count) (a : Fin 3) : |
| 66 | (sourceFrameMatrix K g hdet B places d z *ᵥ x) (i, a) = |
| 67 | (sourceFramePlaceMatrix K g hdet B places d z i *ᵥ (fun b => x (i, b))) a := by |
| 68 | change (∑ j, sourceFrameMatrix K g hdet B places d z (i, a) j * x j) = _ |
| 69 | simp [Fintype.sum_prod_type, source_frame_matrix_entry, Matrix.mulVec, dotProduct] |
| 70 | |
| 71 | theorem source_frame_place_compact_det (z : HeckeCycles.GeometricSource.CM.BallChart) (i : Fin places.count) |
| 72 | (hi : i ≠ places.distinguished) : |
| 73 | (sourceFramePlaceMatrix K g hdet B places d z i).det = 1 := by |
| 74 | unfold sourceFramePlaceMatrix |
| 75 | rw [ite_eq_right hi] |
| 76 | split_ifs |
| 77 | · exact (BallFrameMatrices.CM.ballEmbeddingSL K g hdet (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * places.representative i)).property |
| 78 | · exact (BallFrameMatrices.CM.ballEmbeddingSL K g hdet (places.representative i)).property |
| 79 | |
| 80 | variable (hg : ∀ x y, HeckeCycles.GeometricSource.CM.hermitian K B.b (g x) (g y) = HeckeCycles.GeometricSource.CM.hermitian K B.b x y) |
| 81 | |
| 82 | include hg in |
| 83 | theorem source_frame_matrix_det (z : HeckeCycles.GeometricSource.CM.BallChart) : |
| 84 | (sourceFrameMatrix K g hdet B places d z).det = |
| 85 | ((BallActionMatrix.CM.ballActionMatrix K g).mulVec (HeckeCycles.GeometricSource.CM.BallDatum.lineVector z) 2) ^ 2 := by |
| 86 | change (Matrix.reindex (Equiv.prodComm (Fin 3) (Fin places.count)) |
| 87 | (Equiv.prodComm (Fin 3) (Fin places.count)) |
| 88 | (Matrix.blockDiagonal (sourceFramePlaceMatrix K g hdet B places d z))).det = _ |
| 89 | rw [Matrix.det_reindex_self, Matrix.det_blockDiagonal, |
| 90 | ← Finset.mul_prod_erase Finset.univ _ (Finset.mem_univ places.distinguished)] |
| 91 | have hp : ∏ i ∈ Finset.univ.erase places.distinguished, |
| 92 | (sourceFramePlaceMatrix K g hdet B places d z i).det = 1 := |
| 93 | Finset.prod_eq_one fun i hi => source_frame_place_compact_det K g hdet B places d z i |
| 94 | (Finset.mem_erase.mp hi).1 |
| 95 | rw [hp, mul_one] |
| 96 | change (if places.distinguished = places.distinguished then BallFrameMatrices.CM.sourceActiveFrameMatrix K g hdet B z else _).det = _ |
| 97 | rw [ite_eq_left rfl] |
| 98 | exact BallFrameMatrices.CM.source_active_frame_matrix_det K g hdet B hg z |
| 99 | |
| 100 | include hg in |
| 101 | theorem source_place_frame_transform (z : B.Domain) (i : Fin places.count) (u : Fin 3 → ℂ) : |
| 102 | ((SourceSymplecticAction.CM.ballEmbeddingMatrix K g (places.representative i)).mulVec |
| 103 | (Geometry.ComplexBall.PrescribedSignsB.placeFrame (CoefficientPeriods.CM.ballMatrix K B places) places.distinguished |
| 104 | (fun j => d (places.representative j)) z.val i u).1, |
| 105 | (SourceSymplecticAction.CM.ballEmbeddingMatrix K g (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K * places.representative i)).mulVec |
| 106 | (Geometry.ComplexBall.PrescribedSignsB.placeFrame (CoefficientPeriods.CM.ballMatrix K B places) places.distinguished |
| 107 | (fun j => d (places.representative j)) z.val i u).2) = |
| 108 | Geometry.ComplexBall.PrescribedSignsB.placeFrame (CoefficientPeriods.CM.ballMatrix K B places) places.distinguished |
| 109 | (fun j => d (places.representative j)) (HeckeCycles.GeometricSource.CM.BallDatum.lineAction g z.val) i |
| 110 | (sourceFramePlaceMatrix K g hdet B places d z.val i *ᵥ u) := by |
| 111 | by_cases hi : i = places.distinguished |
| 112 | · subst i |
| 113 | simp only [Geometry.ComplexBall.PrescribedSignsB.placeFrame, sourceFramePlaceMatrix, ite_true, |
| 114 | places.identity, mul_one, source_local_frame_weighted, HeckeCycles.ReferenceDatum.CM.embeddings_distinguished] |
| 115 | exact BallFrameMatrices.CM.source_weighted_frame_transform K g hdet B hg z u |
| 116 | · cases hd : d (places.representative i) <;> |
| 117 | simp [Geometry.ComplexBall.PrescribedSignsB.placeFrame, sourceFramePlaceMatrix, hi, hd] |
| 118 | |
| 119 | include hg in |
| 120 | theorem source_native_frame_transform (z : B.Domain) (x : HeckeCycles.GeometricSource.CM.Positions K places → ℂ) : |
| 121 | SourceSymplecticAction.CM.ballAmbientAction K g (Prescribed.CM.nativePeriodFrame K B places d z.val x) = |
| 122 | Prescribed.CM.nativePeriodFrame K B places d (HeckeCycles.GeometricSource.CM.BallDatum.lineAction g z.val) |
| 123 | (sourceFrameMatrix K g hdet B places d z.val *ᵥ x) := by |
| 124 | apply (Symplectic.CM.galoisToPaired K places).injective |
| 125 | funext i |
| 126 | rw [ball_ambient_action_paired] |
| 127 | simp only [Prescribed.CM.nativePeriodFrame, LinearMap.comp_apply, LinearEquiv.coe_coe, |
| 128 | LinearEquiv.apply_symm_apply] |
| 129 | have he : (fun a => (sourceFrameMatrix K g hdet B places d z.val *ᵥ x) (i, a)) = |
| 130 | sourceFramePlaceMatrix K g hdet B places d z.val i *ᵥ (fun a => x (i, a)) := |
| 131 | funext (source_frame_matrix_mulVec K g hdet B places d z.val x i) |
| 132 | change _ = Geometry.ComplexBall.PrescribedSignsB.placeFrame (CoefficientPeriods.CM.ballMatrix K B places) places.distinguished |
| 133 | (fun j => d (places.representative j)) (HeckeCycles.GeometricSource.CM.BallDatum.lineAction g z.val) i |
| 134 | (fun a => (sourceFrameMatrix K g hdet B places d z.val *ᵥ x) (i, a)) |
| 135 | rw [he] |
| 136 | exact source_place_frame_transform K g hdet B places d hg z i (fun a => x (i, a)) |
| 137 | |
| 138 | end |
| 139 | |
| 140 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.SourceFrameAction.CM |