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.AlgebraicGeometry.Cohomology.GlobalSections |
| 8 | import OAI.Algebra.Homology.MapExtend |
| 9 | |
| 10 | /-! # Map Extend Naturality -/ |
| 11 | |
| 12 | namespace OAI.Algebra.Homology.MapExtendNaturality |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.CochainComplex |
| 17 | open _root_.HomologicalComplex |
| 18 | |
| 19 | /-! # Naturality of the additive map/extension comparison -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 22 | |
| 23 | namespace HomologicalComplex |
| 24 | |
| 25 | universe u v |
| 26 | |
| 27 | variable {C D : Type u} [Category C] [Category D] [Preadditive C] [Preadditive D] |
| 28 | [HasZeroObject C] [HasZeroObject D] |
| 29 | {i i' : Type v} {c : ComplexShape i} {c' : ComplexShape i'} |
| 30 | |
| 31 | set_option backward.isDefEq.respectTransparency false in |
| 32 | /-- The additive map/extension isomorphism is natural in chain maps. -/ |
| 33 | @[reassoc] |
| 34 | lemma mapExtendCanonicalIso_inv_naturality |
| 35 | (F : Functor C D) [F.Additive] {K L : HomologicalComplex C c} (f : K ⟶ L) |
| 36 | (e : c.Embedding c') : |
| 37 | extendMap ((F.mapHomologicalComplex c).map f) e ≫ (MapExtend.HomologicalComplex.mapExtendCanonicalIso F L e).inv = |
| 38 | (MapExtend.HomologicalComplex.mapExtendCanonicalIso F K e).inv ≫ |
| 39 | (F.mapHomologicalComplex c').map (extendMap f e) := by |
| 40 | rw [Iso.comp_inv_eq, Category.assoc, MapExtend.HomologicalComplex.mapExtendCanonicalIso_naturality F K e f, |
| 41 | Iso.inv_hom_id_assoc] |
| 42 | |
| 43 | set_option backward.isDefEq.respectTransparency false in |
| 44 | /-- Naturality in a transformation out of the identity functor. This |
| 45 | fixes the normalization of restriction after extending a complex by zero. -/ |
| 46 | @[reassoc] |
| 47 | lemma mapExtendCanonicalIso_hom_naturality_from_id |
| 48 | (F : C ⥤ C) [F.Additive] (τ : 𝟭 C ⟶ F) (K : HomologicalComplex C c) |
| 49 | (e : c.Embedding c') : |
| 50 | (τ.mapHomologicalComplex c').app (K.extend e) ≫ (MapExtend.HomologicalComplex.mapExtendCanonicalIso F K e).hom = |
| 51 | extendMap ((τ.mapHomologicalComplex c).app K) e := by |
| 52 | apply HomologicalComplex.Hom.ext |
| 53 | funext q |
| 54 | change τ.app (extend.X K (e.r q)) ≫ (MapExtend.HomologicalComplex.mapExtendCanonicalXIso F K (e.r q)).hom = |
| 55 | extend.mapX ((τ.mapHomologicalComplex c).app K) (e.r q) |
| 56 | generalize e.r q = x |
| 57 | cases x with |
| 58 | | none => exact (Limits.isZero_zero C).eq_of_src _ _ |
| 59 | | some n => |
| 60 | change τ.app (K.X n) ≫ 𝟙 _ = τ.app (K.X n) |
| 61 | simp |
| 62 | |
| 63 | end HomologicalComplex |
| 64 | |
| 65 | namespace CochainComplex |
| 66 | |
| 67 | universe u |
| 68 | |
| 69 | variable {C D : Type u} [Category* C] [Category* D] [Abelian C] [Abelian D] |
| 70 | (F : C ⥤ D) [F.Additive] {K L : CochainComplex C ℕ} (f : K ⟶ L) |
| 71 | [QuasiIso ((F.mapHomologicalComplex (.up ℕ)).map f)] |
| 72 | |
| 73 | /-- If applying an additive functor to a nonnegative chain map gives a |
| 74 | quasi-isomorphism, the same holds for its extension to integer degrees. -/ |
| 75 | lemma quasiIso_map_extendMap_nat : |
| 76 | QuasiIso ((F.mapHomologicalComplex ℤᵘᵖ).map |
| 77 | (HomologicalComplex.extendMap f ComplexShape.embeddingUpNat)) := by |
| 78 | have : QuasiIso ((MapExtend.HomologicalComplex.mapExtendCanonicalIso F K ComplexShape.embeddingUpNat).inv ≫ |
| 79 | (F.mapHomologicalComplex ℤᵘᵖ).map |
| 80 | (HomologicalComplex.extendMap f ComplexShape.embeddingUpNat)) := by |
| 81 | rw [← MapExtendNaturality.HomologicalComplex.mapExtendCanonicalIso_inv_naturality F f ComplexShape.embeddingUpNat] |
| 82 | infer_instance |
| 83 | exact quasiIso_of_comp_left |
| 84 | (MapExtend.HomologicalComplex.mapExtendCanonicalIso F K ComplexShape.embeddingUpNat).inv _ |
| 85 | |
| 86 | end CochainComplex |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.Algebra.Homology.MapExtendNaturality |