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 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.AlgebraicTopology.Sheaf.OpenRestriction |
| 7 | import Mathlib.CategoryTheory.Sites.CoverLifting |
| 8 | |
| 9 | /-! # Open Sheafification -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicTopology.Sheaf.OpenSheafification |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.TopCat |
| 16 | open _root_.Topology |
| 17 | open _root_.Topology.IsOpenEmbedding |
| 18 | |
| 19 | /-! # Sheafification commutes with open restriction |
| 20 | |
| 21 | Open-image functors lift covering sieves. The resulting sheafification |
| 22 | comparison is the sheafification lift of the restricted unit. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace Topology.IsOpenEmbedding |
| 30 | |
| 31 | variable {X Y : TopCat.{u}} {f : X ⟶ Y} (hf : IsOpenEmbedding f) |
| 32 | |
| 33 | /-- Covering sieves on an open image pull back to covering sieves in the |
| 34 | open subspace. -/ |
| 35 | lemma functor_isCocontinuous : |
| 36 | hf.functor.IsCocontinuous (Opens.grothendieckTopology X) |
| 37 | (Opens.grothendieckTopology Y) where |
| 38 | cover_lift {U S} hS x hx := by |
| 39 | obtain ⟨V, i, hV, hxV⟩ := hS (f x) ⟨x, hx, rfl⟩ |
| 40 | let V' := (Opens.map f).obj V |
| 41 | have hle : V' ≤ U := by |
| 42 | intro y hy |
| 43 | obtain ⟨z, hz, hzy⟩ := i.le hy |
| 44 | exact hf.injective hzy ▸ hz |
| 45 | exact ⟨V', homOfLE hle, S.downward_closed hV (homOfLE (Set.image_preimage_subset f V)), hxV⟩ |
| 46 | |
| 47 | end Topology.IsOpenEmbedding |
| 48 | |
| 49 | namespace TopCat |
| 50 | |
| 51 | variable (X : TopCat.{u}) (U : Opens X) |
| 52 | |
| 53 | set_option backward.defeqAttrib.useBackward true in |
| 54 | set_option backward.isDefEq.respectTransparency false in |
| 55 | /-- Let `U` be open in a topological space `X` and `P` a presheaf of abelian groups on `X`. This |
| 56 | natural isomorphism `(P⁺⁺)|_U ≅ (P|_U)⁺⁺` identifies restriction of the sheafification of `P` |
| 57 | with sheafification of its restriction. -/ |
| 58 | def openRestrictionSheafificationIso (P : Presheaf AddCommGrpCat.{u} X) : |
| 59 | (presheafToSheaf (Opens.grothendieckTopology (TopCat.of U)) AddCommGrpCat).obj |
| 60 | (U.isOpenEmbedding.functor.op ⋙ P) ≅ |
| 61 | (U.isOpenEmbedding.sheafPullback AddCommGrpCat).obj |
| 62 | ((presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat).obj P) := |
| 63 | letI : U.isOpenEmbedding.functor.IsContinuous |
| 64 | (Opens.grothendieckTopology (TopCat.of U)) (Opens.grothendieckTopology X) := |
| 65 | U.isOpenEmbedding.functor_isContinuous |
| 66 | letI : U.isOpenEmbedding.functor.IsCocontinuous |
| 67 | (Opens.grothendieckTopology (TopCat.of U)) (Opens.grothendieckTopology X) := |
| 68 | (Topology.IsOpenEmbedding.functor_isCocontinuous U.isOpenEmbedding) |
| 69 | (U.isOpenEmbedding.functor.pushforwardContinuousSheafificationCompatibility |
| 70 | AddCommGrpCat (Opens.grothendieckTopology (TopCat.of U)) |
| 71 | (Opens.grothendieckTopology X)).app P |
| 72 | |
| 73 | set_option backward.defeqAttrib.useBackward true in |
| 74 | set_option backward.isDefEq.respectTransparency false in |
| 75 | /-- The comparison is normalized by the restricted sheafification unit. -/ |
| 76 | @[reassoc] |
| 77 | lemma toSheafify_openRestrictionSheafificationIso (P : Presheaf AddCommGrpCat.{u} X) : |
| 78 | toSheafify (Opens.grothendieckTopology (TopCat.of U)) |
| 79 | (U.isOpenEmbedding.functor.op ⋙ P) ≫ |
| 80 | (openRestrictionSheafificationIso X U P).hom.hom = |
| 81 | Functor.whiskerLeft U.isOpenEmbedding.functor.op |
| 82 | (toSheafify (Opens.grothendieckTopology X) P) := by |
| 83 | let : U.isOpenEmbedding.functor.IsContinuous |
| 84 | (Opens.grothendieckTopology (TopCat.of U)) (Opens.grothendieckTopology X) := |
| 85 | U.isOpenEmbedding.functor_isContinuous |
| 86 | let : U.isOpenEmbedding.functor.IsCocontinuous |
| 87 | (Opens.grothendieckTopology (TopCat.of U)) (Opens.grothendieckTopology X) := |
| 88 | (Topology.IsOpenEmbedding.functor_isCocontinuous U.isOpenEmbedding) |
| 89 | exact U.isOpenEmbedding.functor.toSheafify_pullbackSheafificationCompatibility |
| 90 | AddCommGrpCat (Opens.grothendieckTopology (TopCat.of U)) |
| 91 | (Opens.grothendieckTopology X) P |
| 92 | |
| 93 | set_option backward.defeqAttrib.useBackward true in |
| 94 | set_option backward.isDefEq.respectTransparency false in |
| 95 | @[reassoc] |
| 96 | lemma openRestrictionSheafificationIso_naturality |
| 97 | {P Q : Presheaf AddCommGrpCat.{u} X} (f : P ⟶ Q) : |
| 98 | (presheafToSheaf (Opens.grothendieckTopology (TopCat.of U)) AddCommGrpCat).map |
| 99 | (Functor.whiskerLeft U.isOpenEmbedding.functor.op f) ≫ |
| 100 | (openRestrictionSheafificationIso X U Q).hom = |
| 101 | (openRestrictionSheafificationIso X U P).hom ≫ |
| 102 | (U.isOpenEmbedding.sheafPullback AddCommGrpCat).map |
| 103 | ((presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat).map f) := by |
| 104 | let : U.isOpenEmbedding.functor.IsContinuous |
| 105 | (Opens.grothendieckTopology (TopCat.of U)) (Opens.grothendieckTopology X) := |
| 106 | U.isOpenEmbedding.functor_isContinuous |
| 107 | let : U.isOpenEmbedding.functor.IsCocontinuous |
| 108 | (Opens.grothendieckTopology (TopCat.of U)) (Opens.grothendieckTopology X) := |
| 109 | (Topology.IsOpenEmbedding.functor_isCocontinuous U.isOpenEmbedding) |
| 110 | exact (U.isOpenEmbedding.functor.pushforwardContinuousSheafificationCompatibility |
| 111 | AddCommGrpCat (Opens.grothendieckTopology (TopCat.of U)) |
| 112 | (Opens.grothendieckTopology X)).hom.naturality f |
| 113 | |
| 114 | end TopCat |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.AlgebraicTopology.Sheaf.OpenSheafification |