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.Algebra.Category.Grp.Adjunctions |
| 18 | import Mathlib.Topology.Sheaves.Flasque |
| 19 | |
| 20 | /-! # Injective Flasque -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.Sheaf.InjectiveFlasque.TopCat |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open _root_.TopCat |
| 27 | open _root_.TopCat.Sheaf |
| 28 | |
| 29 | /-! |
| 30 | # Injective sheaves are flasque |
| 31 | |
| 32 | For an open set `U`, sections of an additive sheaf `F` over `U` are represented by morphisms |
| 33 | from the sheafification of the free abelian presheaf on `yoneda.obj U`. An inclusion of open |
| 34 | sets induces a monomorphism between these representing sheaves. The extension property of an |
| 35 | injective sheaf therefore makes every restriction map surjective. |
| 36 | -/ |
| 37 | |
| 38 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace |
| 39 | |
| 40 | universe u |
| 41 | |
| 42 | variable (X : TopCat.{u}) |
| 43 | |
| 44 | /-- The sheafified free abelian Yoneda functor on the poset of open subsets. -/ |
| 45 | abbrev freeAbelianYonedaSheaf : |
| 46 | Opens X ⥤ TopCat.Sheaf AddCommGrpCat.{u} X := |
| 47 | yoneda ⋙ |
| 48 | (Functor.whiskeringRight (Opens X)ᵒᵖ (Type u) AddCommGrpCat.{u}).obj |
| 49 | AddCommGrpCat.free ⋙ |
| 50 | presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 51 | |
| 52 | /-- Morphisms from the free abelian Yoneda sheaf represent sections over the corresponding |
| 53 | open subset. -/ |
| 54 | def freeAbelianYonedaSheafHomEquiv (U : Opens X) |
| 55 | (F : TopCat.Sheaf AddCommGrpCat.{u} X) : |
| 56 | ((freeAbelianYonedaSheaf X).obj U ⟶ F) ≃ F.presheaf.obj (op U) := |
| 57 | ((sheafificationAdjunction (Opens.grothendieckTopology X) |
| 58 | AddCommGrpCat.{u}).homEquiv _ _).trans <| |
| 59 | ((AddCommGrpCat.adj.whiskerRight (Opens X)ᵒᵖ).homEquiv _ _).trans |
| 60 | yonedaEquiv |
| 61 | |
| 62 | set_option backward.isDefEq.respectTransparency false in |
| 63 | /-- The representing equivalence sends precomposition along an inclusion to restriction of |
| 64 | sections. -/ |
| 65 | lemma freeAbelianYonedaSheafHomEquiv_naturality |
| 66 | {U V : Opens X} (i : V ⟶ U) |
| 67 | (F : TopCat.Sheaf AddCommGrpCat.{u} X) |
| 68 | (g : (freeAbelianYonedaSheaf X).obj U ⟶ F) : |
| 69 | freeAbelianYonedaSheafHomEquiv X V F |
| 70 | ((freeAbelianYonedaSheaf X).map i ≫ g) = |
| 71 | F.obj.map i.op (freeAbelianYonedaSheafHomEquiv X U F g) := by |
| 72 | change yonedaEquiv |
| 73 | (((AddCommGrpCat.adj.whiskerRight (Opens X)ᵒᵖ).homEquiv _ _) |
| 74 | (((sheafificationAdjunction (Opens.grothendieckTopology X) |
| 75 | AddCommGrpCat.{u}).homEquiv _ _) |
| 76 | ((presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}).map |
| 77 | (((Functor.whiskeringRight (Opens X)ᵒᵖ (Type u) |
| 78 | AddCommGrpCat.{u}).obj AddCommGrpCat.free).map (yoneda.map i)) ≫ g))) = _ |
| 79 | rw [Adjunction.homEquiv_naturality_left, Adjunction.homEquiv_naturality_left] |
| 80 | exact (yonedaEquiv_naturality _ i).symm |
| 81 | |
| 82 | set_option backward.isDefEq.respectTransparency false in |
| 83 | /-- Every injective sheaf of abelian groups on a topological space is flasque. -/ |
| 84 | instance injective_isFlasque |
| 85 | (F : TopCat.Sheaf AddCommGrpCat.{u} X) [Injective F] : |
| 86 | F.IsFlasque where |
| 87 | epi {U V} i := by |
| 88 | rw [AddCommGrpCat.epi_iff_surjective] |
| 89 | intro s |
| 90 | let A := freeAbelianYonedaSheaf X |
| 91 | let gV : A.obj V.unop ⟶ F := |
| 92 | (freeAbelianYonedaSheafHomEquiv X V.unop F).symm s |
| 93 | let a : A.obj V.unop ⟶ A.obj U.unop := A.map i.unop |
| 94 | let : Mono a := by |
| 95 | let W := |
| 96 | (Functor.whiskeringRight (Opens X)ᵒᵖ (Type u) AddCommGrpCat.{u}).obj |
| 97 | AddCommGrpCat.free |
| 98 | let S := presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 99 | change Mono (S.map (W.map (yoneda.map i.unop))) |
| 100 | let : Mono (yoneda.map i.unop) := Functor.map_mono yoneda i.unop |
| 101 | let : Mono (W.map (yoneda.map i.unop)) := Functor.map_mono W (yoneda.map i.unop) |
| 102 | exact Functor.map_mono S (W.map (yoneda.map i.unop)) |
| 103 | let gU : A.obj U.unop ⟶ F := Injective.factorThru gV a |
| 104 | refine ⟨freeAbelianYonedaSheafHomEquiv X U.unop F gU, ?_⟩ |
| 105 | calc |
| 106 | _ = freeAbelianYonedaSheafHomEquiv X V.unop F (a ≫ gU) := by |
| 107 | simpa only [a, A, Quiver.Hom.op_unop] using |
| 108 | (freeAbelianYonedaSheafHomEquiv_naturality X i.unop F gU).symm |
| 109 | _ = freeAbelianYonedaSheafHomEquiv X V.unop F gV := by |
| 110 | rw [Injective.comp_factorThru] |
| 111 | _ = s := (freeAbelianYonedaSheafHomEquiv X V.unop F).apply_symm_apply s |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicTopology.Sheaf.InjectiveFlasque.TopCat |