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