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 | |
| 16 | This file has been modified. |
| 17 | -/ |
| 18 | |
| 19 | import Mathlib.Topology.Algebra.IsOpenUnits |
| 20 | |
| 21 | namespace OAI.Topology.Algebra.IsOpenUnits |
| 22 | |
| 23 | /-! |
| 24 | # Monoids with open units |
| 25 | |
| 26 | Mathlib's `IsOpenUnits M` records that `Mˣ` is open in `M` and carries the subspace topology, but |
| 27 | does not unfold that into the two consequences one uses: the units form an open set, and |
| 28 | inversion is continuous on it. |
| 29 | |
| 30 | These belong in `Mathlib/Topology/Algebra/IsOpenUnits.lean`; this file can be deleted once they |
| 31 | are there. |
| 32 | -/ |
| 33 | |
| 34 | section |
| 35 | |
| 36 | open _root_.Topology |
| 37 | |
| 38 | lemma Set.range_units_val {M : Type*} [Monoid M] : |
| 39 | Set.range (Units.val : Mˣ → M) = {x | IsUnit x} := |
| 40 | Set.ext fun _ ↦ ⟨fun ⟨u, hu⟩ ↦ hu ▸ u.isUnit, fun h ↦ ⟨h.unit, h.unit_spec⟩⟩ |
| 41 | |
| 42 | variable (M : Type*) [Monoid M] [TopologicalSpace M] [IsOpenUnits M] |
| 43 | |
| 44 | /-- In a monoid with open units, being a unit is an open condition. -/ |
| 45 | lemma isOpen_setOf_isUnit : IsOpen {x : M | IsUnit x} := |
| 46 | _root_.OAI.Topology.Algebra.IsOpenUnits.Set.range_units_val (M := M) ▸ IsOpenUnits.isOpenEmbedding_unitsVal.isOpen_range |
| 47 | |
| 48 | variable {M} in |
| 49 | /-- Reading off the unit underlying an element known to be one is continuous. -/ |
| 50 | lemma continuous_isUnit_unit : |
| 51 | Continuous fun x : {x : M | IsUnit x} ↦ x.2.unit := |
| 52 | IsOpenUnits.isOpenEmbedding_unitsVal.isInducing.continuous_iff.2 <| by |
| 53 | simpa [Function.comp_def] using continuous_subtype_val |
| 54 | |
| 55 | /-- Inversion is continuous on the units of a monoid with zero whose units are open. -/ |
| 56 | lemma continuousOn_ringInverse {M : Type*} [MonoidWithZero M] [TopologicalSpace M] |
| 57 | [IsOpenUnits M] : ContinuousOn (Ring.inverse : M → M) {x | IsUnit x} := by |
| 58 | rw [continuousOn_iff_continuous_domRestrict] |
| 59 | refine (Units.continuous_coe_inv.comp continuous_isUnit_unit).congr fun x ↦ ?_ |
| 60 | simp [← Ring.inverse_unit x.2.unit] |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.Topology.Algebra.IsOpenUnits |