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.GeometricComparison.DeRham.ScalarChange |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.Int |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.SheafCoefficientEquivalence |
| 4 | import OAI.AlgebraicGeometry.Comparison.Betti.AdjunctionComplexUniqueness |
| 5 | |
| 6 | /-! # Scalar Image -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.ScalarImage.SectionScalarChange |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Canonical comparison between coefficient change and the actual inverse-image functors. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal |
| 19 | |
| 20 | variable {R S : Type} [Field R] [Field S] (σ : R ≃+* S) |
| 21 | |
| 22 | def restrictMap {X Y : Over (Spec (CommRingCat.of S))} (f : X ⟶ Y) : |
| 23 | ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X ⟶ ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom Y := |
| 24 | (Over.map (Spec.map (CommRingCat.ofHom σ.toRingHom))).map f |
| 25 | |
| 26 | abbrev inverseScalars (X : Over (Spec (CommRingCat.of S))) : |
| 27 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.Sheaves R (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X) ⥤ AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.Sheaves S X := |
| 28 | sheafCompose (Opens.grothendieckTopology X.left) (ModuleCat.restrictScalars σ.symm.toRingHom) |
| 29 | |
| 30 | instance inverseScalars_isEquivalence (X : Over (Spec (CommRingCat.of S))) : |
| 31 | (inverseScalars σ X).IsEquivalence := |
| 32 | (SheafCoefficientEquivalence.SheafCoefficients.equivalence (Opens.grothendieckTopology X.left) σ).isEquivalence_inverse |
| 33 | |
| 34 | instance inverseScalars_additive (X : Over (Spec (CommRingCat.of S))) : |
| 35 | (inverseScalars σ X).Additive where |
| 36 | map_add := by intros; rfl |
| 37 | |
| 38 | def coefficientAdjunction (X : Over (Spec (CommRingCat.of S))) : |
| 39 | SheafScalarChange.SectionScalarChange.sheafRestriction σ X ⊣ inverseScalars σ X := |
| 40 | (SheafCoefficientEquivalence.SheafCoefficients.equivalence (Opens.grothendieckTopology X.left) σ).toAdjunction |
| 41 | |
| 42 | def coefficientComplexAdjunction (X : Over (Spec (CommRingCat.of S))) : |
| 43 | (SheafScalarChange.SectionScalarChange.sheafRestriction σ X).mapHomologicalComplex (ComplexShape.up ℕ) ⊣ |
| 44 | (inverseScalars σ X).mapHomologicalComplex (ComplexShape.up ℕ) := |
| 45 | AlgebraicGeometry.Comparison.Betti.Complex.Adjunction.onComplexes (coefficientAdjunction σ X) (ComplexShape.up ℕ) |
| 46 | |
| 47 | variable {X Y : Over (Spec (CommRingCat.of S))} (f : X ⟶ Y) |
| 48 | |
| 49 | theorem directImage_inverseScalars_commutes : |
| 50 | inverseScalars σ X ⋙ Int.directImage f = |
| 51 | Int.directImage (restrictMap σ f) ⋙ inverseScalars σ Y := rfl |
| 52 | |
| 53 | def imageScalarIso : Int.inverseImage f ⋙ SheafScalarChange.SectionScalarChange.sheafRestriction σ X ≅ |
| 54 | SheafScalarChange.SectionScalarChange.sheafRestriction σ Y ⋙ Int.inverseImage (restrictMap σ f) := |
| 55 | ((Int.imageAdjunction f).comp (coefficientAdjunction σ X)).leftAdjointUniq |
| 56 | ((coefficientAdjunction σ Y).comp (Int.imageAdjunction (restrictMap σ f))) |
| 57 | |
| 58 | def imageScalarComplexIso : |
| 59 | (Int.inverseImage f).mapHomologicalComplex (ComplexShape.up ℕ) ⋙ |
| 60 | (SheafScalarChange.SectionScalarChange.sheafRestriction σ X).mapHomologicalComplex (ComplexShape.up ℕ) ≅ |
| 61 | (SheafScalarChange.SectionScalarChange.sheafRestriction σ Y).mapHomologicalComplex (ComplexShape.up ℕ) ⋙ |
| 62 | (Int.inverseImage (restrictMap σ f)).mapHomologicalComplex (ComplexShape.up ℕ) := |
| 63 | ((Int.imageComplexAdjunction f).comp (coefficientComplexAdjunction σ X)).leftAdjointUniq |
| 64 | ((coefficientComplexAdjunction σ Y).comp (Int.imageComplexAdjunction (restrictMap σ f))) |
| 65 | |
| 66 | theorem imageScalarIso_onComplexes (K : CochainComplex (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.Sheaves S Y) ℕ) : |
| 67 | (NatTrans.mapHomologicalComplex (imageScalarIso σ f).hom (ComplexShape.up ℕ)).app K = |
| 68 | (imageScalarComplexIso σ f).hom.app K := by |
| 69 | have h := AlgebraicGeometry.Comparison.Betti.AdjunctionComplexUniqueness.onComplexes_leftAdjointUniq (ComplexShape.up ℕ) |
| 70 | ((Int.imageAdjunction f).comp (coefficientAdjunction σ X)) |
| 71 | ((coefficientAdjunction σ Y).comp (Int.imageAdjunction (restrictMap σ f))) K |
| 72 | erw [AlgebraicGeometry.Comparison.Betti.AdjunctionComplexUniqueness.onComplexes_comp (ComplexShape.up ℕ) |
| 73 | (Int.imageAdjunction f) (coefficientAdjunction σ X), |
| 74 | AlgebraicGeometry.Comparison.Betti.AdjunctionComplexUniqueness.onComplexes_comp (ComplexShape.up ℕ) |
| 75 | (coefficientAdjunction σ Y) (Int.imageAdjunction (restrictMap σ f))] at h |
| 76 | exact h.symm |
| 77 | |
| 78 | end |
| 79 | |
| 80 | /-! Coefficient change commutes with the actual pullback of section forms and their presheaf complexes. -/ |
| 81 | |
| 82 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 83 | |
| 84 | theorem inverse_square {C : Type*} [Category* C] {A B A' B' : C} |
| 85 | (eA : A ≅ A') (eB : B ≅ B') (f : A ⟶ B) (g : A' ⟶ B') |
| 86 | (h : f ≫ eB.hom = eA.hom ≫ g) : g ≫ eB.inv = eA.inv ≫ f := by |
| 87 | simpa only [Category.assoc, Iso.hom_inv_id, Category.comp_id, Iso.inv_hom_id_assoc] using |
| 88 | congrArg (fun k => eA.inv ≫ k ≫ eB.inv) h.symm |
| 89 | |
| 90 | variable {R S : Type} [Field R] [Field S] (σ : R ≃+* S) |
| 91 | {X Y : Over (Spec (CommRingCat.of S))} (f : X ⟶ Y) |
| 92 | |
| 93 | theorem formsPullback_square (n : ℕ) : |
| 94 | Int.formsPullback (restrictMap σ f) n ≫ |
| 95 | (Int.directImagePresheaf (restrictMap σ f)).map (PresheafScalarChange.SectionScalarChange.formsPresheafIso σ X n).hom = |
| 96 | (PresheafScalarChange.SectionScalarChange.formsPresheafIso σ Y n).hom ≫ |
| 97 | (PresheafScalarChange.SectionScalarChange.presheafRestriction σ Y).map (Int.formsPullback f n) := by |
| 98 | apply NatTrans.ext |
| 99 | funext U |
| 100 | apply ModuleCat.hom_ext |
| 101 | apply LinearMap.ext |
| 102 | intro ω |
| 103 | let : Algebra R Γ(Y.left, U.unop) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom Y) U.unop |
| 104 | let : Algebra S Γ(Y.left, U.unop) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra S Y U.unop |
| 105 | let : Algebra R Γ(X.left, f.left ⁻¹ᵁ U.unop) := |
| 106 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R (ScalarFormsChange.SectionScalarChange.restrictBase σ.toRingHom X) (f.left ⁻¹ᵁ U.unop) |
| 107 | let : Algebra S Γ(X.left, f.left ⁻¹ᵁ U.unop) := |
| 108 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra S X (f.left ⁻¹ᵁ U.unop) |
| 109 | exact ScalarFormsChange.FormsScalarChange.formEquiv_naturality |
| 110 | (A := Γ(Y.left, U.unop)) (B := Γ(X.left, f.left ⁻¹ᵁ U.unop)) σ |
| 111 | (ScalarFormsChange.SectionScalarChange.sectionBaseMap_comp σ.toRingHom Y U.unop) |
| 112 | (ScalarFormsChange.SectionScalarChange.sectionBaseMap_comp σ.toRingHom X (f.left ⁻¹ᵁ U.unop)) |
| 113 | (CommAlgCat.ofHom (Int.sectionPullback (restrictMap σ f) U.unop)) |
| 114 | (CommAlgCat.ofHom (Int.sectionPullback f U.unop)) (fun _ => rfl) n ω |
| 115 | |
| 116 | theorem presheafPullback_square : |
| 117 | Int.presheafPullback (restrictMap σ f) ≫ |
| 118 | ((Int.directImagePresheaf (restrictMap σ f)).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 119 | (PresheafScalarChange.SectionScalarChange.presheafComplexIso σ X).hom = |
| 120 | (PresheafScalarChange.SectionScalarChange.presheafComplexIso σ Y).hom ≫ |
| 121 | ((PresheafScalarChange.SectionScalarChange.presheafRestriction σ Y).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 122 | (Int.presheafPullback f) := by |
| 123 | apply HomologicalComplex.Hom.ext |
| 124 | funext n |
| 125 | exact formsPullback_square σ f n |
| 126 | |
| 127 | theorem presheafPullback_inverse_square : |
| 128 | ((PresheafScalarChange.SectionScalarChange.presheafRestriction σ Y).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 129 | (Int.presheafPullback f) ≫ |
| 130 | ((Int.directImagePresheaf (restrictMap σ f)).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 131 | (PresheafScalarChange.SectionScalarChange.presheafComplexIso σ X).inv = |
| 132 | (PresheafScalarChange.SectionScalarChange.presheafComplexIso σ Y).inv ≫ Int.presheafPullback (restrictMap σ f) := |
| 133 | inverse_square (PresheafScalarChange.SectionScalarChange.presheafComplexIso σ Y) |
| 134 | (((Int.directImagePresheaf (restrictMap σ f)).mapHomologicalComplex (ComplexShape.up ℕ)).mapIso |
| 135 | (PresheafScalarChange.SectionScalarChange.presheafComplexIso σ X)) _ _ (presheafPullback_square σ f) |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.ScalarImage.SectionScalarChange |