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.AlgebraicGeometry.Crystalline.Cohomology.Cech.Resolution |
| 2 | |
| 3 | /-! # Functor -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicCech.Functor.IntrinsicCechFunctor |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Functorial Čech cochains with the original coefficient sizes |
| 11 | |
| 12 | Morphisms act by their actual restrictions on intersections. The |
| 13 | canonical augmentation is natural in the coefficient presheaf. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory Limits Opposite _root_.AlgebraicGeometry Simplicial |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] (X : Scheme.{u}) |
| 21 | |
| 22 | def coefficients : AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X ⥤ |
| 23 | X.Opensᵒᵖ ⥤ AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X where |
| 24 | obj := AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.intersectionCoefficients R X |
| 25 | map f := |
| 26 | { app U := |
| 27 | { app V := f.app (op (V.unop ⊓ U.unop)) |
| 28 | naturality _ _ g := f.naturality |
| 29 | (homOfLE (inf_le_inf_right U.unop (leOfHom g.unop))).op } |
| 30 | naturality _ _ g := by |
| 31 | apply NatTrans.ext |
| 32 | funext V |
| 33 | exact f.naturality (homOfLE (inf_le_inf_left V.unop (leOfHom g.unop))).op } |
| 34 | map_id _ := by |
| 35 | apply NatTrans.ext |
| 36 | funext U |
| 37 | apply NatTrans.ext |
| 38 | funext V |
| 39 | rfl |
| 40 | map_comp _ _ := by |
| 41 | apply NatTrans.ext |
| 42 | funext U |
| 43 | apply NatTrans.ext |
| 44 | funext V |
| 45 | rfl |
| 46 | |
| 47 | variable {ι : Type u} (U : ι → X.Opens) |
| 48 | |
| 49 | def functor : AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X ⥤ |
| 50 | CochainComplex (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X) ℕ := |
| 51 | coefficients R X ⋙ cechComplexFunctor U |
| 52 | |
| 53 | instance additive : (functor R X U).Additive where |
| 54 | map_add {_P _Q} f g := by |
| 55 | ext n : 1 |
| 56 | let E := (FormalCoproduct.mk ι U).cech.obj (op ⦋n⦌) |
| 57 | change Limits.Pi.map (fun i : E.I => ((coefficients R X).map (f + g)).app (op (E.obj i))) = |
| 58 | Limits.Pi.map (fun i : E.I => ((coefficients R X).map f).app (op (E.obj i))) + |
| 59 | Limits.Pi.map (fun i : E.I => ((coefficients R X).map g).app (op (E.obj i))) |
| 60 | apply Pi.hom_ext |
| 61 | intro i |
| 62 | simp only [Pi.map_π, Preadditive.add_comp] |
| 63 | rfl |
| 64 | |
| 65 | theorem augmentation_naturality {P Q : AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X} (f : P ⟶ Q) : |
| 66 | (CochainComplex.single₀ _).map f ≫ AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.augmentation R X U Q = |
| 67 | AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.augmentation R X U P ≫ (functor R X U).map f := by |
| 68 | apply HomologicalComplex.from_single_hom_ext |
| 69 | simp only [HomologicalComplex.comp_f, CochainComplex.single₀_map_f_zero, |
| 70 | AlgebraicGeometry.Crystalline.Cohomology.Cech.Augmentation.CechAugmentation.augmentation_f_zero] |
| 71 | let E := (FormalCoproduct.mk ι U).cech.obj (op ⦋0⦌) |
| 72 | change f ≫ (Pi.lift (fun i : E.I => AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.restrictToIntersection R X Q (E.obj i))) = |
| 73 | (Pi.lift (fun i : E.I => AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.restrictToIntersection R X P (E.obj i))) ≫ |
| 74 | Limits.Pi.map (fun i : E.I => ((coefficients R X).map f).app (op (E.obj i))) |
| 75 | apply Pi.hom_ext |
| 76 | intro i |
| 77 | have hmap := Pi.map_π (fun j : E.I => ((coefficients R X).map f).app (op (E.obj j))) i |
| 78 | have hlift := Pi.lift_comp_π (fun j : E.I => AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.restrictToIntersection R X P (E.obj j)) i |
| 79 | have hrestrict : f ≫ AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.restrictToIntersection R X Q (E.obj i) = |
| 80 | AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.restrictToIntersection R X P (E.obj i) ≫ |
| 81 | ((coefficients R X).map f).app (op (E.obj i)) := by |
| 82 | apply NatTrans.ext |
| 83 | funext V |
| 84 | exact (f.naturality (homOfLE (inf_le_left : V.unop ⊓ E.obj i ≤ V.unop)).op).symm |
| 85 | exact (Category.assoc _ _ _).trans |
| 86 | ((congrArg (fun a => f ≫ a) |
| 87 | (Pi.lift_comp_π (fun j : E.I => AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.restrictToIntersection R X Q (E.obj j)) i)).trans |
| 88 | (hrestrict.trans |
| 89 | ((congrArg (fun a => a ≫ ((coefficients R X).map f).app (op (E.obj i))) hlift).symm.trans |
| 90 | ((Category.assoc _ _ _).trans |
| 91 | ((congrArg (fun a => |
| 92 | Pi.lift (fun j : E.I => AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.restrictToIntersection R X P (E.obj j)) ≫ a) |
| 93 | hmap).symm.trans (Category.assoc _ _ _).symm))))) |
| 94 | |
| 95 | def augmentation : CochainComplex.single₀ (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X) ⟶ functor R X U where |
| 96 | app P := AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.augmentation R X U P |
| 97 | naturality _ _ f := augmentation_naturality R X U f |
| 98 | |
| 99 | def sheafFunctor : Sheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R) ⥤ |
| 100 | CochainComplex (Sheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R)) ℕ := |
| 101 | sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R) ⋙ functor R X U ⋙ |
| 102 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.sheafification R X).mapHomologicalComplex (ComplexShape.up ℕ) |
| 103 | |
| 104 | instance sheaf_additive : (sheafFunctor R X U).Additive := by |
| 105 | unfold sheafFunctor |
| 106 | infer_instance |
| 107 | |
| 108 | def singleIso : |
| 109 | CochainComplex.single₀ (Sheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R)) ≅ |
| 110 | sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R) ⋙ |
| 111 | CochainComplex.single₀ (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X) ⋙ |
| 112 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.sheafification R X).mapHomologicalComplex (ComplexShape.up ℕ) := |
| 113 | (Functor.leftUnitor _).symm ≪≫ |
| 114 | Functor.isoWhiskerRight (sheafificationNatIso (Opens.grothendieckTopology X) |
| 115 | (ModuleCat.{u} R)) (CochainComplex.single₀ _) ≪≫ |
| 116 | Functor.associator _ _ _ ≪≫ |
| 117 | Functor.isoWhiskerLeft _ |
| 118 | (HomologicalComplex.singleMapHomologicalComplex (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.sheafification R X) |
| 119 | (ComplexShape.up ℕ) 0).symm |
| 120 | |
| 121 | def sheafAugmentation : |
| 122 | CochainComplex.single₀ (Sheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R)) ⟶ |
| 123 | sheafFunctor R X U := |
| 124 | (singleIso R X).hom ≫ |
| 125 | Functor.whiskerLeft (sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R)) |
| 126 | (Functor.whiskerRight (augmentation R X U) |
| 127 | ((AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.sheafification R X).mapHomologicalComplex (ComplexShape.up ℕ))) |
| 128 | |
| 129 | theorem sheafAugmentation_quasiIso (hU : iSup U = ⊤) |
| 130 | (F : Sheaf (Opens.grothendieckTopology X) (ModuleCat.{u} R)) : |
| 131 | QuasiIso ((sheafAugmentation R X U).app F) := by |
| 132 | have : QuasiIso (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.sheafAugmentation R X U F.obj) := |
| 133 | AlgebraicGeometry.Crystalline.Cohomology.Cech.Resolution.CechResolution.augmentation_quasiIso R X U F.obj hU |
| 134 | change QuasiIso ((singleIso R X).hom.app F ≫ AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.sheafAugmentation R X U F.obj) |
| 135 | exact quasiIso_comp _ _ |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicCech.Functor.IntrinsicCechFunctor |