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.OneFrames |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CMOrthonormalFrames |
| 3 | |
| 4 | /-! # One Local -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.OneLocal.Quadratic |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual local skew-Hermitian form of one multiplicity line and its |
| 11 | orthonormal basis in the same CM completion coordinates. -/ |
| 12 | |
| 13 | open scoped Classical _root_.NumberField |
| 14 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CMOrthonormalFrames.CM |
| 15 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 16 | |
| 17 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [IsGalois ℚ E] [IsCMField E] |
| 18 | (places : HeckeCycles.GeometricSource.CM.Places E) |
| 19 | (δ : E) (hδ : IsCMField.complexConj E δ = -δ) (hδ0 : δ ≠ 0) |
| 20 | (a : E) (ha : IsCMField.complexConj E a = a) (ha0 : a ≠ 0) |
| 21 | |
| 22 | def singleSkewRealCoefficient (i : Fin places.count) : ℝ := |
| 23 | 2 * (HeckeCycles.ReferenceDatum.CM.embeddings E places i (δ * a)).im |
| 24 | |
| 25 | include hδ hδ0 ha ha0 in |
| 26 | theorem singleSkewRealCoefficient_ne_zero (i : Fin places.count) : |
| 27 | singleSkewRealCoefficient E places δ a i ≠ 0 := by |
| 28 | exact ThetaCycle.CMFormCoordinates.CM.source_skew_coefficients_ne_zero E places δ hδ hδ0 (fun _ => a) |
| 29 | (fun _ => ha) (fun _ => ha0) i 0 |
| 30 | |
| 31 | theorem singleSkewUnit_local (i : Fin places.count) : |
| 32 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield E) |
| 33 | (OneFrames.Quadratic.singleSkewUnit E δ hδ hδ0 a ha ha0).val (.inl (ThetaCycle.RealPlaces.CM.sourceRealPlaces E places i))).map |
| 34 | (ThetaCycle.CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate E places δ hδ hδ0 i) = |
| 35 | Matrix.diagonal (fun _ : Fin 1 => (singleSkewRealCoefficient E places δ a i : ℂ) * Complex.I) := by |
| 36 | apply Matrix.ext |
| 37 | intro j k |
| 38 | fin_cases j |
| 39 | fin_cases k |
| 40 | have h := congrArg (fun M : Matrix (Fin 2) (Fin 2) ℂ => M 0 0) |
| 41 | (ThetaCycle.CMFormCoordinates.CM.source_skew_local_matrix E places δ hδ hδ0 (fun _ => a) (fun _ => ha) (fun _ => ha0) i) |
| 42 | exact h |
| 43 | |
| 44 | def singleSkewNormalizer (i : Fin places.count) : (Matrix (Fin 1) (Fin 1) ℂ)ˣ := |
| 45 | ThetaCycle.DiagonalNormalization.CM.complexDiagonalNormalizer (fun _ => singleSkewRealCoefficient E places δ a i) |
| 46 | (fun _ => singleSkewRealCoefficient_ne_zero E places δ hδ hδ0 a ha ha0 i) |
| 47 | |
| 48 | theorem singleSkewUnit_normalized (i : Fin places.count) : |
| 49 | (singleSkewNormalizer E places δ hδ hδ0 a ha ha0 i).val.conjTranspose * |
| 50 | ((RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield E) |
| 51 | (OneFrames.Quadratic.singleSkewUnit E δ hδ hδ0 a ha ha0).val (.inl (ThetaCycle.RealPlaces.CM.sourceRealPlaces E places i))).map |
| 52 | (ThetaCycle.CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate E places δ hδ hδ0 i)) * |
| 53 | (singleSkewNormalizer E places δ hδ hδ0 a ha ha0 i).val = |
| 54 | Matrix.diagonal (fun _ : Fin 1 => |
| 55 | (if 0 < singleSkewRealCoefficient E places δ a i then (1 : ℂ) else -1) * Complex.I) := by |
| 56 | rw [singleSkewUnit_local] |
| 57 | exact ThetaCycle.DiagonalNormalization.CM.complex_diagonal_normalizer_form _ _ Complex.I |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.OneLocal.Quadratic |