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.DeRham.Comparison.LocallyConstantSheaf |
| 2 | import Mathlib.Algebra.Category.ModuleCat.FilteredColimits |
| 3 | import Mathlib.CategoryTheory.Sites.LeftExact |
| 4 | import Mathlib.CategoryTheory.Sites.ConstantSheaf |
| 5 | import Mathlib.CategoryTheory.Sites.LocallyBijective |
| 6 | import Mathlib.Topology.Sheaves.LocallySurjective |
| 7 | |
| 8 | /-! # Constant Locally Constant -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicTopology.DeRham.Comparison.ConstantLocallyConstant |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # The constant complex sheaf is the sheaf of locally constant functions |
| 16 | |
| 17 | The constant-presheaf map sends a scalar to its constant function. We prove |
| 18 | this map locally injective and locally surjective on the actual topology of |
| 19 | the space, and use mathlib's sheafification theorem to obtain the isomorphism. |
| 20 | There is no assumed cohomological or de Rham comparison. |
| 21 | |
| 22 | The sheafification identification is stated for small topological spaces |
| 23 | (`TopCat.{0}`), so its constant coefficient object is literally `ℂ`. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 27 | |
| 28 | /-- A locally constant function on an open set is constant on an actual open |
| 29 | neighborhood in the ambient space. -/ |
| 30 | theorem locallyConstant_exists_constant_neighborhood |
| 31 | {X Y : Type*} [TopologicalSpace X] (U : Opens X) |
| 32 | (f : LocallyConstant U Y) (x : U) : |
| 33 | ∃ (V : Opens X) (hVU : V ≤ U), (x : X) ∈ V ∧ |
| 34 | ∀ y : V, f ⟨y, hVU y.property⟩ = f x := by |
| 35 | let s : Set U := {y | f y = f x} |
| 36 | let V : Opens X := ⟨Subtype.val '' s, |
| 37 | U.isOpen.isOpenMap_subtype_val s (f.isLocallyConstant.isOpen_fiber (f x))⟩ |
| 38 | have hVU : V ≤ U := by |
| 39 | rintro y ⟨z, _, rfl⟩ |
| 40 | exact z.property |
| 41 | refine ⟨V, hVU, ⟨x, rfl, rfl⟩, ?_⟩ |
| 42 | intro y |
| 43 | obtain ⟨z, hz, hzy⟩ := y.property |
| 44 | have heq : z = (⟨y, hVU y.property⟩ : U) := Subtype.ext hzy |
| 45 | change f z = f x at hz |
| 46 | simpa only [heq] using hz |
| 47 | |
| 48 | variable (X : TopCat.{0}) |
| 49 | |
| 50 | /-- The actual constant complex-valued presheaf. -/ |
| 51 | def constantComplexPresheaf : X.Presheaf (ModuleCat.{0} ℂ) := |
| 52 | (Functor.const (Opens X)ᵒᵖ).obj (ModuleCat.of ℂ ℂ) |
| 53 | |
| 54 | /-- A scalar maps to the corresponding constant locally constant function. -/ |
| 55 | def constantToLocallyConstant : |
| 56 | constantComplexPresheaf X ⟶ LocallyConstantSheaf.locallyConstantPresheaf X where |
| 57 | app U := ModuleCat.ofHom (LocallyConstant.constₗ (X := U.unop) ℂ) |
| 58 | naturality U V i := by |
| 59 | apply ModuleCat.hom_ext |
| 60 | apply LinearMap.ext |
| 61 | intro c |
| 62 | apply LocallyConstant.ext |
| 63 | intro x |
| 64 | rfl |
| 65 | |
| 66 | @[simp] |
| 67 | theorem constantToLocallyConstant_apply (U : Opens X) (c : ℂ) (x : U) : |
| 68 | LocallyConstant.toFun |
| 69 | ((constantToLocallyConstant X).app (op U) c : LocallyConstant U ℂ) x = c := rfl |
| 70 | |
| 71 | /-- Constants whose functions agree agree locally, including over the empty |
| 72 | open set where the covering condition is vacuous. -/ |
| 73 | instance constantToLocallyConstant_isLocallyInjective : |
| 74 | Presheaf.IsLocallyInjective (Opens.grothendieckTopology X) |
| 75 | (constantToLocallyConstant X) where |
| 76 | equalizerSieve_mem {U} a b hab := by |
| 77 | intro x hx |
| 78 | have heq : a = b := |
| 79 | congrArg (fun f : LocallyConstant U.unop ℂ => f ⟨x, hx⟩) hab |
| 80 | refine ⟨U.unop, 𝟙 _, ?_, hx⟩ |
| 81 | change a = b |
| 82 | exact heq |
| 83 | |
| 84 | /-- Every locally constant section is locally the image of a constant scalar. -/ |
| 85 | instance constantToLocallyConstant_isLocallySurjective : |
| 86 | Presheaf.IsLocallySurjective (Opens.grothendieckTopology X) |
| 87 | (constantToLocallyConstant X) := by |
| 88 | apply (TopCat.Presheaf.isLocallySurjective_iff (constantToLocallyConstant X)).2 |
| 89 | intro U f x hx |
| 90 | let g : LocallyConstant U ℂ := f |
| 91 | obtain ⟨V, hVU, hxV, hV⟩ := |
| 92 | locallyConstant_exists_constant_neighborhood U g ⟨x, hx⟩ |
| 93 | refine ⟨V, hVU, ⟨g ⟨x, hx⟩, ?_⟩, hxV⟩ |
| 94 | apply LocallyConstant.ext |
| 95 | intro y |
| 96 | change g ⟨x, hx⟩ = g ⟨y, hVU y.property⟩ |
| 97 | exact (hV y).symm |
| 98 | |
| 99 | /-- The actual constant-presheaf map becomes an isomorphism on sheafification. -/ |
| 100 | instance constantToLocallyConstant_sheafify_isIso : |
| 101 | IsIso ((presheafToSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).map |
| 102 | (constantToLocallyConstant X)) := |
| 103 | ((Opens.grothendieckTopology X).W_iff (constantToLocallyConstant X)).mp |
| 104 | ((Opens.grothendieckTopology X).W_of_isLocallyBijective (constantToLocallyConstant X)) |
| 105 | |
| 106 | /-- Mathlib's constant complex sheaf is canonically the actual sheaf of |
| 107 | locally constant complex-valued functions. -/ |
| 108 | def constantSheafLocallyConstantIso : |
| 109 | (constantSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).obj |
| 110 | (ModuleCat.of ℂ ℂ) ≅ LocallyConstantSheaf.locallyConstantSheaf X := by |
| 111 | let f := (presheafToSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).map |
| 112 | (constantToLocallyConstant X) |
| 113 | let hf : IsIso f := constantToLocallyConstant_sheafify_isIso X |
| 114 | exact @asIso _ _ _ _ f hf ≪≫ |
| 115 | (sheafificationIso (LocallyConstantSheaf.locallyConstantSheaf X)).symm |
| 116 | |
| 117 | /-- The isomorphism is the one induced by constant functions under the |
| 118 | universal property of sheafification. -/ |
| 119 | @[reassoc] |
| 120 | theorem constantSheafLocallyConstantIso_fac : |
| 121 | CategoryTheory.toSheafify (Opens.grothendieckTopology X) (constantComplexPresheaf X) ≫ |
| 122 | (constantSheafLocallyConstantIso X).hom.hom = constantToLocallyConstant X := by |
| 123 | change CategoryTheory.toSheafify (Opens.grothendieckTopology X) _ ≫ |
| 124 | (sheafifyMap (Opens.grothendieckTopology X) (constantToLocallyConstant X) ≫ |
| 125 | (isoSheafify (Opens.grothendieckTopology X) |
| 126 | (LocallyConstantSheaf.locallyConstantPresheaf_isSheaf X)).inv) = _ |
| 127 | rw [← Category.assoc, ← toSheafify_naturality, Category.assoc, |
| 128 | ← isoSheafify_hom (Opens.grothendieckTopology X) (LocallyConstantSheaf.locallyConstantPresheaf_isSheaf X), |
| 129 | Iso.hom_inv_id, Category.comp_id] |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.AlgebraicTopology.DeRham.Comparison.ConstantLocallyConstant |