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.CongruenceLevelDatum |
| 2 | import OAI.NumberTheory.ArithmeticGroups.EmbeddingLattice |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Action |
| 4 | |
| 5 | /-! # Realize -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Realize.CongruenceLevel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open scoped Classical |
| 12 | |
| 13 | variable {E Place : Type*} [Field E] [NumberField E] [Algebra ℚ E] |
| 14 | [NumberField.IsCMField E] [Fintype Place] |
| 15 | |
| 16 | lemma rationalTrace_neg (b ξ : E) (x y : Data.CongruenceLevel.VE E) : |
| 17 | Trace.CongruenceLevel.rationalTrace b (-ξ) x y = -Trace.CongruenceLevel.rationalTrace b ξ x y := by |
| 18 | simp only [Trace.CongruenceLevel.rationalTrace, neg_mul, map_neg] |
| 19 | |
| 20 | theorem realize_positive_period |
| 21 | (hRiemannProjectivity : CongruenceLevelDatum.RiemannInput) |
| 22 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 23 | (hσ : Function.Bijective |
| 24 | (fun p : Place × Bool => |
| 25 | if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 26 | (μ : Place) (b ξ : E) (d : Place → Bool) (z : Geometry.ComplexBall.PrescribedSignsB.BallChart) |
| 27 | (Ψ : LinearMap.BilinForm ℂ (Geometry.ComplexBall.PrescribedSignsB.Ambient Place)) |
| 28 | (P : Submodule ℂ (Geometry.ComplexBall.PrescribedSignsB.Ambient Place)) |
| 29 | (hP : Geometry.ComplexBall.PrescribedSignsB.PositivePeriod (3 * Fintype.card Place) |
| 30 | (fun x y => Ψ x y) (Coordinates.CongruenceLevel.ambientConjugation Place) P) |
| 31 | (hpres : ∀ u, u ∈ P ↔ Geometry.ComplexBall.PrescribedSignsB.Prescribed (Geometry.ComplexBall.PrescribedSignsB.localB σ (Matrix.diagonal ![1, 1, b])) μ d z u) |
| 32 | (hreal : ∀ x y, star (Ψ x y) = Ψ (Coordinates.CongruenceLevel.ambientConjugation Place x) (Coordinates.CongruenceLevel.ambientConjugation Place y)) |
| 33 | (hskew : ∀ x y, Ψ x y = -Ψ y x) |
| 34 | (htrace : ∀ x y : Data.CongruenceLevel.VE E, Ψ (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x) (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ y) = |
| 35 | (Trace.CongruenceLevel.rationalTrace b ξ x y : ℂ)) |
| 36 | (m : ℕ) (hm : 0 < m) |
| 37 | (hint : ∀ x ∈ Lattice.CongruenceLevel.standardLattice (E := E), ∀ y ∈ Lattice.CongruenceLevel.standardLattice (E := E), |
| 38 | ∃ n : ℤ, (m : ℚ) * Trace.CongruenceLevel.rationalTrace b (-ξ) x y = (n : ℚ)) : |
| 39 | Data.CongruenceLevel.AnalyticPolarizedFiber σ (Lattice.CongruenceLevel.standardLattice (E := E)) |
| 40 | (fun x y => (m : ℚ) * Trace.CongruenceLevel.rationalTrace b (-ξ) x y) P := by |
| 41 | let T := Fin (3 * Fintype.card Place) → ℂ |
| 42 | obtain ⟨π, H₀, hker, hsurj, hsym, hpos, hriemann⟩ := |
| 43 | Period.CongruenceLevel.exists_positive_quotient (Coordinates.CongruenceLevel.ambientConjugation Place) (Coordinates.CongruenceLevel.ambientConjugation_involutive Place) |
| 44 | Ψ P _ hP hreal hskew |
| 45 | obtain ⟨hinj, Γ, hΓ, hdisc, hcomp⟩ := EmbeddingLattice.CongruenceLevel.period_projection_lattice σ hσ μ Ψ P hP π hker |
| 46 | let H : T →ₗ⋆[ℂ] T →ₗ[ℂ] ℂ := (m : ℂ) • H₀ |
| 47 | have hHsym (u v : T) : H v u = star (H u v) := by |
| 48 | change (m : ℂ) * H₀ v u = star ((m : ℂ) * H₀ u v) |
| 49 | rw [hsym] |
| 50 | simp only [star_mul, star_natCast] |
| 51 | ring |
| 52 | have hHpos (u : T) (hu : u ≠ 0) : 0 < (H u u).re := by |
| 53 | change 0 < ((m : ℂ) * H₀ u u).re |
| 54 | simpa [Complex.mul_re] using mul_pos (show (0 : ℝ) < m by exact_mod_cast hm) (hpos u hu) |
| 55 | have hHt (x y : Data.CongruenceLevel.VE E) : |
| 56 | (H (π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x)) (π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ y))).im = |
| 57 | (((m : ℚ) * Trace.CongruenceLevel.rationalTrace b (-ξ) x y : ℚ) : ℝ) := by |
| 58 | have hfix (w : Data.CongruenceLevel.VE E) : Coordinates.CongruenceLevel.ambientConjugation Place (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ w) = |
| 59 | Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ w := by |
| 60 | rw [EmbeddingLattice.CongruenceLevel.embeddingCoordinates_real] |
| 61 | exact Coordinates.CongruenceLevel.realCoordinates_fixed Place _ |
| 62 | have hp := hriemann (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x) (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ y) (hfix x) (hfix y) |
| 63 | rw [htrace] at hp |
| 64 | calc |
| 65 | (H (π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x)) (π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ y))).im = |
| 66 | (m : ℝ) * (H₀ (π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ x)) (π (Geometry.ComplexBall.PrescribedSignsB.embeddingCoordinates σ y))).im := by |
| 67 | simp [H, LinearMap.smul_apply, smul_eq_mul, Complex.mul_im] |
| 68 | _ = (m : ℝ) * -(Trace.CongruenceLevel.rationalTrace b ξ x y : ℝ) := by |
| 69 | rw [hp] |
| 70 | rfl |
| 71 | _ = (((m : ℚ) * Trace.CongruenceLevel.rationalTrace b (-ξ) x y : ℚ) : ℝ) := by |
| 72 | rw [rationalTrace_neg] |
| 73 | push_cast |
| 74 | rfl |
| 75 | have hHint : ∀ u ∈ Γ, ∀ v ∈ Γ, ∃ n : ℤ, (H u v).im = (n : ℝ) := by |
| 76 | intro u hu v hv |
| 77 | obtain ⟨x, hx, rfl⟩ := (hΓ u).mp hu |
| 78 | obtain ⟨y, hy, rfl⟩ := (hΓ v).mp hv |
| 79 | obtain ⟨n, hn⟩ := hint x hx y hy |
| 80 | refine ⟨n, ?_⟩ |
| 81 | rw [hHt, hn] |
| 82 | norm_cast |
| 83 | let : DiscreteTopology Γ := hdisc |
| 84 | let : CompactSpace (T ⧸ Γ) := hcomp |
| 85 | have hprojective : Data.CongruenceLevel.IsProjectiveComplexTorus T Γ := |
| 86 | (hRiemannProjectivity T Γ).mpr ⟨H, hHsym, hHpos, hHint⟩ |
| 87 | have hB : (fun τ x y => Geometry.ComplexBall.PrescribedSignsB.matrixB σ (Matrix.diagonal ![1, 1, b]) τ x y) = |
| 88 | Geometry.ComplexBall.PrescribedSignsB.localB σ (Matrix.diagonal ![1, 1, b]) := by |
| 89 | funext τ x y |
| 90 | exact Geometry.ComplexBall.PrescribedSignsB.matrixB_apply σ _ τ x y |
| 91 | obtain ⟨ρ, hρ⟩ := Action.CongruenceLevel.quotient_integer_action σ |
| 92 | (Geometry.ComplexBall.PrescribedSignsB.matrixB σ (Matrix.diagonal ![1, 1, b])) μ d z P |
| 93 | (by rw [hB]; exact hpres) π hker hsurj |
| 94 | exact ⟨π, Γ, H, ρ, hker, hsurj, hinj, hΓ, hdisc, hcomp, |
| 95 | hprojective, hHsym, hHpos, hHt, hρ⟩ |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.NumberTheory.ArithmeticGroups.Realize.CongruenceLevel |