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.Abelian.Schemes |
| 2 | import Mathlib.AlgebraicGeometry.Limits |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 4 | import Mathlib.Data.ZMod.Basic |
| 5 | |
| 6 | /-! # Cover -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Level.Cover.LevelCover |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Construction of the added-level frame locus as an actual open |
| 13 | subscheme of a finite product of the scheme-theoretic N-torsion. |
| 14 | No representability or existence theorem for level structures is assumed. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | open scoped _root_.CategoryTheory.MonObj |
| 18 | |
| 19 | universe u |
| 20 | variable {S : Scheme.{u}} {g : ℕ} (A : HilbertConstruction.Abelian.Schemes.AbelianScheme g S) (N : ℕ) |
| 21 | |
| 22 | def torsion : Over S := equalizer ((𝟙 A.scheme) ^ N) (1 : A.scheme ⟶ A.scheme) |
| 23 | |
| 24 | def torsionInclusion : torsion A N ⟶ A.scheme := |
| 25 | equalizer.ι ((𝟙 A.scheme) ^ N) (1 : A.scheme ⟶ A.scheme) |
| 26 | |
| 27 | theorem torsionInclusion_pow : torsionInclusion A N ^ N = 1 := by |
| 28 | convert! (show (equalizer.ι ((𝟙 A.scheme) ^ N) (1 : A.scheme ⟶ A.scheme)) ^ N = 1 from |
| 29 | (by simpa only [MonObj.comp_pow, Category.comp_id, MonObj.comp_one] using |
| 30 | equalizer.condition ((𝟙 A.scheme) ^ N) (1 : A.scheme ⟶ A.scheme))) |
| 31 | |
| 32 | /-- The torsion scheme represents exactly the points annihilated by N. -/ |
| 33 | def torsionPointsEquiv (T : Over S) : |
| 34 | (T ⟶ torsion A N) ≃ {x : T ⟶ A.scheme // x ^ N = 1} where |
| 35 | toFun f := ⟨f ≫ torsionInclusion A N, by |
| 36 | rw [← MonObj.comp_pow, torsionInclusion_pow, MonObj.comp_one]⟩ |
| 37 | invFun x := equalizer.lift x.val (by |
| 38 | simpa only [MonObj.comp_pow, Category.comp_id, MonObj.comp_one] using x.property) |
| 39 | left_inv f := by |
| 40 | apply equalizer.hom_ext |
| 41 | exact equalizer.lift_ι _ _ |
| 42 | right_inv x := Subtype.ext (equalizer.lift_ι _ _) |
| 43 | |
| 44 | def torsionTuples : Over S := Limits.piObj (fun _ : Fin (2 * g) => torsion A N) |
| 45 | |
| 46 | def coordinate (i : Fin (2 * g)) : torsionTuples A N ⟶ A.scheme := |
| 47 | Pi.π (fun _ : Fin (2 * g) => torsion A N) i ≫ torsionInclusion A N |
| 48 | |
| 49 | theorem coordinate_pow (i : Fin (2 * g)) : coordinate A N i ^ N = 1 := by |
| 50 | change (Pi.π (fun _ : Fin (2 * g) => torsion A N) i ≫ torsionInclusion A N) ^ N = 1 |
| 51 | rw [← MonObj.comp_pow, torsionInclusion_pow, MonObj.comp_one] |
| 52 | |
| 53 | /-- Evaluate a relation among the chosen torsion generators. -/ |
| 54 | def relation (c : Fin (2 * g) → ZMod N) : torsionTuples A N ⟶ A.scheme := |
| 55 | ∏ i : Fin (2 * g), coordinate A N i ^ (c i).val |
| 56 | |
| 57 | def relationZero (c : Fin (2 * g) → ZMod N) : Over S := |
| 58 | equalizer (relation A N c) (1 : torsionTuples A N ⟶ A.scheme) |
| 59 | |
| 60 | def relationZeroInclusion (c : Fin (2 * g) → ZMod N) : |
| 61 | relationZero A N c ⟶ torsionTuples A N := |
| 62 | equalizer.ι (relation A N c) (1 : torsionTuples A N ⟶ A.scheme) |
| 63 | |
| 64 | instance relationZero_closed (c : Fin (2 * g) → ZMod N) : |
| 65 | IsClosedImmersion (relationZeroInclusion A N c).left := |
| 66 | isClosedImmersion_equalizer_ι_left _ _ |
| 67 | |
| 68 | def relationNonzero (c : Fin (2 * g) → ZMod N) : (torsionTuples A N).left.Opens := |
| 69 | ⟨(Set.range (relationZeroInclusion A N c).left)ᶜ, |
| 70 | (relationZeroInclusion A N c).left.isClosedEmbedding.isClosed_range.isOpen_compl⟩ |
| 71 | |
| 72 | /-- The actual open locus on which no nonzero relation vanishes. -/ |
| 73 | def frameOpen : (torsionTuples A N).left.Opens := |
| 74 | ⨅ (c : Fin (2 * g) → ZMod N) (_ : c ≠ 0), relationNonzero A N c |
| 75 | |
| 76 | def frameScheme : Over S := |
| 77 | Over.mk ((frameOpen A N).ι ≫ (torsionTuples A N).hom) |
| 78 | |
| 79 | /-- Forget the new frame and recover its tuple of torsion points. -/ |
| 80 | def frameInclusion : frameScheme A N ⟶ torsionTuples A N := |
| 81 | Over.homMk (frameOpen A N).ι rfl |
| 82 | |
| 83 | instance frameInclusion_open : IsOpenImmersion (frameInclusion A N).left := |
| 84 | inferInstanceAs (IsOpenImmersion (frameOpen A N).ι) |
| 85 | |
| 86 | theorem frame_coordinate_pow (i : Fin (2 * g)) : |
| 87 | (frameInclusion A N ≫ coordinate A N i) ^ N = 1 := by |
| 88 | rw [← MonObj.comp_pow, coordinate_pow, MonObj.comp_one] |
| 89 | |
| 90 | /-- Every geometric point of the constructed open locus avoids all the |
| 91 | forbidden relation subschemes. -/ |
| 92 | theorem frame_point_avoids_relation (x : (frameScheme A N).left) |
| 93 | (c : Fin (2 * g) → ZMod N) (hc : c ≠ 0) : |
| 94 | (frameInclusion A N).left x ∉ Set.range (relationZeroInclusion A N c).left := by |
| 95 | have hx : (frameInclusion A N).left x ∈ frameOpen A N := by |
| 96 | change (frameOpen A N).ι x ∈ (frameOpen A N : Set (torsionTuples A N).left) |
| 97 | rw [← Scheme.Opens.range_ι] |
| 98 | exact Set.mem_range_self x |
| 99 | have hle : frameOpen A N ≤ relationNonzero A N c := |
| 100 | iInf_le_of_le c (iInf_le _ hc) |
| 101 | exact hle hx |
| 102 | |
| 103 | /-- The universal torsion generators have no nonzero relation on any |
| 104 | nonempty test scheme mapping to the frame locus. -/ |
| 105 | theorem frame_relations_nonzero (T : Over S) [Nonempty T.left] |
| 106 | (f : T ⟶ frameScheme A N) (c : Fin (2 * g) → ZMod N) (hc : c ≠ 0) : |
| 107 | (f ≫ frameInclusion A N) ≫ relation A N c ≠ 1 := by |
| 108 | intro h |
| 109 | let t : T.left := Classical.choice inferInstance |
| 110 | let q := f ≫ frameInclusion A N |
| 111 | have hq : q ≫ relation A N c = q ≫ (1 : torsionTuples A N ⟶ A.scheme) := by |
| 112 | rw [MonObj.comp_one] |
| 113 | exact h |
| 114 | apply frame_point_avoids_relation A N (f.left t) c hc |
| 115 | refine ⟨(equalizer.lift q hq).left t, ?_⟩ |
| 116 | exact congrArg (fun m : T ⟶ torsionTuples A N => m.left t) |
| 117 | (equalizer.lift_ι q hq) |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Level.Cover.LevelCover |