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.AbelianModuli.HilbertConstruction.ConstantScheme.Iff |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TorsionScheme |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 4 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 5 | |
| 6 | /-! # Scheme -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The geometric isomorphism specified by a full level structure. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 15 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {g N : ℕ} {S : Scheme.{u}} |
| 20 | |
| 21 | /-- A constant scheme is etale over its base. -/ |
| 22 | instance Level.Scheme.constantScheme_etale (S : Scheme.{u}) (I : Type u) : |
| 23 | Etale (ConstantScheme.Iff.constantScheme S I).hom := by |
| 24 | have := HasRingHomProperty.instIsZariskiLocalAtSource |
| 25 | (P := @Etale.{u}) (Q := @RingHom.Etale) |
| 26 | change Etale (Sigma.desc (fun _ : I => 𝟙 S)) |
| 27 | exact IsZariskiLocalAtSource.sigmaDesc (P := @Etale.{u}) |
| 28 | (fun _ => inferInstanceAs (Etale (𝟙 S))) |
| 29 | |
| 30 | /-- A constant scheme is locally quasi-finite over its base. -/ |
| 31 | instance Level.Scheme.constantScheme_locallyQuasiFinite (S : Scheme.{u}) (I : Type u) : |
| 32 | LocallyQuasiFinite (ConstantScheme.Iff.constantScheme S I).hom := by |
| 33 | have := HasRingHomProperty.instIsZariskiLocalAtSource |
| 34 | (P := @LocallyQuasiFinite.{u}) (Q := @RingHom.QuasiFinite) |
| 35 | change LocallyQuasiFinite (Sigma.desc (fun _ : I => 𝟙 S)) |
| 36 | exact IsZariskiLocalAtSource.sigmaDesc (P := @LocallyQuasiFinite.{u}) |
| 37 | (fun _ => inferInstanceAs (LocallyQuasiFinite (𝟙 S))) |
| 38 | |
| 39 | /-- The split scheme with labels in the ordered standard level module. -/ |
| 40 | def Level.Scheme.constantFullLevelScheme (g N : ℕ) (S : Scheme.{u}) : Over S := |
| 41 | ConstantScheme.Iff.constantScheme S (ULift.{u} (Multiplicative (Fin (2 * g) → ZMod N))) |
| 42 | |
| 43 | /-- The split scheme represents the constant ordered-level functor. -/ |
| 44 | def Level.Scheme.constantFullLevelRepresentable (g N : ℕ) (S : Scheme.{u}) : |
| 45 | (Abelian.Schemes.AbelianScheme.constantLevelFunctor g N S ⋙ forget GrpCat).RepresentableBy |
| 46 | (Level.Scheme.constantFullLevelScheme g N S) where |
| 47 | homEquiv {T} := (ConstantScheme.Iff.constantSchemePointsEquiv S _ T).trans (LocallyConstant.congrRight Equiv.ulift) |
| 48 | homEquiv_comp h t := by |
| 49 | apply LocallyConstant.ext |
| 50 | intro x |
| 51 | rfl |
| 52 | |
| 53 | variable {A : Abelian.Schemes.AbelianScheme g S} |
| 54 | |
| 55 | /-- A full level structure identifies the split scheme with the actual torsion scheme. -/ |
| 56 | def Abelian.Schemes.AbelianScheme.FullLevel.schemeIso (level : A.FullLevel N) : Level.Scheme.constantFullLevelScheme g N S ≅ A.torsionScheme N := |
| 57 | ((Level.Scheme.constantFullLevelRepresentable g N S).ofIso |
| 58 | (Functor.isoWhiskerRight level (forget GrpCat))).uniqueUpToIso (A.torsionRepresentable N) |
| 59 | |
| 60 | /-- The geometric trivialization sends the universal ordered labels to the chosen basis. -/ |
| 61 | theorem Abelian.Schemes.AbelianScheme.FullLevel.schemeIso_hom_basis (level : A.FullLevel N) : |
| 62 | level.schemeIso.hom ≫ A.torsionInclusion N = |
| 63 | (level.hom.app (.op (Level.Scheme.constantFullLevelScheme g N S)) |
| 64 | ((Level.Scheme.constantFullLevelRepresentable g N S).homEquiv (𝟙 _))).val := |
| 65 | congrArg (fun x : A.torsionPoints N (Level.Scheme.constantFullLevelScheme g N S) => x.val) |
| 66 | ((A.torsionSchemePointsEquiv N (Level.Scheme.constantFullLevelScheme g N S)).apply_symm_apply _) |
| 67 | |
| 68 | /-- A full level structure implies that the torsion scheme is etale over the base. -/ |
| 69 | theorem Abelian.Schemes.AbelianScheme.FullLevel.torsion_etale (level : A.FullLevel N) : Etale (A.torsionScheme N).hom := by |
| 70 | have : IsIso level.schemeIso.inv.left := |
| 71 | inferInstanceAs (IsIso (((Over.forget S).mapIso level.schemeIso).inv)) |
| 72 | have : Etale (Level.Scheme.constantFullLevelScheme g N S).hom := |
| 73 | Level.Scheme.constantScheme_etale S _ |
| 74 | rw [← level.schemeIso.inv.w] |
| 75 | infer_instance |
| 76 | |
| 77 | /-- A full level structure implies that the torsion scheme is locally quasi-finite. -/ |
| 78 | theorem Abelian.Schemes.AbelianScheme.FullLevel.torsion_locallyQuasiFinite (level : A.FullLevel N) : |
| 79 | LocallyQuasiFinite (A.torsionScheme N).hom := by |
| 80 | have : IsIso level.schemeIso.inv.left := |
| 81 | inferInstanceAs (IsIso (((Over.forget S).mapIso level.schemeIso).inv)) |
| 82 | have : LocallyQuasiFinite (Level.Scheme.constantFullLevelScheme g N S).hom := |
| 83 | Level.Scheme.constantScheme_locallyQuasiFinite S _ |
| 84 | rw [← level.schemeIso.inv.w] |
| 85 | infer_instance |
| 86 | |
| 87 | /-- The torsion scheme of a full-level abelian scheme is finite over the base. -/ |
| 88 | theorem Abelian.Schemes.AbelianScheme.FullLevel.torsion_finite (level : A.FullLevel N) : IsFinite (A.torsionScheme N).hom := by |
| 89 | have := level.torsion_locallyQuasiFinite |
| 90 | exact IsFinite.of_isProper_of_locallyQuasiFinite _ |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |