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.ComplexPoint.Manifold |
| 18 | import Mathlib.Geometry.Manifold.Algebra.SmoothFunctions |
| 19 | import Mathlib.Geometry.Manifold.Sheaf.Basic |
| 20 | |
| 21 | /-! # Analytic Sheaf -/ |
| 22 | |
| 23 | namespace OAI.AlgebraicGeometry.ComplexPoint |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | open _root_.AlgebraicGeometry |
| 28 | |
| 29 | /-! |
| 30 | # Holomorphic functions on complex points |
| 31 | |
| 32 | For a complex scheme smooth of relative dimension `d`, the algebraic étale charts constructed in |
| 33 | `ComplexPoint.SmoothCoordinates` give a canonical charted-space structure on its complex points. |
| 34 | This file defines its sheaf of holomorphic functions: a section is a complex-valued function |
| 35 | which is complex analytic in those charts. Mathlib expresses complex analyticity as manifold |
| 36 | differentiability of order `ω`. |
| 37 | |
| 38 | The sheaf and its ring operations are built by the local-predicate sheaf machinery. |
| 39 | -/ |
| 40 | |
| 41 | open _root_.CategoryTheory _root_.TopologicalSpace _root_.Topology |
| 42 | open scoped ContDiff _root_.Manifold |
| 43 | |
| 44 | variable (X : Over (Spec ↧ℂ)) (d : ℕ) |
| 45 | |
| 46 | /-- Let `X` be a smooth scheme over `ℂ` of relative dimension `d`. On its analytic space `X(ℂ)`, |
| 47 | this sheaf assigns to an open `U` the complex-valued functions on `U` that are analytic in the |
| 48 | chosen étale coordinate charts. Restriction is restriction of functions; the values here are |
| 49 | sets. -/ |
| 50 | def Basic.ComplexSchemePoint.holomorphicFunctionSheafToTypes [SmoothOfRelativeDimension d X.hom] : |
| 51 | TopCat.Sheaf (Type) (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X)) := |
| 52 | (contDiffWithinAt_localInvariantProp (I := 𝓘(ℂ, Fin d → ℂ)) |
| 53 | (I' := 𝓘(ℂ)) ω).sheaf (ComplexPoint.Basic.ComplexSchemePoint X) ℂ |
| 54 | |
| 55 | instance Basic.ComplexSchemePoint.holomorphicFunctionSheafToTypes.commRing [SmoothOfRelativeDimension d X.hom] |
| 56 | (U : (Opens (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X)))ᵒᵖ) : |
| 57 | CommRing ((ComplexPoint.Basic.ComplexSchemePoint.holomorphicFunctionSheafToTypes X d).presheaf.obj U) := |
| 58 | inferInstanceAs <| CommRing |
| 59 | C^ω⟮𝓘(ℂ, Fin d → ℂ), (Opposite.unop U : Opens (ComplexPoint.Basic.ComplexSchemePoint X)); ℂ⟯ |
| 60 | |
| 61 | /-- Let `X` be a smooth scheme over `ℂ` of relative dimension `d`. This presheaf of commutative |
| 62 | rings on the analytic space `X(ℂ)` assigns to each open `U` the ring of holomorphic functions `U |
| 63 | → ℂ`, with pointwise operations and restriction of functions. -/ |
| 64 | def Basic.ComplexSchemePoint.holomorphicFunctionPresheaf [SmoothOfRelativeDimension d X.hom] : |
| 65 | TopCat.Presheaf CommRingCat (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X)) where |
| 66 | obj U := CommRingCat.of |
| 67 | ((ComplexPoint.Basic.ComplexSchemePoint.holomorphicFunctionSheafToTypes X d).presheaf.obj U) |
| 68 | map h := CommRingCat.ofHom <| |
| 69 | ContMDiffMap.restrictRingHom 𝓘(ℂ, Fin d → ℂ) 𝓘(ℂ) ℂ <| |
| 70 | CategoryTheory.leOfHom h.unop |
| 71 | map_id _ := rfl |
| 72 | map_comp _ _ := rfl |
| 73 | |
| 74 | /-- Let `X` be a smooth scheme over `ℂ` of relative dimension `d`. This is the sheaf of commutative |
| 75 | rings `𝒪` on `X(ℂ)`: its sections on an analytic open `U` are functions `U → ℂ` that are |
| 76 | analytic in the chosen étale charts, with pointwise ring operations. -/ |
| 77 | def Basic.ComplexSchemePoint.holomorphicFunctionSheaf [SmoothOfRelativeDimension d X.hom] : |
| 78 | TopCat.Sheaf CommRingCat (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X)) where |
| 79 | obj := ComplexPoint.Basic.ComplexSchemePoint.holomorphicFunctionPresheaf X d |
| 80 | property := by |
| 81 | rw [CategoryTheory.Presheaf.isSheaf_iff_isSheaf_forget _ _ |
| 82 | (CategoryTheory.forget CommRingCat)] |
| 83 | exact (ComplexPoint.Basic.ComplexSchemePoint.holomorphicFunctionSheafToTypes X d).property |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.ComplexPoint |