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.Forms.Adapter |
| 2 | import OAI.AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves |
| 3 | import OAI.AlgebraicGeometry.Comparison.Betti.Complex.Transpose |
| 4 | |
| 5 | /-! # Sheaf Forms Adapter -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.SheafFormsAdapter.FormsAdapter |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Comparison on the actual section presheaves and their sheaf complexes. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | variable (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) |
| 16 | |
| 17 | def formPresheafIso (n : ℕ) : AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.formPresheaf X n ≅ |
| 18 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf ℂ X n := |
| 19 | NatIso.ofComponents (fun U => (Forms.Adapter.FormsAdapter.formsEquiv Γ(X.left, U.unop) n).toModuleIso) (by |
| 20 | intro U V f |
| 21 | apply ModuleCat.hom_ext |
| 22 | apply LinearMap.ext |
| 23 | intro ω |
| 24 | exact Forms.Adapter.FormsAdapter.to62_pullback Γ(X.left, U.unop) (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.sectionRestriction X f) n ω) |
| 25 | |
| 26 | theorem differential66_app (n : ℕ) (U : X.left.Opensᵒᵖ) : |
| 27 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.presheafDifferential X n).app U = |
| 28 | ModuleCat.ofHom (@AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.differential Γ(X.left, U.unop) _ |
| 29 | (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra ℂ X U.unop) n) := |
| 30 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.algebraicDeRhamComplex_d Γ(X.left, U.unop) n |
| 31 | |
| 32 | def presheafComplexIso : AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafComplex X ≅ |
| 33 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex ℂ X := |
| 34 | HomologicalComplex.Hom.isoOfComponents (formPresheafIso X) (by |
| 35 | intro i j hij |
| 36 | obtain rfl := (show i + 1 = j from hij) |
| 37 | rw [AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafComplex_d] |
| 38 | change (formPresheafIso X i).hom ≫ |
| 39 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex ℂ X).d i (i + 1) = _ |
| 40 | rw [show (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex ℂ X).d i (i + 1) = |
| 41 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.differentialPresheaf ℂ X i from CochainComplex.of_d _ _ i] |
| 42 | apply NatTrans.ext |
| 43 | funext U |
| 44 | change (formPresheafIso X i).hom.app U ≫ _ = |
| 45 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.presheafDifferential X i).app U ≫ (formPresheafIso X (i + 1)).hom.app U |
| 46 | rw [differential66_app] |
| 47 | apply ModuleCat.hom_ext |
| 48 | apply LinearMap.ext |
| 49 | intro ω |
| 50 | exact (@Forms.Adapter.FormsAdapter.to62_differential Γ(X.left, U.unop) _ |
| 51 | (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra ℂ X U.unop) i ω).symm) |
| 52 | |
| 53 | def sheafComplexIso : AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex X ≅ |
| 54 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex ℂ X := |
| 55 | ((presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 56 | (ComplexShape.up ℕ)).mapIso (presheafComplexIso X) |
| 57 | |
| 58 | def transposeIso : |
| 59 | AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X) ≅ |
| 60 | AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafComplex X := |
| 61 | HomologicalComplex.Hom.isoOfComponents (fun _ => Iso.refl _) (by |
| 62 | intro i j hij |
| 63 | obtain rfl := (show i + 1 = j from hij) |
| 64 | rw [AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafComplex_d] |
| 65 | simp only [Iso.refl_hom] |
| 66 | exact (Category.id_comp _).trans (Category.comp_id _).symm) |
| 67 | |
| 68 | theorem embedding_eq : ComplexShape.embeddingUpIntGE 0 = ComplexShape.embeddingUpNat := by |
| 69 | unfold ComplexShape.embeddingUpIntGE ComplexShape.embeddingUpNat |
| 70 | congr 1 |
| 71 | funext n |
| 72 | exact zero_add _ |
| 73 | |
| 74 | def changeEmbeddingIso {C : Type*} [Category* C] [Limits.HasZeroMorphisms C] [Limits.HasZeroObject C] |
| 75 | (K : CochainComplex C ℕ) |
| 76 | {e e' : (ComplexShape.up ℕ).Embedding (ComplexShape.up ℤ)} (h : e = e') : |
| 77 | K.extend e ≅ K.extend e' := eqToIso (congrArg (K.extend ·) h) |
| 78 | |
| 79 | def sectionSheafExtensionIso (e : (ComplexShape.up ℕ).Embedding (ComplexShape.up ℤ)) : |
| 80 | ((presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 81 | (ComplexShape.up ℤ)).obj (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose |
| 82 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X ⋙ e.extendFunctor (ModuleCat.{0} ℂ))) ≅ |
| 83 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex X).extend e := |
| 84 | ((presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 85 | (ComplexShape.up ℤ)).mapIso |
| 86 | (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transposeExtendIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X) e) ≪≫ |
| 87 | AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapExtendIso |
| 88 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)) e |
| 89 | (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X)) ≪≫ |
| 90 | (e.extendFunctor (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.ComplexSheaves X)).mapIso |
| 91 | (((presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 92 | (ComplexShape.up ℕ)).mapIso (transposeIso X)) |
| 93 | |
| 94 | def sheafIntExtensionIso : AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplexInt X ≅ |
| 95 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex X).extend ComplexShape.embeddingUpNat := |
| 96 | sectionSheafExtensionIso X (ComplexShape.embeddingUpIntGE 0) ≪≫ |
| 97 | changeEmbeddingIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex X) embedding_eq |
| 98 | |
| 99 | def sheafComplexIntIso : AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplexInt X ≅ |
| 100 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplexInt ℂ X := |
| 101 | sheafIntExtensionIso X ≪≫ |
| 102 | (ComplexShape.embeddingUpNat.extendFunctor (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.ComplexSheaves X)).mapIso |
| 103 | (sheafComplexIso X) |
| 104 | |
| 105 | /-- The comparison written on the defining derived-category morphism spaces. -/ |
| 106 | def rawCohomologyEquiv (n : ℕ) : |
| 107 | (((DerivedCategory.singleFunctor (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.ComplexSheaves X) 0).obj |
| 108 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.coefficientSheaf ℂ X)) ⟶ |
| 109 | (DerivedCategory.Q.obj (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplexInt X))⟦(n : ℤ)⟧) ≃ₗ[ℂ] |
| 110 | (((DerivedCategory.singleFunctor (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.ComplexSheaves X) 0).obj |
| 111 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.coefficientSheaf ℂ X)) ⟶ |
| 112 | (DerivedCategory.Q.obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplexInt ℂ X))⟦(n : ℤ)⟧) := |
| 113 | Linear.homCongr ℂ (Iso.refl _) |
| 114 | ((shiftFunctor (DerivedCategory (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.ComplexSheaves X)) (n : ℤ)).mapIso |
| 115 | (DerivedCategory.Q.mapIso (sheafComplexIntIso X))) |
| 116 | |
| 117 | /-- The resulting equivalence on the independently defined hypercohomology groups. -/ |
| 118 | def cohomologyEquiv (n : ℕ) : AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRham X n ≃ₗ[ℂ] |
| 119 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology ℂ X n := rawCohomologyEquiv X n |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.NumberTheory.PadicHodge.GeometricComparison.SheafFormsAdapter.FormsAdapter |