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.OppositeCoordinates |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.TraceFrame |
| 3 | |
| 4 | /-! # Oriented Trace Frame -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.OrientedTraceFrame.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Use the opposite multiplicity line and momentum/position order to |
| 11 | obtain exactly the original source trace form in rational coordinates. -/ |
| 12 | |
| 13 | open scoped Classical _root_.NumberField _root_.Matrix |
| 14 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 15 | |
| 16 | theorem swap_pairing {I : Type*} [Fintype I] |
| 17 | (x y : (I → ℚ) × (I → ℚ)) : |
| 18 | (∑ i, (x.2 i * y.1 i - y.2 i * x.1 i)) = |
| 19 | -(∑ i, (x.1 i * y.2 i - y.1 i * x.2 i)) := by |
| 20 | rw [← Finset.sum_neg_distrib] |
| 21 | apply Finset.sum_congr rfl |
| 22 | intro i _ |
| 23 | ring |
| 24 | |
| 25 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 26 | {B : GeometricSource.CM.BallDatum E} {places : GeometricSource.CM.Places E} (C : GeometricSource.CM.SymplecticCoordinates E B places) |
| 27 | |
| 28 | def frame : GeometricSource.CM.Vec E ≃ₗ[ℚ] ((GeometricSource.CM.Positions E places ⊕ GeometricSource.CM.Positions E places) → ℚ) := |
| 29 | ((TraceFrame.CM.reindexed E (OppositeCoordinates.CM.coordinates E C)).trans |
| 30 | (LinearEquiv.prodComm ℚ _ _)).trans |
| 31 | (LinearEquiv.sumArrowLequivProdArrow (GeometricSource.CM.Positions E places) (GeometricSource.CM.Positions E places) ℚ ℚ).symm |
| 32 | |
| 33 | theorem frame_pairing (x y : GeometricSource.CM.Vec E) : |
| 34 | ComplexAction.CM.Symplectic.pairing (frame E C x) (frame E C y) = |
| 35 | Algebra.trace ℚ E (C.delta * C.a * GeometricSource.CM.hermitian E B.b x y) := by |
| 36 | change (∑ i, ( |
| 37 | ((TraceFrame.CM.reindexed E (OppositeCoordinates.CM.coordinates E C)) x).2 i * |
| 38 | ((TraceFrame.CM.reindexed E (OppositeCoordinates.CM.coordinates E C)) y).1 i - |
| 39 | ((TraceFrame.CM.reindexed E (OppositeCoordinates.CM.coordinates E C)) y).2 i * |
| 40 | ((TraceFrame.CM.reindexed E (OppositeCoordinates.CM.coordinates E C)) x).1 i)) = _ |
| 41 | rw [swap_pairing, TraceFrame.CM.reindexed_pairing] |
| 42 | change -Algebra.trace ℚ E (C.delta * -C.a * GeometricSource.CM.hermitian E B.b x y) = _ |
| 43 | have he : C.delta * -C.a * GeometricSource.CM.hermitian E B.b x y = -(C.delta * C.a * GeometricSource.CM.hermitian E B.b x y) := by ring |
| 44 | rw [he, map_neg, neg_neg] |
| 45 | |
| 46 | def changeOfFrame : ((GeometricSource.CM.Positions E places ⊕ GeometricSource.CM.Positions E places) → ℚ) ≃ₗ[ℚ] |
| 47 | ((GeometricSource.CM.Positions E places ⊕ GeometricSource.CM.Positions E places) → ℚ) := |
| 48 | (ComplexAction.CM.Symplectic.frame E C).symm.trans (frame E C) |
| 49 | |
| 50 | theorem change_pairing (x y : (GeometricSource.CM.Positions E places ⊕ GeometricSource.CM.Positions E places) → ℚ) : |
| 51 | ComplexAction.CM.Symplectic.pairing (changeOfFrame E C x) (changeOfFrame E C y) = |
| 52 | ComplexAction.CM.Symplectic.pairing x y := by |
| 53 | change ComplexAction.CM.Symplectic.pairing |
| 54 | (frame E C ((ComplexAction.CM.Symplectic.frame E C).symm x)) |
| 55 | (frame E C ((ComplexAction.CM.Symplectic.frame E C).symm y)) = _ |
| 56 | rw [frame_pairing, ← ComplexAction.CM.Symplectic.frame_pairing, |
| 57 | LinearEquiv.apply_symm_apply, LinearEquiv.apply_symm_apply] |
| 58 | |
| 59 | def matrix : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp (GeometricSource.CM.Positions E places) ℚ := |
| 60 | ⟨LinearMap.toMatrix' (changeOfFrame E C).toLinearMap, |
| 61 | ComplexAction.CM.Symplectic.matrix_symplectic _ (by |
| 62 | intro x y |
| 63 | simpa only [LinearMap.toMatrix'_mulVec, LinearEquiv.coe_coe] using change_pairing E C x y)⟩ |
| 64 | |
| 65 | theorem matrix_source (x : GeometricSource.CM.Vec E) : |
| 66 | (matrix E C).val *ᵥ ComplexAction.CM.Symplectic.frame E C x = frame E C x := by |
| 67 | change (LinearMap.toMatrix' (changeOfFrame E C).toLinearMap) *ᵥ _ = _ |
| 68 | rw [LinearMap.toMatrix'_mulVec] |
| 69 | exact congrArg (frame E C) ((ComplexAction.CM.Symplectic.frame E C).symm_apply_apply x) |
| 70 | |
| 71 | theorem conjugated_source_action (g : Geometry.ComplexBall.ArithmeticQuotientEquationsData.RationalSU B.b) (x : GeometricSource.CM.Vec E) : |
| 72 | ((matrix E C * ComplexAction.CM.Symplectic.symplectic E C g * (matrix E C)⁻¹).val) *ᵥ |
| 73 | frame E C x = frame E C (ComplexAction.CM.Symplectic.rationalAction E g x) := by |
| 74 | rw [← matrix_source E C x] |
| 75 | change ((matrix E C).val * (ComplexAction.CM.Symplectic.symplectic E C g).val * |
| 76 | ((matrix E C)⁻¹).val) *ᵥ |
| 77 | ((matrix E C).val *ᵥ ComplexAction.CM.Symplectic.frame E C x) = _ |
| 78 | rw [Matrix.mulVec_mulVec, Matrix.mul_assoc, Matrix.mul_assoc] |
| 79 | have h : ((matrix E C)⁻¹).val * (matrix E C).val = 1 := |
| 80 | congrArg Subtype.val (inv_mul_cancel (matrix E C)) |
| 81 | rw [h, Matrix.mul_one, ← Matrix.mulVec_mulVec, |
| 82 | ComplexAction.CM.Symplectic.symplectic_apply, matrix_source] |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.OrientedTraceFrame.CM |