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.AlgebraicGeometry.Comparison.Betti.SheafificationBasis |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Presheaf.Free |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Localization |
| 4 | |
| 5 | /-! # Frame Bases -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Module.FrameBases.Frames |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Global sections define actual module frames, and a basis of local frames proves a sheaf isomorphism. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 16 | |
| 17 | variable {X : TopCat.{0}} (R : Sheaf (Opens.grothendieckTopology X) RingCat.{0}) |
| 18 | (P : PresheafOfModules.{0} R.obj) {ι : Type} (b : ι → P.obj (op ⊤)) |
| 19 | |
| 20 | def restrictedGenerators : (Functor.const (Opens X)ᵒᵖ).obj ι ⟶ P.presheaf ⋙ forget AddCommGrpCat where |
| 21 | app U := ↾fun i => P.map (homOfLE (show U.unop ≤ ⊤ from le_top)).op (b i) |
| 22 | naturality U V f := by |
| 23 | ext i |
| 24 | change P.map (homOfLE (show V.unop ≤ ⊤ from le_top)).op (b i) = |
| 25 | P.map f (P.map (homOfLE (show U.unop ≤ ⊤ from le_top)).op (b i)) |
| 26 | exact P.map_comp_apply (homOfLE (show U.unop ≤ ⊤ from le_top)).op f (b i) |
| 27 | |
| 28 | def frame : PresheafOfModules.freeObj (R := R.obj) ((Functor.const (Opens X)ᵒᵖ).obj ι) ⟶ P := |
| 29 | PresheafOfModules.freeObjDesc (restrictedGenerators R P b) |
| 30 | |
| 31 | theorem frame_apply (U : (Opens X)ᵒᵖ) (i : ι) : |
| 32 | (frame R P b).app U (ModuleCat.freeMk i) = |
| 33 | P.map (homOfLE (show U.unop ≤ ⊤ from le_top)).op (b i) := |
| 34 | ModuleCat.freeDesc_apply ((restrictedGenerators R P b).app U) i |
| 35 | |
| 36 | theorem sheafified_frame_isIso {B : Set (Opens X)} (hB : Opens.IsBasis B) |
| 37 | (hb : ∀ U ∈ B, IsIso ((frame R P b).app (op U))) : |
| 38 | IsIso ((PresheafOfModules.sheafification.{0} (R := R) (𝟙 R.obj)).map (frame R P b)) := by |
| 39 | let a := (PresheafOfModules.toPresheaf R.obj).map (frame R P b) |
| 40 | have ha : ∀ U ∈ B, IsIso (a.app (op U)) := by |
| 41 | intro U hU |
| 42 | have := hb U hU |
| 43 | exact Functor.map_isIso (forget₂ (ModuleCat (R.obj.obj (op U))) AddCommGrpCat) |
| 44 | ((frame R P b).app (op U)) |
| 45 | have : IsIso ((SheafOfModules.toSheaf.{0} R).map |
| 46 | ((PresheafOfModules.sheafification.{0} (R := R) (𝟙 R.obj)).map (frame R P b))) := |
| 47 | SheafificationBasis.map_isIso a hB ha |
| 48 | exact isIso_of_reflects_iso _ (SheafOfModules.toSheaf.{0} R) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | /-! Restricted sections that are actual bases make the constructed module frame invertible. -/ |
| 53 | |
| 54 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 55 | |
| 56 | variable {X : TopCat.{0}} (R : Sheaf (Opens.grothendieckTopology X) RingCat.{0}) |
| 57 | (P : PresheafOfModules.{0} R.obj) {ι : Type} (b : ι → P.obj (op ⊤)) |
| 58 | |
| 59 | theorem frame_app_isIso (U : (Opens X)ᵒᵖ) (c : Module.Basis ι (R.obj.obj U) (P.obj U)) |
| 60 | (hc : ∀ i, P.map (homOfLE (show U.unop ≤ ⊤ from le_top)).op (b i) = c i) : |
| 61 | IsIso ((frame R P b).app U) := by |
| 62 | let e : (ModuleCat.free (R.obj.obj U)).obj ι ≅ P.obj U := c.repr.symm.toModuleIso |
| 63 | have he : (frame R P b).app U = e.hom := by |
| 64 | apply ModuleCat.free_hom_ext |
| 65 | intro i |
| 66 | erw [frame_apply, hc] |
| 67 | exact (c.repr_symm_single_one i).symm |
| 68 | rw [he] |
| 69 | change IsIso e.hom |
| 70 | infer_instance |
| 71 | |
| 72 | theorem sheafified_frame_isIso_of_bases {B : Set (Opens X)} (hB : Opens.IsBasis B) |
| 73 | (c : ∀ U ∈ B, Module.Basis ι (R.obj.obj (op U)) (P.obj (op U))) |
| 74 | (hc : ∀ U hU i, P.map (homOfLE (show U ≤ ⊤ from le_top)).op (b i) = c U hU i) : |
| 75 | IsIso ((PresheafOfModules.sheafification.{0} (R := R) (𝟙 R.obj)).map (frame R P b)) := |
| 76 | sheafified_frame_isIso R P b hB (fun U hU => frame_app_isIso R P b (op U) (c U hU) (hc U hU)) |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.Comparison.Betti.Module.FrameBases.Frames |