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.Topology.LocallyConstant.Basic |
| 2 | import Mathlib.Topology.Semicontinuity.Basic |
| 3 | |
| 4 | /-! # Count Topology -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.CountTopology.Construction |
| 7 | |
| 8 | /-! The topological maximal-count argument used in the torsion approach to Openness. -/ |
| 9 | |
| 10 | variable {X : Type*} [TopologicalSpace X] |
| 11 | |
| 12 | /-- A count attains a locally constant upper bound on an open set when |
| 13 | all its lower-threshold loci are open. -/ |
| 14 | theorem isOpen_maximalCount |
| 15 | (count bound : X → ℕ) |
| 16 | (hcount : ∀ n : ℕ, IsOpen {x : X | n ≤ count x}) |
| 17 | (hbound : IsLocallyConstant bound) |
| 18 | (hle : ∀ x, count x ≤ bound x) : |
| 19 | IsOpen {x : X | count x = bound x} := by |
| 20 | have heq : {x : X | count x = bound x} = |
| 21 | ⋃ n : ℕ, {x : X | bound x = n} ∩ {x : X | n ≤ count x} := by |
| 22 | ext x |
| 23 | simp only [Set.mem_ofPred_eq, Set.mem_iUnion, Set.mem_inter_iff] |
| 24 | constructor |
| 25 | · intro hx |
| 26 | exact ⟨bound x, rfl, hx.ge⟩ |
| 27 | · rintro ⟨n, hn, hnx⟩ |
| 28 | exact le_antisymm (hle x) (hn ▸ hnx) |
| 29 | rw [heq] |
| 30 | exact isOpen_iUnion fun n => (hbound.isOpen_fiber n).inter (hcount n) |
| 31 | |
| 32 | /-- The threshold hypothesis follows from ordinary lower semicontinuity |
| 33 | for a natural-valued function, including its zero threshold. -/ |
| 34 | theorem isOpen_nat_ge_of_lowerSemicontinuous |
| 35 | (count : X → ℕ) (hc : LowerSemicontinuous count) (n : ℕ) : |
| 36 | IsOpen {x : X | n ≤ count x} := by |
| 37 | cases n with |
| 38 | | zero => simp |
| 39 | | succ n => |
| 40 | simpa only [Nat.succ_le_iff, Set.preimage_ofPred_eq, Set.Ioi] using hc.isOpen_preimage n |
| 41 | |
| 42 | theorem isOpen_maximalCount_of_lowerSemicontinuous |
| 43 | (count bound : X → ℕ) |
| 44 | (hcount : LowerSemicontinuous count) |
| 45 | (hbound : IsLocallyConstant bound) |
| 46 | (hle : ∀ x, count x ≤ bound x) : |
| 47 | IsOpen {x : X | count x = bound x} := |
| 48 | isOpen_maximalCount count bound |
| 49 | (isOpen_nat_ge_of_lowerSemicontinuous count hcount) hbound hle |
| 50 | |
| 51 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.CountTopology.Construction |