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 | import OAI.AlgebraicGeometry.Comparison.Betti.Acyclic.DerivedRepresentatives |
| 2 | import Mathlib.Algebra.Homology.Embedding.CochainComplex |
| 3 | |
| 4 | /-! # Extended Acyclic Cocycles -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.ExtendedAcyclicCocycles.Ext |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Ext-acyclic nonnegative complexes retain acyclicity after extension by |
| 11 | zero. Their actual nonnegative cocycles represent all derived classes. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian Opposite |
| 14 | |
| 15 | universe u v w w' |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{w} C] |
| 18 | (A : C) (K : CochainComplex C ℕ) |
| 19 | |
| 20 | theorem extended_term_ext_vanish |
| 21 | (hExt : ∀ p q, Subsingleton (Ext A (K.X p) (q + 1))) (i : ℤ) (q : ℕ) : |
| 22 | Subsingleton (Ext A ((K.extend (ComplexShape.embeddingUpIntGE 0)).X i) (q + 1)) := by |
| 23 | let H := (extFunctor.{w} (q + 1) : Cᵒᵖ ⥤ C ⥤ AddCommGrpCat.{w}).obj (op A) |
| 24 | have : H.Additive := inferInstanceAs ((extFunctorObj A (q + 1)).Additive) |
| 25 | cases i with |
| 26 | | ofNat n => |
| 27 | have : Subsingleton (H.obj (K.X n)) := hExt n q |
| 28 | let e := H.mapIso (K.extendXIso (ComplexShape.embeddingUpIntGE 0) (i := n) (i' := (n : ℤ)) (by simp)) |
| 29 | exact (ConcreteCategory.bijective_of_isIso e.hom).injective.subsingleton |
| 30 | | negSucc n => |
| 31 | exact AddCommGrpCat.subsingleton_of_isZero (H.map_isZero |
| 32 | (CochainComplex.isZero_of_isStrictlyGE (K.extend (ComplexShape.embeddingUpIntGE 0)) |
| 33 | 0 (Int.negSucc n) (by omega))) |
| 34 | |
| 35 | omit [HasExt C] in |
| 36 | def extendedCocycle (n : ℕ) (f : A ⟶ K.X n) : |
| 37 | A ⟶ (K.extend (ComplexShape.embeddingUpIntGE 0)).X (n : ℤ) := |
| 38 | f ≫ (K.extendXIso (ComplexShape.embeddingUpIntGE 0) (i := n) (by simp)).inv |
| 39 | |
| 40 | omit [HasExt C] in |
| 41 | theorem extendedCocycle_closed (n : ℕ) (f : A ⟶ K.X n) |
| 42 | (hf : f ≫ K.d n (n + 1) = 0) : |
| 43 | extendedCocycle A K n f ≫ (K.extend (ComplexShape.embeddingUpIntGE 0)).d |
| 44 | (n : ℤ) ((n : ℤ) + 1) = 0 := by |
| 45 | rw [K.extend_d_eq (ComplexShape.embeddingUpIntGE 0) (i := n) (j := n + 1) (by simp) (by simp)] |
| 46 | change (f ≫ (K.extendXIso _ _).inv) ≫ (K.extendXIso _ _).hom ≫ _ = 0 |
| 47 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 48 | rw [← Category.assoc, hf, zero_comp] |
| 49 | |
| 50 | variable [EnoughInjectives C] [HasDerivedCategory.{w'} C] |
| 51 | |
| 52 | theorem exists_nonnegative_derived_cocycle |
| 53 | (hExt : ∀ p q, Subsingleton (Ext A (K.X p) (q + 1))) (n : ℕ) |
| 54 | (a : (DerivedCategory.singleFunctor C 0).obj A ⟶ |
| 55 | (DerivedCategory.Q.obj (K.extend (ComplexShape.embeddingUpIntGE 0)))⟦(n : ℤ)⟧) : |
| 56 | ∃ (f : A ⟶ K.X n) (hf : f ≫ K.d n (n + 1) = 0), |
| 57 | ShiftedHom.map (SingleCocycleFunctor.Ext.singleCocycleHom (extendedCocycle A K n f) |
| 58 | (extendedCocycle_closed A K n f hf)) DerivedCategory.Q = a := by |
| 59 | let e := ComplexShape.embeddingUpIntGE 0 |
| 60 | obtain ⟨g, hg, hga⟩ := Acyclic.DerivedRepresentatives.Ext.exists_derived_cocycle_representative A (K.extend e) 0 |
| 61 | (extended_term_ext_vanish A K hExt) (n : ℤ) a |
| 62 | let f := g ≫ (K.extendXIso e (i := n) (i' := (n : ℤ)) (by simp [e])).hom |
| 63 | have hf : f ≫ K.d n (n + 1) = 0 := by |
| 64 | apply (cancel_mono (K.extendXIso e (i := n + 1) (i' := (n : ℤ) + 1) (by simp [e])).inv).mp |
| 65 | change ((g ≫ (K.extendXIso e (i := n) (i' := (n : ℤ)) (by simp [e])).hom) ≫ K.d n (n + 1)) ≫ _ = _ |
| 66 | rw [Category.assoc, Category.assoc, |
| 67 | ← K.extend_d_eq e (i := n) (j := n + 1) (by simp [e]) (by simp [e]), hg, zero_comp] |
| 68 | have he : extendedCocycle A K n f = g := by |
| 69 | change (g ≫ (K.extendXIso e _).hom) ≫ (K.extendXIso e _).inv = g |
| 70 | rw [Category.assoc, Iso.hom_inv_id, Category.comp_id] |
| 71 | refine ⟨f, hf, ?_⟩ |
| 72 | simpa only [he] using hga |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.Comparison.Betti.ExtendedAcyclicCocycles.Ext |