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.Support.DerivedSectionsNaturality |
| 7 | import Mathlib.Topology.Sheaves.Flasque |
| 8 | import Mathlib.Topology.Sheaves.SheafCondition.PairwiseIntersections |
| 9 | |
| 10 | /-! # Flasque Sections -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicTopology.Support.FlasqueSections.TopCat.Sheaf |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.TopCat |
| 17 | open _root_.TopCat.Sheaf |
| 18 | |
| 19 | /-! |
| 20 | # Supported sections preserve flasqueness |
| 21 | |
| 22 | A supported section over `V` glues with zero on the excluded open `U` to a section on |
| 23 | `V ⊔ U`. Flasqueness extends that section to `W ⊔ U` when `V ≤ W`, and its restriction to |
| 24 | `W` vanishes on `W ⊓ U`, so it lies in the kernel defining supported sections. |
| 25 | -/ |
| 26 | |
| 27 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | variable (X : TopCat.{u}) (U V : Opens X) (F : Sheaf AddCommGrpCat.{u} X) |
| 32 | |
| 33 | /-- The preceding identification preserves the restriction morphism. -/ |
| 34 | @[reassoc] |
| 35 | theorem toOpenRestrictionPushforward_intersection : |
| 36 | (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F).hom.app (op V)) ≫ |
| 37 | (DerivedSections.TopCat.Sheaf.supportedOutsideIntersectionIso X U V F).hom = |
| 38 | F.obj.map (homOfLE (inf_le_left : V ⊓ U ≤ V)).op := by |
| 39 | change F.obj.map _ ≫ F.obj.map _ = F.obj.map _ |
| 40 | rw [← F.obj.map_comp] |
| 41 | congr 1 |
| 42 | |
| 43 | /-- The supported-section inclusion restricts to zero on the intersection. -/ |
| 44 | @[reassoc] |
| 45 | theorem supportedOutsideInclusion_restrict_intersection : |
| 46 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F).hom.app (op V) ≫ |
| 47 | F.obj.map (homOfLE (inf_le_left : V ⊓ U ≤ V)).op = 0 := by |
| 48 | rw [← toOpenRestrictionPushforward_intersection X U V F, ← Category.assoc] |
| 49 | have h := congrArg (fun f => f.hom.app (op V)) |
| 50 | (DerivedSectionsOn.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion_restriction X U F) |
| 51 | change ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F).hom.app (op V) ≫ |
| 52 | ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F).hom.app (op V) = 0 at h |
| 53 | rw [h, zero_comp] |
| 54 | |
| 55 | /-- A section zero on the intersection lifts into the supported-section kernel, along the |
| 56 | canonical on-open kernel comparison. -/ |
| 57 | theorem exists_supportedOutsideSection_of_restrict_eq_zero |
| 58 | (s : F.presheaf.obj (op V)) |
| 59 | (hs : F.obj.map (homOfLE (inf_le_left : V ⊓ U ≤ V)).op s = 0) : |
| 60 | ∃ t : ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).obj F).presheaf.obj (op V), |
| 61 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F).hom.app (op V) t = s := by |
| 62 | let r := ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F).hom.app (op V) |
| 63 | have hr : r s = 0 := by |
| 64 | apply (ConcreteCategory.bijective_of_isIso (DerivedSections.TopCat.Sheaf.supportedOutsideIntersectionIso X U V F).hom).1 |
| 65 | rw [map_zero] |
| 66 | exact (ConcreteCategory.congr_hom |
| 67 | (toOpenRestrictionPushforward_intersection X U V F) s).trans hs |
| 68 | let e := DerivedSectionsOn.TopCat.Sheaf.sheafSectionsSupportedOutsideOnOpenIso X U V F ≪≫ AddCommGrpCat.kernelIsoKer r |
| 69 | let a : r.hom.ker := ⟨s, hr⟩ |
| 70 | refine ⟨e.inv a, ?_⟩ |
| 71 | have he : e.hom ≫ AddCommGrpCat.ofHom r.hom.ker.subtype = |
| 72 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F).hom.app (op V) := by |
| 73 | simp only [e, Iso.trans_hom, Category.assoc, |
| 74 | AddCommGrpCat.kernelIsoKer_hom_comp_subtype] |
| 75 | exact DerivedSectionsOn.TopCat.Sheaf.sheafSectionsSupportedOutsideOnOpenIso_hom_ι X U V F |
| 76 | rw [← he] |
| 77 | change (AddCommGrpCat.ofHom r.hom.ker.subtype) (e.hom (e.inv a)) = s |
| 78 | have hai : e.hom (e.inv a) = a := ConcreteCategory.congr_hom e.inv_hom_id a |
| 79 | rw [hai] |
| 80 | rfl |
| 81 | |
| 82 | /-- Let `X` be a topological space, `U,V` open, and `F` a sheaf of abelian groups. A section of `F` |
| 83 | on `V` vanishing on `V ∩ U` glues uniquely to the zero section on `U`. This additive map sends |
| 84 | it to the resulting section on `V ∪ U`. -/ |
| 85 | def supportedOutsideGlueZero : |
| 86 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).obj F).obj.obj (op V) ⟶ F.obj.obj (op (V ⊔ U)) := |
| 87 | F.interUnionPullbackConeLift V U |
| 88 | (PullbackCone.mk |
| 89 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F).hom.app (op V)) |
| 90 | (0 : ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).obj F).obj.obj (op V) ⟶ F.obj.obj (op U)) |
| 91 | (by rw [supportedOutsideInclusion_restrict_intersection, zero_comp])) |
| 92 | |
| 93 | /-- Gluing with zero preserves the given section on its original open. -/ |
| 94 | @[reassoc (attr := simp)] |
| 95 | theorem supportedOutsideGlueZero_restrict_left : |
| 96 | supportedOutsideGlueZero X U V F ≫ |
| 97 | F.obj.map (homOfLE (le_sup_left : V ≤ V ⊔ U)).op = |
| 98 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F).hom.app (op V) := |
| 99 | F.interUnionPullbackConeLift_left V U _ |
| 100 | |
| 101 | /-- The same glued section is exactly zero on the excluded open. -/ |
| 102 | @[reassoc (attr := simp)] |
| 103 | theorem supportedOutsideGlueZero_restrict_right : |
| 104 | supportedOutsideGlueZero X U V F ≫ |
| 105 | F.obj.map (homOfLE (le_sup_right : U ≤ V ⊔ U)).op = 0 := |
| 106 | F.interUnionPullbackConeLift_right V U _ |
| 107 | |
| 108 | variable {V} {W : Opens X} |
| 109 | |
| 110 | /-- Every supported section extends along an open inclusion when the original sheaf |
| 111 | is flasque. The extension is produced by gluing with zero before extending. -/ |
| 112 | theorem sheafSectionsSupportedOutside_restriction_surjective [F.IsFlasque] |
| 113 | (hVW : V ≤ W) : |
| 114 | Function.Surjective (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).obj F).obj.map |
| 115 | (homOfLE hVW).op) := by |
| 116 | intro a |
| 117 | let G := (DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).obj F |
| 118 | let ι := (DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F |
| 119 | have hsup : V ⊔ U ≤ W ⊔ U := sup_le_sup_right hVW U |
| 120 | obtain ⟨t, ht⟩ := (AddCommGrpCat.epi_iff_surjective |
| 121 | (F.obj.map (homOfLE hsup).op)).mp inferInstance |
| 122 | (supportedOutsideGlueZero X U V F a) |
| 123 | have htU : F.obj.map (homOfLE (le_sup_right : U ≤ W ⊔ U)).op t = 0 := by |
| 124 | calc |
| 125 | _ = F.obj.map (homOfLE (le_sup_right : U ≤ V ⊔ U)).op |
| 126 | (F.obj.map (homOfLE hsup).op t) := by |
| 127 | rw [← Functor.map_comp_apply] |
| 128 | rfl |
| 129 | _ = F.obj.map (homOfLE (le_sup_right : U ≤ V ⊔ U)).op |
| 130 | (supportedOutsideGlueZero X U V F a) := by rw [ht] |
| 131 | _ = 0 := ConcreteCategory.congr_hom (supportedOutsideGlueZero_restrict_right X U V F) a |
| 132 | let b := F.obj.map (homOfLE (le_sup_left : W ≤ W ⊔ U)).op t |
| 133 | have hb : F.obj.map (homOfLE (inf_le_left : W ⊓ U ≤ W)).op b = 0 := by |
| 134 | calc |
| 135 | _ = F.obj.map (homOfLE (inf_le_right : W ⊓ U ≤ U)).op |
| 136 | (F.obj.map (homOfLE (le_sup_right : U ≤ W ⊔ U)).op t) := by |
| 137 | dsimp [b] |
| 138 | rw [← Functor.map_comp_apply, ← Functor.map_comp_apply] |
| 139 | rfl |
| 140 | _ = 0 := by rw [htU, map_zero] |
| 141 | obtain ⟨c, hc⟩ := exists_supportedOutsideSection_of_restrict_eq_zero X U W F b hb |
| 142 | have hι : Function.Injective (ι.hom.app (op V)) := by |
| 143 | apply (AddCommGrpCat.mono_iff_injective _).mp |
| 144 | change Mono (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F).hom.app (op V)) |
| 145 | rw [← DerivedSectionsOn.TopCat.Sheaf.sheafSectionsSupportedOutsideOnOpenIso_hom_ι X U V F] |
| 146 | infer_instance |
| 147 | refine ⟨c, hι ?_⟩ |
| 148 | calc |
| 149 | ι.hom.app (op V) (G.obj.map (homOfLE hVW).op c) = |
| 150 | F.obj.map (homOfLE hVW).op (ι.hom.app (op W) c) := |
| 151 | ConcreteCategory.congr_hom (ι.hom.naturality (homOfLE hVW).op) c |
| 152 | _ = F.obj.map (homOfLE hVW).op b := by rw [hc] |
| 153 | _ = F.obj.map (homOfLE (le_sup_left : V ≤ V ⊔ U)).op |
| 154 | (F.obj.map (homOfLE hsup).op t) := by |
| 155 | dsimp [b] |
| 156 | rw [← Functor.map_comp_apply, ← Functor.map_comp_apply] |
| 157 | rfl |
| 158 | _ = F.obj.map (homOfLE (le_sup_left : V ≤ V ⊔ U)).op |
| 159 | (supportedOutsideGlueZero X U V F a) := by rw [ht] |
| 160 | _ = ι.hom.app (op V) a := |
| 161 | ConcreteCategory.congr_hom (supportedOutsideGlueZero_restrict_left X U V F) a |
| 162 | |
| 163 | /-- The sheaf-valued supported-sections functor preserves flasque sheaves. -/ |
| 164 | instance sheafSectionsSupportedOutside_isFlasque [F.IsFlasque] : |
| 165 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).obj F).IsFlasque where |
| 166 | epi {V W} i := by |
| 167 | exact (AddCommGrpCat.epi_iff_surjective _).mpr |
| 168 | (sheafSectionsSupportedOutside_restriction_surjective X U F (leOfHom i.unop)) |
| 169 | |
| 170 | /-- Equivalently, sections supported in any closed subset preserve flasqueness. -/ |
| 171 | instance sheafSectionsWithClosedSupport_isFlasque (Z : Closeds X) [F.IsFlasque] : |
| 172 | ((DerivedSectionsOn.TopCat.Sheaf.sheafSectionsWithClosedSupport X Z).obj F).IsFlasque := |
| 173 | sheafSectionsSupportedOutside_isFlasque X Z.compl F |
| 174 | |
| 175 | end |
| 176 | |
| 177 | end OAI.AlgebraicTopology.Support.FlasqueSections.TopCat.Sheaf |