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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import Mathlib.Topology.KrullDimension |
| 7 | |
| 8 | /-! # Closed Subset -/ |
| 9 | |
| 10 | namespace OAI.Topology.Dimension.ClosedSubset |
| 11 | |
| 12 | /-! |
| 13 | # The dimension drop for proper closed subsets |
| 14 | |
| 15 | A chain of irreducible closed subsets of a proper closed subspace can be extended by the |
| 16 | whole irreducible ambient space. Consequently a finite dimension bound drops strictly on a |
| 17 | proper closed subspace. This is a Krull-dimension statement, not a statement about the |
| 18 | singular or sheaf homology of an analytic space. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.Topology _root_.TopologicalSpace _root_.Order |
| 22 | |
| 23 | variable {X : Type*} [TopologicalSpace X] [IrreducibleSpace X] |
| 24 | |
| 25 | /-- A proper closed subspace of an irreducible space has dimension strictly below any |
| 26 | finite upper bound for the ambient dimension. Empty subspaces have dimension `⊥`, so this |
| 27 | also includes the dimension-zero case. -/ |
| 28 | theorem topologicalKrullDim_lt_of_isClosed_of_ne_univ {S : Set X} |
| 29 | (hS : IsClosed S) (hproper : S ≠ Set.univ) {n : ℕ} |
| 30 | (hdim : topologicalKrullDim X ≤ n) : topologicalKrullDim S < n := by |
| 31 | apply krullDim_lt_coe_iff.mpr |
| 32 | intro l |
| 33 | let φ := IrreducibleCloseds.map (Subtype.val : S → X) continuous_subtype_val |
| 34 | have hφ : StrictMono φ := |
| 35 | IrreducibleCloseds.map_strictMono_of_isInducing IsInducing.subtypeVal |
| 36 | let topX : IrreducibleCloseds X := |
| 37 | ⟨Set.univ, IrreducibleSpace.isIrreducible_univ X, isClosed_univ⟩ |
| 38 | have hlast : (l.map φ hφ).last < topX := by |
| 39 | refine lt_of_le_of_ne (fun _ _ => Set.mem_univ _) ?_ |
| 40 | intro he |
| 41 | have hsub : (φ l.last : Set X) ⊆ S := |
| 42 | closure_minimal (by rintro _ ⟨x, _, rfl⟩; exact x.2) hS |
| 43 | have he' : φ l.last = topX := he |
| 44 | rw [he'] at hsub |
| 45 | exact hproper (Set.Subset.antisymm (Set.subset_univ S) hsub) |
| 46 | have hle := (LTSeries.length_le_krullDim ((l.map φ hφ).snoc topX hlast)).trans hdim |
| 47 | have hnat : l.length + 1 ≤ n := by |
| 48 | have hlen : ((l.length + 1 : ℕ) : WithBot ℕ∞) ≤ n := by simpa using hle |
| 49 | exact ENat.natCast_le_natCast.mp (WithBot.coe_le_coe.mp hlen) |
| 50 | omega |
| 51 | |
| 52 | end OAI.Topology.Dimension.ClosedSubset |