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 (c) 2026 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.CategoryTheory.Limits.Final |
| 8 | import Mathlib.Topology.Category.TopCat.Opens |
| 9 | |
| 10 | /-! # Opens Map -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.OpensMap.TopologicalSpace.Opens |
| 13 | |
| 14 | open _root_.TopologicalSpace |
| 15 | open _root_.TopologicalSpace.Opens |
| 16 | |
| 17 | /-! |
| 18 | # The opens-preimage functor is final |
| 19 | |
| 20 | For a continuous map `f: X → Y`, the preimage functor |
| 21 | `Opens.map f: Opens Y ⥤ Opens X` is final: for every `U: Opens X` the comma category |
| 22 | of opens `V: Opens Y` with `U ≤ f ⁻¹ᵁ V` is nonempty (`V = ⊤`) and connected (any two |
| 23 | such `V₁, V₂` zig-zag through `V₁ ⊓ V₂`, since preimage preserves binary meets). |
| 24 | |
| 25 | This feeds mathlib's `SheafOfModules.pullbackObjUnitToUnit` isomorphism (which requires |
| 26 | `[F.Final]` on the underlying site functor): pullback of the unit sheaf of modules along |
| 27 | any morphism of schemes is the unit — AINTLIB Hodge.Projective T-PIC1a-FIN. Upstream |
| 28 | candidate. |
| 29 | -/ |
| 30 | |
| 31 | open _root_.CategoryTheory |
| 32 | |
| 33 | variable {X Y : TopCat} (f : X ⟶ Y) |
| 34 | |
| 35 | instance map_final : (Opens.map f).Final where |
| 36 | out U := by |
| 37 | have hne : Nonempty (StructuredArrow U (Opens.map f)) := |
| 38 | ⟨StructuredArrow.mk (Y := ⊤) (homOfLE le_top)⟩ |
| 39 | refine zigzag_isConnected fun A B => ?_ |
| 40 | have hA : U ≤ (Opens.map f).obj (A.right ⊓ B.right) := |
| 41 | le_inf (leOfHom A.hom) (leOfHom B.hom) |
| 42 | have z1 : Zag A (StructuredArrow.mk (homOfLE hA)) := |
| 43 | Or.inr ⟨StructuredArrow.homMk (homOfLE inf_le_left) (Subsingleton.elim _ _)⟩ |
| 44 | have z2 : Zag (StructuredArrow.mk (homOfLE hA)) B := |
| 45 | Or.inl ⟨StructuredArrow.homMk (homOfLE inf_le_right) (Subsingleton.elim _ _)⟩ |
| 46 | exact (Relation.ReflTransGen.single z1).trans (Relation.ReflTransGen.single z2) |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.OpensMap.TopologicalSpace.Opens |