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.AlgebraicGeometry.Hodge.Filtration |
| 18 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 19 | |
| 20 | /-! # Filtration Id -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicGeometry |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open scoped OAI.AlgebraicGeometry.Hodge.Filtration.ComplexPoint |
| 27 | |
| 28 | open _root_.AlgebraicGeometry |
| 29 | |
| 30 | /-! |
| 31 | # The Hodge filtration |
| 32 | |
| 33 | Lemmas about the definitions in |
| 34 | `OAI.AlgebraicGeometry.Hodge.Filtration`. |
| 35 | -/ |
| 36 | |
| 37 | /-! ### Constructions used only in proofs -/ |
| 38 | |
| 39 | section |
| 40 | |
| 41 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 42 | open scoped TensorProduct |
| 43 | |
| 44 | open OAI.AlgebraicGeometry.ComplexPoint.Basic.Point |
| 45 | |
| 46 | variable (K : Type) [Field K] [Algebra K ℂ] |
| 47 | variable (X : Over (Spec ↧ℂ)) |
| 48 | |
| 49 | attribute [local instance] ComplexPoint.Basic.ComplexSchemePoint.analyticHasDerivedCategory |
| 50 | |
| 51 | attribute [local implicit_reducible] TopCat.Sheaf TopCat.instCategorySheaf |
| 52 | |
| 53 | /-- A rational number as a morphism from the integer to the rational constant sheaf. -/ |
| 54 | def ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf (q : K) : |
| 55 | 𝓒(↧(ComplexPoint.Basic.ComplexSchemePoint X); ℤ) ⟶ 𝓒(↧(ComplexPoint.Basic.ComplexSchemePoint X); K) := |
| 56 | (AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor ↧(ComplexPoint.Basic.ComplexSchemePoint X)).map |
| 57 | (AddCommGrpCat.ofHom (zmultiplesAddHom K q)) |
| 58 | |
| 59 | omit [Algebra K ℂ] in |
| 60 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf_zero : |
| 61 | ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf K X 0 = 0 := by |
| 62 | unfold ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf |
| 63 | rw [map_zero (zmultiplesAddHom K)] |
| 64 | have h : AddCommGrpCat.ofHom (0 : ℤ →+ K) = 0 := AddCommGrpCat.hom_ext rfl |
| 65 | rw [h, Functor.map_zero] |
| 66 | rfl |
| 67 | |
| 68 | omit [Algebra K ℂ] in |
| 69 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf_add (a b : K) : |
| 70 | ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf K X (a + b) = |
| 71 | ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf K X a + |
| 72 | ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf K X b := by |
| 73 | unfold ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf |
| 74 | rw [map_add (zmultiplesAddHom K)] |
| 75 | have h : AddCommGrpCat.ofHom |
| 76 | (zmultiplesAddHom K a + zmultiplesAddHom K b) = |
| 77 | AddCommGrpCat.ofHom (zmultiplesAddHom K a) + |
| 78 | AddCommGrpCat.ofHom (zmultiplesAddHom K b) := |
| 79 | AddCommGrpCat.hom_ext rfl |
| 80 | rw [h, Functor.map_add] |
| 81 | rfl |
| 82 | |
| 83 | /-- The source object of Mathlib's sheaf cohomology mapped to the constant integer sheaf. -/ |
| 84 | def ComplexPoint.Basic.ComplexSchemePoint.uliftIntegerToIntegerConstantSheaf : |
| 85 | (constantSheaf (Opens.grothendieckTopology (TopCat.of (ComplexPoint.Basic.ComplexSchemePoint X))) AddCommGrpCat).obj |
| 86 | (AddCommGrpCat.of (ULift ℤ)) ⟶ 𝓒(↧(ComplexPoint.Basic.ComplexSchemePoint X); ℤ) := |
| 87 | (AlgebraicTopology.Sheaf.Constant.TopCat.constantFunctor ↧(ComplexPoint.Basic.ComplexSchemePoint X)).map |
| 88 | (AddCommGrpCat.ofHom (AddEquiv.ulift (α := ℤ)).toAddMonoidHom) |
| 89 | |
| 90 | /-- The constant rational class `q` in degree-zero rational cohomology. -/ |
| 91 | def ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass (q : K) : H^0(X; K) := |
| 92 | Abelian.Ext.mk₀ (ComplexPoint.Basic.ComplexSchemePoint.uliftIntegerToIntegerConstantSheaf X ≫ ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf K X q) |
| 93 | |
| 94 | omit [Algebra K ℂ] in |
| 95 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass_zero : |
| 96 | ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass K X 0 = 0 := by |
| 97 | rw [ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass, ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf_zero] |
| 98 | exact (congrArg Abelian.Ext.mk₀ |
| 99 | (Limits.comp_zero (f := ComplexPoint.Basic.ComplexSchemePoint.uliftIntegerToIntegerConstantSheaf X))).trans |
| 100 | (Abelian.Ext.mk₀_zero _ _) |
| 101 | |
| 102 | omit [Algebra K ℂ] in |
| 103 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass_add (a b : K) : |
| 104 | ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass K X (a + b) = |
| 105 | ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass K X a + ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass K X b := by |
| 106 | rw [ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass, ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass, ComplexPoint.Basic.ComplexSchemePoint.fieldCohomologyClass, |
| 107 | ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf_add] |
| 108 | exact (congrArg Abelian.Ext.mk₀ (Preadditive.comp_add _ _ _ (ComplexPoint.Basic.ComplexSchemePoint.uliftIntegerToIntegerConstantSheaf X) |
| 109 | (ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf K X a) (ComplexPoint.Basic.ComplexSchemePoint.integerToFieldConstantSheaf K X b))).trans |
| 110 | (Abelian.Ext.mk₀_add _ _) |
| 111 | |
| 112 | end |
| 113 | |
| 114 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 115 | open scoped TensorProduct |
| 116 | |
| 117 | open OAI.AlgebraicGeometry.ComplexPoint.Basic.Point |
| 118 | |
| 119 | variable (K : Type) [Field K] [Algebra K ℂ] |
| 120 | variable (X : Over (Spec ↧ℂ)) |
| 121 | |
| 122 | attribute [local instance] ComplexPoint.Basic.ComplexSchemePoint.analyticHasDerivedCategory |
| 123 | |
| 124 | omit [Algebra K ℂ] in |
| 125 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.fieldScalarSheaf_zero : ComplexPoint.Basic.ComplexSchemePoint.fieldScalarSheaf K X 0 = 0 := by |
| 126 | unfold ComplexPoint.Basic.ComplexSchemePoint.fieldScalarSheaf |
| 127 | rw [OAI.Algebra.Ring.Basic.AddMonoidHom.mulLeft_zero] |
| 128 | have h : AddCommGrpCat.ofHom (0 : K →+ K) = 0 := AddCommGrpCat.hom_ext rfl |
| 129 | rw [h, Functor.map_zero] |
| 130 | rfl |
| 131 | |
| 132 | omit [Algebra K ℂ] in |
| 133 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.fieldScalarComplex_zero : ComplexPoint.Basic.ComplexSchemePoint.fieldScalarComplex K X 0 = 0 := by |
| 134 | unfold ComplexPoint.Basic.ComplexSchemePoint.fieldScalarComplex |
| 135 | rw [ComplexPoint.Basic.ComplexSchemePoint.fieldScalarSheaf_zero, Functor.map_zero, HomologicalComplex.extendMap_zero] |
| 136 | |
| 137 | /-- Postcomposition by the zero map of complexes is the zero map on hypercohomology. -/ |
| 138 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.hypercohomologyMap_zero |
| 139 | {K L : CochainComplex (ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) ℤ} (n : ℤ) : |
| 140 | ComplexPoint.Basic.ComplexSchemePoint.hypercohomologyMap X (0 : K ⟶ L) n = 0 := by |
| 141 | refine AddMonoidHom.ext fun α ↦ ?_ |
| 142 | apply (Localization.SmallShiftedHom.equiv |
| 143 | (ComplexPoint.Basic.ComplexSchemePoint.analyticQuasiIsomorphisms X) DerivedCategory.Q).injective |
| 144 | unfold ComplexPoint.Basic.ComplexSchemePoint.hypercohomologyMap |
| 145 | simp [Localization.SmallShiftedHom.equiv_comp, |
| 146 | ComplexPoint.Basic.ComplexSchemePoint.hypercohomologyEquiv_zero] |
| 147 | |
| 148 | /-- Postcomposition by the identity map of complexes is the identity on hypercohomology. -/ |
| 149 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.hypercohomologyMap_id |
| 150 | {K : CochainComplex (ComplexPoint.Basic.ComplexSchemePoint.AnalyticAdditiveSheaf X) ℤ} (n : ℤ) : |
| 151 | ComplexPoint.Basic.ComplexSchemePoint.hypercohomologyMap X (𝟙 K) n = AddMonoidHom.id _ := by |
| 152 | refine AddMonoidHom.ext fun α ↦ ?_ |
| 153 | let eK : ComplexPoint.Basic.ComplexSchemePoint.Hypercohomology X K n ≃ |
| 154 | ShiftedHom |
| 155 | (DerivedCategory.Q.obj (ComplexPoint.Basic.ComplexSchemePoint.constantIntegerSheafComplexInt X)) |
| 156 | (DerivedCategory.Q.obj K) n := |
| 157 | Localization.SmallShiftedHom.equiv |
| 158 | (ComplexPoint.Basic.ComplexSchemePoint.analyticQuasiIsomorphisms X) DerivedCategory.Q |
| 159 | change α.comp |
| 160 | (Localization.SmallShiftedHom.mk₀ |
| 161 | (ComplexPoint.Basic.ComplexSchemePoint.analyticQuasiIsomorphisms X) 0 rfl (𝟙 K)) |
| 162 | (zero_add n) = α |
| 163 | apply eK.injective |
| 164 | simp [eK] |
| 165 | |
| 166 | @[simp] lemma ComplexPoint.Basic.ComplexSchemePoint.deRhamConjSemilinear_apply [IsIntegral X.left] [Smooth X.hom] (n : ℤ) |
| 167 | (α : ComplexPoint.Basic.ComplexSchemePoint.DeRhamHypercohomology X n) : |
| 168 | ComplexPoint.Basic.ComplexSchemePoint.deRhamConjSemilinear X n α = ComplexPoint.Basic.ComplexSchemePoint.deRhamConj X n α := rfl |
| 169 | |
| 170 | /-! #### Real coefficient fields |
| 171 | |
| 172 | The hypothesis `hK` below says conjugation fixes the image of `K` in `ℂ`, equivalently that |
| 173 | `K → ℂ` lands in `ℝ`. It holds for `ℚ` and fails for `ℚ(i) ⊆ ℂ`. -/ |
| 174 | |
| 175 | end |
| 176 | |
| 177 | end OAI.AlgebraicGeometry |