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.NumberTheory.ArithmeticGroups.Coordinates |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattice |
| 3 | |
| 4 | /-! # Embedding Lattice -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.EmbeddingLattice.CongruenceLevel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | open scoped Classical _root_.NumberField |
| 13 | |
| 14 | open _root_.NumberField |
| 15 | |
| 16 | section ProductLattice |
| 17 | variable {ι W : Type*} [Fintype ι] [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 18 | (L : Submodule ℤ W) [DiscreteTopology L] |
| 19 | |
| 20 | def productLattice : Submodule ℤ (ι → W) := Submodule.pi Set.univ (fun _ => L) |
| 21 | |
| 22 | instance productLattice_discrete : DiscreteTopology (productLattice (ι := ι) L) := by |
| 23 | let f : productLattice (ι := ι) L → (ι → L) := |
| 24 | fun x i => ⟨x.val i, x.property i (Set.mem_univ i)⟩ |
| 25 | apply DiscreteTopology.of_continuous_injective (f := f) |
| 26 | · apply continuous_pi |
| 27 | intro i |
| 28 | exact ((continuous_apply i).comp continuous_subtype_val).subtype_mk _ |
| 29 | · intro x y h |
| 30 | apply Subtype.ext |
| 31 | funext i |
| 32 | exact congrArg (fun z : ι → L => (z i).val) h |
| 33 | |
| 34 | instance productLattice_isZLattice [IsZLattice ℝ L] : |
| 35 | IsZLattice ℝ (productLattice (ι := ι) L) where |
| 36 | span_top := by |
| 37 | apply top_unique |
| 38 | intro x _ |
| 39 | have hsingle (i : ι) (w : W) : Pi.single i w ∈ |
| 40 | Submodule.span ℝ (productLattice (ι := ι) L : Set (ι → W)) := by |
| 41 | have hw : w ∈ Submodule.span ℝ (L : Set W) := by rw [IsZLattice.span_top]; trivial |
| 42 | induction hw using Submodule.span_induction with |
| 43 | | mem w hw => |
| 44 | apply Submodule.subset_span |
| 45 | intro j _ |
| 46 | by_cases h : j = i |
| 47 | · subst j; simpa using hw |
| 48 | · rw [Pi.single_eq_of_ne h] |
| 49 | exact L.zero_mem |
| 50 | | zero => simp |
| 51 | | add u v _ _ hu hv => simpa only [Pi.single_add] using Submodule.add_mem _ hu hv |
| 52 | | smul a w _ hw => simpa only [Pi.single_smul] using Submodule.smul_mem _ a hw |
| 53 | have hx : x = ∑ i : ι, Pi.single i (x i) := by ext j; simp |
| 54 | rw [hx] |
| 55 | exact Submodule.sum_mem _ (fun i _ => hsingle i (x i)) |
| 56 | end ProductLattice |
| 57 | |
| 58 | variable {E Place : Type*} [Field E] [NumberField E] [Algebra ℚ E] |
| 59 | [NumberField.IsCMField E] [Fintype Place] |
| 60 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 61 | (hσ : Function.Bijective |
| 62 | (fun p : Place × Bool => |
| 63 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 64 | |
| 65 | include hσ |
| 66 | |
| 67 | def representativePairs : (Place × Bool) ≃ (E →ₐ[ℚ] ℂ) := Equiv.ofBijective _ hσ |
| 68 | |
| 69 | omit [NumberField E] [NumberField.IsCMField E] [Fintype Place] in |
| 70 | lemma representativePairs_conjugate (p : Place × Bool) : |
| 71 | representativePairs σ hσ (p.1, !p.2) = |
| 72 | AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (representativePairs σ hσ p) := by |
| 73 | rcases p with ⟨τ, b⟩ |
| 74 | cases b <;> simp [representativePairs, AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding_involutive] |
| 75 | |
| 76 | def referenceCMType : AlgebraicGeometry.ComplexMultiplication.CM.TypeHodgeStructure.CMEmbeddingType E := |
| 77 | ⟨fun ρ => Bool.not ((representativePairs σ hσ).symm ρ).2, by |
| 78 | intro ρ |
| 79 | obtain ⟨p, rfl⟩ := (representativePairs σ hσ).surjective ρ |
| 80 | rw [← representativePairs_conjugate] |
| 81 | simp only [Equiv.symm_apply_apply]⟩ |
| 82 | |
| 83 | omit [NumberField E] [NumberField.IsCMField E] [Fintype Place] in |
| 84 | lemma referenceCMType_positive (τ : Place) : |
| 85 | (referenceCMType σ hσ).val (σ τ) = true := by |
| 86 | have h : representativePairs σ hσ (τ, false) = σ τ := rfl |
| 87 | change Bool.not ((representativePairs σ hσ).symm (σ τ)).2 = true |
| 88 | rw [← h, Equiv.symm_apply_apply] |
| 89 | rfl |
| 90 | |
| 91 | omit [NumberField E] [NumberField.IsCMField E] [Fintype Place] in |
| 92 | lemma representatives_injective : Function.Injective σ := by |
| 93 | intro τ υ h |
| 94 | have he : representativePairs σ hσ (τ, false) = representativePairs σ hσ (υ, false) := h |
| 95 | exact congrArg Prod.fst ((representativePairs σ hσ).injective he) |
| 96 | |
| 97 | omit [NumberField E] [NumberField.IsCMField E] [Fintype Place] in |
| 98 | lemma representative_place_bijective : |
| 99 | Function.Bijective (fun τ => InfinitePlace.mk (σ τ).toRingHom) := by |
| 100 | constructor |
| 101 | · intro τ υ h |
| 102 | dsimp only at h |
| 103 | apply representatives_injective σ hσ |
| 104 | have hpτ := (referenceCMType σ hσ).placeEmbedding_mk (σ τ) |
| 105 | (referenceCMType_positive σ hσ τ) |
| 106 | have hpυ := (referenceCMType σ hσ).placeEmbedding_mk (σ υ) |
| 107 | (referenceCMType_positive σ hσ υ) |
| 108 | rw [← hpτ, ← hpυ, h] |
| 109 | · intro v |
| 110 | obtain ⟨⟨τ, b⟩, hτ⟩ := hσ.2 v.embedding.toRatAlgHom |
| 111 | refine ⟨τ, ?_⟩ |
| 112 | change InfinitePlace.mk (σ τ).toRingHom = v |
| 113 | cases b |
| 114 | · change σ τ = v.embedding.toRatAlgHom at hτ |
| 115 | rw [hτ] |
| 116 | exact InfinitePlace.mk_embedding v |
| 117 | · change AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ τ) = v.embedding.toRatAlgHom at hτ |
| 118 | have h := congrArg (fun ρ : E →ₐ[ℚ] ℂ => InfinitePlace.mk ρ.toRingHom) hτ |
| 119 | change InfinitePlace.mk (ComplexEmbedding.conjugate (σ τ).toRingHom) = |
| 120 | InfinitePlace.mk v.embedding at h |
| 121 | simpa only [InfinitePlace.mk_conjugate_eq, InfinitePlace.mk_embedding] using h |
| 122 | |
| 123 | def representativePlaces : Place ≃ InfinitePlace E := |
| 124 | Equiv.ofBijective _ (representative_place_bijective σ hσ) |
| 125 | |
| 126 | omit [NumberField E] [NumberField.IsCMField E] [Fintype Place] in |
| 127 | lemma placeEmbedding_representative (τ : Place) : |
| 128 | (referenceCMType σ hσ).placeEmbedding (representativePlaces σ hσ τ) = σ τ := |
| 129 | (referenceCMType σ hσ).placeEmbedding_mk (σ τ) (referenceCMType_positive σ hσ τ) |
| 130 | |
| 131 | /-- Reindex the three copies of the CM embedding space by the manuscript's places. -/ |
| 132 | def periodCoordinateEquiv : (Fin 3 → AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E) ≃ₗ[ℂ] (Place → Geometry.ComplexBall.PrescribedSignsB.Vec) where |
| 133 | toFun x τ j := x j (representativePlaces σ hσ τ) |
| 134 | invFun x j v := x ((representativePlaces σ hσ).symm v) j |
| 135 | left_inv x := by ext j v; simp |
| 136 | right_inv x := by ext τ j; simp |
| 137 | map_add' x y := by ext τ j; rfl |
| 138 | map_smul' a x := by ext τ j; rfl |
| 139 | |
| 140 | omit [NumberField E] [NumberField.IsCMField E] [Fintype Place] in |
| 141 | lemma periodCoordinateEquiv_embedding (x : Data.CongruenceLevel.VE E) : |
| 142 | periodCoordinateEquiv σ hσ |
| 143 | (fun j => (referenceCMType σ hσ).periodEmbedding (x j)) = |
| 144 | (fun τ j => σ τ (x j)) := by |
| 145 | ext τ j |
| 146 | change (referenceCMType σ hσ).placeEmbedding (representativePlaces σ hσ τ) (x j) = _ |
| 147 | rw [placeEmbedding_representative] |
| 148 | |
| 149 | def coordinateLattice : Submodule ℤ (Place → Geometry.ComplexBall.PrescribedSignsB.Vec) := |
| 150 | ZLattice.comap ℝ |
| 151 | (productLattice (ι := Fin 3) (referenceCMType σ hσ).periodIntegerLattice) |
| 152 | ((periodCoordinateEquiv σ hσ).restrictScalars ℝ).symm.toContinuousLinearEquiv.toLinearMap |
| 153 | |
| 154 | instance coordinateLattice_discrete : DiscreteTopology (coordinateLattice σ hσ) := by |
| 155 | unfold coordinateLattice |
| 156 | infer_instance |
| 157 | |
| 158 | instance coordinateLattice_isZLattice : IsZLattice ℝ (coordinateLattice σ hσ) := by |
| 159 | unfold coordinateLattice |
| 160 | infer_instance |
| 161 | |
| 162 | lemma mem_coordinateLattice (u : Place → Geometry.ComplexBall.PrescribedSignsB.Vec) : |
| 163 | u ∈ coordinateLattice σ hσ ↔ |
| 164 | ∃ x : Data.CongruenceLevel.VE E, x ∈ Lattice.CongruenceLevel.standardLattice (E := E) ∧ |
| 165 | (fun τ j => σ τ (x j)) = u := by |
| 166 | change (∀ j : Fin 3, j ∈ Set.univ → |
| 167 | ((periodCoordinateEquiv σ hσ).symm u) j ∈ |
| 168 | (referenceCMType σ hσ).periodIntegerLattice) ↔ _ |
| 169 | simp only [Set.mem_univ, forall_true_left] |
| 170 | constructor |
| 171 | · intro hu |
| 172 | have h : ∀ j : Fin 3, ∃ a : NumberField.RingOfIntegers E, |
| 173 | (referenceCMType σ hσ).periodEmbedding (a : E) = |
| 174 | ((periodCoordinateEquiv σ hσ).symm u) j := by |
| 175 | intro j |
| 176 | exact ((referenceCMType σ hσ).mem_periodIntegerLattice _).mp (hu j) |
| 177 | choose a ha using h |
| 178 | refine ⟨fun j => (a j : E), ?_, ?_⟩ |
| 179 | · exact (Lattice.CongruenceLevel.mem_standardLattice _).mpr (fun j => (a j).property) |
| 180 | · rw [← periodCoordinateEquiv_embedding σ hσ] |
| 181 | apply (periodCoordinateEquiv σ hσ).eq_symm_apply.mp |
| 182 | funext j |
| 183 | exact ha j |
| 184 | · rintro ⟨x, hx, rfl⟩ j |
| 185 | rw [← periodCoordinateEquiv_embedding σ hσ, LinearEquiv.symm_apply_apply] |
| 186 | apply ((referenceCMType σ hσ).mem_periodIntegerLattice _).mpr |
| 187 | exact ⟨⟨x j, (Lattice.CongruenceLevel.mem_standardLattice x).mp hx j⟩, rfl⟩ |
| 188 | |
| 189 | end |
| 190 | |
| 191 | open scoped Classical |
| 192 | |
| 193 | variable {E Place : Type*} [Field E] [NumberField E] [Algebra ℚ E] |
| 194 | [NumberField.IsCMField E] [Fintype Place] |
| 195 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 196 | (hσ : Function.Bijective |
| 197 | (fun p : Place × Bool => |
| 198 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 199 | |
| 200 | omit [NumberField E] [NumberField.IsCMField E] [Fintype Place] in |
| 201 | lemma embeddingCoordinates_real (x : Data.CongruenceLevel.VE E) : |
| 202 | Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x = Coordinates.CongruenceLevel.realCoordinates Place (fun τ j => σ τ (x j)) := by |
| 203 | ext τ j <;> rfl |
| 204 | |
| 205 | omit [NumberField E] [NumberField.IsCMField E] [Fintype Place] in |
| 206 | lemma embeddingCoordinates_injective (μ : Place) : Function.Injective (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ) := by |
| 207 | intro x y h |
| 208 | funext j |
| 209 | apply (σ μ).injective |
| 210 | exact congrArg (fun z : Geometry.ComplexBall.PrescribedSignsB.Ambient Place => (z μ).1 j) h |
| 211 | |
| 212 | include hσ in |
| 213 | theorem period_projection_lattice |
| 214 | (μ : Place) |
| 215 | (Ψ : LinearMap.BilinForm ℂ (Geometry.ComplexBall.PrescribedSignsB.Ambient Place)) |
| 216 | (P : Submodule ℂ (Geometry.ComplexBall.PrescribedSignsB.Ambient Place)) |
| 217 | (hP : Geometry.ComplexBall.PrescribedSignsB.PositivePeriod (3 * Fintype.card Place) |
| 218 | (fun x y => Ψ x y) (Coordinates.CongruenceLevel.ambientConjugation Place) P) |
| 219 | (π : Geometry.ComplexBall.PrescribedSignsB.Ambient Place →ₗ[ℂ] (Fin (3 * Fintype.card Place) → ℂ)) |
| 220 | (hπ : π.ker = P) : |
| 221 | Function.Injective (fun x : Data.CongruenceLevel.VE E => π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x)) ∧ |
| 222 | ∃ Γ : AddSubgroup (Fin (3 * Fintype.card Place) → ℂ), |
| 223 | (∀ t, t ∈ Γ ↔ ∃ x : Data.CongruenceLevel.VE E, x ∈ Lattice.CongruenceLevel.standardLattice (E := E) ∧ |
| 224 | t = π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x)) ∧ |
| 225 | DiscreteTopology Γ ∧ CompactSpace ((Fin (3 * Fintype.card Place) → ℂ) ⧸ Γ) := by |
| 226 | let T := Fin (3 * Fintype.card Place) → ℂ |
| 227 | let f : (Place → Geometry.ComplexBall.PrescribedSignsB.Vec) →ₗ[ℝ] T := (π.restrictScalars ℝ).comp (Coordinates.CongruenceLevel.realCoordinates Place) |
| 228 | have hfinj : Function.Injective f := |
| 229 | Coordinates.CongruenceLevel.realCoordinates_projection_injective _ Ψ P hP π hπ |
| 230 | have hd : Module.finrank ℝ (Place → Geometry.ComplexBall.PrescribedSignsB.Vec) = Module.finrank ℝ T := by |
| 231 | rw [← Module.finrank_mul_finrank ℝ ℂ (Place → Geometry.ComplexBall.PrescribedSignsB.Vec), |
| 232 | ← Module.finrank_mul_finrank ℝ ℂ T] |
| 233 | congr 1 |
| 234 | simp [T, Geometry.ComplexBall.PrescribedSignsB.Vec, Module.finrank_pi_fintype, Nat.mul_comm] |
| 235 | let e : (Place → Geometry.ComplexBall.PrescribedSignsB.Vec) ≃ₗ[ℝ] T := LinearEquiv.ofBijective f |
| 236 | ⟨hfinj, (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hd).mp hfinj⟩ |
| 237 | have he (x : Data.CongruenceLevel.VE E) : e (fun τ j => σ τ (x j)) = π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x) := by |
| 238 | change π (Coordinates.CongruenceLevel.realCoordinates Place (fun τ j => σ τ (x j))) = _ |
| 239 | rw [← embeddingCoordinates_real] |
| 240 | refine ⟨?_, ?_⟩ |
| 241 | · intro x y h |
| 242 | have hxy : (fun τ j => σ τ (x j)) = (fun τ j => σ τ (y j)) := by |
| 243 | apply e.injective |
| 244 | rwa [he, he] |
| 245 | apply embeddingCoordinates_injective σ μ |
| 246 | rw [embeddingCoordinates_real, embeddingCoordinates_real, hxy] |
| 247 | · let L := ZLattice.comap ℝ (coordinateLattice σ hσ) e.symm.toContinuousLinearEquiv.toLinearMap |
| 248 | let Γ : AddSubgroup T := L.toAddSubgroup |
| 249 | have hmem (t : T) : t ∈ Γ ↔ ∃ x : Data.CongruenceLevel.VE E, x ∈ Lattice.CongruenceLevel.standardLattice (E := E) ∧ |
| 250 | t = π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x) := by |
| 251 | change e.symm t ∈ coordinateLattice σ hσ ↔ _ |
| 252 | rw [mem_coordinateLattice σ hσ] |
| 253 | apply exists_congr |
| 254 | intro x |
| 255 | apply and_congr_right |
| 256 | intro _ |
| 257 | rw [e.eq_symm_apply, he] |
| 258 | exact eq_comm |
| 259 | have hdisc : DiscreteTopology Γ := by |
| 260 | change DiscreteTopology L |
| 261 | dsimp only [L] |
| 262 | infer_instance |
| 263 | have hcomp : CompactSpace (T ⧸ Γ) := by |
| 264 | apply isCompact_univ_iff.mp |
| 265 | have hc := IsZLattice.isCompact_range_of_periodic L |
| 266 | (QuotientAddGroup.mk : T → T ⧸ Γ) QuotientAddGroup.continuous_mk (by |
| 267 | intro z w hw |
| 268 | rw [QuotientAddGroup.mk_add, (QuotientAddGroup.eq_zero_iff w).mpr hw, add_zero]) |
| 269 | rwa [Set.range_eq_univ.mpr QuotientAddGroup.mk_surjective] at hc |
| 270 | exact ⟨Γ, hmem, hdisc, hcomp⟩ |
| 271 | |
| 272 | end |
| 273 | |
| 274 | end OAI.NumberTheory.ArithmeticGroups.EmbeddingLattice.CongruenceLevel |