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 | import OAI.AlgebraicGeometry.ComplexPoint.SmoothCoordinates |
| 19 | import OAI.AlgebraicGeometry.Cycle.ComponentDimension |
| 20 | import OAI.AlgebraicGeometry.Smooth.DimensionFormula |
| 21 | import OAI.AlgebraicGeometry.Smooth.PointwiseDimension |
| 22 | import OAI.AlgebraicGeometry.Foundations.GenericPoint |
| 23 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 24 | import OAI.AlgebraicGeometry.Cycle.ComponentNormal |
| 25 | |
| 26 | /-! # Component Normal Coordinates -/ |
| 27 | |
| 28 | namespace OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates |
| 29 | |
| 30 | noncomputable section |
| 31 | |
| 32 | open _root_.AlgebraicGeometry |
| 33 | open _root_.RingHom |
| 34 | |
| 35 | /-! |
| 36 | # Exact local coordinates on small-dimensional cycle components |
| 37 | |
| 38 | This file proves exact dimension and local-coordinate statements for reduced cycle components in |
| 39 | the cases covered by the pointwise dimension formula: components of dimension zero or one in an |
| 40 | arbitrary smooth complex variety, and all components in ambient relative dimension at most two. |
| 41 | |
| 42 | The local coordinates live on the smooth locus of the component, and their number is exactly the |
| 43 | dimension of the component. The support library proves the arbitrary-dimensional catenary formula |
| 44 | and the resulting global dimension of each component. Extending the coordinate package still |
| 45 | requires a local bridge showing that every closed point of the component has that coheight, which |
| 46 | is a separate statement. |
| 47 | -/ |
| 48 | |
| 49 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 50 | |
| 51 | namespace RingHom |
| 52 | |
| 53 | /-- A standard-smooth ring map is standard smooth of some relative dimension. -/ |
| 54 | lemma IsStandardSmooth.exists_isStandardSmoothOfRelativeDimension |
| 55 | {R S : Type*} [CommRing R] [CommRing S] {f : R →+* S} |
| 56 | (hf : f.IsStandardSmooth) : |
| 57 | ∃ n, f.IsStandardSmoothOfRelativeDimension n := by |
| 58 | let : Algebra R S := f.toAlgebra |
| 59 | obtain ⟨ι, σ, hσ, hι, ⟨P⟩⟩ := hf.out |
| 60 | refine ⟨P.dimension, ?_⟩ |
| 61 | exact ⟨ι, σ, hσ, hι, P, rfl⟩ |
| 62 | |
| 63 | end RingHom |
| 64 | |
| 65 | attribute [local instance] AlgebraicGeometry.Over.Basic.overSpecAlgebra |
| 66 | |
| 67 | section SchemeGeometry |
| 68 | |
| 69 | variable {X : Scheme} {f : X ⟶ Spec ↧ℂ} {d p : ℕ} |
| 70 | |
| 71 | /-- A closed point of an integral smooth complex `d`-fold has coheight `d`. -/ |
| 72 | lemma SmoothOfRelativeDimension.coheight_eq_dimension_of_isClosed |
| 73 | [IsIntegral X] [SmoothOfRelativeDimension d f] (x : X) (hx : IsClosed {x}) : |
| 74 | Order.coheight x = d := by |
| 75 | have hxmin : IsMin x := by |
| 76 | intro y hy |
| 77 | have hy' : y ∈ closure {x} := by |
| 78 | rw [← specializes_iff_mem_closure, ← Scheme.le_iff_specializes] |
| 79 | exact hy |
| 80 | rw [hx.closure_eq] at hy' |
| 81 | exact (Set.mem_singleton_iff.mp hy').ge |
| 82 | have h := AlgebraicGeometry.Smooth.PointwiseDimension.SmoothOfRelativeDimension.height_add_coheight_eq_of_isClosed |
| 83 | (f := f) (d := d) x hx |
| 84 | rw [Order.IsMin.height_eq_zero hxmin, zero_add] at h |
| 85 | exact h |
| 86 | |
| 87 | end SchemeGeometry |
| 88 | |
| 89 | variable (X : Over (Spec ↧ℂ)) {d p : ℕ} |
| 90 | |
| 91 | namespace CycleComponentSeparateLocalCoordinates |
| 92 | |
| 93 | /-- The smooth locus of the reduced cycle component underlying an exact coordinate package. -/ |
| 94 | abbrev componentSmoothLocus |
| 95 | (X : Over (Spec ↧ℂ)) [Smooth X.hom] |
| 96 | [Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) := |
| 97 | (Support.cycleComponentι X.left x ≫ X.hom).smoothLocus |
| 98 | |
| 99 | /-- The component's smooth locus, bundled over the complex base. -/ |
| 100 | abbrev componentSmoothScheme |
| 101 | (X : Over (Spec ↧ℂ)) [Smooth X.hom] |
| 102 | [Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : Over (Spec ↧ℂ) := |
| 103 | Over.mk ((componentSmoothLocus X x).ι ≫ Support.cycleComponentι X.left x ≫ X.hom) |
| 104 | |
| 105 | end CycleComponentSeparateLocalCoordinates |
| 106 | |
| 107 | /-- Let `X` be a smooth integral projective scheme of dimension `d` over `ℂ`, and let `Z` be the |
| 108 | reduced closure of a scheme point `x ∈ X`. This structure records a complex point in the smooth |
| 109 | locus of `Z`, an affine neighborhood there with an étale map to `𝔸^n_ℂ`, and an independently |
| 110 | chosen étale coordinate chart of `X` at the image point with `d` coordinates. It also records |
| 111 | that the chosen point of `Z` is closed. -/ |
| 112 | structure CycleComponentSeparateLocalCoordinates |
| 113 | [IsIntegral X.left] [Smooth X.hom] |
| 114 | [Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) (d n : ℕ) |
| 115 | [SmoothOfRelativeDimension d X.hom] where |
| 116 | /-- A complex point of the reduced component. -/ |
| 117 | point : ComplexPoint.Basic.ComplexSchemePoint (Over.mk (Support.cycleComponentι X.left x ≫ X.hom)) |
| 118 | /-- The point lies in the component's smooth locus. -/ |
| 119 | point_mem_smoothLocus : point.underlying ∈ |
| 120 | (Support.cycleComponentι X.left x ≫ X.hom).smoothLocus |
| 121 | /-- The underlying point is closed in the component. -/ |
| 122 | point_isClosed : IsClosed {point.underlying} |
| 123 | /-- An affine neighborhood in the smooth locus of the component. -/ |
| 124 | componentNeighborhood : |
| 125 | (CycleComponentSeparateLocalCoordinates.componentSmoothScheme |
| 126 | (X := X) (x := x)).left.Opens |
| 127 | /-- The component neighborhood is affine. -/ |
| 128 | componentNeighborhood_isAffine : IsAffineOpen componentNeighborhood |
| 129 | /-- The chosen point belongs to the component neighborhood. -/ |
| 130 | point_mem_componentNeighborhood : |
| 131 | (⟨point.underlying, point_mem_smoothLocus⟩ : |
| 132 | (CycleComponentSeparateLocalCoordinates.componentSmoothScheme |
| 133 | (X := X) (x := x)).left) ∈ |
| 134 | componentNeighborhood |
| 135 | /-- An étale coordinate homomorphism of complex algebras with exactly `n` component |
| 136 | coordinates. -/ |
| 137 | componentCoordinateAlgHom : MvPolynomial (Fin n) ℂ →ₐ[ℂ] |
| 138 | Γ((CycleComponentSeparateLocalCoordinates.componentSmoothScheme |
| 139 | (X := X) (x := x)).left, componentNeighborhood) |
| 140 | /-- The component coordinate homomorphism is étale. -/ |
| 141 | componentCoordinateAlgHom_etale : componentCoordinateAlgHom.toRingHom.Etale |
| 142 | /-- Independently chosen étale coordinates on the ambient `d`-fold. -/ |
| 143 | ambientCoordinates : ComplexPoint.SmoothCoordinates.LocalEtaleCoordinates X d |
| 144 | (Support.cycleComponentι X.left x point.underlying) |
| 145 | |
| 146 | end |
| 147 | |
| 148 | end OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates |