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.HeckeCycles.TracePhaseCoordinates |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.TensorAction |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.GlobalFrames |
| 4 | |
| 5 | /-! # Trace Frame -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.TraceFrame.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A full rational symplectic frame obtained from the actual number-field |
| 12 | tensor frame and trace-dual coordinates. Its dimension agrees with the |
| 13 | original source coordinates by the constructed linear equivalences. -/ |
| 14 | |
| 15 | open scoped Classical _root_.NumberField |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 17 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM.Field OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticForms.CM |
| 18 | |
| 19 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 20 | {B : GeometricSource.CM.BallDatum E} {places : GeometricSource.CM.Places E} (C : GeometricSource.CM.SymplecticCoordinates E B places) |
| 21 | |
| 22 | abbrev Index := Finite.AdelicTestCoordinates.CM.Index (QuadraticConjugation.CM.Field.RealField E) 3 |
| 23 | |
| 24 | def fieldFrame : GeometricSource.CM.Vec E ≃ₗ[ℚ] ((Fin 3 → QuadraticConjugation.CM.Field.RealField E) × (Fin 3 → QuadraticConjugation.CM.Field.RealField E)) := |
| 25 | (TensorAction.CM.tensorEquiv E C).restrictScalars ℚ |>.trans |
| 26 | (((GlobalFrames.CM.rational E C).coordinates.restrictScalars ℚ).trans |
| 27 | (LinearEquiv.sumArrowLequivProdArrow (Fin 3) (Fin 3) ℚ (QuadraticConjugation.CM.Field.RealField E))) |
| 28 | |
| 29 | def rational : GeometricSource.CM.Vec E ≃ₗ[ℚ] ((Index E → ℚ) × (Index E → ℚ)) := |
| 30 | (fieldFrame E C).trans (TracePhaseCoordinates.CM.phase (QuadraticConjugation.CM.Field.RealField E) 3) |
| 31 | |
| 32 | theorem pairing (x y : GeometricSource.CM.Vec E) : |
| 33 | (∑ i, ((CM.rational E C x).1 i * (CM.rational E C y).2 i - |
| 34 | (CM.rational E C y).1 i * (CM.rational E C x).2 i)) = |
| 35 | Algebra.trace ℚ E (C.delta * C.a * GeometricSource.CM.hermitian E B.b x y) := by |
| 36 | change (∑ i, ((TracePhaseCoordinates.CM.phase (QuadraticConjugation.CM.Field.RealField E) 3 (fieldFrame E C x)).1 i * |
| 37 | (TracePhaseCoordinates.CM.phase (QuadraticConjugation.CM.Field.RealField E) 3 (fieldFrame E C y)).2 i - |
| 38 | (TracePhaseCoordinates.CM.phase (QuadraticConjugation.CM.Field.RealField E) 3 (fieldFrame E C y)).1 i * |
| 39 | (TracePhaseCoordinates.CM.phase (QuadraticConjugation.CM.Field.RealField E) 3 (fieldFrame E C x)).2 i)) = _ |
| 40 | rw [TracePhaseCoordinates.CM.phase_pairing] |
| 41 | change Algebra.trace ℚ (QuadraticConjugation.CM.Field.RealField E) |
| 42 | (∑ i : Fin 3, ((GlobalFrames.CM.rational E C).coordinates |
| 43 | (TensorPairing.CM.tensorVector E C x) (.inl i) * |
| 44 | (GlobalFrames.CM.rational E C).coordinates |
| 45 | (TensorPairing.CM.tensorVector E C y) (.inr i) - |
| 46 | (GlobalFrames.CM.rational E C).coordinates |
| 47 | (TensorPairing.CM.tensorVector E C y) (.inl i) * |
| 48 | (GlobalFrames.CM.rational E C).coordinates |
| 49 | (TensorPairing.CM.tensorVector E C x) (.inr i))) = _ |
| 50 | rw [← DiagonalFrame.CM.TracePairing.standard_pairing, |
| 51 | (GlobalFrames.CM.rational E C).preserves, |
| 52 | TensorPairing.CM.source_pairing] |
| 53 | |
| 54 | include C in |
| 55 | theorem index_card : Fintype.card (GeometricSource.CM.Positions E places) = Fintype.card (Index E) := by |
| 56 | have h := (C.rational.symm.trans (CM.rational E C)).finrank_eq |
| 57 | simp only [Module.finrank_prod, Module.finrank_pi] at h |
| 58 | omega |
| 59 | |
| 60 | def indexEquiv : GeometricSource.CM.Positions E places ≃ Index E := Fintype.equivOfCardEq (index_card E C) |
| 61 | |
| 62 | def reindexed : GeometricSource.CM.Vec E ≃ₗ[ℚ] ((GeometricSource.CM.Positions E places → ℚ) × (GeometricSource.CM.Positions E places → ℚ)) := |
| 63 | (CM.rational E C).trans ((LinearEquiv.funCongrLeft ℚ ℚ (indexEquiv E C)).prodCongr |
| 64 | (LinearEquiv.funCongrLeft ℚ ℚ (indexEquiv E C))) |
| 65 | |
| 66 | theorem reindexed_pairing (x y : GeometricSource.CM.Vec E) : |
| 67 | (∑ i, ((reindexed E C x).1 i * (reindexed E C y).2 i - |
| 68 | (reindexed E C y).1 i * (reindexed E C x).2 i)) = |
| 69 | Algebra.trace ℚ E (C.delta * C.a * GeometricSource.CM.hermitian E B.b x y) := by |
| 70 | change (∑ i, ((CM.rational E C x).1 (indexEquiv E C i) * |
| 71 | (CM.rational E C y).2 (indexEquiv E C i) - |
| 72 | (CM.rational E C y).1 (indexEquiv E C i) * (CM.rational E C x).2 (indexEquiv E C i))) = _ |
| 73 | exact ((indexEquiv E C).sum_comp (fun i => (CM.rational E C x).1 i * |
| 74 | (CM.rational E C y).2 i - (CM.rational E C y).1 i * (CM.rational E C x).2 i)).trans |
| 75 | (pairing E C x y) |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.TraceFrame.CM |