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.RepresentationTheory.Theta.Adelic.GeneralSplitAction |
| 2 | |
| 3 | /-! # General Split Frame -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Adelic.GeneralSplitFrame |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The stable polarization of the full split tensor product, in arbitrary |
| 10 | dimensions and with the actual trace symplectic pairing. -/ |
| 11 | |
| 12 | open scoped Kronecker |
| 13 | |
| 14 | open OAI.RepresentationTheory.Theta.Adelic.GeneralSplitAction.Coordinates |
| 15 | |
| 16 | variable {k : Type} [Field k] [CharZero k] {d : k} |
| 17 | variable (r : k) (hr : r ^ 2 = d) (hr0 : r ≠ 0) (n m : ℕ) |
| 18 | |
| 19 | def positionReindex : ((Fin n × Fin m) → k) ≃ₗ[k] (Fin (n * m) → k) where |
| 20 | toFun x := x ∘ finProdFinEquiv.symm |
| 21 | invFun x := x ∘ finProdFinEquiv |
| 22 | left_inv x := by funext i; exact congrArg x (finProdFinEquiv.symm_apply_apply i) |
| 23 | right_inv x := by funext i; exact congrArg x (finProdFinEquiv.apply_symm_apply i) |
| 24 | map_add' _ _ := rfl |
| 25 | map_smul' _ _ := rfl |
| 26 | |
| 27 | omit [CharZero k] in |
| 28 | theorem positionReindex_dot (x y : (Fin n × Fin m) → k) : |
| 29 | dotProduct (positionReindex (k := k) n m x) (positionReindex n m y) = dotProduct x y := by |
| 30 | change dotProduct (x ∘ finProdFinEquiv.symm) (y ∘ finProdFinEquiv.symm) = _ |
| 31 | exact comp_equiv_dotProduct_comp_equiv x y finProdFinEquiv.symm |
| 32 | |
| 33 | variable (H : (Matrix (Fin n) (Fin n) (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) |
| 34 | variable (K : (Matrix (Fin m) (Fin m) (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ) |
| 35 | |
| 36 | def phaseCoordinates : Weil.AdelicSplitting.TensorSpace.Construction.TensorPosition d n m ≃ₗ[k] Weil.AdelicSplitting.TensorSpace.Construction.StandardPhase (k := k) n m := |
| 37 | (GeneralSplitAction.Coordinates.polarizedCoordinates r hr hr0 (Fin n × Fin m) (Weil.AdelicSplitting.UnitaryBase.Construction.tensorUnits H K)).trans |
| 38 | (((positionReindex (k := k) n m).prodCongr (positionReindex n m)).trans |
| 39 | (LinearEquiv.sumArrowLequivProdArrow (Fin (n * m)) (Fin (n * m)) k k).symm) |
| 40 | |
| 41 | theorem phaseCoordinates_apply (x : Weil.AdelicSplitting.TensorSpace.Construction.TensorPosition d n m) : |
| 42 | phaseCoordinates r hr hr0 n m H K x = |
| 43 | Sum.elim (positionReindex n m (GeneralSplitAction.Coordinates.polarizedCoordinates r hr hr0 (Fin n × Fin m) |
| 44 | (Weil.AdelicSplitting.UnitaryBase.Construction.tensorUnits H K) x).1) |
| 45 | (positionReindex n m (GeneralSplitAction.Coordinates.polarizedCoordinates r hr hr0 (Fin n × Fin m) |
| 46 | (Weil.AdelicSplitting.UnitaryBase.Construction.tensorUnits H K) x).2) := rfl |
| 47 | |
| 48 | omit [CharZero k] in |
| 49 | theorem coordinatePairing_sumElim (q p q' p' : Fin (n * m) → k) : |
| 50 | Weil.AdelicSplitting.TensorSpace.Construction.coordinatePairing n m (Sum.elim q p) (Sum.elim q' p') = |
| 51 | dotProduct q p' - dotProduct p q' := by |
| 52 | simp [Weil.AdelicSplitting.TensorSpace.Construction.coordinatePairing, Matrix.J, Matrix.toBilin'_apply, dotProduct, |
| 53 | Fintype.sum_sum_type, Matrix.fromBlocks, Matrix.one_apply] |
| 54 | ring |
| 55 | |
| 56 | omit [CharZero k] in |
| 57 | theorem tensor_skew (hH : H.val.conjTranspose = H.val) (hK : K.val.conjTranspose = -K.val) : |
| 58 | (Weil.AdelicSplitting.UnitaryBase.Construction.tensorUnits H K).val.conjTranspose = -(Weil.AdelicSplitting.UnitaryBase.Construction.tensorUnits H K).val := by |
| 59 | change (H.val ⊗ₖ K.val).conjTranspose = -(H.val ⊗ₖ K.val) |
| 60 | rw [Matrix.conjTranspose_kronecker, hH, hK] |
| 61 | apply Matrix.ext |
| 62 | intro i j |
| 63 | change H.val i.1 j.1 * -(K.val i.2 j.2) = -(H.val i.1 j.1 * K.val i.2 j.2) |
| 64 | exact mul_neg _ _ |
| 65 | |
| 66 | theorem phaseCoordinates_preserves |
| 67 | (hH : H.val.conjTranspose = H.val) (hK : K.val.conjTranspose = -K.val) |
| 68 | (x y : Weil.AdelicSplitting.TensorSpace.Construction.TensorPosition d n m) : |
| 69 | Weil.AdelicSplitting.TensorSpace.Construction.coordinatePairing n m (phaseCoordinates r hr hr0 n m H K x) |
| 70 | (phaseCoordinates r hr hr0 n m H K y) = Weil.AdelicSplitting.TensorSpace.Construction.tracePairing d n m H.val K.val x y := by |
| 71 | rw [phaseCoordinates_apply, phaseCoordinates_apply, coordinatePairing_sumElim, |
| 72 | positionReindex_dot, positionReindex_dot] |
| 73 | exact GeneralSplitAction.Coordinates.polarizedCoordinates_preserves r hr hr0 (Fin n × Fin m) (Weil.AdelicSplitting.UnitaryBase.Construction.tensorUnits H K) |
| 74 | (tensor_skew n m H K hH hK) x y |
| 75 | |
| 76 | def splitFrame (hH : H.val.conjTranspose = H.val) (hK : K.val.conjTranspose = -K.val) : |
| 77 | Weil.AdelicSplitting.TensorSpace.Construction.SymplecticFrame d n m H.val K.val where |
| 78 | coordinates := phaseCoordinates r hr hr0 n m H K |
| 79 | preserves := phaseCoordinates_preserves r hr hr0 n m H K hH hK |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.RepresentationTheory.Theta.Adelic.GeneralSplitFrame |