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.AbelianScheme.CartierDuality.SheafExactness |
| 2 | import Mathlib.Algebra.Category.Grp.EpiMono |
| 3 | import Mathlib.CategoryTheory.Limits.FunctorCategory.Basic |
| 4 | |
| 5 | /-! # Sheaf Kernels -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SheafKernels.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # CartierDuality: detecting actual fppf-sheaf kernels on every test scheme |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace CommutativeSheaves |
| 20 | |
| 21 | /-- The concrete kernel subgroup gives a kernel fork in commutative groups. -/ |
| 22 | def kernelCone {G Q : CommGrpCat.{u}} (q : G ⟶ Q) : KernelFork q := |
| 23 | KernelFork.ofι (Z := CommGrpCat.of q.hom.ker) (CommGrpCat.ofHom q.hom.ker.subtype) (by |
| 24 | apply CommGrpCat.hom_ext |
| 25 | apply MonoidHom.ext |
| 26 | rintro ⟨x, hx⟩ |
| 27 | exact hx) |
| 28 | |
| 29 | /-- The concrete kernel subgroup has the categorical universal property. -/ |
| 30 | def kernelIsLimit {G Q : CommGrpCat.{u}} (q : G ⟶ Q) : IsLimit (kernelCone q) := |
| 31 | Fork.IsLimit.mk _ |
| 32 | (fun s => CommGrpCat.ofHom (s.ι.hom.codRestrict _ (fun x => |
| 33 | ConcreteCategory.congr_hom s.condition x))) |
| 34 | (fun _ => rfl) |
| 35 | (fun _ _ h => by |
| 36 | apply CommGrpCat.hom_ext |
| 37 | apply MonoidHom.ext |
| 38 | intro x |
| 39 | exact Subtype.ext (ConcreteCategory.congr_hom h x)) |
| 40 | |
| 41 | /-- A monomorphism whose image is the concrete kernel gives the same |
| 42 | kernel, as a multiplicative equivalence. -/ |
| 43 | def kernelPointsEquiv {H G Q : CommGrpCat.{u}} (i : H ⟶ G) (q : G ⟶ Q) |
| 44 | (w : i ≫ q = 0) [Mono i] (h : ∀ x : G, q x = 1 → ∃ y : H, i y = x) : H ≃* q.hom.ker := |
| 45 | MulEquiv.ofBijective |
| 46 | (i.hom.codRestrict q.hom.ker (fun x => ConcreteCategory.congr_hom w x)) |
| 47 | ⟨fun x y he => (CommGrpCat.mono_iff_injective i).mp inferInstance (congrArg Subtype.val he), |
| 48 | fun x => by |
| 49 | obtain ⟨y, hy⟩ := h x.val x.property |
| 50 | exact ⟨y, Subtype.ext hy⟩⟩ |
| 51 | |
| 52 | /-- A pointwise kernel description of commutative groups is its |
| 53 | categorical kernel description. -/ |
| 54 | def kernelIsLimitOfPoints {H G Q : CommGrpCat.{u}} (i : H ⟶ G) (q : G ⟶ Q) |
| 55 | (w : i ≫ q = 0) [Mono i] (h : ∀ x : G, q x = 1 → ∃ y : H, i y = x) : |
| 56 | IsLimit (KernelFork.ofι i w) := |
| 57 | IsLimit.ofIsoLimit (kernelIsLimit q) |
| 58 | (Fork.ext (kernelPointsEquiv i q w h).toCommGrpIso rfl).symm |
| 59 | |
| 60 | end CommutativeSheaves |
| 61 | |
| 62 | namespace Schemes |
| 63 | |
| 64 | /-- A monomorphism of commutative fppf sheaves is the kernel of a map |
| 65 | when its sections are the kernel on every test scheme. -/ |
| 66 | def sheafKernelIsLimitOfPoints {S : Scheme.{u}} {H G Q : CommutativeSheavesAb.Construction.Schemes.FppfAb S} |
| 67 | (i : H ⟶ G) (q : G ⟶ Q) (w : i ≫ q = 0) [Mono i] |
| 68 | (h : ∀ (T : Over S) (x : G.obj.obj (Opposite.op T)), |
| 69 | q.hom.app (Opposite.op T) x = 1 → |
| 70 | ∃ y : H.obj.obj (Opposite.op T), i.hom.app (Opposite.op T) y = x) : |
| 71 | IsLimit (KernelFork.ofι i w) := by |
| 72 | apply isLimitOfReflects (sheafToPresheaf (Scheme.fppfTopology.over S) CommGrpCat.{u + 1}) |
| 73 | apply evaluationJointlyReflectsLimits |
| 74 | intro T |
| 75 | let V := sheafToPresheaf (Scheme.fppfTopology.over S) CommGrpCat.{u + 1} ⋙ |
| 76 | (evaluation (Over S)ᵒᵖ CommGrpCat.{u + 1}).obj T |
| 77 | have hw : V.map i ≫ V.map q = 0 := by rw [← V.map_comp, w, V.map_zero] |
| 78 | have hi : Mono (V.map i) := inferInstance |
| 79 | have hk := CommutativeSheaves.kernelIsLimitOfPoints (V.map i) (V.map q) hw (h T.unop) |
| 80 | exact (isLimitMapConeForkEquiv' V w).symm hk |
| 81 | |
| 82 | end Schemes |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SheafKernels.Construction |