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.Morphisms.UniversallyOpen |
| 3 | |
| 4 | /-! # Abelian Products -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.AbelianProducts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Products of the actual abelian schemes, with additive relative |
| 13 | dimension and the product decomposition of every torsion functor. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 17 | open scoped _root_.CategoryTheory.MonObj |
| 18 | |
| 19 | variable {S : Scheme.{0}} {g h : ℕ} |
| 20 | |
| 21 | def abelianProduct (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) (B : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme h S) : |
| 22 | AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme (g + h) S where |
| 23 | scheme := A.scheme ⊗ B.scheme |
| 24 | group := inferInstance |
| 25 | commutative := inferInstance |
| 26 | proper := inferInstanceAs |
| 27 | (IsProper (CategoryTheory.Limits.pullback.fst A.scheme.hom B.scheme.hom ≫ A.scheme.hom)) |
| 28 | smoothDimension := by |
| 29 | let F := CategoryTheory.Limits.pullback.fst A.scheme.hom B.scheme.hom |
| 30 | have : SmoothOfRelativeDimension h F := |
| 31 | (smoothOfRelativeDimension_isStableUnderBaseChange h).of_isPullback |
| 32 | (CategoryTheory.IsPullback.of_hasPullback A.scheme.hom B.scheme.hom).flip B.smoothDimension |
| 33 | have hh : SmoothOfRelativeDimension (h + g) (F ≫ A.scheme.hom) := inferInstance |
| 34 | rw [Nat.add_comm h g] at hh |
| 35 | exact hh |
| 36 | connected := GeometricallyConnected.comp (CategoryTheory.Limits.pullback.fst A.scheme.hom B.scheme.hom) A.scheme.hom |
| 37 | |
| 38 | def groupProductTorsionEquiv (X Y : Over S) [GrpObj X] [GrpObj Y] |
| 39 | [IsCommMonObj X] [IsCommMonObj Y] (N : ℕ) (T : Over S) : |
| 40 | ((powMonoidHom N : (T ⟶ X ⊗ Y) →* (T ⟶ X ⊗ Y)).ker) ≃* |
| 41 | (((powMonoidHom N : (T ⟶ X) →* (T ⟶ X)).ker) × |
| 42 | ((powMonoidHom N : (T ⟶ Y) →* (T ⟶ Y)).ker)) where |
| 43 | toFun x := (⟨x.val ≫ fst X Y, by |
| 44 | change (x.val ≫ fst X Y) ^ N = 1 |
| 45 | have hx : x.val ^ N = 1 := x.property |
| 46 | rw [← MonObj.pow_comp, hx, MonObj.one_comp]⟩, |
| 47 | ⟨x.val ≫ snd X Y, by |
| 48 | change (x.val ≫ snd X Y) ^ N = 1 |
| 49 | have hx : x.val ^ N = 1 := x.property |
| 50 | rw [← MonObj.pow_comp, hx, MonObj.one_comp]⟩) |
| 51 | invFun x := ⟨lift x.1.val x.2.val, by |
| 52 | change (lift x.1.val x.2.val) ^ N = 1 |
| 53 | have hx : x.1.val ^ N = 1 := x.1.property |
| 54 | have hy : x.2.val ^ N = 1 := x.2.property |
| 55 | apply hom_ext |
| 56 | · rw [MonObj.pow_comp, lift_fst, hx, MonObj.one_comp] |
| 57 | · rw [MonObj.pow_comp, lift_snd, hy, MonObj.one_comp]⟩ |
| 58 | left_inv x := by |
| 59 | apply Subtype.ext |
| 60 | apply hom_ext |
| 61 | · exact lift_fst _ _ |
| 62 | · exact lift_snd _ _ |
| 63 | right_inv x := by |
| 64 | apply Prod.ext <;> apply Subtype.ext |
| 65 | · exact lift_fst _ _ |
| 66 | · exact lift_snd _ _ |
| 67 | map_mul' x y := by |
| 68 | apply Prod.ext <;> apply Subtype.ext |
| 69 | · exact MonObj.mul_comp x.val y.val _ |
| 70 | · exact MonObj.mul_comp x.val y.val _ |
| 71 | |
| 72 | def abelianProductTorsionEquiv (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) (B : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme h S) |
| 73 | (N : ℕ) (T : Over S) : |
| 74 | (abelianProduct A B).torsionPoints N T ≃* |
| 75 | (A.torsionPoints N T × B.torsionPoints N T) := |
| 76 | groupProductTorsionEquiv A.scheme B.scheme N T |
| 77 | |
| 78 | end |
| 79 | |
| 80 | /-! A finite family of abelian schemes embeds as retracts of one abelian |
| 81 | scheme. This lets all arrows be encoded as a finite endomorphism tuple. -/ |
| 82 | |
| 83 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 84 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 85 | open scoped _root_.CategoryTheory.MonObj |
| 86 | |
| 87 | theorem constantOne_isMonHom {C : Type*} [Category C] [CartesianMonoidalCategory C] |
| 88 | (X Y : C) [MonObj X] [MonObj Y] : IsMonHom (1 : X ⟶ Y) := |
| 89 | inferInstanceAs (IsMonHom (toUnit X ≫ η[Y])) |
| 90 | |
| 91 | def zeroAbelianScheme (S : Scheme.{0}) : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme 0 S where |
| 92 | scheme := 𝟙_ (Over S) |
| 93 | group := inferInstance |
| 94 | commutative := inferInstance |
| 95 | proper := inferInstanceAs (IsProper (𝟙 S)) |
| 96 | smoothDimension := inferInstanceAs (SmoothOfRelativeDimension 0 (𝟙 S)) |
| 97 | connected := by |
| 98 | refine ⟨geometrically_iff_of_isClosedUnderIsomorphisms.mpr fun K _ x => ?_⟩ |
| 99 | exact (asIso (CategoryTheory.Limits.pullback.snd (𝟙 S) x)).hom.homeomorph.connectedSpace_iff.mpr |
| 100 | inferInstance |
| 101 | |
| 102 | structure AbelianRetractContainer {S : Scheme.{0}} {r : ℕ} {d : Fin r → ℕ} |
| 103 | (A : ∀ i, AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme (d i) S) where |
| 104 | dimension : ℕ |
| 105 | abelian : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme dimension S |
| 106 | inclusion : ∀ i, (A i).scheme ⟶ abelian.scheme |
| 107 | projection : ∀ i, abelian.scheme ⟶ (A i).scheme |
| 108 | inclusion_group : ∀ i, IsMonHom (inclusion i) |
| 109 | projection_group : ∀ i, IsMonHom (projection i) |
| 110 | retraction : ∀ i, inclusion i ≫ projection i = 𝟙 (A i).scheme |
| 111 | |
| 112 | theorem exists_abelian_retract_container {S : Scheme.{0}} (r : ℕ) |
| 113 | (d : Fin r → ℕ) (A : ∀ i, AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme (d i) S) : |
| 114 | Nonempty (AbelianRetractContainer A) := by |
| 115 | induction r with |
| 116 | | zero => |
| 117 | exact ⟨{ |
| 118 | dimension := 0 |
| 119 | abelian := zeroAbelianScheme S |
| 120 | inclusion := fun i => Fin.elim0 i |
| 121 | projection := fun i => Fin.elim0 i |
| 122 | inclusion_group := fun i => Fin.elim0 i |
| 123 | projection_group := fun i => Fin.elim0 i |
| 124 | retraction := fun i => Fin.elim0 i }⟩ |
| 125 | | succ r ih => |
| 126 | obtain ⟨C⟩ := ih (fun i => d i.succ) (fun i => A i.succ) |
| 127 | let B := abelianProduct (A 0) C.abelian |
| 128 | let i₀ : (A 0).scheme ⟶ B.scheme := lift (𝟙 _) 1 |
| 129 | let it (j : Fin r) : (A j.succ).scheme ⟶ B.scheme := lift 1 (C.inclusion j) |
| 130 | let p₀ : B.scheme ⟶ (A 0).scheme := fst _ _ |
| 131 | let pt (j : Fin r) : B.scheme ⟶ (A j.succ).scheme := snd _ _ ≫ C.projection j |
| 132 | refine ⟨{ |
| 133 | dimension := d 0 + C.dimension |
| 134 | abelian := B |
| 135 | inclusion := Fin.cases i₀ it |
| 136 | projection := Fin.cases p₀ pt |
| 137 | inclusion_group := ?_ |
| 138 | projection_group := ?_ |
| 139 | retraction := ?_ }⟩ |
| 140 | · intro j |
| 141 | refine Fin.cases ?_ (fun k => ?_) j |
| 142 | · have := constantOne_isMonHom (A 0).scheme C.abelian.scheme |
| 143 | exact inferInstanceAs (IsMonHom (lift (𝟙 (A 0).scheme) (1 : (A 0).scheme ⟶ C.abelian.scheme))) |
| 144 | · have := C.inclusion_group k |
| 145 | have := constantOne_isMonHom (A k.succ).scheme (A 0).scheme |
| 146 | exact inferInstanceAs (IsMonHom (lift (1 : (A k.succ).scheme ⟶ (A 0).scheme) (C.inclusion k))) |
| 147 | · intro j |
| 148 | refine Fin.cases ?_ (fun k => ?_) j |
| 149 | · exact inferInstanceAs (IsMonHom (fst (A 0).scheme C.abelian.scheme)) |
| 150 | · have := C.projection_group k |
| 151 | exact inferInstanceAs (IsMonHom (snd (A 0).scheme C.abelian.scheme ≫ C.projection k)) |
| 152 | · intro j |
| 153 | refine Fin.cases ?_ (fun k => ?_) j |
| 154 | · exact lift_fst _ _ |
| 155 | · change lift 1 (C.inclusion k) ≫ snd _ _ ≫ C.projection k = _ |
| 156 | rw [← Category.assoc, lift_snd] |
| 157 | exact C.retraction k |
| 158 | |
| 159 | theorem recover_arrow_from_retracts {C : Type*} [Category C] |
| 160 | {A B P : C} (iA : A ⟶ P) (pA : P ⟶ A) (iB : B ⟶ P) (pB : P ⟶ B) |
| 161 | (hA : iA ≫ pA = 𝟙 A) (hB : iB ≫ pB = 𝟙 B) (f : A ⟶ B) : |
| 162 | iA ≫ (pA ≫ f ≫ iB) ≫ pB = f := by |
| 163 | simp only [Category.assoc, ← Category.assoc iA pA, hA, Category.id_comp, |
| 164 | hB, Category.comp_id] |
| 165 | |
| 166 | end |
| 167 | |
| 168 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.AbelianProducts |