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.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.ModuleComplex |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.Poincare |
| 3 | |
| 4 | /-! # Module Poincare -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.ModulePoincare |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: exactness of relative frame resolutions with the original coefficients |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.FormData |
| 17 | |
| 18 | universe u v w |
| 19 | |
| 20 | variable {C : Type v} [Category.{w} C] {p : ℕ} {B : Type u} [CommRing B] |
| 21 | {J : Ideal B} {δ : DividedPowers J} {X : Scheme.{u}} |
| 22 | {f : X ⟶ Spec (CommRingCat.of B)} |
| 23 | (H Q : C ⥤ BigCrystallineSite.Object p B J δ f) (π : H ⟶ Q) |
| 24 | |
| 25 | def forgetFunctor : (Cᵒᵖ ⥤ ModuleCat.{u} B) ⥤ (Cᵒᵖ ⥤ AddCommGrpCat.{u}) := |
| 26 | (Functor.whiskeringRight _ _ _).obj (forget₂ (ModuleCat B) AddCommGrpCat) |
| 27 | |
| 28 | local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.ModulePoincare.forgetFunctor (C := C) (B := B) |
| 29 | local notation "KM" => OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.ModuleComplex.complex H Q π |
| 30 | local notation "KA" => OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.FormComplex.complex H Q π |
| 31 | local notation "AM" => OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.ModuleComplex.ambientPresheaf Q |
| 32 | local notation "AA" => OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.Augmentation.ambientPresheaf Q |
| 33 | |
| 34 | instance forgetFunctor_additive : (F).Additive := by |
| 35 | dsimp [forgetFunctor] |
| 36 | infer_instance |
| 37 | |
| 38 | instance forgetFunctor_preservesHomology : (F).PreservesHomology := by |
| 39 | let : PreservesLimitsOfSize.{0, 0} F := by dsimp [forgetFunctor]; infer_instance |
| 40 | let : PreservesColimitsOfSize.{0, 0} F := by dsimp [forgetFunctor]; infer_instance |
| 41 | infer_instance |
| 42 | |
| 43 | instance forgetFunctor_reflectsIsomorphisms : (F).ReflectsIsomorphisms := by |
| 44 | dsimp [forgetFunctor] |
| 45 | infer_instance |
| 46 | |
| 47 | def formsIso (n : ℕ) : (F).obj (ModuleMaps.formsPresheaf H Q π n) ≅ |
| 48 | FormComplex.formsPresheaf H Q π n := |
| 49 | NatIso.ofComponents (fun U => (AddEquiv.refl (FormData.Forms H Q π U.unop n)).toAddCommGrpIso) (by |
| 50 | intro U V α |
| 51 | apply AddCommGrpCat.hom_ext |
| 52 | ext ω |
| 53 | rfl) |
| 54 | |
| 55 | def ambientIso : (F).obj AM ≅ AA := |
| 56 | NatIso.ofComponents (fun U => (AddEquiv.refl (Q.obj U.unop).ring).toAddCommGrpIso) (by |
| 57 | intro U V α |
| 58 | apply AddCommGrpCat.hom_ext |
| 59 | ext a |
| 60 | rfl) |
| 61 | |
| 62 | def complexIso : ((F).mapHomologicalComplex (ComplexShape.up ℕ)).obj KM ≅ KA := |
| 63 | HomologicalComplex.Hom.isoOfComponents (formsIso H Q π) (by |
| 64 | intro n m h |
| 65 | change n + 1 = m at h |
| 66 | subst m |
| 67 | apply NatTrans.ext |
| 68 | funext U |
| 69 | apply AddCommGrpCat.hom_ext |
| 70 | ext ω |
| 71 | change ((KA).d n (n + 1)).app U ω = ((KM).d n (n + 1)).app U ω |
| 72 | rw [FormComplex.complex_d] |
| 73 | erw [ModuleComplex.complex_d] |
| 74 | rfl) |
| 75 | |
| 76 | def sourceIso : |
| 77 | ((F).mapHomologicalComplex (ComplexShape.up ℕ)).obj ((CochainComplex.single₀ _).obj AM) ≅ |
| 78 | (CochainComplex.single₀ _).obj AA := |
| 79 | (HomologicalComplex.singleMapHomologicalComplex F (ComplexShape.up ℕ) 0).app AM ≪≫ |
| 80 | (CochainComplex.single₀ _).mapIso (ambientIso Q) |
| 81 | |
| 82 | theorem sourceIso_inv_zero : (sourceIso Q).inv.f 0 = (ambientIso Q).inv := by |
| 83 | change ((CochainComplex.single₀ _).map (ambientIso Q).inv).f 0 ≫ |
| 84 | ((HomologicalComplex.singleMapHomologicalComplex F (ComplexShape.up ℕ) 0).inv.app AM).f 0 = _ |
| 85 | rw [CochainComplex.single₀_map_f_zero, HomologicalComplex.singleMapHomologicalComplex_inv_app_self] |
| 86 | simp only [CochainComplex.single₀ObjXSelf, Iso.refl_hom, Iso.refl_inv] |
| 87 | rfl |
| 88 | |
| 89 | def transportedAugmentation : (CochainComplex.single₀ _).obj AA ⟶ KA := |
| 90 | (sourceIso Q).inv ≫ ((F).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 91 | (ModuleComplex.augmentation H Q π) ≫ (complexIso H Q π).hom |
| 92 | |
| 93 | theorem transportedAugmentation_zero : (transportedAugmentation H Q π).f 0 = |
| 94 | Augmentation.augmentationZero H Q π := by |
| 95 | change (sourceIso Q).inv.f 0 ≫ |
| 96 | (((F).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 97 | (ModuleComplex.augmentation H Q π)).f 0 ≫ |
| 98 | (complexIso H Q π).hom.f 0 = Augmentation.augmentationZero H Q π |
| 99 | rw [sourceIso_inv_zero] |
| 100 | apply NatTrans.ext |
| 101 | funext U |
| 102 | apply AddCommGrpCat.hom_ext |
| 103 | ext a |
| 104 | change ((ModuleComplex.augmentation H Q π).f 0).app U a = |
| 105 | Augmentation.constants H Q π U.unop a |
| 106 | rw [ModuleComplex.augmentation_zero] |
| 107 | exact ModuleComplex.constantsLinear_apply H Q π U.unop a |
| 108 | |
| 109 | theorem augmentation_comparison : transportedAugmentation H Q π = |
| 110 | Augmentation.augmentation H Q π := by |
| 111 | apply HomologicalComplex.from_single_hom_ext |
| 112 | exact (transportedAugmentation_zero H Q π).trans |
| 113 | (Augmentation.augmentation_zero H Q π).symm |
| 114 | |
| 115 | variable [Fact p.Prime] (σ : Type u) [Fintype σ] |
| 116 | |
| 117 | theorem augmentation_quasiIso |
| 118 | (h : ∀ U, ∃ e : Crystalline.DividedCoordinates.object (Q.obj U) σ ≅ H.obj U, |
| 119 | e.hom ≫ π.app U = Crystalline.DividedCoordinates.projection (Q.obj U) σ) : |
| 120 | QuasiIso (ModuleComplex.augmentation H Q π) := by |
| 121 | have ha : QuasiIso (transportedAugmentation H Q π) := by |
| 122 | rw [augmentation_comparison] |
| 123 | exact Poincare.augmentation_quasiIso H Q π σ h |
| 124 | have hm : QuasiIso (((F).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 125 | (ModuleComplex.augmentation H Q π)) := |
| 126 | (quasiIso_iff_comp_right _ (complexIso H Q π).hom).mp |
| 127 | ((quasiIso_iff_comp_left (sourceIso Q).inv _).mp ha) |
| 128 | exact (HomologicalComplex.quasiIso_map_iff_of_preservesHomology _ F).mp hm |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.ModulePoincare |