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.Geometric.Reference.LocalBasis |
| 2 | import OAI.RepresentationTheory.Theta.Geometric.Local.TraceIntegrality |
| 3 | import OAI.RepresentationTheory.Theta.Geometric.Reference.PolarizationMultiple |
| 4 | |
| 5 | /-! # Trace B -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Geometric |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Every integral local functional, multiplied by the original product |
| 14 | of polarization divisors, is represented by the completed polarization. -/ |
| 15 | |
| 16 | open scoped Classical |
| 17 | |
| 18 | variable {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 19 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 20 | {Index Ga MpR MpF MpA : Type} [Fintype Index] [DecidableEq Index] |
| 21 | [Group Ga] [TopologicalSpace Ga] [Group MpR] [Group MpF] [Group MpA] |
| 22 | (D : Data.ActiveHeckeThetaData E K s q Index Ga MpR MpF MpA) |
| 23 | (hg : D.pel.HasIntegralModelGeometry) (hc : D.HasFiniteCoordinates) |
| 24 | (hgood : D.pel.IsGoodCompletelySplitPrime) (hdegree : Module.finrank ℚ E = 2 * s) |
| 25 | |
| 26 | include hg hc hgood hdegree in |
| 27 | theorem Data.ActiveHeckeThetaData.localTracePairing_integral_reference (x y : D.pel.reference.lattice) : |
| 28 | D.localTracePairing (D.jointLocalEmbedding x.val) (D.jointLocalEmbedding y.val) = |
| 29 | (D.pel.reference.integralForm x y : ℚ_[q]) := by |
| 30 | rw [D.localTracePairing_reference hc hgood hdegree] |
| 31 | have htrace : (D.pel.reference.integralForm x y : ℚ) = D.pel.reference.traceForm x y := by |
| 32 | rcases hg.reference_admissible with ⟨_, _, _, _, _, _, _, _, _, _, h, _⟩ |
| 33 | exact h x y |
| 34 | rw [← htrace, map_intCast] |
| 35 | |
| 36 | include hc in |
| 37 | theorem Data.ActiveHeckeThetaData.localTracePairing_multiple_basis (i : Fin (2 * (3 * s))) : |
| 38 | ∃ u : D.pel.reference.lattice, ∀ j : Fin (2 * (3 * s)), |
| 39 | D.localTracePairing (D.jointLocalEmbedding u.val) (D.jointQBasis hg hdegree hgood j) = |
| 40 | if j = i then (∏ k, D.pel.reference.polarizationType k : ℚ_[q]) else 0 := by |
| 41 | let b := D.pel.reference.referenceBasis hg.reference_admissible |
| 42 | have htype : D.pel.reference.HasPolarizationType := by |
| 43 | rcases hg.reference_admissible with ⟨_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, h, _⟩ |
| 44 | exact h |
| 45 | obtain ⟨u, hu⟩ := Reference.PolarizationMultiple.referenceIntegralForm_multiple D.pel.reference htype (b.coord i) |
| 46 | refine ⟨u, fun j => ?_⟩ |
| 47 | rw [D.jointQBasis_apply hg hdegree hc hgood, |
| 48 | D.localTracePairing_integral_reference hg hc hgood hdegree] |
| 49 | have he := LinearMap.congr_fun hu (b j) |
| 50 | have he' := congrArg (fun z : ℤ => (z : ℚ_[q])) he |
| 51 | simpa [b, Module.Basis.coord_apply, Module.Basis.repr_self, Finsupp.single_apply, |
| 52 | eq_comm] using he' |
| 53 | |
| 54 | include hg hc hgood hdegree in |
| 55 | theorem Data.ActiveHeckeThetaData.localTracePairing_multiple_functional |
| 56 | (f : (Fin s × Bool → Fin 3 → ℚ_[q]) →ₗ[ℚ_[q]] ℚ_[q]) |
| 57 | (hf : ∀ w ∈ D.jointLocalLattice, ‖f w‖ ≤ 1) : |
| 58 | ∃ u ∈ D.jointLocalLattice, ∀ y, |
| 59 | D.localTracePairing u y = (∏ k, D.pel.reference.polarizationType k : ℚ_[q]) * f y := by |
| 60 | let b := D.jointQBasis hg hdegree hgood |
| 61 | choose u hu using D.localTracePairing_multiple_basis hg hc hgood hdegree |
| 62 | let a (i : Fin (2 * (3 * s))) : ℤ_[q] := |
| 63 | ⟨f (b i), hf (b i) (D.jointQBasis_mem hg hdegree hc hgood i)⟩ |
| 64 | let w := ∑ i, (a i : ℚ_[q]) • D.jointLocalEmbedding (u i).val |
| 65 | have hw : w ∈ D.jointLocalLattice := by |
| 66 | apply D.jointLocalLattice.sum_mem |
| 67 | intro i _ |
| 68 | change a i • D.jointLocalEmbedding (u i).val ∈ D.jointLocalLattice |
| 69 | exact D.jointLocalLattice.smul_mem (a i) (Submodule.subset_span ⟨_, (u i).property, rfl⟩) |
| 70 | have he : D.localTracePairing w = (∏ k, D.pel.reference.polarizationType k : ℚ_[q]) • f := by |
| 71 | apply b.ext |
| 72 | intro j |
| 73 | change D.localTracePairing (∑ i, (a i : ℚ_[q]) • D.jointLocalEmbedding (u i).val) (b j) = _ |
| 74 | rw [map_sum, LinearMap.sum_apply] |
| 75 | simp only [LinearMap.map_smul₂, smul_eq_mul, b, hu] |
| 76 | simp [a, b, mul_comm] |
| 77 | refine ⟨w, hw, fun y => ?_⟩ |
| 78 | exact LinearMap.congr_fun he y |
| 79 | |
| 80 | end |
| 81 | |
| 82 | section |
| 83 | |
| 84 | /-! The prescribed polarization type is prime to q, so every local |
| 85 | diagonal pairing coefficient is a q-adic unit. In particular the original |
| 86 | Hermitian coefficient b is a unit in every supplied local embedding. -/ |
| 87 | |
| 88 | open scoped Classical |
| 89 | |
| 90 | variable {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 91 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 92 | {Index Ga MpR MpF MpA : Type} [Fintype Index] [DecidableEq Index] |
| 93 | [Group Ga] [TopologicalSpace Ga] [Group MpR] [Group MpF] [Group MpA] |
| 94 | (D : Data.ActiveHeckeThetaData E K s q Index Ga MpR MpF MpA) |
| 95 | |
| 96 | theorem Data.ActiveHeckeThetaData.localOpposite_eq_iff (v w : Fin s × Bool) : |
| 97 | (v.1, !v.2) = (w.1, !w.2) ↔ v = w := by |
| 98 | rcases v with ⟨v, b⟩ |
| 99 | rcases w with ⟨w, c⟩ |
| 100 | cases b <;> cases c <;> simp |
| 101 | |
| 102 | theorem Data.ActiveHeckeThetaData.localTracePairing_unit_right (v : Fin s × Bool) (i : Fin 3) |
| 103 | (x : Fin s × Bool → Fin 3 → ℚ_[q]) : |
| 104 | D.localTracePairing x (Pi.single (v.1, !v.2) (Pi.single i 1)) = |
| 105 | D.localTraceCoefficient v i * x v i := by |
| 106 | simp [D.localTracePairing_apply, Pi.single_apply, ite_apply] |
| 107 | simp only [← Prod.mk.injEq] |
| 108 | simp |
| 109 | |
| 110 | theorem Data.ActiveHeckeThetaData.localTraceCoefficient_unit (hg : D.pel.HasIntegralModelGeometry) (hc : D.HasFiniteCoordinates) |
| 111 | (hgood : D.pel.IsGoodCompletelySplitPrime) (hdegree : Module.finrank ℚ E = 2 * s) |
| 112 | (v : Fin s × Bool) (i : Fin 3) : ‖D.localTraceCoefficient v i‖ = 1 := by |
| 113 | let f : (Fin s × Bool → Fin 3 → ℚ_[q]) →ₗ[ℚ_[q]] ℚ_[q] := Data.ActiveHeckeThetaData.localCoordinate (v.1, !v.2) i |
| 114 | have hf (x) (hx : x ∈ D.jointLocalLattice) : ‖f x‖ ≤ 1 := |
| 115 | (Local.MatrixLattice.standardLocalLattice_mem_iff q _).mp ((D.jointLocalLattice_standard hg hc hgood x).mp hx (v.1, !v.2)) i |
| 116 | obtain ⟨x, hx, hp⟩ := D.localTracePairing_multiple_functional hg hc hgood hdegree f hf |
| 117 | have he := hp (Pi.single (v.1, !v.2) (Pi.single i 1)) |
| 118 | rw [D.localTracePairing_unit_right] at he |
| 119 | have hf1 : f (Pi.single (v.1, !v.2) (Pi.single i 1)) = 1 := by |
| 120 | change (Pi.single (v.1, !v.2) (Pi.single i (1 : ℚ_[q])) : |
| 121 | Fin s × Bool → Fin 3 → ℚ_[q]) (v.1, !v.2) i = 1 |
| 122 | rw [Pi.single_eq_same, Pi.single_eq_same] |
| 123 | rw [hf1, mul_one] at he |
| 124 | have hm : ‖(∏ k, D.pel.reference.polarizationType k : ℚ_[q])‖ = 1 := by |
| 125 | rw [← Nat.cast_prod] |
| 126 | exact Padic.norm_natCast_eq_one_iff.mpr hgood.2.2.2.2 |
| 127 | have hxnorm : ‖x v i‖ ≤ 1 := |
| 128 | (Local.MatrixLattice.standardLocalLattice_mem_iff q _).mp ((D.jointLocalLattice_standard hg hc hgood x).mp hx v) i |
| 129 | apply le_antisymm (D.localTraceCoefficient_integral hg hc hgood hdegree v i) |
| 130 | calc |
| 131 | 1 = ‖D.localTraceCoefficient v i‖ * ‖x v i‖ := by rw [← norm_mul, he, hm] |
| 132 | _ ≤ ‖D.localTraceCoefficient v i‖ * 1 := mul_le_mul_of_nonneg_left hxnorm (norm_nonneg _) |
| 133 | _ = ‖D.localTraceCoefficient v i‖ := mul_one _ |
| 134 | |
| 135 | theorem Data.ActiveHeckeThetaData.localEmbedding_b_norm (hg : D.pel.HasIntegralModelGeometry) (hc : D.HasFiniteCoordinates) |
| 136 | (hgood : D.pel.IsGoodCompletelySplitPrime) (hdegree : Module.finrank ℚ E = 2 * s) |
| 137 | (v : Fin s × Bool) : ‖D.localEmbedding v D.pel.reference.b‖ = 1 := by |
| 138 | have he : D.localTraceCoefficient v 2 = |
| 139 | D.localTraceCoefficient v 0 * D.localEmbedding v D.pel.reference.b := by |
| 140 | simp [Data.ActiveHeckeThetaData.localTraceCoefficient] |
| 141 | have hn := congrArg (fun z : ℚ_[q] => ‖z‖) he |
| 142 | rw [D.localTraceCoefficient_unit hg hc hgood hdegree, norm_mul, |
| 143 | D.localTraceCoefficient_unit hg hc hgood hdegree, one_mul] at hn |
| 144 | exact hn.symm |
| 145 | |
| 146 | end |
| 147 | |
| 148 | /-! The conjugate local matrix is the adjoint of the inverse. Because |
| 149 | the original Hermitian coefficients are q-adic units, integrality of one |
| 150 | local side implies integrality of its conjugate side. -/ |
| 151 | |
| 152 | open scoped Classical |
| 153 | |
| 154 | variable {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 155 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 156 | {Index Ga MpR MpF MpA : Type} [Fintype Index] [DecidableEq Index] |
| 157 | [Group Ga] [TopologicalSpace Ga] [Group MpR] [Group MpF] [Group MpA] |
| 158 | (D : Data.ActiveHeckeThetaData E K s q Index Ga MpR MpF MpA) |
| 159 | |
| 160 | theorem Data.ActiveHeckeThetaData.rationalUnitary_opposite_entry (g : D.RationalSU) (i j : Fin 3) : |
| 161 | (if i = 2 then D.pel.reference.b else 1) * |
| 162 | NumberField.IsCMField.complexConj E (g.val.val i j) = |
| 163 | (if j = 2 then D.pel.reference.b else 1) * (g⁻¹).val.val j i := by |
| 164 | have hi (u : NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E) : D.rationalLinear g (D.rationalLinear g⁻¹ u) = u := by |
| 165 | rw [map_inv] |
| 166 | exact LinearEquiv.apply_symm_apply _ _ |
| 167 | have h := g.property (D.rationalLinear g⁻¹ (Pi.single i 1)) (Pi.single j 1) |
| 168 | change NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian D.pel.reference.b |
| 169 | (D.rationalLinear g (D.rationalLinear g⁻¹ (Pi.single i 1))) |
| 170 | (D.rationalLinear g (Pi.single j 1)) = |
| 171 | NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian D.pel.reference.b (D.rationalLinear g⁻¹ (Pi.single i 1)) (Pi.single j 1) at h |
| 172 | rw [hi] at h |
| 173 | change NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian D.pel.reference.b (Pi.single i 1) (g.val.val.mulVec (Pi.single j 1)) = |
| 174 | NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian D.pel.reference.b ((g⁻¹).val.val.mulVec (Pi.single i 1)) (Pi.single j 1) at h |
| 175 | simpa [NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian, Matrix.mulVec_single, Pi.single_apply, apply_ite] using h |
| 176 | |
| 177 | theorem Data.ActiveHeckeThetaData.localMatrix_opposite_entry (hc : D.HasFiniteCoordinates) |
| 178 | (hgood : D.pel.IsGoodCompletelySplitPrime) (g : D.RationalSU) |
| 179 | (v : Fin s × Bool) (i j : Fin 3) : |
| 180 | (if i = 2 then D.localEmbedding v D.pel.reference.b else 1) * |
| 181 | (D.localMatrix (v.1, !v.2) g).val i j = |
| 182 | (if j = 2 then D.localEmbedding v D.pel.reference.b else 1) * |
| 183 | (D.localMatrix v g⁻¹).val j i := by |
| 184 | have h := congrArg (D.localEmbedding v) (D.rationalUnitary_opposite_entry g i j) |
| 185 | rw [map_mul, map_mul, ← D.localEmbedding_conjugate hc hgood] at h |
| 186 | change (if i = 2 then D.localEmbedding v D.pel.reference.b else 1) * |
| 187 | D.localEmbedding (v.1, !v.2) (g.val.val i j) = |
| 188 | (if j = 2 then D.localEmbedding v D.pel.reference.b else 1) * |
| 189 | D.localEmbedding v ((g⁻¹).val.val j i) |
| 190 | simpa only [apply_ite, map_one] using h |
| 191 | |
| 192 | theorem Data.ActiveHeckeThetaData.localMatrix_opposite_integral (hg : D.pel.HasIntegralModelGeometry) (hc : D.HasFiniteCoordinates) |
| 193 | (hgood : D.pel.IsGoodCompletelySplitPrime) (hdegree : Module.finrank ℚ E = 2 * s) |
| 194 | (g : D.RationalSU) (v : Fin s × Bool) |
| 195 | (hv : D.localMatrix v g ∈ SphericalGU.Spherical.integralSL3 q) : |
| 196 | D.localMatrix (v.1, !v.2) g ∈ SphericalGU.Spherical.integralSL3 q := by |
| 197 | apply (AlgebraicGeometry.HodgeConjecture.CMExtraction.IntegralCoordinates.TestTransport.integralSL3_iff_entries q _).mpr |
| 198 | intro i j |
| 199 | have hu (k : Fin 3) : ‖(if k = 2 then D.localEmbedding v D.pel.reference.b else 1)‖ = 1 := by |
| 200 | split_ifs |
| 201 | · exact D.localEmbedding_b_norm hg hc hgood hdegree v |
| 202 | · exact norm_one |
| 203 | have he := congrArg (fun a : ℚ_[q] => ‖a‖) (D.localMatrix_opposite_entry hc hgood g v i j) |
| 204 | rw [norm_mul, norm_mul, hu, hu, one_mul, one_mul] at he |
| 205 | rw [he] |
| 206 | apply (AlgebraicGeometry.HodgeConjecture.CMExtraction.IntegralCoordinates.TestTransport.integralSL3_iff_entries q _).mp |
| 207 | rw [map_inv] |
| 208 | exact (SphericalGU.Spherical.integralSL3 q).inv_mem hv |
| 209 | |
| 210 | end |
| 211 | |
| 212 | end OAI.RepresentationTheory.Theta.Geometric |