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 OAI.AlgebraicTopology.Sheaf.FlasqueQuasiIso |
| 18 | import OAI.Algebra.Homology.MapExtendNaturality |
| 19 | import OAI.Algebra.Homology.Notation |
| 20 | |
| 21 | /-! # Flasque Extend Nat -/ |
| 22 | |
| 23 | namespace OAI.AlgebraicTopology.Sheaf.FlasqueExtendNat.TopCat |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | open _root_.TopCat |
| 28 | open _root_.TopCat.Sheaf |
| 29 | |
| 30 | /-! |
| 31 | # Global sections of quasi-isomorphisms between flasque complexes indexed by `ℕ` |
| 32 | |
| 33 | A quasi-isomorphism of nonnegatively indexed termwise-flasque complexes of sheaves remains a |
| 34 | quasi-isomorphism after taking global sections. |
| 35 | -/ |
| 36 | |
| 37 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 38 | |
| 39 | /-- Extension by zero of a natural-number-indexed termwise-flasque complex remains |
| 40 | termwise flasque. -/ |
| 41 | theorem extendNat_term_isFlasque |
| 42 | {Y : TopCat.{0}} (K : CochainComplex (TopCat.Sheaf AddCommGrpCat Y) ℕ) |
| 43 | (hK : ∀ m, (K.X m).IsFlasque) (q : ℤ) : |
| 44 | ((K.extend ComplexShape.embeddingUpNat).X q).IsFlasque := by |
| 45 | by_cases hq : ∃ m : ℕ, (m : ℤ) = q |
| 46 | · obtain ⟨m, rfl⟩ := hq |
| 47 | let e := K.extendXIso ComplexShape.embeddingUpNat (i := m) rfl |
| 48 | let hP : TopCat.Presheaf.IsFlasque (K.X m).obj := hK m |
| 49 | change TopCat.Presheaf.IsFlasque |
| 50 | ((K.extend ComplexShape.embeddingUpNat).X (m : ℤ)).obj |
| 51 | exact @FlasqueQuasiIso.TopCat.Presheaf.IsFlasque.of_iso _ _ _ |
| 52 | ((TopCat.Sheaf.forget AddCommGrpCat Y).mapIso e) hP |
| 53 | · apply FlasqueBoundedIs.TopCat.IsFlasque.of_isZero |
| 54 | exact K.isZero_extend_X ComplexShape.embeddingUpNat q |
| 55 | (fun i hi ↦ hq ⟨i, hi⟩) |
| 56 | |
| 57 | /-- A quasi-isomorphism of nonnegative termwise-flasque sheaf complexes remains a |
| 58 | quasi-isomorphism after taking global sections. -/ |
| 59 | theorem globalSectionsNat_map_quasiIso |
| 60 | {Y : TopCat.{0}} |
| 61 | {K L : CochainComplex (TopCat.Sheaf AddCommGrpCat Y) ℕ} |
| 62 | (f : K ⟶ L) [QuasiIso f] |
| 63 | (hK : ∀ m, (K.X m).IsFlasque) (hL : ∀ m, (L.X m).IsFlasque) : |
| 64 | QuasiIso |
| 65 | (((FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsFunctor Y |
| 66 | ).mapHomologicalComplex (ComplexShape.up ℕ)).map f) := by |
| 67 | let Γ := FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsFunctor Y |
| 68 | let KInt : CochainComplex (TopCat.Sheaf AddCommGrpCat Y) ℤ := |
| 69 | K.extend ComplexShape.embeddingUpNat |
| 70 | let LInt : CochainComplex (TopCat.Sheaf AddCommGrpCat Y) ℤ := |
| 71 | L.extend ComplexShape.embeddingUpNat |
| 72 | let fInt : KInt ⟶ LInt := |
| 73 | HomologicalComplex.extendMap f ComplexShape.embeddingUpNat |
| 74 | let eK := Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso Γ K ComplexShape.embeddingUpNat |
| 75 | let eL := Algebra.Homology.MapExtend.HomologicalComplex.mapExtendCanonicalIso Γ L ComplexShape.embeddingUpNat |
| 76 | let : QuasiIso ((Γ.mapHomologicalComplex ℤᵘᵖ).map fInt) := |
| 77 | FlasqueQuasiIso.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsComplex_map_quasiIso |
| 78 | fInt 0 0 (extendNat_term_isFlasque K hK) (extendNat_term_isFlasque L hL) |
| 79 | have h : HomologicalComplex.extendMap |
| 80 | ((Γ.mapHomologicalComplex (ComplexShape.up ℕ)).map f) |
| 81 | ComplexShape.embeddingUpNat ≫ eL.inv = |
| 82 | eK.inv ≫ (Γ.mapHomologicalComplex ℤᵘᵖ).map fInt := |
| 83 | Algebra.Homology.MapExtendNaturality.HomologicalComplex.mapExtendCanonicalIso_inv_naturality Γ f ComplexShape.embeddingUpNat |
| 84 | have hcomp : QuasiIso |
| 85 | (HomologicalComplex.extendMap |
| 86 | ((Γ.mapHomologicalComplex (ComplexShape.up ℕ)).map f) |
| 87 | ComplexShape.embeddingUpNat ≫ eL.inv) := by |
| 88 | rw [h] |
| 89 | infer_instance |
| 90 | have hext : QuasiIso (HomologicalComplex.extendMap |
| 91 | ((Γ.mapHomologicalComplex (ComplexShape.up ℕ)).map f) |
| 92 | ComplexShape.embeddingUpNat) := |
| 93 | quasiIso_of_comp_right _ eL.inv |
| 94 | exact (HomologicalComplex.quasiIso_extendMap_iff |
| 95 | ((Γ.mapHomologicalComplex (ComplexShape.up ℕ)).map f) |
| 96 | ComplexShape.embeddingUpNat).mp hext |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicTopology.Sheaf.FlasqueExtendNat.TopCat |