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 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.AlgebraicTopology.LocalHomology.ComplexClass |
| 18 | import Mathlib.Analysis.Normed.Module.Ball.Homeomorph |
| 19 | |
| 20 | /-! # Chart Fundamental Class -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.LocalHomology.ChartFundamentalClass.Singular |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | /-! |
| 27 | # Local fundamental classes from complex charts |
| 28 | |
| 29 | This file transports the explicit standard class of `ℂ^d` to a point in a topological space with |
| 30 | a complex coordinate chart. An open ball around the coordinate of the point is chosen inside the |
| 31 | chart target. Mathlib's radial homeomorphism compresses all of `ℂ^d` into that ball, after which |
| 32 | the inverse chart gives an open embedding into the space. The induced map of punctured pairs sends |
| 33 | the standard complex local class to local homology at the point. |
| 34 | |
| 35 | The construction fixes both the support and the complex orientation. It requires only a |
| 36 | chart and a proof that the point lies in its source; no fundamental or orientation class is passed |
| 37 | as data. |
| 38 | -/ |
| 39 | |
| 40 | open _root_.CategoryTheory _root_.Topology |
| 41 | |
| 42 | variable {M : Type} [TopologicalSpace M] (d : ℕ) |
| 43 | |
| 44 | /-- The pair `(M, M ∖ {x})` used for local homology at `x`. -/ |
| 45 | abbrev pointComplementPair (x : M) : TopPair := |
| 46 | TopPair.ofSubset (X := TopCat.of M) ({x}ᶜ : Set M) |
| 47 | |
| 48 | variable (e : OpenPartialHomeomorph M (Fin d → ℂ)) (x : M) (hx : x ∈ e.source) |
| 49 | |
| 50 | /-- A positive radius whose coordinate ball is contained in the chart target. -/ |
| 51 | def chartRadius : ℝ := |
| 52 | Classical.choose (Metric.isOpen_iff.mp e.open_target (e x) (e.map_source hx)) |
| 53 | |
| 54 | lemma chartRadius_pos : 0 < chartRadius d e x hx := |
| 55 | (Classical.choose_spec |
| 56 | (Metric.isOpen_iff.mp e.open_target (e x) (e.map_source hx))).1 |
| 57 | |
| 58 | lemma ball_chartRadius_subset : |
| 59 | Metric.ball (e x) (chartRadius d e x hx) ⊆ e.target := |
| 60 | (Classical.choose_spec |
| 61 | (Metric.isOpen_iff.mp e.open_target (e x) (e.map_source hx))).2 |
| 62 | |
| 63 | /-- The open embedding that compresses `ℂ^d` into a coordinate ball and then applies the inverse |
| 64 | chart. -/ |
| 65 | def chartModelEmbedding : OpenPartialHomeomorph (Fin d → ℂ) M := |
| 66 | (OpenPartialHomeomorph.univBall (e x) (chartRadius d e x hx)).trans e.symm |
| 67 | |
| 68 | lemma chartModelEmbedding_source : |
| 69 | (chartModelEmbedding d e x hx).source = Set.univ := by |
| 70 | ext y |
| 71 | simp only [chartModelEmbedding, OpenPartialHomeomorph.trans_source, |
| 72 | OpenPartialHomeomorph.univBall_source, Set.mem_inter_iff, Set.mem_univ, |
| 73 | true_and, Set.mem_preimage, OpenPartialHomeomorph.symm_source] |
| 74 | refine ⟨fun _ => trivial, fun _ => ?_⟩ |
| 75 | apply ball_chartRadius_subset d e x hx |
| 76 | rw [← OpenPartialHomeomorph.univBall_target (e x) (chartRadius_pos d e x hx)] |
| 77 | exact (OpenPartialHomeomorph.univBall (e x) (chartRadius d e x hx)).map_source (by simp) |
| 78 | |
| 79 | @[simp] |
| 80 | lemma chartModelEmbedding_zero : chartModelEmbedding d e x hx 0 = x := by |
| 81 | rw [chartModelEmbedding, OpenPartialHomeomorph.trans_apply, |
| 82 | OpenPartialHomeomorph.univBall_apply_zero] |
| 83 | exact e.left_inv hx |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicTopology.LocalHomology.ChartFundamentalClass.Singular |