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 Mathlib.Topology.LocallyConstant.Algebra |
| 2 | import Mathlib.Topology.Sheaves.LocalPredicate |
| 3 | import Mathlib.Topology.Sheaves.Forget |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Limits |
| 5 | import Mathlib.Analysis.Complex.Basic |
| 6 | |
| 7 | /-! # Locally Constant Sheaf -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicTopology.DeRham.Comparison.LocallyConstantSheaf |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # The actual sheaf of locally constant complex-valued functions |
| 15 | |
| 16 | The sections on an open set U are literally `LocallyConstant U ℂ`. |
| 17 | Restriction is precomposition with the open inclusion. The sheaf property |
| 18 | is proved from locality of local constancy, independently of differential |
| 19 | forms and their kernels. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | /-- Locally constant complex functions with their usual restriction maps. -/ |
| 27 | def locallyConstantPresheaf (X : TopCat.{u}) : X.Presheaf (ModuleCat.{u} ℂ) where |
| 28 | obj U := ModuleCat.of ℂ (LocallyConstant U.unop ℂ) |
| 29 | map i := ModuleCat.ofHom { |
| 30 | toFun := fun f => ⟨fun x => f (i.unop x), |
| 31 | f.isLocallyConstant.comp_continuous |
| 32 | (Opens.isOpenEmbedding_of_le i.unop.le).continuous⟩ |
| 33 | map_add' := fun _ _ => rfl |
| 34 | map_smul' := fun _ _ => rfl } |
| 35 | map_id U := by |
| 36 | apply ModuleCat.hom_ext |
| 37 | apply LinearMap.ext |
| 38 | intro f |
| 39 | apply LocallyConstant.ext |
| 40 | intro x |
| 41 | rfl |
| 42 | map_comp i j := by |
| 43 | apply ModuleCat.hom_ext |
| 44 | apply LinearMap.ext |
| 45 | intro f |
| 46 | apply LocallyConstant.ext |
| 47 | intro x |
| 48 | rfl |
| 49 | |
| 50 | @[simp] |
| 51 | theorem locallyConstantPresheaf_obj (X : TopCat.{u}) (U : Opens X) : |
| 52 | (locallyConstantPresheaf X).obj (op U) = ModuleCat.of ℂ (LocallyConstant U ℂ) := rfl |
| 53 | |
| 54 | @[simp] |
| 55 | theorem locallyConstantPresheaf_map_apply {X : TopCat.{u}} {U V : Opens X} |
| 56 | (h : V ≤ U) (f : LocallyConstant U ℂ) (x : V) : |
| 57 | LocallyConstant.toFun ((locallyConstantPresheaf X).map (homOfLE h).op f) x = |
| 58 | f ⟨x, h x.property⟩ := rfl |
| 59 | |
| 60 | /-- Local constancy is a genuinely local predicate on scalar functions. -/ |
| 61 | def locallyConstantPredicate (X : TopCat.{u}) : |
| 62 | TopCat.LocalPredicate (fun _ : X => ℂ) where |
| 63 | pred f := IsLocallyConstant f |
| 64 | res i f hf := hf.comp_continuous (Opens.isOpenEmbedding_of_le i.le).continuous |
| 65 | locality f h := by |
| 66 | intro t |
| 67 | apply isOpen_iff_forall_mem_open.2 |
| 68 | intro x hx |
| 69 | obtain ⟨V, hxV, i, hV⟩ := h x |
| 70 | refine ⟨i '' ((fun y : V => f (i y)) ⁻¹' t), ?_, ?_, ?_⟩ |
| 71 | · rintro y ⟨z, hz, rfl⟩ |
| 72 | exact hz |
| 73 | · exact (Opens.isOpenEmbedding_of_le i.le).isOpenMap _ (hV t) |
| 74 | · exact ⟨⟨x, hxV⟩, hx, by ext; rfl⟩ |
| 75 | |
| 76 | /-- Unbundling local constancy changes only the packaging of the actual functions. -/ |
| 77 | def locallyConstantSectionEquiv {X : TopCat.{u}} (U : Opens X) : |
| 78 | LocallyConstant U ℂ ≃ {f : U → ℂ // IsLocallyConstant f} where |
| 79 | toFun f := ⟨f, f.isLocallyConstant⟩ |
| 80 | invFun f := ⟨f.1, f.2⟩ |
| 81 | left_inv f := by cases f; rfl |
| 82 | right_inv f := by cases f; rfl |
| 83 | |
| 84 | /-- The underlying presheaf is the presheaf cut out by the local predicate. -/ |
| 85 | def locallyConstantUnderlyingIso (X : TopCat.{u}) : |
| 86 | locallyConstantPresheaf X ⋙ forget (ModuleCat.{u} ℂ) ≅ |
| 87 | TopCat.subpresheafToTypes (locallyConstantPredicate X).toPrelocalPredicate := |
| 88 | NatIso.ofComponents |
| 89 | (fun U => (locallyConstantSectionEquiv U.unop).toIso) |
| 90 | (by intro U V i; ext f; rfl) |
| 91 | |
| 92 | /-- Compatible locally constant sections glue uniquely. -/ |
| 93 | theorem locallyConstantPresheaf_isSheaf (X : TopCat.{u}) : |
| 94 | (locallyConstantPresheaf X).IsSheaf := by |
| 95 | apply (TopCat.Presheaf.isSheaf_iff_isSheaf_comp |
| 96 | (forget (ModuleCat.{u} ℂ)) (locallyConstantPresheaf X)).2 |
| 97 | exact TopCat.Presheaf.isSheaf_of_iso (locallyConstantUnderlyingIso X).symm |
| 98 | (TopCat.subpresheafToTypes.isSheaf (locallyConstantPredicate X)) |
| 99 | |
| 100 | /-- The genuine complex-module-valued sheaf of locally constant functions. -/ |
| 101 | def locallyConstantSheaf (X : TopCat.{u}) : X.Sheaf (ModuleCat.{u} ℂ) where |
| 102 | obj := locallyConstantPresheaf X |
| 103 | property := locallyConstantPresheaf_isSheaf X |
| 104 | |
| 105 | @[simp] |
| 106 | theorem locallyConstantSheaf_presheaf (X : TopCat.{u}) : |
| 107 | (locallyConstantSheaf X).presheaf = locallyConstantPresheaf X := rfl |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.AlgebraicTopology.DeRham.Comparison.LocallyConstantSheaf |