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.Hecke.RadialDilation.FramePositivity |
| 2 | import OAI.RepresentationTheory.Hecke.RadialDilation.RealStructure |
| 3 | import OAI.RepresentationTheory.Weil.UnitarySplitting.SymplecticCoordinates |
| 4 | |
| 5 | /-! # Symplectic Basis -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Hecke.RadialDilation.SymplecticBasis.Realization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The rational trace form behind the concrete period construction. -/ |
| 14 | |
| 15 | open scoped Classical _root_.Matrix TensorProduct |
| 16 | open _root_.Matrix |
| 17 | |
| 18 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 19 | |
| 20 | def conjugateVector : (Fin 3 → E) →ₗ[ℚ] (Fin 3 → E) := |
| 21 | LinearMap.pi (fun i => (AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E).toLinearMap.comp (LinearMap.proj i)) |
| 22 | |
| 23 | def rationalTraceForm (θ : E) (H : Matrix (Fin 3) (Fin 3) E) : |
| 24 | LinearMap.BilinForm ℚ (Fin 3 → E) := |
| 25 | (((Matrix.toBilin' H).restrictScalars₁₂ ℚ ℚ).compl₂ (conjugateVector E)).compr₂ |
| 26 | ((Algebra.trace ℚ E).comp (LinearMap.mulLeft ℚ θ)) |
| 27 | |
| 28 | theorem rationalTraceForm_apply (θ : E) (H : Matrix (Fin 3) (Fin 3) E) |
| 29 | (x y : Fin 3 → E) : |
| 30 | rationalTraceForm E θ H x y = Algebra.trace ℚ E |
| 31 | (θ * (∑ j, ∑ k, x j * H j k * NumberField.IsCMField.complexConj E (y k))) := by |
| 32 | simp [rationalTraceForm, conjugateVector, Matrix.toBilin'_apply, |
| 33 | AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation, Finset.mul_sum, mul_assoc] |
| 34 | |
| 35 | theorem rationalTraceForm_realization {Place : Type*} [Fintype Place] |
| 36 | (σ : Place → E →ₐ[ℚ] ℂ) (hσ : Function.Bijective (Complexification.Realization.pairingEmbeddings σ)) |
| 37 | (δ a : E) (hδ : NumberField.IsCMField.complexConj E δ = -δ) |
| 38 | (ha : NumberField.IsCMField.complexConj E a = a) |
| 39 | (H : Matrix (Fin 3) (Fin 3) E) |
| 40 | (hH : ∀ j k, H j k = NumberField.IsCMField.complexConj E (H k j)) |
| 41 | (x y : Fin 3 → E) : |
| 42 | (rationalTraceForm E (δ * a) H x y : ℂ) = |
| 43 | Geometry.ComplexBall.PrescribedSignsB.tracePairing (Geometry.ComplexBall.PrescribedSignsB.localB σ H) (fun τ => σ τ (δ * a)) |
| 44 | (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x) (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ y) := by |
| 45 | rw [rationalTraceForm_apply] |
| 46 | exact (Geometry.ComplexBall.PrescribedSignsB.tracePairing_rational σ hσ δ a hδ ha H hH x y).symm |
| 47 | |
| 48 | theorem rationalTraceForm_alternating {Place : Type*} [Fintype Place] |
| 49 | (σ : Place → E →ₐ[ℚ] ℂ) (hσ : Function.Bijective (Complexification.Realization.pairingEmbeddings σ)) |
| 50 | (δ a : E) (hδ : NumberField.IsCMField.complexConj E δ = -δ) |
| 51 | (ha : NumberField.IsCMField.complexConj E a = a) |
| 52 | (H : Matrix (Fin 3) (Fin 3) E) |
| 53 | (hH : ∀ j k, H j k = NumberField.IsCMField.complexConj E (H k j)) : |
| 54 | (rationalTraceForm E (δ * a) H).IsAlt := by |
| 55 | intro x |
| 56 | have hc : (rationalTraceForm E (δ * a) H x x : ℂ) = 0 := by |
| 57 | rw [rationalTraceForm_realization E σ hσ δ a hδ ha H hH] |
| 58 | simp [Geometry.ComplexBall.PrescribedSignsB.tracePairing] |
| 59 | exact_mod_cast hc |
| 60 | |
| 61 | theorem rationalTraceForm_apply_dot (θ : E) (H : Matrix (Fin 3) (Fin 3) E) |
| 62 | (x y : Fin 3 → E) : |
| 63 | rationalTraceForm E θ H x y = Algebra.trace ℚ E |
| 64 | (θ * (x ⬝ᵥ (H *ᵥ conjugateVector E y))) := by |
| 65 | simp [rationalTraceForm, Matrix.toBilin'_apply'] |
| 66 | |
| 67 | theorem conjugateVector_involutive : Function.Involutive (conjugateVector E) := by |
| 68 | intro x |
| 69 | funext i |
| 70 | exact AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply E (x i) |
| 71 | |
| 72 | /-- Nondegeneracy uses the actual field trace, not a coordinate assumption. -/ |
| 73 | theorem rationalTraceForm_left_nondegenerate |
| 74 | (θ : E) (hθ : θ ≠ 0) (H : Matrix (Fin 3) (Fin 3) E) (hH : H.det ≠ 0) |
| 75 | (x : Fin 3 → E) (hx : ∀ y, rationalTraceForm E θ H x y = 0) : x = 0 := by |
| 76 | have hsurj : Function.Surjective H.mulVec := Matrix.mulVec_surjective_iff_isUnit.mpr |
| 77 | ((Matrix.isUnit_iff_isUnit_det H).mpr (isUnit_iff_ne_zero.mpr hH)) |
| 78 | funext i |
| 79 | have hi : θ * x i = 0 := by |
| 80 | apply (traceForm_nondegenerate ℚ E).1 |
| 81 | intro t |
| 82 | obtain ⟨z, hz⟩ := hsurj (Pi.single i t) |
| 83 | have h := hx (conjugateVector E z) |
| 84 | rw [rationalTraceForm_apply_dot, conjugateVector_involutive E, hz, |
| 85 | dotProduct_single] at h |
| 86 | change Algebra.trace ℚ E ((θ * x i) * t) = 0 |
| 87 | simpa only [mul_assoc] using h |
| 88 | exact (mul_eq_zero.mp hi).resolve_left hθ |
| 89 | |
| 90 | theorem rationalTraceForm_nondegenerate |
| 91 | (θ : E) (hθ : θ ≠ 0) (H : Matrix (Fin 3) (Fin 3) E) (hH : H.det ≠ 0) |
| 92 | (hAlt : (rationalTraceForm E θ H).IsAlt) : |
| 93 | (rationalTraceForm E θ H).Nondegenerate := by |
| 94 | constructor |
| 95 | · exact rationalTraceForm_left_nondegenerate E θ hθ H hH |
| 96 | · intro x hx |
| 97 | apply rationalTraceForm_left_nondegenerate E θ hθ H hH x |
| 98 | intro y |
| 99 | rw [← hAlt.neg_eq y x, hx y, neg_zero] |
| 100 | |
| 101 | end |
| 102 | |
| 103 | /-! Existence of rational symplectic coordinates of the required size. -/ |
| 104 | |
| 105 | open scoped Classical _root_.Matrix TensorProduct |
| 106 | open _root_.Matrix |
| 107 | |
| 108 | def swappedSumCoordinates {ι : Type*} (n : ℕ) (b : ι ≃ Fin n) : |
| 109 | Weil.UnitarySplitting.SymplecticCoordinates.Coordinates ℚ n ≃ₗ[ℚ] (Sum ι ι → ℚ) where |
| 110 | toFun x := Sum.elim (fun i => x.2 (b i)) (fun i => x.1 (b i)) |
| 111 | invFun x := (fun i => x (Sum.inr (b.symm i)), fun i => x (Sum.inl (b.symm i))) |
| 112 | left_inv x := by ext i <;> simp |
| 113 | right_inv x := by funext i; cases i <;> simp |
| 114 | map_add' x y := by funext i; cases i <;> rfl |
| 115 | map_smul' c x := by funext i; cases i <;> rfl |
| 116 | |
| 117 | theorem swappedSumCoordinates_pairing {ι : Type*} [Fintype ι] |
| 118 | (n : ℕ) (b : ι ≃ Fin n) (x y : Weil.UnitarySplitting.SymplecticCoordinates.Coordinates ℚ n) : |
| 119 | FramePositivity.Realization.coordinatePairing (swappedSumCoordinates n b x) (swappedSumCoordinates n b y) = |
| 120 | Weil.UnitarySplitting.SymplecticCoordinates.coordinatePairing n x y := by |
| 121 | exact Equiv.sum_comp b (fun i => x.2 i * y.1 i - x.1 i * y.2 i) |
| 122 | |
| 123 | theorem exists_rational_symplectic_coordinates |
| 124 | (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 125 | {Place : Type*} [Fintype Place] |
| 126 | (σ : Place → E →ₐ[ℚ] ℂ) (hσ : Function.Bijective (Complexification.Realization.pairingEmbeddings σ)) |
| 127 | (δ a : E) (hδ : NumberField.IsCMField.complexConj E δ = -δ) |
| 128 | (ha : NumberField.IsCMField.complexConj E a = a) (hδa : δ * a ≠ 0) |
| 129 | (H : Matrix (Fin 3) (Fin 3) E) |
| 130 | (hHerm : ∀ j k, H j k = NumberField.IsCMField.complexConj E (H k j)) |
| 131 | (hH : H.det ≠ 0) : |
| 132 | ∃ e : (Fin 3 → E) ≃ₗ[ℚ] (Sum (FramePositivity.Realization.FrameIndex Place) (FramePositivity.Realization.FrameIndex Place) → ℚ), |
| 133 | ∀ x y, FramePositivity.Realization.coordinatePairing (e x) (e y) = rationalTraceForm E (δ * a) H x y := by |
| 134 | have hAlt := rationalTraceForm_alternating E σ hσ δ a hδ ha H hHerm |
| 135 | have hNondeg := rationalTraceForm_nondegenerate E (δ * a) hδa H hH hAlt |
| 136 | obtain ⟨n, e₀, he₀⟩ := Weil.UnitarySplitting.SymplecticCoordinates.exists_coordinates _ hAlt hNondeg |
| 137 | have hdim₀ := e₀.finrank_eq |
| 138 | have hdim₁ := (Complexification.Realization.pairedComplexification E σ hσ).finrank_eq |
| 139 | change Module.finrank ℂ (ℂ ⊗[ℚ] (Fin 3 → E)) = Module.finrank ℂ (Geometry.ComplexBall.PrescribedSignsB.Ambient Place) at hdim₁ |
| 140 | rw [Module.finrank_baseChange] at hdim₁ |
| 141 | have hn : Fintype.card (FramePositivity.Realization.FrameIndex Place) = n := by |
| 142 | simp only [Weil.UnitarySplitting.SymplecticCoordinates.Coordinates, Module.finrank_prod, |
| 143 | Module.finrank_pi, Fintype.card_fin] at hdim₀ |
| 144 | simp [Geometry.ComplexBall.PrescribedSignsB.Ambient, Geometry.ComplexBall.PrescribedSignsB.Vec, Module.finrank_pi_fintype, Module.finrank_prod] at hdim₁ |
| 145 | simp only [FramePositivity.Realization.FrameIndex, Fintype.card_prod, Fintype.card_fin] |
| 146 | simp [Module.finrank_pi_fintype] at hdim₀ |
| 147 | omega |
| 148 | let b : FramePositivity.Realization.FrameIndex Place ≃ Fin n := Fintype.equivOfCardEq (by simpa using hn) |
| 149 | refine ⟨e₀.trans (swappedSumCoordinates n b), ?_⟩ |
| 150 | intro x y |
| 151 | rw [LinearEquiv.trans_apply, LinearEquiv.trans_apply, swappedSumCoordinates_pairing] |
| 152 | exact (he₀ x y).symm |
| 153 | |
| 154 | end |
| 155 | |
| 156 | end OAI.RepresentationTheory.Hecke.RadialDilation.SymplecticBasis.Realization |