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.HodgeConjecture.DegreeTwo.BoundedFlasqueSections |
| 2 | |
| 3 | /-! # Extension Comparison -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExtensionComparison.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restriction and additive functors retain the actual maps of complexes extended by zero. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | variable {C D : Type*} [Category C] [Category D] [Abelian C] [Abelian D] |
| 16 | variable {ι ι' : Type*} {c : ComplexShape ι} {c' : ComplexShape ι'} |
| 17 | variable (e : c.Embedding c') [e.IsRelIff] |
| 18 | |
| 19 | theorem strictSupportRestrictionExtendMap_naturality {K L : HomologicalComplex C c'} |
| 20 | [K.IsStrictlySupported e] [L.IsStrictlySupported e] (f : K ⟶ L) : |
| 21 | f ≫ BoundedFlasqueSections.Constructions.strictSupportRestrictionExtendMap L e = |
| 22 | BoundedFlasqueSections.Constructions.strictSupportRestrictionExtendMap K e ≫ extendMap (restrictionMap f e) e := by |
| 23 | ext i' : 1 |
| 24 | by_cases hi' : ∃ i, e.f i = i' |
| 25 | · obtain ⟨i,rfl⟩ := hi' |
| 26 | simp [BoundedFlasqueSections.Constructions.strictSupportRestrictionExtendMap, e.liftExtend_f _ _ rfl, |
| 27 | extendMap_f _ _ rfl, restrictionXIso] |
| 28 | change f.f (e.f i) ≫ 𝟙 (L.X (e.f i)) = 𝟙 (K.X (e.f i)) ≫ f.f (e.f i) |
| 29 | rw [Category.comp_id, Category.id_comp] |
| 30 | · exact ((L.restriction e).isZero_extend_X e i' (by simpa using hi')).eq_of_tgt _ _ |
| 31 | |
| 32 | theorem strictSupportRestrictionMap_quasiIso {K L : HomologicalComplex C c'} |
| 33 | [K.IsStrictlySupported e] [L.IsStrictlySupported e] (f : K ⟶ L) [QuasiIso f] : |
| 34 | QuasiIso (restrictionMap f e) := by |
| 35 | have := BoundedFlasqueSections.Constructions.strictSupportRestrictionExtendMap_isIso K e |
| 36 | have := BoundedFlasqueSections.Constructions.strictSupportRestrictionExtendMap_isIso L e |
| 37 | have h : QuasiIso (f ≫ BoundedFlasqueSections.Constructions.strictSupportRestrictionExtendMap L e) := inferInstance |
| 38 | rw [strictSupportRestrictionExtendMap_naturality] at h |
| 39 | have := quasiIso_of_comp_left (BoundedFlasqueSections.Constructions.strictSupportRestrictionExtendMap K e) |
| 40 | (extendMap (restrictionMap f e) e) |
| 41 | exact (quasiIso_extendMap_iff (restrictionMap f e) e).mp this |
| 42 | |
| 43 | variable (F : C ⥤ D) [F.Additive] |
| 44 | |
| 45 | def functorExtendRestrictionIso (K : HomologicalComplex C c) : |
| 46 | (((F.mapHomologicalComplex c').obj (K.extend e)).restriction e) ≅ |
| 47 | (F.mapHomologicalComplex c).obj K := by |
| 48 | refine HomologicalComplex.Hom.isoOfComponents (fun i => F.mapIso (K.extendXIso e (i := i) rfl)) ?_ |
| 49 | intro i j hij |
| 50 | symm |
| 51 | change F.map ((K.extend e).d (e.f i) (e.f j)) ≫ F.map (K.extendXIso e (i := j) rfl).hom = |
| 52 | F.map (K.extendXIso e (i := i) rfl).hom ≫ F.map (K.d i j) |
| 53 | rw [← Functor.map_comp, ← Functor.map_comp, K.extend_d_eq e rfl rfl] |
| 54 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 55 | |
| 56 | theorem functorExtendRestrictionIso_naturality {K L : HomologicalComplex C c} (f : K ⟶ L) : |
| 57 | restrictionMap ((F.mapHomologicalComplex c').map (extendMap f e)) e ≫ |
| 58 | (functorExtendRestrictionIso e F L).hom = |
| 59 | (functorExtendRestrictionIso e F K).hom ≫ (F.mapHomologicalComplex c).map f := by |
| 60 | ext i : 1 |
| 61 | change F.map ((extendMap f e).f (e.f i)) ≫ F.map (L.extendXIso e (i := i) rfl).hom = |
| 62 | F.map (K.extendXIso e (i := i) rfl).hom ≫ F.map (f.f i) |
| 63 | rw [← Functor.map_comp, ← Functor.map_comp, extendMap_f f e rfl] |
| 64 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 65 | |
| 66 | theorem functorQuasiIso_of_extended {K L : HomologicalComplex C c} (f : K ⟶ L) |
| 67 | [QuasiIso ((F.mapHomologicalComplex c').map (extendMap f e))] : |
| 68 | QuasiIso ((F.mapHomologicalComplex c).map f) := by |
| 69 | have := strictSupportRestrictionMap_quasiIso e |
| 70 | ((F.mapHomologicalComplex c').map (extendMap f e)) |
| 71 | have h : QuasiIso (restrictionMap ((F.mapHomologicalComplex c').map (extendMap f e)) e ≫ |
| 72 | (functorExtendRestrictionIso e F L).hom) := inferInstance |
| 73 | rw [functorExtendRestrictionIso_naturality] at h |
| 74 | exact quasiIso_of_comp_left (functorExtendRestrictionIso e F K).hom _ |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ExtensionComparison.Constructions |