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.DivisorClass.Chern.Sheaf.CohomologyLifts |
| 2 | import Mathlib.CategoryTheory.Abelian.Injective.Ext |
| 3 | |
| 4 | /-! # Resolution Classes -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Sheaf.ResolutionClasses |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual global cocycle representatives of sheaf Ext cohomology. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian _root_.TopologicalSpace Opposite |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | |
| 18 | variable {X : TopCat.{0}} |
| 19 | |
| 20 | abbrev sheafCohomologySource (X : TopCat.{0}) : TopCat.Sheaf AddCommGrpCat.{0} X := |
| 21 | (constantSheaf (Opens.grothendieckTopology X) AddCommGrpCat).obj (AddCommGrpCat.of (ULift ℤ)) |
| 22 | |
| 23 | def sheafHomGlobalEquiv (F : TopCat.Sheaf AddCommGrpCat.{0} X) : |
| 24 | (sheafCohomologySource X ⟶ F) ≃+ F.obj.obj (op (⊤ : Opens X)) := |
| 25 | ((constantSheafAdj (Opens.grothendieckTopology X) AddCommGrpCat isTerminalTop).homAddEquiv _ F).trans |
| 26 | (AddCommGrpCat.uliftZMultiplesAddEquiv _) |
| 27 | |
| 28 | theorem sheafHomGlobalEquiv_naturality {F G : TopCat.Sheaf AddCommGrpCat.{0} X} |
| 29 | (φ : F ⟶ G) (f : sheafCohomologySource X ⟶ F) : |
| 30 | sheafHomGlobalEquiv G (f ≫ φ) = φ.hom.app (op (⊤ : Opens X)) (sheafHomGlobalEquiv F f) := by |
| 31 | rfl |
| 32 | |
| 33 | variable {F : TopCat.Sheaf AddCommGrpCat.{0} X} (R : InjectiveResolution F) |
| 34 | |
| 35 | def sheafResolutionCycleClass (n : ℕ) |
| 36 | (s : (R.cocomplex.X n).obj.obj (op (⊤ : Opens X))) |
| 37 | (hs : (R.cocomplex.d n (n + 1)).hom.app (op (⊤ : Opens X)) s = 0) : |
| 38 | CategoryTheory.Sheaf.H F n := |
| 39 | R.extMk ((sheafHomGlobalEquiv (R.cocomplex.X n)).symm s) (n + 1) rfl (by |
| 40 | apply (sheafHomGlobalEquiv (R.cocomplex.X (n + 1))).injective |
| 41 | rw [sheafHomGlobalEquiv_naturality, AddEquiv.apply_symm_apply, map_zero] |
| 42 | exact hs) |
| 43 | |
| 44 | /-- Every actual sheaf cohomology class has a global cocycle in an injective resolution. -/ |
| 45 | theorem exists_sheafResolutionCycle (n : ℕ) (a : CategoryTheory.Sheaf.H F n) : |
| 46 | ∃ (s : (R.cocomplex.X n).obj.obj (op (⊤ : Opens X))) |
| 47 | (hs : (R.cocomplex.d n (n + 1)).hom.app (op (⊤ : Opens X)) s = 0), |
| 48 | sheafResolutionCycleClass R n s hs = a := by |
| 49 | obtain ⟨f, hf, hfa⟩ := R.extMk_surjective a (n + 1) rfl |
| 50 | have hs : (R.cocomplex.d n (n + 1)).hom.app (op (⊤ : Opens X)) |
| 51 | (sheafHomGlobalEquiv (R.cocomplex.X n) f) = 0 := by |
| 52 | rw [← sheafHomGlobalEquiv_naturality, hf, map_zero] |
| 53 | refine ⟨sheafHomGlobalEquiv (R.cocomplex.X n) f, hs, ?_⟩ |
| 54 | simpa only [sheafResolutionCycleClass, AddEquiv.symm_apply_apply] using hfa |
| 55 | |
| 56 | /-- Vanishing means that this same global cocycle is an actual global coboundary. -/ |
| 57 | theorem sheafResolutionCycleClass_eq_zero_iff (n : ℕ) |
| 58 | (s : (R.cocomplex.X (n + 1)).obj.obj (op (⊤ : Opens X))) |
| 59 | (hs : (R.cocomplex.d (n + 1) (n + 1 + 1)).hom.app (op (⊤ : Opens X)) s = 0) : |
| 60 | sheafResolutionCycleClass R (n + 1) s hs = 0 ↔ |
| 61 | ∃ t : (R.cocomplex.X n).obj.obj (op (⊤ : Opens X)), |
| 62 | (R.cocomplex.d n (n + 1)).hom.app (op (⊤ : Opens X)) t = s := by |
| 63 | rw [sheafResolutionCycleClass, R.extMk_eq_zero_iff _ _ _ _ n rfl] |
| 64 | constructor |
| 65 | · rintro ⟨f, hf⟩ |
| 66 | refine ⟨sheafHomGlobalEquiv (R.cocomplex.X n) f, ?_⟩ |
| 67 | rw [← sheafHomGlobalEquiv_naturality, hf, AddEquiv.apply_symm_apply] |
| 68 | · rintro ⟨t, ht⟩ |
| 69 | refine ⟨(sheafHomGlobalEquiv (R.cocomplex.X n)).symm t, ?_⟩ |
| 70 | apply (sheafHomGlobalEquiv (R.cocomplex.X (n + 1))).injective |
| 71 | rw [sheafHomGlobalEquiv_naturality, AddEquiv.apply_symm_apply, AddEquiv.apply_symm_apply] |
| 72 | exact ht |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Sheaf.ResolutionClasses |