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.Algebra.Homology.Notation |
| 7 | import OAI.AlgebraicTopology.Support.NestedOnOpen |
| 8 | import OAI.AlgebraicTopology.Support.FlasqueComparison |
| 9 | |
| 10 | /-! # Finite Filtration Vanishing -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicTopology.Support.FiniteFiltrationVanishing.TopCat.Sheaf |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.TopCat |
| 17 | open _root_.TopCat.Sheaf |
| 18 | |
| 19 | /-! |
| 20 | # Vanishing through a finite closed-support filtration |
| 21 | |
| 22 | The localization sequence for two nested supports is short exact on every |
| 23 | open for termwise-flasque coefficients. A finite filtration ending in the |
| 24 | empty support therefore propagates cohomological vanishing from its |
| 25 | open layers to the whole support. Layer vanishing is an explicit hypothesis |
| 26 | of this general lemma, not an asserted purity or dimension theorem. |
| 27 | -/ |
| 28 | |
| 29 | open _root_.CategoryTheory Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 30 | |
| 31 | universe u |
| 32 | |
| 33 | variable (X : TopCat.{u}) |
| 34 | |
| 35 | set_option backward.isDefEq.respectTransparency false in |
| 36 | set_option backward.defeqAttrib.useBackward true in |
| 37 | /-- Restriction to the whole space is an isomorphism on each open-set |
| 38 | section group. -/ |
| 39 | theorem toOpenRestrictionPushforward_top_app_isIso |
| 40 | (F : Sheaf AddCommGrpCat.{u} X) (W : Opens X) : |
| 41 | IsIso (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom.app (op W)) := by |
| 42 | have hw : DerivedSectionsNaturality.TopCat.Sheaf.openRestrictionImage X ⊤ W = W := by |
| 43 | simpa only [inf_top_eq] using Opens.functor_map_eq_inf (⊤ : Opens X) W |
| 44 | have heq : (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom.app (op W)) = |
| 45 | F.obj.map (eqToHom (congrArg op hw.symm)) := by |
| 46 | change F.obj.map _ = F.obj.map _ |
| 47 | congr 1 |
| 48 | rw [heq] |
| 49 | infer_instance |
| 50 | |
| 51 | /-- The whole-space restriction morphism is an isomorphism of sheaves. -/ |
| 52 | theorem toOpenRestrictionPushforward_top_isIso (F : Sheaf AddCommGrpCat.{u} X) : |
| 53 | IsIso ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F) := by |
| 54 | let : ∀ W, IsIso (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom.app W) := |
| 55 | fun W => toOpenRestrictionPushforward_top_app_isIso X F W.unop |
| 56 | let : IsIso ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom := |
| 57 | NatIso.isIso_of_isIso_app _ |
| 58 | let : IsIso ((forget AddCommGrpCat.{u} X).map |
| 59 | ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F)) := by |
| 60 | change IsIso ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom |
| 61 | infer_instance |
| 62 | exact isIso_of_reflects_iso ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F) |
| 63 | (forget AddCommGrpCat.{u} X) |
| 64 | |
| 65 | /-- The kernel defining sections with empty support is zero. -/ |
| 66 | theorem isZero_sheafSectionsSupportedOutside_top (F : Sheaf AddCommGrpCat.{u} X) : |
| 67 | IsZero ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X ⊤).obj F) := by |
| 68 | let := toOpenRestrictionPushforward_top_isIso X F |
| 69 | exact isZero_kernel_of_mono ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F) |
| 70 | |
| 71 | /-- In particular the empty supported-section complex has zero cohomology, for arbitrary |
| 72 | coefficients. -/ |
| 73 | theorem supportedSections_top_homology_isZero (W : Opens X) |
| 74 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) (n : ℤ) : |
| 75 | IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).mapHomologicalComplex ℤᵘᵖ).obj |
| 76 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X ⊤).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n) := |
| 77 | ShortComplex.isZero_homology_of_isZero_X₂ _ |
| 78 | ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).map_isZero |
| 79 | (isZero_sheafSectionsSupportedOutside_top X (K.X n))) |
| 80 | |
| 81 | variable {U V : Opens X} (h : V ≤ U) |
| 82 | |
| 83 | /-- Flasqueness suffices for the nested-support sequence to be short exact on every open. -/ |
| 84 | theorem nestedSupportRestrictionSectionsShortComplex_shortExact_of_flasque |
| 85 | (W : Opens X) (F : Sheaf AddCommGrpCat.{u} X) [F.IsFlasque] : |
| 86 | ((NestedLocalization.TopCat.Sheaf.nestedSupportRestrictionShortComplex X h F).map (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W)).ShortExact := by |
| 87 | rw [NestedLocalization.TopCat.Sheaf.nestedSupportRestrictionShortComplex_eq] |
| 88 | let : Epi ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).map ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F)) := |
| 89 | DerivedSectionsLocalization.TopCat.Sheaf.toOpenRestrictionPushforward_app_epi X U F W |
| 90 | exact CategoryTheory.Abelian.KernelCompositionShortExact.kernelFactorizationShortComplex_map_shortExact _ _ _ _ _ |
| 91 | |
| 92 | /-- The same exact sequence for section complexes of flasque sheaves. -/ |
| 93 | theorem nestedSupportRestrictionSectionsComplexShortComplex_shortExact_of_flasque |
| 94 | (W : Opens X) (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) |
| 95 | (hK : ∀ n, (K.X n).IsFlasque) : |
| 96 | (NestedLocalization.TopCat.Sheaf.nestedSupportRestrictionSectionsComplexShortComplex X h W K).ShortExact := by |
| 97 | apply HomologicalComplex.shortExact_of_degreewise_shortExact |
| 98 | intro n |
| 99 | exact nestedSupportRestrictionSectionsShortComplex_shortExact_of_flasque X h W (K.X n) |
| 100 | |
| 101 | include h in |
| 102 | /-- Vanishing of the smaller support and the open layer implies |
| 103 | vanishing of the larger support in the same degree. -/ |
| 104 | theorem nestedSupportRestriction_middle_homology_isZero |
| 105 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) |
| 106 | (hK : ∀ n, (K.X n).IsFlasque) (n : ℤ) |
| 107 | (hsmall : IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X ⊤).mapHomologicalComplex ℤᵘᵖ).obj |
| 108 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n)) |
| 109 | (hlayer : IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X U).mapHomologicalComplex ℤᵘᵖ).obj |
| 110 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X V).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n)) : |
| 111 | IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X ⊤).mapHomologicalComplex ℤᵘᵖ).obj |
| 112 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X V).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n) := by |
| 113 | let S := NestedLocalization.TopCat.Sheaf.nestedSupportRestrictionSectionsComplexShortComplex X h ⊤ K |
| 114 | have hS := nestedSupportRestrictionSectionsComplexShortComplex_shortExact_of_flasque X h ⊤ K hK |
| 115 | have hlast : IsZero (S.X₃.homology n) := hlayer.of_iso |
| 116 | ((HomologicalComplex.homologyFunctor _ _ n).mapIso |
| 117 | (NestedOnOpen.TopCat.Sheaf.nestedSupportRestrictionLastComplexIso X h K)) |
| 118 | exact (hS.homology_exact₂ n).isZero_X₂ |
| 119 | (hsmall.eq_zero_of_src _) (hlast.eq_zero_of_tgt _) |
| 120 | |
| 121 | /-- A finite increasing sequence of open complements, terminating at the |
| 122 | whole space, gives vanishing on every corresponding closed support once the |
| 123 | open layers vanish. The induction uses only the localization |
| 124 | sequence; the layer hypotheses still have to be discharged geometrically. -/ |
| 125 | theorem finiteNestedSupport_homology_isZero |
| 126 | (O : ℕ → Opens X) (hO : Monotone O) (N : ℕ) (hN : O N = ⊤) |
| 127 | (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) |
| 128 | (hK : ∀ n, (K.X n).IsFlasque) (n : ℤ) |
| 129 | (hlayer : ∀ k, k < N → IsZero |
| 130 | ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X (O (k + 1))).mapHomologicalComplex ℤᵘᵖ).obj |
| 131 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X (O k)).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n)) |
| 132 | (k : ℕ) (hk : k ≤ N) : |
| 133 | IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X ⊤).mapHomologicalComplex ℤᵘᵖ).obj |
| 134 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X (O k)).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n) := by |
| 135 | induction hk using Nat.decreasingInduction with |
| 136 | | self => |
| 137 | rw [hN] |
| 138 | exact supportedSections_top_homology_isZero X ⊤ K n |
| 139 | | of_succ k hk ih => |
| 140 | exact nestedSupportRestriction_middle_homology_isZero X |
| 141 | (hO (Nat.le_succ k)) K hK n ih (hlayer k (by omega)) |
| 142 | |
| 143 | end |
| 144 | |
| 145 | end OAI.AlgebraicTopology.Support.FiniteFiltrationVanishing.TopCat.Sheaf |