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.Picard.Homomorphisms.Diagonalizable |
| 2 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.KernelGroup |
| 3 | import Mathlib.CategoryTheory.Subobject.Basic |
| 4 | |
| 5 | /-! # Multiplicative Subgroup -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.MultiplicativeSubgroup |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A Frobenius-independent closed subscheme generated by the finite |
| 12 | split multiplicative p-torsion subgroups. On an algebraically closed |
| 13 | ordinary fiber, its defining ideal is proved to be the ideal of the |
| 14 | Frobenius kernel. All comparisons are scheme-theoretic. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped _root_.CategoryTheory.MonObj |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | namespace Construction |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable (p : ℕ) (k : Type u) [Field k] |
| 26 | variable (A : Over (Spec (.of k))) [GrpObj A] |
| 27 | |
| 28 | /-- The schematic union of all closed subgroups isomorphic to a finite |
| 29 | product of μ_p. This definition makes no reference to Frobenius. -/ |
| 30 | def multiplicativePTorsionIdeal : A.left.IdealSheafData := |
| 31 | sInf {I | ∃ (n : ℕ) (j : Diagonalizable.Construction.splitMultiplicativePTorsion p k n ⟶ A), |
| 32 | IsMonHom j ∧ IsClosedImmersion j.left ∧ j.left.ker = I} |
| 33 | |
| 34 | def multiplicativePTorsionScheme : Over (Spec (.of k)) := |
| 35 | Over.mk ((multiplicativePTorsionIdeal p k A).subschemeι ≫ A.hom) |
| 36 | |
| 37 | def multiplicativePTorsionInclusion : multiplicativePTorsionScheme p k A ⟶ A := |
| 38 | Over.homMk (multiplicativePTorsionIdeal p k A).subschemeι rfl |
| 39 | |
| 40 | instance multiplicativePTorsionInclusion_closed : |
| 41 | IsClosedImmersion (multiplicativePTorsionInclusion p k A).left := |
| 42 | inferInstanceAs (IsClosedImmersion (multiplicativePTorsionIdeal p k A).subschemeι) |
| 43 | |
| 44 | instance multiplicativePTorsionInclusion_mono : Mono (multiplicativePTorsionInclusion p k A) := |
| 45 | Over.mono_of_mono_left _ |
| 46 | |
| 47 | def multiplicativePTorsion : Subobject A := Subobject.mk (multiplicativePTorsionInclusion p k A) |
| 48 | |
| 49 | variable [Fact p.Prime] [CharP k p] |
| 50 | |
| 51 | theorem frobeniusKernel_inclusion_closed [IsSeparated A.hom] : |
| 52 | IsClosedImmersion (Kernel.Construction.kernelInclusion (Frobenius.Construction.relativeFrobenius p Fact.out |
| 53 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A)).left := by |
| 54 | have : IsSeparated (Frobenius.Construction.frobeniusTwist p Fact.out |
| 55 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A).hom := |
| 56 | inferInstanceAs (IsSeparated (CategoryTheory.Limits.pullback.snd A.hom |
| 57 | (Frobenius.Construction.absoluteFrobenius p Fact.out (Spec (.of k)) |
| 58 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p))))) |
| 59 | exact Kernel.Construction.kernelInclusion_closedImmersion _ |
| 60 | |
| 61 | theorem frobeniusKernel_ideal_le_multiplicativePTorsion : |
| 62 | (Kernel.Construction.kernelInclusion (Frobenius.Construction.relativeFrobenius p Fact.out |
| 63 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A)).left.ker ≤ |
| 64 | multiplicativePTorsionIdeal p k A := by |
| 65 | apply le_sInf |
| 66 | rintro I ⟨n, j, hj, _, rfl⟩ |
| 67 | have : IsMonHom j := hj |
| 68 | obtain ⟨a, ha, _⟩ := Diagonalizable.Construction.splitMultiplicativePTorsion_factors_frobeniusKernel |
| 69 | p Fact.out k (CharP.cast_eq_zero k p) n A j |
| 70 | have h := a.left.le_ker_comp |
| 71 | (Kernel.Construction.kernelInclusion (Frobenius.Construction.relativeFrobenius p Fact.out |
| 72 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A)).left |
| 73 | exact h.trans_eq (congrArg Scheme.Hom.ker (congrArg Over.Hom.left ha)) |
| 74 | |
| 75 | theorem multiplicativePTorsionIdeal_eq_of_kernelIso |
| 76 | [IsSeparated A.hom] |
| 77 | (n : ℕ) (e : Grp.mk (Kernel.Construction.kernelScheme (Frobenius.Construction.relativeFrobenius p Fact.out |
| 78 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A)) ≅ |
| 79 | Grp.mk (Diagonalizable.Construction.splitMultiplicativePTorsion p k n)) : |
| 80 | multiplicativePTorsionIdeal p k A = |
| 81 | (Kernel.Construction.kernelInclusion (Frobenius.Construction.relativeFrobenius p Fact.out |
| 82 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A)).left.ker := by |
| 83 | let F := Frobenius.Construction.relativeFrobenius p Fact.out (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A |
| 84 | have : IsClosedImmersion (Kernel.Construction.kernelInclusion F).left := frobeniusKernel_inclusion_closed p k A |
| 85 | let j := e.inv.hom.hom ≫ Kernel.Construction.kernelInclusion F |
| 86 | have : IsMonHom j := inferInstanceAs (IsMonHom (e.inv.hom.hom ≫ Kernel.Construction.kernelInclusion F)) |
| 87 | have : IsIso e.inv.hom.hom.left := |
| 88 | inferInstanceAs (IsIso ((Grp.forget _ ⋙ Over.forget _).map e.inv)) |
| 89 | have : IsClosedImmersion j.left := inferInstanceAs |
| 90 | (IsClosedImmersion (e.inv.hom.hom.left ≫ (Kernel.Construction.kernelInclusion F).left)) |
| 91 | apply le_antisymm |
| 92 | · apply sInf_le |
| 93 | refine ⟨n, j, inferInstance, inferInstance, ?_⟩ |
| 94 | exact Scheme.Hom.ker_comp_of_isIso e.inv.hom.hom.left (Kernel.Construction.kernelInclusion F).left |
| 95 | · exact frobeniusKernel_ideal_le_multiplicativePTorsion p k A |
| 96 | |
| 97 | theorem closedSubobject_eq_of_ideal_eq {S : Scheme.{u}} {G H A : Over S} |
| 98 | (i : G ⟶ A) (j : H ⟶ A) [IsClosedImmersion i.left] [IsClosedImmersion j.left] |
| 99 | [Mono i] [Mono j] (h : i.left.ker = j.left.ker) : Subobject.mk i = Subobject.mk j := by |
| 100 | let a : G ⟶ H := Over.homMk (IsClosedImmersion.lift j.left i.left h.ge) (by |
| 101 | rw [← Over.w j, ← Category.assoc, IsClosedImmersion.lift_fac, Over.w i]) |
| 102 | let b : H ⟶ G := Over.homMk (IsClosedImmersion.lift i.left j.left h.le) (by |
| 103 | rw [← Over.w i, ← Category.assoc, IsClosedImmersion.lift_fac, Over.w j]) |
| 104 | exact le_antisymm |
| 105 | (Subobject.mk_le_mk_of_comm a (Over.OverMorphism.ext (IsClosedImmersion.lift_fac _ _ _))) |
| 106 | (Subobject.mk_le_mk_of_comm b (Over.OverMorphism.ext (IsClosedImmersion.lift_fac _ _ _))) |
| 107 | |
| 108 | theorem frobeniusKernel_eq_multiplicativePTorsion_of_iso |
| 109 | [IsSeparated A.hom] |
| 110 | (n : ℕ) (e : Grp.mk (Kernel.Construction.kernelScheme (Frobenius.Construction.relativeFrobenius p Fact.out |
| 111 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A)) ≅ |
| 112 | Grp.mk (Diagonalizable.Construction.splitMultiplicativePTorsion p k n)) : |
| 113 | Subobject.mk (Kernel.Construction.kernelInclusion (Frobenius.Construction.relativeFrobenius p Fact.out |
| 114 | (Affine.Construction.prime_eq_zero_spec p k (CharP.cast_eq_zero k p)) A)) = multiplicativePTorsion p k A := by |
| 115 | have := frobeniusKernel_inclusion_closed p k A |
| 116 | apply closedSubobject_eq_of_ideal_eq |
| 117 | change _ = (multiplicativePTorsionIdeal p k A).subschemeι.ker |
| 118 | rw [Scheme.IdealSheafData.ker_subschemeι] |
| 119 | exact (multiplicativePTorsionIdeal_eq_of_kernelIso p k A n e).symm |
| 120 | |
| 121 | end Construction |
| 122 | |
| 123 | end |
| 124 | |
| 125 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.MultiplicativeSubgroup |