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.Sheaves.LocalPredicate |
| 2 | import Mathlib.Topology.Sheaves.Forget |
| 3 | import Mathlib.Topology.LocallyConstant.Algebra |
| 4 | import Mathlib.Algebra.Category.Grp.Limits |
| 5 | |
| 6 | /-! # Integral Constant Sheaf -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.IntegralConstantSheaf |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual integral constant sheaf, as locally constant integer-valued functions. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | |
| 20 | def locallyConstantIntegerPresheaf (X : TopCat.{0}) : X.Presheaf AddCommGrpCat where |
| 21 | obj U := AddCommGrpCat.of (LocallyConstant U.unop ℤ) |
| 22 | map i := AddCommGrpCat.ofHom { |
| 23 | toFun f := ⟨fun x => f (i.unop x), f.isLocallyConstant.comp_continuous |
| 24 | (Opens.isOpenEmbedding_of_le i.unop.le).continuous⟩ |
| 25 | map_zero' := rfl |
| 26 | map_add' := fun _ _ => rfl } |
| 27 | map_id U := by |
| 28 | apply AddCommGrpCat.hom_ext |
| 29 | apply AddMonoidHom.ext |
| 30 | intro f |
| 31 | apply LocallyConstant.ext |
| 32 | intro x |
| 33 | rfl |
| 34 | map_comp i j := by |
| 35 | apply AddCommGrpCat.hom_ext |
| 36 | apply AddMonoidHom.ext |
| 37 | intro f |
| 38 | apply LocallyConstant.ext |
| 39 | intro x |
| 40 | rfl |
| 41 | |
| 42 | def locallyConstantIntegerPredicate (X : TopCat.{0}) : TopCat.LocalPredicate (fun _ : X => ℤ) 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 locallyConstantIntegerSectionEquiv {X : TopCat.{0}} (U : Opens X) : |
| 57 | LocallyConstant U ℤ ≃ {f : U → ℤ // 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 locallyConstantIntegerUnderlyingIso (X : TopCat.{0}) : |
| 64 | locallyConstantIntegerPresheaf X ⋙ forget AddCommGrpCat ≅ |
| 65 | TopCat.subpresheafToTypes (locallyConstantIntegerPredicate X).toPrelocalPredicate := |
| 66 | NatIso.ofComponents (fun U => (locallyConstantIntegerSectionEquiv U.unop).toIso) |
| 67 | (by intro U V i; ext f; rfl) |
| 68 | |
| 69 | theorem locallyConstantIntegerPresheaf_isSheaf (X : TopCat.{0}) : |
| 70 | (locallyConstantIntegerPresheaf X).IsSheaf := by |
| 71 | apply (TopCat.Presheaf.isSheaf_iff_isSheaf_comp |
| 72 | (forget AddCommGrpCat) (locallyConstantIntegerPresheaf X)).2 |
| 73 | exact TopCat.Presheaf.isSheaf_of_iso (locallyConstantIntegerUnderlyingIso X).symm |
| 74 | (TopCat.subpresheafToTypes.isSheaf (locallyConstantIntegerPredicate X)) |
| 75 | |
| 76 | def integralConstantSheaf (X : TopCat.{0}) : TopCat.Sheaf AddCommGrpCat X where |
| 77 | obj := locallyConstantIntegerPresheaf X |
| 78 | property := locallyConstantIntegerPresheaf_isSheaf X |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.DivisorClass.Chern.IntegralConstantSheaf |