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.AlgebraicGeometry.Cycle.SupportEq |
| 18 | |
| 19 | /-! # Component Dimension -/ |
| 20 | |
| 21 | namespace OAI.AlgebraicGeometry.Cycle.ComponentDimension |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | open _root_.AlgebraicGeometry |
| 26 | |
| 27 | /-! |
| 28 | # Dimension of a reduced cycle component |
| 29 | |
| 30 | This file relates the order-theoretic dimension of the reduced closure of a scheme point to the |
| 31 | specialization order in the ambient scheme. These facts separate the purely topological part of |
| 32 | the component dimension calculation from the catenary dimension formula needed for a smooth |
| 33 | variety. |
| 34 | |
| 35 | Mathlib currently has no catenary or equidimensional scheme API, and its |
| 36 | `SmoothOfRelativeDimension` API does not relate relative dimension to `Order.height` or |
| 37 | `Order.coheight`. Consequently this file proves the unconditional identity |
| 38 | `dim(closure {x}) = height(x)`, but does not claim the further smooth-variety formula |
| 39 | `height(x) + coheight(x) = dim(X)`. |
| 40 | -/ |
| 41 | |
| 42 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 43 | |
| 44 | /-- Membership in a reduced cycle component is membership in the closure that defines it. -/ |
| 45 | lemma mem_cycleComponent_support_iff (X : Scheme) (x y : X) : |
| 46 | y ∈ (Scheme.IdealSheafData.vanishingIdeal |
| 47 | (X := X) ⟨closure {x}, isClosed_closure⟩).support ↔ |
| 48 | y ∈ closure {x} := by aesop |
| 49 | |
| 50 | /-- The points of the reduced closure of `x` are exactly the specializations below `x`. |
| 51 | |
| 52 | This is an order isomorphism for the specialization preorders. It is the order-theoretic core of |
| 53 | the dimension calculation for a cycle component. -/ |
| 54 | def cycleComponentOrderIsoIic (X : Scheme) (x : X) : |
| 55 | Support.cycleComponent X x ≃o Set.Iic x := |
| 56 | let e : Support.cycleComponent X x ≃ Set.Iic x := |
| 57 | { toFun := fun y ↦ ⟨Support.cycleComponentι X x y, show Support.cycleComponentι X x y ≤ x by |
| 58 | rw [Scheme.le_iff_specializes, specializes_iff_mem_closure] |
| 59 | exact (mem_cycleComponent_support_iff X x (Support.cycleComponentι X x y)).mp y.2⟩ |
| 60 | invFun := fun y ↦ ⟨y.1, by |
| 61 | apply (mem_cycleComponent_support_iff X x y.1).mpr |
| 62 | rw [← specializes_iff_mem_closure, ← Scheme.le_iff_specializes] |
| 63 | exact y.2⟩ |
| 64 | left_inv := fun _ ↦ rfl |
| 65 | right_inv := fun _ ↦ rfl } |
| 66 | ⟨e, by |
| 67 | intro a b |
| 68 | change (Support.cycleComponentι X x a ≤ Support.cycleComponentι X x b) ↔ a ≤ b |
| 69 | rw [Scheme.le_iff_specializes, Scheme.le_iff_specializes] |
| 70 | exact (Support.cycleComponentι X x).isClosedEmbedding.isInducing.specializes_iff⟩ |
| 71 | |
| 72 | @[simp] |
| 73 | lemma cycleComponentOrderIsoIic_apply (X : Scheme) (x : X) (y : Support.cycleComponent X x) : |
| 74 | (cycleComponentOrderIsoIic X x y : X) = Support.cycleComponentι X x y := |
| 75 | rfl |
| 76 | |
| 77 | @[simp] |
| 78 | lemma cycleComponentOrderIsoIic_symm_apply_coe |
| 79 | (X : Scheme) (x : X) (y : Set.Iic x) : |
| 80 | Support.cycleComponentι X x ((cycleComponentOrderIsoIic X x).symm y) = y := |
| 81 | rfl |
| 82 | |
| 83 | /-- For a scheme, topological Krull dimension is the Krull dimension of its specialization |
| 84 | preorder. -/ |
| 85 | lemma Scheme.topologicalKrullDim_eq_orderKrullDim (X : Scheme) : |
| 86 | topologicalKrullDim X = Order.krullDim X := |
| 87 | Order.krullDim_eq_of_orderIso |
| 88 | (irreducibleSetEquivPoints (α := X)) |
| 89 | |
| 90 | /-- The order-theoretic Krull dimension of the reduced closure of `x` is exactly the height of |
| 91 | `x` in the ambient scheme. -/ |
| 92 | lemma orderKrullDim_cycleComponent (X : Scheme) (x : X) : |
| 93 | Order.krullDim (Support.cycleComponent X x) = Order.height x := by |
| 94 | rw [Order.krullDim_eq_of_orderIso (cycleComponentOrderIsoIic X x)] |
| 95 | exact (Order.height_eq_krullDim_Iic x).symm |
| 96 | |
| 97 | /-- The topological Krull dimension of the reduced closure of `x` is exactly the order-theoretic |
| 98 | height of `x` in the ambient scheme. -/ |
| 99 | lemma topologicalKrullDim_cycleComponent (X : Scheme) (x : X) : |
| 100 | topologicalKrullDim (Support.cycleComponent X x) = Order.height x := by |
| 101 | rw [ComponentDimension.Scheme.topologicalKrullDim_eq_orderKrullDim] |
| 102 | exact orderKrullDim_cycleComponent X x |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.Cycle.ComponentDimension |