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 Mathlib |
| 2 | |
| 3 | /-! # Invariant Gap -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.InvariantGap.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Discrete nonzero invariant values keep vectors uniformly away from zero. -/ |
| 10 | |
| 11 | open scoped Classical |
| 12 | open Set _root_.Metric |
| 13 | |
| 14 | theorem uniform_gap_of_discrete_values |
| 15 | {E F : Type*} [NormedAddCommGroup E] [TopologicalSpace F] [Zero F] |
| 16 | (P : E → F) (hP : Continuous P) (hP0 : P 0 = 0) |
| 17 | (D : Set F) (hD : IsDiscrete D) (hD0 : (0 : F) ∈ D) |
| 18 | (S : Set E) (hvalues : ∀ x ∈ S, P x ∈ D ∧ P x ≠ 0) : |
| 19 | ∃ ε : ℝ, 0 < ε ∧ ∀ x ∈ S, ε ≤ ‖x‖ := by |
| 20 | obtain ⟨U, hU, hUD⟩ := isDiscrete_iff_forall_mem_exists_isOpen.mp hD 0 hD0 |
| 21 | have hU0 : (0 : F) ∈ U := by |
| 22 | have h : (0 : F) ∈ U ∩ D := hUD.symm ▸ mem_singleton 0 |
| 23 | exact h.1 |
| 24 | have hpre : IsOpen (P ⁻¹' U) := hU.preimage hP |
| 25 | have hpre0 : (0 : E) ∈ P ⁻¹' U := by simpa only [mem_preimage, hP0] using hU0 |
| 26 | obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.mp hpre 0 hpre0 |
| 27 | refine ⟨ε, hε, fun x hx => ?_⟩ |
| 28 | by_contra hle |
| 29 | have hxball : x ∈ Metric.ball 0 ε := by simpa only [Metric.mem_ball, dist_zero_right] using lt_of_not_ge hle |
| 30 | have hPxU : P x ∈ U := hball hxball |
| 31 | have hPx0 : P x = 0 := mem_singleton_iff.mp (hUD ▸ ⟨hPxU, (hvalues x hx).1⟩) |
| 32 | exact (hvalues x hx).2 hPx0 |
| 33 | |
| 34 | theorem uniform_gap_of_discrete_invariant |
| 35 | {E F A : Type*} [NormedAddCommGroup E] [TopologicalSpace F] [Zero F] |
| 36 | (ρ : A → E → E) (P : E → F) (hP : Continuous P) (hP0 : P 0 = 0) |
| 37 | (D : Set F) (hD : IsDiscrete D) (hD0 : (0 : F) ∈ D) |
| 38 | (L : Set E) (hvalues : ∀ x ∈ L, x ≠ 0 → P x ∈ D ∧ P x ≠ 0) |
| 39 | (hinvariant : ∀ a x, x ∈ L → P (ρ a x) = P x) : |
| 40 | ∃ ε : ℝ, 0 < ε ∧ ∀ a x, x ∈ L → x ≠ 0 → ε ≤ ‖ρ a x‖ := by |
| 41 | let S := {y : E | ∃ a x, x ∈ L ∧ x ≠ 0 ∧ y = ρ a x} |
| 42 | have hv : ∀ y ∈ S, P y ∈ D ∧ P y ≠ 0 := by |
| 43 | rintro _ ⟨a, x, hx, hx0, rfl⟩ |
| 44 | rw [hinvariant a x hx] |
| 45 | exact hvalues x hx hx0 |
| 46 | obtain ⟨ε, hε, hgap⟩ := uniform_gap_of_discrete_values P hP hP0 D hD hD0 S hv |
| 47 | exact ⟨ε, hε, fun a x hx hx0 => hgap (ρ a x) ⟨a, x, hx, hx0, rfl⟩⟩ |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.NumberTheory.ArithmeticGroups.Lattices.InvariantGap.Construction |