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.Algebra.Homology.Notation |
| 18 | import OAI.AlgebraicTopology.Singular.RelativeCochainCone |
| 19 | import OAI.AlgebraicTopology.Singular.SheafSubdivisionCochain |
| 20 | import Mathlib.Algebra.Category.ModuleCat.Projective |
| 21 | import Mathlib.Analysis.Normed.Group.Basic |
| 22 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 23 | import Mathlib.Topology.Algebra.InfiniteSum.Order |
| 24 | |
| 25 | /-! # Relative Cochain G -/ |
| 26 | |
| 27 | namespace OAI.AlgebraicTopology.Singular.RelativeCochainG |
| 28 | |
| 29 | noncomputable section |
| 30 | |
| 31 | /-! |
| 32 | # Relative singular cohomology as a cochain mapping cone |
| 33 | |
| 34 | -/ |
| 35 | |
| 36 | /-! ### Constructions used only in proofs -/ |
| 37 | |
| 38 | section |
| 39 | open _root_.CategoryTheory Limits |
| 40 | open _root_.CategoryTheory.Pretriangulated |
| 41 | universe u |
| 42 | variable (R : Type u) [CommRing R] |
| 43 | |
| 44 | @[simp] |
| 45 | lemma relativeDualCochainShortComplexInt_g (X : TopPair.{u}) : |
| 46 | (RelativeCochainCone.relativeDualCochainShortComplexInt R X).g = RelativeCochainCone.relativeCochainRestrictionInt R X := |
| 47 | rfl |
| 48 | |
| 49 | set_option backward.isDefEq.respectTransparency false in |
| 50 | /-- In a nonnegative degree, evaluation of the integer extension recovers evaluation of the |
| 51 | original nonnegative short complex. -/ |
| 52 | def relativeDualCochainShortComplexIntEvalIso (X : TopPair.{u}) (n : ℕ) : |
| 53 | (RelativeCochainCone.relativeDualCochainShortComplexInt R X).map |
| 54 | (HomologicalComplex.eval (ModuleCat.{u} R) ℤᵘᵖ (n : ℤ)) ≅ |
| 55 | (RelativeCochainCone.relativeDualCochainShortComplexNat R X).map |
| 56 | (HomologicalComplex.eval (ModuleCat.{u} R) (ComplexShape.up ℕ) n) := |
| 57 | have hn : ComplexShape.embeddingUpNat.f n = (n : ℤ) := rfl |
| 58 | ShortComplex.isoMk |
| 59 | ((RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₁.extendXIso |
| 60 | ComplexShape.embeddingUpNat hn) |
| 61 | ((RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₂.extendXIso |
| 62 | ComplexShape.embeddingUpNat hn) |
| 63 | ((RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₃.extendXIso |
| 64 | ComplexShape.embeddingUpNat hn) |
| 65 | (by |
| 66 | change ((RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₁.extendXIso |
| 67 | ComplexShape.embeddingUpNat hn).hom ≫ |
| 68 | (RelativeCochainCone.relativeDualCochainShortComplexNat R X).f.f n = |
| 69 | (HomologicalComplex.extendMap |
| 70 | (RelativeCochainCone.relativeDualCochainShortComplexNat R X).f |
| 71 | ComplexShape.embeddingUpNat).f (n : ℤ) ≫ |
| 72 | ((RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₂.extendXIso |
| 73 | ComplexShape.embeddingUpNat hn).hom |
| 74 | rw [HomologicalComplex.extendMap_f _ _ hn] |
| 75 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id]) |
| 76 | (by |
| 77 | change ((RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₂.extendXIso |
| 78 | ComplexShape.embeddingUpNat hn).hom ≫ |
| 79 | (RelativeCochainCone.relativeDualCochainShortComplexNat R X).g.f n = |
| 80 | (HomologicalComplex.extendMap |
| 81 | (RelativeCochainCone.relativeDualCochainShortComplexNat R X).g |
| 82 | ComplexShape.embeddingUpNat).f (n : ℤ) ≫ |
| 83 | ((RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₃.extendXIso |
| 84 | ComplexShape.embeddingUpNat hn).hom |
| 85 | rw [HomologicalComplex.extendMap_f _ _ hn] |
| 86 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id]) |
| 87 | |
| 88 | end |
| 89 | |
| 90 | open _root_.CategoryTheory Limits |
| 91 | open _root_.CategoryTheory.Pretriangulated |
| 92 | |
| 93 | universe u |
| 94 | |
| 95 | variable (R : Type u) [CommRing R] |
| 96 | |
| 97 | set_option backward.isDefEq.respectTransparency false in |
| 98 | /-- A degreewise splitting of the dual singular-chain sequence of a pair. -/ |
| 99 | def relativeDualCochainShortComplexNatDegreewiseSplitting (X : TopPair.{u}) (n : ℕ) : |
| 100 | ((RelativeCochainCone.relativeDualCochainShortComplexNat R X).map |
| 101 | (HomologicalComplex.eval (ModuleCat.{u} R) (ComplexShape.up ℕ) n)).Splitting := by |
| 102 | -- Split the chain sequence in degree `n`, then dualise the splitting. |
| 103 | have hT := ((HomologicalComplex.shortExact_iff_degreewise_shortExact |
| 104 | (CohomologyTo.relativeChainShortComplex R X)).mp (CohomologyTo.relativeChainShortComplex_shortExact R X)) n |
| 105 | let sm := (CohomologyTo.relativeChainMap_isSplitMono R X n).exists_splitMono.some |
| 106 | exact (OAI.Algebra.Homology.LinearDualHomotopy.CategoryTheory.ShortComplex.Splitting.linearDual (ShortComplex.Splitting.ofExactOfRetraction _ hT.exact sm.retraction sm.id |
| 107 | hT.epi_g)) |
| 108 | |
| 109 | /-- Dualizing the singular-chain sequence of a pair gives a short exact sequence of |
| 110 | nonnegative cochain complexes. -/ |
| 111 | lemma relativeDualCochainShortComplexNat_shortExact (X : TopPair.{u}) : |
| 112 | (RelativeCochainCone.relativeDualCochainShortComplexNat R X).ShortExact := by |
| 113 | rw [HomologicalComplex.shortExact_iff_degreewise_shortExact] |
| 114 | exact fun n => (relativeDualCochainShortComplexNatDegreewiseSplitting R X n).shortExact |
| 115 | |
| 116 | /-- The integer-indexed dual cochain sequence of a pair is short exact. -/ |
| 117 | lemma relativeDualCochainShortComplexInt_shortExact (X : TopPair.{u}) : |
| 118 | (RelativeCochainCone.relativeDualCochainShortComplexInt R X).ShortExact := by |
| 119 | rw [HomologicalComplex.shortExact_iff_degreewise_shortExact] |
| 120 | intro z |
| 121 | by_cases hz : 0 ≤ z |
| 122 | · have hn : ((z.toNat : ℕ) : ℤ) = z := Int.toNat_of_nonneg hz |
| 123 | let e : |
| 124 | (RelativeCochainCone.relativeDualCochainShortComplexNat R X).map |
| 125 | (HomologicalComplex.eval (ModuleCat.{u} R) (ComplexShape.up ℕ) z.toNat) ≅ |
| 126 | (RelativeCochainCone.relativeDualCochainShortComplexInt R X).map |
| 127 | (HomologicalComplex.eval (ModuleCat.{u} R) ℤᵘᵖ z) := by |
| 128 | simpa only [hn] using |
| 129 | (relativeDualCochainShortComplexIntEvalIso R X z.toNat).symm |
| 130 | exact ShortComplex.shortExact_of_iso e |
| 131 | (((HomologicalComplex.shortExact_iff_degreewise_shortExact |
| 132 | (RelativeCochainCone.relativeDualCochainShortComplexNat R X)).mp |
| 133 | (relativeDualCochainShortComplexNat_shortExact R X)) z.toNat) |
| 134 | · have hi : ∀ n : ℕ, ComplexShape.embeddingUpNat.f n ≠ z := by |
| 135 | intro n hn |
| 136 | apply hz |
| 137 | rw [← hn] |
| 138 | exact Int.natCast_nonneg n |
| 139 | let S := (RelativeCochainCone.relativeDualCochainShortComplexInt R X).map |
| 140 | (HomologicalComplex.eval (ModuleCat.{u} R) ℤᵘᵖ z) |
| 141 | have h₁ : IsZero S.X₁ := by |
| 142 | dsimp [S, RelativeCochainCone.relativeDualCochainShortComplexInt] |
| 143 | exact (RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₁.isZero_extend_X |
| 144 | ComplexShape.embeddingUpNat z hi |
| 145 | have h₂ : IsZero S.X₂ := by |
| 146 | dsimp [S, RelativeCochainCone.relativeDualCochainShortComplexInt] |
| 147 | exact (RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₂.isZero_extend_X |
| 148 | ComplexShape.embeddingUpNat z hi |
| 149 | have h₃ : IsZero S.X₃ := by |
| 150 | dsimp [S, RelativeCochainCone.relativeDualCochainShortComplexInt] |
| 151 | exact (RelativeCochainCone.relativeDualCochainShortComplexNat R X).X₃.isZero_extend_X |
| 152 | ComplexShape.embeddingUpNat z hi |
| 153 | exact ShortComplex.Splitting.shortExact |
| 154 | { r := 0 |
| 155 | s := 0 |
| 156 | f_r := h₁.eq_of_src _ _ |
| 157 | s_g := h₃.eq_of_tgt _ _ |
| 158 | id := h₂.eq_of_src _ _ } |
| 159 | |
| 160 | end |
| 161 | |
| 162 | end OAI.AlgebraicTopology.Singular.RelativeCochainG |