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.Sites.Limits |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.BoundaryCokernel |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.HomologySpecifiedCycles |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Kernels |
| 5 | |
| 6 | /-! # Acyclic Resolution Cohomology -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AcyclicResolutionCohomology.IntrinsicCech |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Global sections of an acyclic sheaf resolution compute actual sheaf cohomology in every degree. The comparison is constructed from cycle kernels and the connecting homomorphisms of short exact sheaf sequences. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 14 | universe u |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | attribute [local instance] comp_preservesFiniteLimits |
| 19 | variable {X : TopCat.{u}} |
| 20 | |
| 21 | def sheafTopEvaluation (X : TopCat.{u}) : |
| 22 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⥤ AddCommGrpCat.{u} := |
| 23 | sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 24 | (evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op ⊤) |
| 25 | |
| 26 | instance sheafTopEvaluation_additive : (sheafTopEvaluation X).Additive where |
| 27 | map_add := by intros; rfl |
| 28 | |
| 29 | instance sheafTopEvaluation_preservesFiniteLimits : PreservesFiniteLimits (sheafTopEvaluation X) := by |
| 30 | have : PreservesFiniteLimits (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) := inferInstance |
| 31 | have : PreservesFiniteLimits ((evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op ⊤)) := inferInstance |
| 32 | exact comp_preservesFiniteLimits _ _ |
| 33 | |
| 34 | def sheafTopSectionsComplex (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℕ) : |
| 35 | CochainComplex AddCommGrpCat.{u} ℕ := |
| 36 | ((sheafTopEvaluation X).mapHomologicalComplex (.up ℕ)).obj K |
| 37 | |
| 38 | def sheafTopSectionsHomologyCokernelIso |
| 39 | (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℕ) (n : ℕ) : |
| 40 | (sheafTopSectionsComplex K).homology (n + 1) ≅ |
| 41 | cokernel ((AcyclicSheafResolution.IntrinsicCech.resolutionDifferentialShortComplex K n).toCycles.hom.app (op ⊤)) := by |
| 42 | let S := AcyclicSheafResolution.IntrinsicCech.resolutionDifferentialShortComplex K n |
| 43 | let E := sheafTopEvaluation X |
| 44 | have : E.Additive := inferInstanceAs ((sheafTopEvaluation X).Additive) |
| 45 | let C := sheafTopSectionsComplex K |
| 46 | have wi : E.map S.iCycles ≫ (S.map E).g = 0 := by |
| 47 | change E.map S.iCycles ≫ E.map S.g = 0 |
| 48 | rw [← E.map_comp, S.iCycles_g, E.map_zero] |
| 49 | have hi : IsLimit (KernelFork.ofι (E.map S.iCycles) wi) := |
| 50 | KernelFork.mapIsLimit _ S.cyclesIsKernel E |
| 51 | have ha : E.map S.toCycles ≫ E.map S.iCycles = (S.map E).f := by |
| 52 | rw [← E.map_comp, S.toCycles_i] |
| 53 | rfl |
| 54 | exact C.homologyIsoSc' n (n + 1) (n + 2) (by simp) (by simp) ≪≫ |
| 55 | HomologySpecifiedCycles.homologySpecifiedCyclesIso (S.map E) (E.map S.iCycles) wi hi (E.map S.toCycles) ha |
| 56 | |
| 57 | variable (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℕ) |
| 58 | {F : TopCat.Sheaf AddCommGrpCat.{u} X} (e : F ⟶ K.X 0) |
| 59 | (w : e ≫ K.d 0 1 = 0) [he : Mono e] |
| 60 | (haug : (ShortComplex.mk e (K.d 0 1) w).Exact) |
| 61 | (hpos : ∀ n, (AcyclicSheafResolution.IntrinsicCech.resolutionDifferentialShortComplex K n).Exact) |
| 62 | (hK : ∀ p q, Subsingleton (((CategoryTheory.Sheaf.functorH (Opens.grothendieckTopology X) (q + 1) : |
| 63 | _ ⥤ AddCommGrpCat.{u}).obj (K.X p)))) |
| 64 | |
| 65 | include he |
| 66 | |
| 67 | def acyclicResolutionPositiveCohomologyIso (n : ℕ) : |
| 68 | (sheafTopSectionsComplex K).homology (n + 1) ≅ |
| 69 | AddCommGrpCat.of (((CategoryTheory.Sheaf.functorH (Opens.grothendieckTopology X) (n + 1) : |
| 70 | _ ⥤ AddCommGrpCat.{u}).obj F)) := by |
| 71 | refine sheafTopSectionsHomologyCokernelIso K n ≪≫ ?_ |
| 72 | cases n with |
| 73 | | zero => |
| 74 | exact HilbertConstruction.Sheaf.BoundaryCokernel.IntrinsicCech.sheafSectionBoundaryCokernelIso |
| 75 | (AcyclicSheafResolution.IntrinsicCech.initialResolutionCycleSequence_shortExact K e w haug hpos) (hK 0 0) |
| 76 | | succ n => |
| 77 | exact HilbertConstruction.Sheaf.BoundaryCokernel.IntrinsicCech.sheafSectionBoundaryCokernelIso |
| 78 | (AcyclicSheafResolution.IntrinsicCech.successiveResolutionCycleSequence_shortExact K hpos n) (hK (n + 1) 0) ≪≫ |
| 79 | (AcyclicResolutionDimensionShift.IntrinsicCech.resolutionCycleCohomologyShift K e w haug hpos hK n 0).toAddCommGrpIso |
| 80 | |
| 81 | def acyclicResolutionCohomologyIso (n : ℕ) : |
| 82 | (sheafTopSectionsComplex K).homology n ≅ |
| 83 | AddCommGrpCat.of (((CategoryTheory.Sheaf.functorH (Opens.grothendieckTopology X) n : |
| 84 | _ ⥤ AddCommGrpCat.{u}).obj F)) := by |
| 85 | cases n with |
| 86 | | succ n => exact acyclicResolutionPositiveCohomologyIso K e w haug hpos hK n |
| 87 | | zero => |
| 88 | let E := sheafTopEvaluation X |
| 89 | have : E.Additive := inferInstanceAs ((sheafTopEvaluation X).Additive) |
| 90 | have : PreservesFiniteLimits E := inferInstanceAs (PreservesFiniteLimits (sheafTopEvaluation X)) |
| 91 | let C := sheafTopSectionsComplex K |
| 92 | have wc : E.map e ≫ C.d 0 1 = 0 := by |
| 93 | change E.map e ≫ E.map (K.d 0 1) = 0 |
| 94 | rw [← E.map_comp, w, E.map_zero] |
| 95 | have hex : (ShortComplex.mk (E.map e) (C.d 0 1) wc).Exact := |
| 96 | haug.map_of_mono_of_preservesKernel E inferInstance inferInstance |
| 97 | let f := C.liftCycles (E.map e) 1 (by simp) wc |
| 98 | have : IsIso f := (CochainComplex.isIso_liftCycles_iff C (E.map e) wc).mpr |
| 99 | ⟨hex, inferInstance⟩ |
| 100 | exact C.isoHomologyπ₀.symm ≪≫ (asIso f).symm ≪≫ |
| 101 | (CategoryTheory.Sheaf.H.equiv₀ F isTerminalTop).symm.toAddCommGrpIso |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AcyclicResolutionCohomology.IntrinsicCech |