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.Augmentation |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.RelativeIso |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.DividedCoordinates |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Additive.Poincare |
| 5 | |
| 6 | /-! # Poincare -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.Poincare |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # IntegralComparison: relative Poincaré under actual divided-coordinate identifications |
| 14 | |
| 15 | The objectwise identification need only respect the projection to the |
| 16 | original object. No natural choice of divided coordinates is required. |
| 17 | The resulting quasi-isomorphism is the canonical presheaf augmentation. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 21 | |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.FormData |
| 23 | |
| 24 | universe u v w |
| 25 | |
| 26 | variable {C : Type v} [Category.{w} C] {p : ℕ} [Fact p.Prime] {B : Type u} [CommRing B] |
| 27 | {J : Ideal B} {δ : DividedPowers J} {X : Scheme.{u}} |
| 28 | {f : X ⟶ Spec (CommRingCat.of B)} |
| 29 | (H Q : C ⥤ BigCrystallineSite.Object p B J δ f) (π : H ⟶ Q) (σ : Type u) (U : C) |
| 30 | (e : Crystalline.DividedCoordinates.object (Q.obj U) σ ≅ H.obj U) |
| 31 | (he : e.hom ≫ π.app U = Crystalline.DividedCoordinates.projection (Q.obj U) σ) |
| 32 | |
| 33 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite.Object.ring (Q.obj U) |
| 34 | local notation "G" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.DividedCoordinates.object (Q.obj U) σ |
| 35 | |
| 36 | def freeAlgEquiv : |
| 37 | letI : Algebra R (H.obj U).ring := FormData.relativeAlgebra H Q π U |
| 38 | (H.obj U).ring ≃ₐ[R] (G).ring := by |
| 39 | letI : Algebra R (H.obj U).ring := FormData.relativeAlgebra H Q π U |
| 40 | exact { Crystalline.RelativeIso.ringEquiv e with |
| 41 | commutes' a := congrArg (fun α : G ⟶ Q.obj U => α.ringMap a) he } |
| 42 | |
| 43 | def formsEquiv (n : ℕ) : FormData.Forms H Q π U n ≃+ |
| 44 | AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.Form R (G).ring (G).ideal (G).dividedPowers n := by |
| 45 | letI : Algebra R (H.obj U).ring := FormData.relativeAlgebra H Q π U |
| 46 | exact (AlgebraicGeometry.Crystalline.Cohomology.PD.DeRhamEquivalence.PDDeRhamEquivalence.formsEquiv (A := CommAlgCat.of R (H.obj U).ring) |
| 47 | (B := CommAlgCat.of R (G).ring) (freeAlgEquiv H Q π σ U e he) |
| 48 | e.hom.ringMap.isDPMorphism e.inv.ringMap.isDPMorphism n).toAddEquiv |
| 49 | |
| 50 | theorem formsEquiv_symbol (n : ℕ) (a : (H.obj U).ring) (t : Fin n → (H.obj U).ring) : |
| 51 | formsEquiv H Q π σ U e he n (FormData.symbol H Q π U n a t) = |
| 52 | AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.symbol R (G).ring (G).ideal (G).dividedPowers |
| 53 | (e.hom.ringMap a) (fun i => e.hom.ringMap (t i)) := by |
| 54 | let : Algebra R (H.obj U).ring := FormData.relativeAlgebra H Q π U |
| 55 | exact AlgebraicGeometry.Crystalline.Cohomology.PD.DeRhamGlobal.PDDeRhamGlobal.formMap_symbol (A := CommAlgCat.of R (H.obj U).ring) |
| 56 | (B := CommAlgCat.of R (G).ring) |
| 57 | (CommAlgCat.ofHom (freeAlgEquiv H Q π σ U e he).toAlgHom) e.hom.ringMap.isDPMorphism n a t |
| 58 | |
| 59 | theorem formsEquiv_differential (n : ℕ) (ω : FormData.Forms H Q π U n) : |
| 60 | formsEquiv H Q π σ U e he (n + 1) |
| 61 | (FormMaps.differential H Q π U n ω) = |
| 62 | AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.differential R (G).ring (G).ideal (G).dividedPowers n (formsEquiv H Q π σ U e he n ω) := by |
| 63 | let : Algebra R (H.obj U).ring := FormData.relativeAlgebra H Q π U |
| 64 | exact AlgebraicGeometry.Crystalline.Cohomology.PD.DeRhamEquivalence.PDDeRhamEquivalence.formsEquiv_differential (A := CommAlgCat.of R (H.obj U).ring) |
| 65 | (B := CommAlgCat.of R (G).ring) (freeAlgEquiv H Q π σ U e he) |
| 66 | e.hom.ringMap.isDPMorphism e.inv.ringMap.isDPMorphism n ω |
| 67 | |
| 68 | abbrev evaluation : (Cᵒᵖ ⥤ AddCommGrpCat.{u}) ⥤ AddCommGrpCat.{u} := |
| 69 | (CategoryTheory.evaluation _ _).obj (op U) |
| 70 | |
| 71 | local notation "ev" => OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.Poincare.evaluation U |
| 72 | local notation "K" => OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.FormComplex.complex H Q π |
| 73 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.Augmentation.ambientPresheaf Q |
| 74 | local notation "P" => OAI.NumberTheory.PadicHodge.IntegralComparison.Additive.Poincare.complex R σ (OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite.Object.ideal (Q.obj U)) (OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite.Object.dividedPowers (Q.obj U)) |
| 75 | |
| 76 | def evaluationComponentIso (n : ℕ) : |
| 77 | (((ev).mapHomologicalComplex (ComplexShape.up ℕ)).obj K).X n ≅ (P).X n := |
| 78 | (formsEquiv H Q π σ U e he n).toAddCommGrpIso |
| 79 | |
| 80 | theorem evaluation_d (n : ℕ) : |
| 81 | (((ev).mapHomologicalComplex (ComplexShape.up ℕ)).obj K).d n (n + 1) ≫ |
| 82 | (evaluationComponentIso H Q π σ U e he (n + 1)).hom = |
| 83 | (evaluationComponentIso H Q π σ U e he n).hom ≫ (P).d n (n + 1) := by |
| 84 | apply AddCommGrpCat.hom_ext |
| 85 | apply AddMonoidHom.ext |
| 86 | intro ω |
| 87 | change formsEquiv H Q π σ U e he (n + 1) (((K).d n (n + 1)).app (op U) ω) = |
| 88 | (P).d n (n + 1) (formsEquiv H Q π σ U e he n ω) |
| 89 | rw [FormComplex.complex_d] |
| 90 | exact (formsEquiv_differential H Q π σ U e he n ω).trans |
| 91 | (Additive.Poincare.complex_d_apply R σ (Q.obj U).ideal (Q.obj U).dividedPowers n |
| 92 | (formsEquiv H Q π σ U e he n ω)).symm |
| 93 | |
| 94 | def evaluationIso : ((ev).mapHomologicalComplex (ComplexShape.up ℕ)).obj K ≅ P := |
| 95 | HomologicalComplex.Hom.isoOfComponents (evaluationComponentIso H Q π σ U e he) (by |
| 96 | intro n m h |
| 97 | change n + 1 = m at h |
| 98 | subst m |
| 99 | exact (evaluation_d H Q π σ U e he n).symm) |
| 100 | |
| 101 | def sourceIso : |
| 102 | ((ev).mapHomologicalComplex (ComplexShape.up ℕ)).obj ((CochainComplex.single₀ _).obj A) ≅ |
| 103 | (CochainComplex.single₀ AddCommGrpCat.{u}).obj (AddCommGrpCat.of R) := |
| 104 | (HomologicalComplex.singleMapHomologicalComplex ev (ComplexShape.up ℕ) 0).app A |
| 105 | |
| 106 | omit [Fact p.Prime] in |
| 107 | theorem sourceIso_inv_zero : (sourceIso Q U).inv.f 0 = 𝟙 (AddCommGrpCat.of R) := by |
| 108 | exact (HomologicalComplex.singleMapHomologicalComplex_inv_app_self ev (ComplexShape.up ℕ) 0 A).trans |
| 109 | (by |
| 110 | simp only [CochainComplex.single₀ObjXSelf, Iso.refl_hom, Iso.refl_inv] |
| 111 | rfl) |
| 112 | |
| 113 | abbrev evaluatedAugmentation := ((ev).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 114 | (Augmentation.augmentation H Q π) |
| 115 | |
| 116 | def transportedAugmentation : (CochainComplex.single₀ AddCommGrpCat.{u}).obj (AddCommGrpCat.of R) ⟶ P := |
| 117 | (sourceIso Q U).inv ≫ evaluatedAugmentation H Q π U ≫ (evaluationIso H Q π σ U e he).hom |
| 118 | |
| 119 | theorem transportedAugmentation_zero (a : R) : |
| 120 | (transportedAugmentation H Q π σ U e he).f 0 a = |
| 121 | formsEquiv H Q π σ U e he 0 (Augmentation.constants H Q π U a) := by |
| 122 | change (evaluationIso H Q π σ U e he).hom.f 0 |
| 123 | ((evaluatedAugmentation H Q π U).f 0 ((sourceIso Q U).inv.f 0 a)) = _ |
| 124 | rw [sourceIso_inv_zero] |
| 125 | change formsEquiv H Q π σ U e he 0 (((Augmentation.augmentation H Q π).f 0).app (op U) a) = _ |
| 126 | rw [Augmentation.augmentation_zero] |
| 127 | rfl |
| 128 | |
| 129 | variable [Fintype σ] |
| 130 | |
| 131 | theorem augmentation_comparison : transportedAugmentation H Q π σ U e he = |
| 132 | Additive.Poincare.augmentation R σ (Q.obj U).ideal (Q.obj U).dividedPowers := by |
| 133 | apply HomologicalComplex.from_single_hom_ext |
| 134 | apply AddCommGrpCat.hom_ext |
| 135 | apply AddMonoidHom.ext |
| 136 | intro a |
| 137 | change R at a |
| 138 | refine (transportedAugmentation_zero H Q π σ U e he a).trans ?_ |
| 139 | rw [Augmentation.constants_symbol, formsEquiv_symbol] |
| 140 | have h : e.hom.ringMap ((π.app U).ringMap a) = algebraMap R (G).ring a := |
| 141 | congrArg (fun α : G ⟶ Q.obj U => α.ringMap a) he |
| 142 | have hs : AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.symbol R (G).ring (G).ideal (G).dividedPowers |
| 143 | (e.hom.ringMap ((π.app U).ringMap a)) (fun i : Fin 0 => e.hom.ringMap i.elim0) = |
| 144 | AlgebraicGeometry.Crystalline.Cohomology.PD.DeRham.PDDeRham.symbol R (G).ring (G).ideal (G).dividedPowers |
| 145 | (algebraMap R (G).ring a) (fun i : Fin 0 => i.elim0) := by |
| 146 | rw [h] |
| 147 | congr 1 |
| 148 | funext i |
| 149 | exact i.elim0 |
| 150 | exact hs.trans (Additive.Poincare.augmentation_zero R σ (Q.obj U).ideal (Q.obj U).dividedPowers a).symm |
| 151 | |
| 152 | include e he in |
| 153 | theorem evaluatedAugmentation_quasiIso : QuasiIso (evaluatedAugmentation H Q π U) := by |
| 154 | have h : QuasiIso (transportedAugmentation H Q π σ U e he) := by |
| 155 | rw [augmentation_comparison] |
| 156 | infer_instance |
| 157 | exact (quasiIso_iff_comp_right _ (evaluationIso H Q π σ U e he).hom).mp |
| 158 | ((quasiIso_iff_comp_left (sourceIso Q U).inv _).mp h) |
| 159 | |
| 160 | theorem augmentation_quasiIso |
| 161 | (h : ∀ U, ∃ e : Crystalline.DividedCoordinates.object (Q.obj U) σ ≅ H.obj U, |
| 162 | e.hom ≫ π.app U = Crystalline.DividedCoordinates.projection (Q.obj U) σ) : |
| 163 | QuasiIso (Augmentation.augmentation H Q π) := by |
| 164 | apply (HomologicalComplex.quasiIso_iff_evaluation _).mpr |
| 165 | intro U |
| 166 | obtain ⟨e, he⟩ := h U.unop |
| 167 | exact evaluatedAugmentation_quasiIso H Q π σ U.unop e he |
| 168 | |
| 169 | end |
| 170 | |
| 171 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCrystalline.Poincare |