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 Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 18 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 19 | |
| 20 | /-! # Residue Field -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicGeometry.ClosedImmersion.ResidueField.IsClosedImmersion |
| 23 | |
| 24 | open _root_.AlgebraicGeometry |
| 25 | open _root_.AlgebraicGeometry.IsClosedImmersion |
| 26 | |
| 27 | /-! |
| 28 | # Residue fields and local sections along a closed immersion |
| 29 | |
| 30 | A closed immersion is surjective on stalks of structure sheaves, hence on residue fields; since a |
| 31 | map of fields is injective, the residue fields at corresponding points are canonically isomorphic. |
| 32 | |
| 33 | Surjectivity on stalks also says that a section of the closed subscheme is, near each of its |
| 34 | points, the restriction of a section defined on an open set of the ambient scheme. That local |
| 35 | lifting is what transports the analytic topology across a closed immersion. |
| 36 | -/ |
| 37 | |
| 38 | open _root_.CategoryTheory Opposite _root_.TopologicalSpace _root_.Topology |
| 39 | |
| 40 | variable {A B : Scheme} {i : A ⟶ B} |
| 41 | |
| 42 | /-- A closed immersion induces a surjection on residue fields. Since a map of fields is |
| 43 | injective, this identifies the residue fields at corresponding points. -/ |
| 44 | lemma residueFieldMap_surjective [IsClosedImmersion i] (x : A) : |
| 45 | Function.Surjective (i.residueFieldMap x) := by |
| 46 | intro y |
| 47 | obtain ⟨r, rfl⟩ := A.residue_surjective x y |
| 48 | obtain ⟨s, hs⟩ := i.stalkMap_surjective x r |
| 49 | refine ⟨B.residue (i x) s, ?_⟩ |
| 50 | change (B.residue (i x) ≫ i.residueFieldMap x) s = _ |
| 51 | exact congrArg (A.residue x) hs |
| 52 | |
| 53 | /-- The residue-field isomorphism induced by a closed immersion. -/ |
| 54 | noncomputable def residueFieldIso [IsClosedImmersion i] (x : A) : |
| 55 | B.residueField (i x) ≅ A.residueField x := |
| 56 | (RingEquiv.ofBijective (i.residueFieldMap x).hom |
| 57 | ⟨RingHom.injective _, residueFieldMap_surjective x⟩).toCommRingCatIso |
| 58 | |
| 59 | lemma residueFieldIso_hom [IsClosedImmersion i] (x : A) : |
| 60 | (residueFieldIso x).hom = i.residueFieldMap x := |
| 61 | rfl |
| 62 | |
| 63 | /-- The map on stalks of structure sheaves induced by a closed immersion is surjective. This |
| 64 | version removes the pushforward-stalk comparison from the usual statement. -/ |
| 65 | lemma stalkMap_c_surjective [IsClosedImmersion i] (x : A) : |
| 66 | Function.Surjective ((TopCat.Presheaf.stalkFunctor CommRingCat (i x)).map i.c) := by |
| 67 | let p := A.presheaf.stalkPushforward CommRingCat i.base x |
| 68 | let : IsIso p := |
| 69 | TopCat.Presheaf.stalkPushforward.stalkPushforward_iso_of_isInducing |
| 70 | CommRingCat i.isClosedEmbedding.isInducing A.presheaf x |
| 71 | intro y |
| 72 | obtain ⟨s, hs⟩ := i.stalkMap_surjective x (p y) |
| 73 | exact ⟨s, (ConcreteCategory.bijective_of_isIso p).1 hs⟩ |
| 74 | |
| 75 | /-- A section of the closed subscheme is locally the restriction of a section on the ambient |
| 76 | scheme, near each point of its domain. -/ |
| 77 | lemma exists_local_ambient_lift [IsClosedImmersion i] (U : B.Opens) |
| 78 | (t : ((TopCat.Presheaf.pushforward CommRingCat i.base).obj A.presheaf).obj (op U)) |
| 79 | (x : A) (hx : i x ∈ U) : |
| 80 | ∃ (V : B.Opens) (hVU : V ⟶ U), |
| 81 | (∃ s : Γ(B, V), (i.c.app (op V)) s = |
| 82 | (((TopCat.Presheaf.pushforward CommRingCat i.base).obj A.presheaf).map hVU.op) t) ∧ |
| 83 | i x ∈ V := by |
| 84 | set t_x := ((TopCat.Presheaf.pushforward CommRingCat i.base).obj A.presheaf).germ |
| 85 | U (i x) hx t with ht_x |
| 86 | obtain ⟨s_x, hs_x : ((TopCat.Presheaf.stalkFunctor CommRingCat (i x)).map i.c) s_x = |
| 87 | t_x⟩ := stalkMap_c_surjective x t_x |
| 88 | obtain ⟨V, hxV, s, rfl⟩ := B.presheaf.exists_germ_eq s_x |
| 89 | rw [TopCat.Presheaf.stalkFunctor_map_germ_apply, ht_x] at hs_x |
| 90 | have key_W := ((TopCat.Presheaf.pushforward CommRingCat i.base).obj A.presheaf).germ_eq |
| 91 | (i x) hxV hx (i.c.app _ s) t hs_x |
| 92 | obtain ⟨W, hxW, hWV, hWU, h_eq⟩ := key_W |
| 93 | refine ⟨W, hWU, ⟨B.presheaf.map hWV.op s, ?_⟩, hxW⟩ |
| 94 | convert! h_eq using 1 |
| 95 | simp only [← ConcreteCategory.comp_apply, i.c.naturality] |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.ClosedImmersion.ResidueField.IsClosedImmersion |