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.Quotients.FiniteDescent.CochainZero |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.CochainHeadCohomology |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ShortComplexOf |
| 4 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.CochainHeadFunctor |
| 5 | |
| 6 | /-! # Cochain Prepend -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CochainPrepend |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Adjoining a compatible first differential to a quasi-isomorphism. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | namespace Construction.CochainPrependComparison |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] |
| 23 | variable {C D : CochainComplex (ModuleCat.{v} R) ℕ} (φ : C ⟶ D) |
| 24 | variable {A : ModuleCat.{v} R} (d : A ⟶ C.X 0) (e : A ⟶ D.X 0) |
| 25 | variable (hd : d ≫ C.d 0 1 = 0) (he : e ≫ D.d 0 1 = 0) |
| 26 | variable (h : 𝟙 A ≫ e = d ≫ φ.f 0) |
| 27 | |
| 28 | theorem zero [QuasiIsoAt φ 0] : QuasiIsoAt (CochainHeadD.Construction.CochainHead.consMap (𝟙 A) φ d e hd he h) 0 := by |
| 29 | rw [CochainComplex.quasiIsoAt₀_iff] |
| 30 | let ψ := (HomologicalComplex.shortComplexFunctor' (ModuleCat.{v} R) |
| 31 | (ComplexShape.up ℕ) 0 0 1).map (CochainHeadD.Construction.CochainHead.consMap (𝟙 A) φ d e hd he h) |
| 32 | have hc : IsIso (ShortComplex.cyclesMap ψ) := by |
| 33 | apply ShortComplexOf.Construction.ShortComplexComparison.cycles_iso |
| 34 | · intro y hy |
| 35 | change ↥A at y |
| 36 | change (CochainHeadD.Construction.CochainHead.cons A D e he).d 0 1 y = 0 at hy |
| 37 | rw [CochainHeadD.Construction.CochainHead.cons_d_zero] at hy |
| 38 | refine ⟨y, ?_, rfl⟩ |
| 39 | change (CochainHeadD.Construction.CochainHead.cons A C d hd).d 0 1 y = 0 |
| 40 | rw [CochainHeadD.Construction.CochainHead.cons_d_zero] |
| 41 | let z : (C.d 0 1).hom.ker := ⟨d y, by |
| 42 | change (d ≫ C.d 0 1) y = 0 |
| 43 | rw [hd] |
| 44 | rfl⟩ |
| 45 | have hz : z = 0 := (CochainZero.Construction.CochainZeroCycles.kernelEquiv φ).injective (by |
| 46 | rw [map_zero] |
| 47 | apply Subtype.ext |
| 48 | rw [CochainZero.Construction.CochainZeroCycles.kernelEquiv_apply_val] |
| 49 | exact (ConcreteCategory.congr_hom h y).symm.trans hy) |
| 50 | exact congrArg Subtype.val hz |
| 51 | · intro x _ hx |
| 52 | exact hx |
| 53 | apply ShortComplexOf.Construction.ShortComplexComparison.quasiIso_of_cycles_iso ψ |
| 54 | · exact (CochainHeadD.Construction.CochainHead.cons A C d hd).shape 0 0 (by decide) |
| 55 | · exact (CochainHeadD.Construction.CochainHead.cons A D e he).shape 0 0 (by decide) |
| 56 | |
| 57 | theorem one [QuasiIsoAt φ 0] : QuasiIsoAt (CochainHeadD.Construction.CochainHead.consMap (𝟙 A) φ d e hd he h) 1 := by |
| 58 | rw [quasiIsoAt_iff' _ 0 1 2 (by simp) (by simp)] |
| 59 | let ψ := (HomologicalComplex.shortComplexFunctor' (ModuleCat.{v} R) |
| 60 | (ComplexShape.up ℕ) 0 1 2).map (CochainHeadD.Construction.CochainHead.consMap (𝟙 A) φ d e hd he h) |
| 61 | have hc : IsIso (ShortComplex.cyclesMap ψ) := by |
| 62 | apply ShortComplexOf.Construction.ShortComplexComparison.cycles_iso |
| 63 | · intro y hy |
| 64 | change ↥(D.X 0) at y |
| 65 | change (CochainHeadD.Construction.CochainHead.cons A D e he).d 1 2 y = 0 at hy |
| 66 | have hy' : D.d 0 1 y = 0 := by simpa [CochainHeadD.Construction.CochainHead.cons, CochainComplex.of.d, CochainHeadD.Construction.CochainHead.consD] using hy |
| 67 | let x := (CochainZero.Construction.CochainZeroCycles.kernelEquiv φ).symm ⟨y, hy'⟩ |
| 68 | refine ⟨x.val, ?_, ?_⟩ |
| 69 | · change (CochainHeadD.Construction.CochainHead.cons A C d hd).d 1 2 x.val = 0 |
| 70 | simp [CochainHeadD.Construction.CochainHead.cons, CochainComplex.of.d, CochainHeadD.Construction.CochainHead.consD] |
| 71 | · change φ.f 0 x.val = y |
| 72 | rw [← CochainZero.Construction.CochainZeroCycles.kernelEquiv_apply_val] |
| 73 | exact congrArg Subtype.val ((CochainZero.Construction.CochainZeroCycles.kernelEquiv φ).apply_symm_apply ⟨y, hy'⟩) |
| 74 | · intro x hx hf |
| 75 | change ↥(C.X 0) at x |
| 76 | change (CochainHeadD.Construction.CochainHead.cons A C d hd).d 1 2 x = 0 at hx |
| 77 | have hx' : C.d 0 1 x = 0 := by simpa [CochainHeadD.Construction.CochainHead.cons, CochainComplex.of.d, CochainHeadD.Construction.CochainHead.consD] using hx |
| 78 | have hz : (⟨x, hx'⟩ : (C.d 0 1).hom.ker) = 0 := |
| 79 | (CochainZero.Construction.CochainZeroCycles.kernelEquiv φ).injective (by |
| 80 | rw [map_zero] |
| 81 | apply Subtype.ext |
| 82 | rw [CochainZero.Construction.CochainZeroCycles.kernelEquiv_apply_val] |
| 83 | exact hf) |
| 84 | exact congrArg Subtype.val hz |
| 85 | have : Epi ψ.τ₁ := inferInstanceAs (Epi (𝟙 A)) |
| 86 | exact ⟨ShortComplex.isIso_homologyMap_of_isIso_cyclesMap_of_epi hc inferInstance⟩ |
| 87 | |
| 88 | theorem quasiIso [QuasiIso φ] : QuasiIso (CochainHeadD.Construction.CochainHead.consMap (𝟙 A) φ d e hd he h) := by |
| 89 | constructor |
| 90 | intro n |
| 91 | rcases n with _ | _ | n |
| 92 | · exact zero φ d e hd he h |
| 93 | · exact one φ d e hd he h |
| 94 | · exact CochainHeadCohomology.Construction.CochainHead.consMap_quasiIso_higher (𝟙 A) φ d e hd he h n |
| 95 | |
| 96 | theorem mapped_quasiIso (F : ModuleCat.{v} R ⥤ ModuleCat.{v} R) [F.PreservesZeroMorphisms] |
| 97 | [QuasiIso ((F.mapHomologicalComplex (ComplexShape.up ℕ)).map φ)] : |
| 98 | QuasiIso ((F.mapHomologicalComplex (ComplexShape.up ℕ)).map (CochainHeadD.Construction.CochainHead.consMap (𝟙 A) φ d e hd he h)) := by |
| 99 | let φ' := (F.mapHomologicalComplex (ComplexShape.up ℕ)).map φ |
| 100 | have h' : 𝟙 (F.obj A) ≫ F.map e = F.map d ≫ φ'.f 0 := by |
| 101 | change 𝟙 (F.obj A) ≫ F.map e = F.map d ≫ F.map (φ.f 0) |
| 102 | rw [← F.map_comp, ← h, Category.id_comp, Category.id_comp] |
| 103 | have H : QuasiIso (CochainHeadD.Construction.CochainHead.consMap (𝟙 (F.obj A)) φ' (F.map d) (F.map e) |
| 104 | (CochainHeadFunctor.Construction.CochainHead.mapped_square F d hd) (CochainHeadFunctor.Construction.CochainHead.mapped_square F e he) h') := |
| 105 | quasiIso φ' _ _ _ _ _ |
| 106 | apply (quasiIso_iff_of_arrow_mk_iso _ _ (CochainHeadFunctor.Construction.CochainHead.mapConsArrowIso F (𝟙 A) φ d e hd he h)).mpr |
| 107 | convert H using 1 |
| 108 | ext n : 1 |
| 109 | cases n <;> simp [CochainHeadD.Construction.CochainHead.consMap, φ'] |
| 110 | |
| 111 | end Construction.CochainPrependComparison |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CochainPrepend |