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.AlgebraicTopology.Cohomology.Singular.Augmentation |
| 2 | import Mathlib.Topology.Sheaves.LocalPredicate |
| 3 | import Mathlib.Topology.Sheaves.Forget |
| 4 | |
| 5 | /-! # Locally Constant Module Sheaf -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LocallyConstantModuleSheaf |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual locally constant sheaf for a coefficient module, with |
| 12 | pointwise coefficient maps and its singular degree-zero augmentation. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 15 | |
| 16 | open OAI.AlgebraicTopology.Cohomology.Singular.Augmentation OAI.AlgebraicTopology.Cohomology.Singular.Augmentation.Comparison |
| 17 | |
| 18 | variable {R : Type} [Ring R] (M : ModuleCat.{0} R) (X : TopCat.{0}) |
| 19 | |
| 20 | abbrev coefficientLocallyConstantPresheaf : X.Presheaf (ModuleCat.{0} R) where |
| 21 | obj U := ModuleCat.of R (LocallyConstant U.unop M) |
| 22 | map i := ModuleCat.ofHom { |
| 23 | toFun := fun f => ⟨fun x => f (i.unop x), |
| 24 | f.isLocallyConstant.comp_continuous (Opens.isOpenEmbedding_of_le i.unop.le).continuous⟩ |
| 25 | map_add' := fun _ _ => rfl |
| 26 | map_smul' := fun _ _ => rfl } |
| 27 | map_id _ := by |
| 28 | apply ModuleCat.hom_ext |
| 29 | apply LinearMap.ext |
| 30 | intro f |
| 31 | apply LocallyConstant.ext |
| 32 | intro x |
| 33 | rfl |
| 34 | map_comp _ _ := by |
| 35 | apply ModuleCat.hom_ext |
| 36 | apply LinearMap.ext |
| 37 | intro f |
| 38 | apply LocallyConstant.ext |
| 39 | intro x |
| 40 | rfl |
| 41 | |
| 42 | def coefficientLocallyConstantPredicate : TopCat.LocalPredicate (fun _ : X => M) where |
| 43 | pred f := IsLocallyConstant f |
| 44 | res i f hf := hf.comp_continuous (Opens.isOpenEmbedding_of_le i.le).continuous |
| 45 | locality f h := by |
| 46 | intro t |
| 47 | apply isOpen_iff_forall_mem_open.2 |
| 48 | intro x hx |
| 49 | obtain ⟨V, hxV, i, hV⟩ := h x |
| 50 | refine ⟨i '' ((fun y : V => f (i y)) ⁻¹' t), ?_, ?_, ?_⟩ |
| 51 | · rintro y ⟨z, hz, rfl⟩ |
| 52 | exact hz |
| 53 | · exact (Opens.isOpenEmbedding_of_le i.le).isOpenMap _ (hV t) |
| 54 | · exact ⟨⟨x, hxV⟩, hx, by ext; rfl⟩ |
| 55 | |
| 56 | def coefficientLocallyConstantSectionEquiv (U : Opens X) : |
| 57 | LocallyConstant U M ≃ {f : U → M // IsLocallyConstant f} where |
| 58 | toFun f := ⟨f, f.isLocallyConstant⟩ |
| 59 | invFun f := ⟨f.1, f.2⟩ |
| 60 | left_inv f := by cases f; rfl |
| 61 | right_inv f := by cases f; rfl |
| 62 | |
| 63 | def coefficientLocallyConstantUnderlyingIso : |
| 64 | coefficientLocallyConstantPresheaf M X ⋙ forget (ModuleCat.{0} R) ≅ |
| 65 | TopCat.subpresheafToTypes (coefficientLocallyConstantPredicate M X).toPrelocalPredicate := |
| 66 | NatIso.ofComponents (fun U => (coefficientLocallyConstantSectionEquiv M X U.unop).toIso) |
| 67 | (by intro U V i; ext f; rfl) |
| 68 | |
| 69 | theorem coefficientLocallyConstantPresheaf_isSheaf : |
| 70 | (coefficientLocallyConstantPresheaf M X).IsSheaf := by |
| 71 | apply (TopCat.Presheaf.isSheaf_iff_isSheaf_comp |
| 72 | (forget (ModuleCat.{0} R)) (coefficientLocallyConstantPresheaf M X)).2 |
| 73 | exact TopCat.Presheaf.isSheaf_of_iso (coefficientLocallyConstantUnderlyingIso M X).symm |
| 74 | (TopCat.subpresheafToTypes.isSheaf (coefficientLocallyConstantPredicate M X)) |
| 75 | |
| 76 | def coefficientLocallyConstantSheaf : TopCat.Sheaf (ModuleCat.{0} R) X where |
| 77 | obj := coefficientLocallyConstantPresheaf M X |
| 78 | property := coefficientLocallyConstantPresheaf_isSheaf M X |
| 79 | |
| 80 | def coefficientLocallyConstantAugmentation : |
| 81 | coefficientLocallyConstantPresheaf M X ⟶ AlgebraicTopology.DeRham.Comparison.SingularPresheaf.singularCochainDegreePresheaf M X 0 where |
| 82 | app U := AlgebraicTopology.Cohomology.Singular.Augmentation.locallyConstantToSingularZero M (TopCat.of U.unop) |
| 83 | naturality _ _ i := AlgebraicTopology.Cohomology.Singular.Augmentation.locallyConstantToSingularZero_naturality M ((Opens.toTopCat X).map i.unop) |
| 84 | |
| 85 | def coefficientLocallyConstantSheafMap {N : ModuleCat.{0} R} (f : M ⟶ N) : |
| 86 | coefficientLocallyConstantSheaf M X ⟶ coefficientLocallyConstantSheaf N X where |
| 87 | hom := { |
| 88 | app U := ModuleCat.ofHom { |
| 89 | toFun a := ⟨fun x => f (a x), a.isLocallyConstant.comp _⟩ |
| 90 | map_add' a b := by ext x; exact map_add f.hom (a x) (b x) |
| 91 | map_smul' r a := by ext x; exact map_smul f.hom r (a x) } |
| 92 | naturality _ _ _ := by |
| 93 | apply ModuleCat.hom_ext |
| 94 | apply LinearMap.ext |
| 95 | intro a |
| 96 | apply LocallyConstant.ext |
| 97 | intro x |
| 98 | rfl } |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LocallyConstantModuleSheaf |