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.CMExtraction.Multiplicity.OneLocal |
| 2 | import OAI.RepresentationTheory.Theta.Adelic.BallGeometryData |
| 3 | |
| 4 | /-! # One Ball -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.OneBall.Quadratic |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Construct the multiplicity-one ball-arithmetic input from CM embeddings |
| 11 | and the actual Hermitian coefficients. All period, theta and oscillator |
| 12 | identifications remain conclusions of the full AdelicTheta prerequisite. -/ |
| 13 | |
| 14 | open scoped Classical _root_.NumberField |
| 15 | open _root_.NumberField |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 17 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData |
| 18 | |
| 19 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [IsGalois ℚ E] [IsCMField E] |
| 20 | (places : HeckeCycles.GeometricSource.CM.Places E) |
| 21 | (δ : E) (hδ : IsCMField.complexConj E δ = -δ) (hδ0 : δ ≠ 0) |
| 22 | (b : E) (hb : IsCMField.complexConj E b = b) (hb0 : b ≠ 0) |
| 23 | (hball : (HeckeCycles.ReferenceDatum.CM.embeddings E places places.distinguished b).re < 0) |
| 24 | (hcompact : ∀ i, i ≠ places.distinguished → 0 < (HeckeCycles.ReferenceDatum.CM.embeddings E places i b).re) |
| 25 | (a : E) (ha : IsCMField.complexConj E a = a) (ha0 : a ≠ 0) |
| 26 | (hactive : (HeckeCycles.ReferenceDatum.CM.embeddings E places places.distinguished (δ * a)).im < 0) |
| 27 | (hother : ∃ i : Fin places.count, i ≠ places.distinguished) |
| 28 | |
| 29 | include hball hcompact in |
| 30 | theorem singleHermitian_sign (i : Fin places.count) (j : Fin 3) : |
| 31 | (if 0 < ThetaCycle.CMFormCoordinates.CM.sourceHermitianRealCoefficients E places b i j then (1 : ℂ) else -1) = |
| 32 | if i = places.distinguished ∧ j = 2 then -1 else 1 := by |
| 33 | by_cases hj : j = 2 |
| 34 | · subst j |
| 35 | by_cases hi : i = places.distinguished |
| 36 | · subst i |
| 37 | simp [ThetaCycle.CMFormCoordinates.CM.sourceHermitianRealCoefficients, not_lt.mpr hball.le] |
| 38 | · simp [ThetaCycle.CMFormCoordinates.CM.sourceHermitianRealCoefficients, hi, hcompact i hi] |
| 39 | · simp [ThetaCycle.CMFormCoordinates.CM.sourceHermitianRealCoefficients, hj] |
| 40 | |
| 41 | def singleBallArithmeticData : |
| 42 | RepresentationTheory.Theta.Adelic.BallGeometryData.BallArithmeticData (maximalRealSubfield E) (ThetaCycle.QuadraticModel.CM.cmQuadraticParameter E δ hδ) 1 |
| 43 | (ThetaCycle.CMGlobalFrames.CM.cmHermitianUnit E δ hδ b hb hb0) (OneFrames.Quadratic.singleSkewUnit E δ hδ hδ0 a ha ha0) where |
| 44 | places := places.count |
| 45 | enumerate := ThetaCycle.RealPlaces.CM.sourceRealPlaces E places |
| 46 | distinguished := places.distinguished |
| 47 | other_place := hother |
| 48 | real := ThetaCycle.CMArchimedeanCoordinates.CM.sourceRealCoordinate E places |
| 49 | real_continuous := ThetaCycle.CMArchimedeanCoordinates.CM.source_real_coordinate_continuous E places |
| 50 | real_inverse_continuous := ThetaCycle.CMArchimedeanCoordinates.CM.source_real_coordinate_inverse_continuous E places |
| 51 | complex := ThetaCycle.CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate E places δ hδ hδ0 |
| 52 | complex_continuous := ThetaCycle.CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_continuous E places δ hδ hδ0 |
| 53 | complex_inverse_continuous := ThetaCycle.CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_inverse_continuous E places δ hδ hδ0 |
| 54 | complex_scalar := ThetaCycle.CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_scalar E places δ hδ hδ0 |
| 55 | complex_star := ThetaCycle.CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_star E places δ hδ hδ0 |
| 56 | basisV := ThetaCycle.CMOrthonormalFrames.CM.sourceHermitianNormalizer E places b hb hb0 |
| 57 | basisP := OneLocal.Quadratic.singleSkewNormalizer E places δ hδ hδ0 a ha ha0 |
| 58 | positive i _ := decide (0 < OneLocal.Quadratic.singleSkewRealCoefficient E places δ a i) |
| 59 | distinguished_sign _ := by |
| 60 | have hneg : OneLocal.Quadratic.singleSkewRealCoefficient E places δ a places.distinguished < 0 := |
| 61 | mul_neg_of_pos_of_neg (by norm_num) hactive |
| 62 | simp [not_lt.mpr hneg.le] |
| 63 | formV i := |
| 64 | (ThetaCycle.CMOrthonormalFrames.CM.source_hermitian_normalized E places δ hδ hδ0 b hb hb0 i).trans |
| 65 | (congrArg Matrix.diagonal (funext (singleHermitian_sign E places b hball hcompact i))) |
| 66 | formP i := by |
| 67 | refine (OneLocal.Quadratic.singleSkewUnit_normalized E places δ hδ hδ0 a ha ha0 i).trans ?_ |
| 68 | congr 1 |
| 69 | funext j |
| 70 | by_cases h : 0 < OneLocal.Quadratic.singleSkewRealCoefficient E places δ a i <;> simp [h] |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.OneBall.Quadratic |