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.AlgebraicGeometry.Geometrically.Connected |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 5 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 6 | import Mathlib.Algebra.Group.Subgroup.Ker |
| 7 | import Mathlib.Data.ZMod.Basic |
| 8 | import Mathlib.Topology.LocallyConstant.Algebra |
| 9 | |
| 10 | /-! # Schemes -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | Concrete abelian-scheme infrastructure for HilbertConstruction. An abelian scheme is a |
| 18 | commutative group scheme that is proper and smooth with geometrically |
| 19 | connected fibers. Relative dimension is fixed. This file supplies no moduli |
| 20 | representability assumption and does not import the statement placeholder. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 24 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | /-- An abelian scheme of relative dimension `g` over `S`. -/ |
| 29 | structure AbelianScheme (g : ℕ) (S : Scheme.{u}) where |
| 30 | scheme : Over S |
| 31 | group : GrpObj scheme |
| 32 | commutative : IsCommMonObj scheme |
| 33 | proper : IsProper scheme.hom |
| 34 | smoothDimension : SmoothOfRelativeDimension g scheme.hom |
| 35 | connected : GeometricallyConnected scheme.hom |
| 36 | |
| 37 | attribute [instance] AbelianScheme.group AbelianScheme.commutative |
| 38 | AbelianScheme.proper AbelianScheme.smoothDimension AbelianScheme.connected |
| 39 | |
| 40 | namespace AbelianScheme |
| 41 | |
| 42 | variable {g : ℕ} {S T : Scheme.{u}} |
| 43 | |
| 44 | instance (A : AbelianScheme g S) : Smooth A.scheme.hom := |
| 45 | SmoothOfRelativeDimension.smooth g A.scheme.hom |
| 46 | |
| 47 | /-- Base change of an abelian scheme along any morphism of base schemes. -/ |
| 48 | def pullback (A : AbelianScheme g S) (f : T ⟶ S) : AbelianScheme g T where |
| 49 | scheme := (Over.pullback f).obj A.scheme |
| 50 | group := Functor.grpObjObj |
| 51 | commutative := inferInstance |
| 52 | proper := inferInstanceAs (IsProper (Limits.pullback.snd A.scheme.hom f)) |
| 53 | smoothDimension := by |
| 54 | have h := smoothOfRelativeDimension_isStableUnderBaseChange (n := g) |
| 55 | exact h.of_isPullback (IsPullback.of_hasPullback A.scheme.hom f) A.smoothDimension |
| 56 | connected := inferInstanceAs |
| 57 | (GeometricallyConnected (Limits.pullback.snd A.scheme.hom f)) |
| 58 | |
| 59 | /-- Points of an abelian scheme over a test scheme over its base. -/ |
| 60 | abbrev Points (A : AbelianScheme g S) (T : Over S) := T ⟶ A.scheme |
| 61 | |
| 62 | instance (A : AbelianScheme g S) (T : Over S) : CommGroup (A.Points T) := |
| 63 | CategoryTheory.Hom.commGroup |
| 64 | |
| 65 | /-- Pullback of points is precomposition with the test-scheme morphism. -/ |
| 66 | def pointsPullback (A : AbelianScheme g S) {T₁ T₂ : Over S} (f : T₁ ⟶ T₂) : |
| 67 | A.Points T₂ →* A.Points T₁ := |
| 68 | ((yonedaGrpObj A.scheme).map f.op).hom |
| 69 | |
| 70 | @[simp] |
| 71 | theorem pointsPullback_apply (A : AbelianScheme g S) {T₁ T₂ : Over S} |
| 72 | (f : T₁ ⟶ T₂) (x : A.Points T₂) : |
| 73 | A.pointsPullback f x = f ≫ x := rfl |
| 74 | |
| 75 | /-- The subgroup of points killed by multiplication by `N`. -/ |
| 76 | def torsionPoints (A : AbelianScheme g S) (N : ℕ) (T : Over S) : |
| 77 | Subgroup (A.Points T) := |
| 78 | (powMonoidHom N).ker |
| 79 | |
| 80 | @[simp] |
| 81 | theorem mem_torsionPoints (A : AbelianScheme g S) (N : ℕ) (T : Over S) |
| 82 | (x : A.Points T) : x ∈ A.torsionPoints N T ↔ x ^ N = 1 := Iff.rfl |
| 83 | |
| 84 | /-- Base change of torsion points. -/ |
| 85 | def torsionPullback (A : AbelianScheme g S) (N : ℕ) |
| 86 | {T₁ T₂ : Over S} (f : T₁ ⟶ T₂) : |
| 87 | A.torsionPoints N T₂ →* A.torsionPoints N T₁ where |
| 88 | toFun x := ⟨A.pointsPullback f x, by |
| 89 | change (A.pointsPullback f x) ^ N = 1 |
| 90 | rw [← map_pow, (A.mem_torsionPoints N T₂ x).mp x.property, map_one]⟩ |
| 91 | map_one' := Subtype.ext (map_one (A.pointsPullback f)) |
| 92 | map_mul' x y := Subtype.ext (map_mul (A.pointsPullback f) x.val y.val) |
| 93 | |
| 94 | /-- The group-valued functor of `N`-torsion points. -/ |
| 95 | def torsionFunctor (A : AbelianScheme g S) (N : ℕ) : |
| 96 | (Over S)ᵒᵖ ⥤ GrpCat.{u} where |
| 97 | obj T := GrpCat.of (A.torsionPoints N T.unop) |
| 98 | map f := GrpCat.ofHom (A.torsionPullback N f.unop) |
| 99 | map_id T := by |
| 100 | apply GrpCat.hom_ext |
| 101 | apply MonoidHom.ext |
| 102 | intro x |
| 103 | apply Subtype.ext |
| 104 | exact Category.id_comp x.val |
| 105 | map_comp f h := by |
| 106 | apply GrpCat.hom_ext |
| 107 | apply MonoidHom.ext |
| 108 | intro x |
| 109 | apply Subtype.ext |
| 110 | exact Category.assoc _ _ x.val |
| 111 | |
| 112 | /-- Sections of the finite constant group scheme `(ℤ/Nℤ)^(2g)`. |
| 113 | Locally constant functions allow disconnected test schemes. -/ |
| 114 | def constantLevelFunctor (g N : ℕ) (S : Scheme.{u}) : |
| 115 | (Over S)ᵒᵖ ⥤ GrpCat.{u} where |
| 116 | obj T := GrpCat.of |
| 117 | (LocallyConstant T.unop.left (Multiplicative (Fin (2 * g) → ZMod N))) |
| 118 | map f := GrpCat.ofHom |
| 119 | (LocallyConstant.comapMonoidHom ⟨f.unop.left, f.unop.left.continuous⟩) |
| 120 | map_id T := by |
| 121 | ext x t |
| 122 | rfl |
| 123 | map_comp f h := by |
| 124 | ext x t |
| 125 | rfl |
| 126 | |
| 127 | /-- A full ordered level structure, expressed on all test schemes through |
| 128 | the functors of points of the constant group scheme and of `A[N]`. -/ |
| 129 | def FullLevel (A : AbelianScheme g S) (N : ℕ) := |
| 130 | constantLevelFunctor g N S ≅ A.torsionFunctor N |
| 131 | |
| 132 | end AbelianScheme |
| 133 | |
| 134 | /-- The level-invertibility condition remains valid after arbitrary base change. -/ |
| 135 | theorem level_unit_under_base_change {S T : Scheme.{u}} (f : T ⟶ S) |
| 136 | (N : ℕ) (hN : IsUnit (N : Γ(S, ⊤))) : IsUnit (N : Γ(T, ⊤)) := by |
| 137 | simpa using hN.map f.appTop.hom |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes |