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.CategoryTheory.Generator.Sheaf |
| 2 | import Mathlib.Topology.Sheaves.Flasque |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Zariski.Cohomology |
| 4 | |
| 5 | /-! # Injective Sheaf Flasqueness -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.InjectiveSheafFlasqueness.ZariskiCohomology.FlasqueAcyclicity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | universe u |
| 12 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace _root_.AlgebraicGeometry |
| 13 | |
| 14 | abbrev AbSheaf (X : TopCat.{u}) := |
| 15 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 16 | |
| 17 | noncomputable abbrev freeAbelianRepresentable |
| 18 | {X : TopCat.{u}} (U : Opens X) : AbSheaf X := |
| 19 | (presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj |
| 20 | (yoneda.obj U ⋙ AddCommGrpCat.free) |
| 21 | |
| 22 | noncomputable def freeAbelianRepresentableMap |
| 23 | {X : TopCat.{u}} {U V : Opens X} (i : U ⟶ V) : |
| 24 | freeAbelianRepresentable U ⟶ freeAbelianRepresentable V := |
| 25 | (presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}).map |
| 26 | (Functor.whiskerRight (yoneda.map i) AddCommGrpCat.free) |
| 27 | |
| 28 | noncomputable def freeAbelianRepresentableHomEquiv |
| 29 | {X : TopCat.{u}} {U : Opens X} {F : AbSheaf X} : |
| 30 | (freeAbelianRepresentable U ⟶ F) ≃ F.obj.obj (op U) := |
| 31 | ((sheafificationAdjunction |
| 32 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).homEquiv _ _).trans <| |
| 33 | ((AddCommGrpCat.adj.whiskerRight (Opens X)ᵒᵖ).homEquiv _ _).trans |
| 34 | yonedaEquiv |
| 35 | |
| 36 | theorem freeAbelianRepresentableMap_mono |
| 37 | {X : TopCat.{u}} {U V : Opens X} (i : U ⟶ V) : |
| 38 | Mono (freeAbelianRepresentableMap i) := by |
| 39 | dsimp [freeAbelianRepresentableMap] |
| 40 | apply Functor.map_mono |
| 41 | |
| 42 | theorem freeAbelianRepresentableHomEquiv_map |
| 43 | {X : TopCat.{u}} {U V : Opens X} (i : U ⟶ V) |
| 44 | {F : AbSheaf X} (f : freeAbelianRepresentable V ⟶ F) : |
| 45 | freeAbelianRepresentableHomEquiv |
| 46 | (freeAbelianRepresentableMap i ≫ f) = |
| 47 | F.obj.map i.op (freeAbelianRepresentableHomEquiv f) := by |
| 48 | let a₁ := sheafificationAdjunction |
| 49 | (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 50 | let a₂ := AddCommGrpCat.adj.whiskerRight (Opens X)ᵒᵖ |
| 51 | let α := Functor.whiskerRight (yoneda.map i) AddCommGrpCat.free |
| 52 | have h₁ := a₁.homEquiv_naturality_left α f |
| 53 | have h₂ := a₂.homEquiv_naturality_left (yoneda.map i) |
| 54 | (a₁.homEquiv _ _ f) |
| 55 | dsimp [freeAbelianRepresentableHomEquiv, |
| 56 | freeAbelianRepresentableMap, freeAbelianRepresentable, a₁, a₂, α] at h₁ h₂ ⊢ |
| 57 | rw [h₁, h₂] |
| 58 | exact (yonedaEquiv_naturality _ _).symm |
| 59 | |
| 60 | /-- An injective abelian sheaf is flasque. This is the section-extension |
| 61 | property needed after restricting an injective resolution to an open set. -/ |
| 62 | theorem injectiveSheaf_isFlasque |
| 63 | {X : TopCat.{u}} (F : AbSheaf X) [Injective F] : |
| 64 | TopCat.Sheaf.IsFlasque F := by |
| 65 | constructor |
| 66 | intro U V i |
| 67 | rw [AddCommGrpCat.epi_iff_surjective] |
| 68 | intro s |
| 69 | let g : freeAbelianRepresentable V.unop ⟶ F := |
| 70 | freeAbelianRepresentableHomEquiv.symm s |
| 71 | let m : freeAbelianRepresentable V.unop ⟶ |
| 72 | freeAbelianRepresentable U.unop := |
| 73 | freeAbelianRepresentableMap i.unop |
| 74 | let : Mono m := freeAbelianRepresentableMap_mono i.unop |
| 75 | let h : freeAbelianRepresentable U.unop ⟶ F := |
| 76 | Injective.factorThru g m |
| 77 | refine ⟨freeAbelianRepresentableHomEquiv h, ?_⟩ |
| 78 | have hnat : F.obj.map i (freeAbelianRepresentableHomEquiv h) = |
| 79 | freeAbelianRepresentableHomEquiv (m ≫ h) := by |
| 80 | simpa only [m, Quiver.Hom.op_unop, Opposite.op_unop] using |
| 81 | (freeAbelianRepresentableHomEquiv_map i.unop h).symm |
| 82 | rw [hnat, Injective.comp_factorThru] |
| 83 | exact Equiv.apply_symm_apply _ _ |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.InjectiveSheafFlasqueness.ZariskiCohomology.FlasqueAcyclicity |