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.ReferenceFamily.Paired.PELQuotientBaseChange |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Paired.IsogenyNaturality |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PEL.Classifying |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Pullback.Comparisons |
| 5 | |
| 6 | /-! # PEL Functor -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Paired.PELFunctor |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Isomorphisms of paired PEL quotients preserve the actual source |
| 15 | and target PEL families and the forward isogeny. The reverse square |
| 16 | is a consequence, so the swap acts on their isomorphism classes. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | variable {E K : Type} [Field E] [NumberField E] [Algebra ℚ E] |
| 21 | [NumberField.IsCMField E] [Field K] |
| 22 | {s N n : ℕ} {P : Datum.RankThreePELDatum E s} {iota : E →+* K} |
| 23 | {T U : Over (Spec (.of K))} |
| 24 | {A B A' B' A'' B'' : PEL.Objects.PELObject P iota N T} |
| 25 | |
| 26 | structure PairedPELQuotientIso (f : PELQuotients.PairedPELQuotient A B n) |
| 27 | (g : PELQuotients.PairedPELQuotient A' B' n) where |
| 28 | source : PEL.Objects.PELIso A A' |
| 29 | target : PEL.Objects.PELIso B B' |
| 30 | forward_square : f.forward.isogeny.hom ≫ target.polarized.abelian.hom = |
| 31 | source.polarized.abelian.hom ≫ g.forward.isogeny.hom |
| 32 | |
| 33 | namespace PairedPELQuotientIso |
| 34 | |
| 35 | variable {f : PELQuotients.PairedPELQuotient A B n} {g : PELQuotients.PairedPELQuotient A' B' n} |
| 36 | {h : PELQuotients.PairedPELQuotient A'' B'' n} |
| 37 | |
| 38 | def refl (f : PELQuotients.PairedPELQuotient A B n) : PairedPELQuotientIso f f where |
| 39 | source := PEL.Objects.PELIso.refl A |
| 40 | target := PEL.Objects.PELIso.refl B |
| 41 | forward_square := by simp [PEL.Objects.PELIso.refl, HilbertConstruction.Moduli.Isomorphisms.LevelPreservingIso.refl] |
| 42 | |
| 43 | def symm (e : PairedPELQuotientIso f g) : PairedPELQuotientIso g f where |
| 44 | source := e.source.symm |
| 45 | target := e.target.symm |
| 46 | forward_square := by |
| 47 | change g.forward.isogeny.hom ≫ e.target.polarized.abelian.inv = |
| 48 | e.source.polarized.abelian.inv ≫ f.forward.isogeny.hom |
| 49 | apply (cancel_epi e.source.polarized.abelian.hom).mp |
| 50 | rw [← Category.assoc, ← e.forward_square, Category.assoc, |
| 51 | e.target.polarized.abelian.hom_inv_id, Category.comp_id, |
| 52 | ← Category.assoc, e.source.polarized.abelian.hom_inv_id, Category.id_comp] |
| 53 | |
| 54 | def trans (e : PairedPELQuotientIso f g) (d : PairedPELQuotientIso g h) : |
| 55 | PairedPELQuotientIso f h where |
| 56 | source := e.source.trans d.source |
| 57 | target := e.target.trans d.target |
| 58 | forward_square := by |
| 59 | change f.forward.isogeny.hom ≫ |
| 60 | (e.target.polarized.abelian.hom ≫ d.target.polarized.abelian.hom) = |
| 61 | (e.source.polarized.abelian.hom ≫ d.source.polarized.abelian.hom) ≫ h.forward.isogeny.hom |
| 62 | rw [← Category.assoc, e.forward_square, Category.assoc, d.forward_square, Category.assoc] |
| 63 | |
| 64 | theorem reverse_square (e : PairedPELQuotientIso f g) : |
| 65 | f.reverse.isogeny.hom ≫ e.source.polarized.abelian.hom = |
| 66 | e.target.polarized.abelian.hom ≫ g.reverse.isogeny.hom := by |
| 67 | let : EffectiveEpi f.forward.isogeny.hom := |
| 68 | PELModuli.IntegralModel.IsogenyFactorizationIs.IsogenyFactorization.effectiveEpi_over_of_fpqc f.forward.isogeny.hom |
| 69 | exact IsogenyNaturality.paired_isogeny_reverse_naturality f.forward.isogeny.hom f.reverse.isogeny.hom |
| 70 | g.forward.isogeny.hom g.reverse.isogeny.hom |
| 71 | e.source.polarized.abelian.hom e.target.polarized.abelian.hom n |
| 72 | f.forward_reverse g.forward_reverse e.forward_square |
| 73 | |
| 74 | def swap (e : PairedPELQuotientIso f g) : PairedPELQuotientIso f.swap g.swap where |
| 75 | source := e.target |
| 76 | target := e.source |
| 77 | forward_square := e.reverse_square |
| 78 | |
| 79 | def pullback (e : PairedPELQuotientIso f g) (b : U ⟶ T) : |
| 80 | PairedPELQuotientIso (f.pullback b) (g.pullback b) where |
| 81 | source := e.source.pullback b |
| 82 | target := e.target.pullback b |
| 83 | forward_square := ((Over.pullback b.left).map_comp _ _).symm.trans |
| 84 | ((congrArg ((Over.pullback b.left).map) e.forward_square).trans |
| 85 | ((Over.pullback b.left).map_comp _ _)) |
| 86 | |
| 87 | end PairedPELQuotientIso |
| 88 | |
| 89 | end |
| 90 | |
| 91 | /-! The paired-isogeny moduli functor has actual PEL families as its |
| 92 | objects and complete PEL isomorphisms as its equivalence relation. |
| 93 | Its two forgetful maps and swap are natural on all test schemes. -/ |
| 94 | |
| 95 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 96 | |
| 97 | variable {E K : Type} [Field E] [NumberField E] [Algebra ℚ E] |
| 98 | [NumberField.IsCMField E] [Field K] |
| 99 | {s N n : ℕ} {P : Datum.RankThreePELDatum E s} {iota : E →+* K} |
| 100 | {T U V : Over (Spec (.of K))} |
| 101 | |
| 102 | structure PairedPELObject (P : Datum.RankThreePELDatum E s) (iota : E →+* K) |
| 103 | (N n : ℕ) (T : Over (Spec (.of K))) where |
| 104 | source : PEL.Objects.PELObject P iota N T |
| 105 | target : PEL.Objects.PELObject P iota N T |
| 106 | quotient : PELQuotients.PairedPELQuotient source target n |
| 107 | |
| 108 | def PairedPELObject.swap (A : PairedPELObject P iota N n T) : PairedPELObject P iota N n T where |
| 109 | source := A.target |
| 110 | target := A.source |
| 111 | quotient := A.quotient.swap |
| 112 | |
| 113 | theorem PairedPELObject.swap_swap (A : PairedPELObject P iota N n T) : A.swap.swap = A := rfl |
| 114 | |
| 115 | def PairedPELObject.pullback (A : PairedPELObject P iota N n T) (f : U ⟶ T) : |
| 116 | PairedPELObject P iota N n U where |
| 117 | source := A.source.pullback f |
| 118 | target := A.target.pullback f |
| 119 | quotient := A.quotient.pullback f |
| 120 | |
| 121 | def PairedPELObject.pullbackIdIso (A : PairedPELObject P iota N n T) : |
| 122 | PairedPELQuotientIso (A.pullback (𝟙 T)).quotient A.quotient where |
| 123 | source := PEL.Objects.PELIso.pullbackId A.source |
| 124 | target := PEL.Objects.PELIso.pullbackId A.target |
| 125 | forward_square := by |
| 126 | change (Over.pullback (𝟙 T.left)).map A.quotient.forward.isogeny.hom ≫ |
| 127 | A.target.polarized.abelian.pullbackIdIso.hom = |
| 128 | A.source.polarized.abelian.pullbackIdIso.hom ≫ A.quotient.forward.isogeny.hom |
| 129 | rw [HilbertConstruction.Abelian.Schemes.AbelianScheme.pullbackIdIso_hom, HilbertConstruction.Abelian.Schemes.AbelianScheme.pullbackIdIso_hom] |
| 130 | exact Over.pullbackId.hom.naturality A.quotient.forward.isogeny.hom |
| 131 | |
| 132 | def PairedPELObject.pullbackCompIso (A : PairedPELObject P iota N n T) |
| 133 | (f : U ⟶ T) (h : V ⟶ U) : |
| 134 | PairedPELQuotientIso (A.pullback (h ≫ f)).quotient ((A.pullback f).pullback h).quotient where |
| 135 | source := PEL.Objects.PELIso.pullbackComp A.source f h |
| 136 | target := PEL.Objects.PELIso.pullbackComp A.target f h |
| 137 | forward_square := by |
| 138 | change (Over.pullback (h.left ≫ f.left)).map A.quotient.forward.isogeny.hom ≫ |
| 139 | (A.target.polarized.abelian.pullbackCompIso f.left h.left).hom = |
| 140 | (A.source.polarized.abelian.pullbackCompIso f.left h.left).hom ≫ |
| 141 | (Over.pullback h.left).map ((Over.pullback f.left).map A.quotient.forward.isogeny.hom) |
| 142 | rw [HilbertConstruction.Abelian.Schemes.AbelianScheme.pullbackCompIso_hom, HilbertConstruction.Abelian.Schemes.AbelianScheme.pullbackCompIso_hom] |
| 143 | exact (Over.pullbackComp h.left f.left).hom.naturality A.quotient.forward.isogeny.hom |
| 144 | |
| 145 | def pairedPELSetoid (P : Datum.RankThreePELDatum E s) (iota : E →+* K) |
| 146 | (N n : ℕ) (T : Over (Spec (.of K))) : Setoid (PairedPELObject P iota N n T) where |
| 147 | r A B := Nonempty (PairedPELQuotientIso A.quotient B.quotient) |
| 148 | iseqv := { |
| 149 | refl A := ⟨PairedPELQuotientIso.refl A.quotient⟩ |
| 150 | symm := fun ⟨e⟩ => ⟨e.symm⟩ |
| 151 | trans := fun ⟨e⟩ ⟨f⟩ => ⟨e.trans f⟩ } |
| 152 | |
| 153 | def PairedPELClasses (P : Datum.RankThreePELDatum E s) (iota : E →+* K) |
| 154 | (N n : ℕ) (T : Over (Spec (.of K))) := Quotient (pairedPELSetoid P iota N n T) |
| 155 | |
| 156 | def PairedPELObject.classOf (A : PairedPELObject P iota N n T) : |
| 157 | PairedPELClasses P iota N n T := Quotient.mk _ A |
| 158 | |
| 159 | namespace PairedPELClasses |
| 160 | |
| 161 | def pullback (f : U ⟶ T) : PairedPELClasses P iota N n T → PairedPELClasses P iota N n U := |
| 162 | Quotient.map (fun A => A.pullback f) (fun _ _ ⟨e⟩ => ⟨e.pullback f⟩) |
| 163 | |
| 164 | theorem pullback_id (q : PairedPELClasses P iota N n T) : PairedPELClasses.pullback (𝟙 T) q = q := by |
| 165 | induction q using Quotient.inductionOn with |
| 166 | | h A => exact Quotient.sound ⟨A.pullbackIdIso⟩ |
| 167 | |
| 168 | theorem pullback_comp (f : U ⟶ T) (h : V ⟶ U) (q : PairedPELClasses P iota N n T) : |
| 169 | PairedPELClasses.pullback (h ≫ f) q = PairedPELClasses.pullback h (PairedPELClasses.pullback f q) := by |
| 170 | induction q using Quotient.inductionOn with |
| 171 | | h A => exact Quotient.sound ⟨A.pullbackCompIso f h⟩ |
| 172 | |
| 173 | def swap : PairedPELClasses P iota N n T → PairedPELClasses P iota N n T := |
| 174 | Quotient.map PairedPELObject.swap (fun _ _ ⟨e⟩ => ⟨e.swap⟩) |
| 175 | |
| 176 | theorem swap_swap (q : PairedPELClasses P iota N n T) : PairedPELClasses.swap (PairedPELClasses.swap q) = q := by |
| 177 | induction q using Quotient.inductionOn with |
| 178 | | h A => rfl |
| 179 | |
| 180 | theorem pullback_swap (f : U ⟶ T) (q : PairedPELClasses P iota N n T) : |
| 181 | PairedPELClasses.pullback f (PairedPELClasses.swap q) = PairedPELClasses.swap (PairedPELClasses.pullback f q) := by |
| 182 | induction q using Quotient.inductionOn with |
| 183 | | h A => rfl |
| 184 | |
| 185 | def source : PairedPELClasses P iota N n T → PEL.Objects.PELClasses P iota N T := |
| 186 | Quotient.lift (fun A => A.source.classOf) (fun _ _ ⟨e⟩ => Quotient.sound ⟨e.source⟩) |
| 187 | |
| 188 | def target : PairedPELClasses P iota N n T → PEL.Objects.PELClasses P iota N T := |
| 189 | Quotient.lift (fun A => A.target.classOf) (fun _ _ ⟨e⟩ => Quotient.sound ⟨e.target⟩) |
| 190 | |
| 191 | theorem source_swap (q : PairedPELClasses P iota N n T) : PairedPELClasses.source (PairedPELClasses.swap q) = PairedPELClasses.target q := by |
| 192 | induction q using Quotient.inductionOn with |
| 193 | | h A => rfl |
| 194 | |
| 195 | theorem target_swap (q : PairedPELClasses P iota N n T) : PairedPELClasses.target (PairedPELClasses.swap q) = PairedPELClasses.source q := by |
| 196 | induction q using Quotient.inductionOn with |
| 197 | | h A => rfl |
| 198 | |
| 199 | theorem source_pullback (f : U ⟶ T) (q : PairedPELClasses P iota N n T) : |
| 200 | PairedPELClasses.source (PairedPELClasses.pullback f q) = PEL.Objects.PELClasses.pullback f (PairedPELClasses.source q) := by |
| 201 | induction q using Quotient.inductionOn with |
| 202 | | h A => rfl |
| 203 | |
| 204 | theorem target_pullback (f : U ⟶ T) (q : PairedPELClasses P iota N n T) : |
| 205 | PairedPELClasses.target (PairedPELClasses.pullback f q) = PEL.Objects.PELClasses.pullback f (PairedPELClasses.target q) := by |
| 206 | induction q using Quotient.inductionOn with |
| 207 | | h A => rfl |
| 208 | |
| 209 | end PairedPELClasses |
| 210 | |
| 211 | def pairedPELModuliFunctor (P : Datum.RankThreePELDatum E s) (iota : E →+* K) (N n : ℕ) : |
| 212 | (Over (Spec (.of K)))ᵒᵖ ⥤ Type 1 where |
| 213 | obj T := PairedPELClasses P iota N n T.unop |
| 214 | map f := TypeCat.ofHom (PairedPELClasses.pullback f.unop) |
| 215 | map_id _ := by |
| 216 | ext q |
| 217 | exact PairedPELClasses.pullback_id q |
| 218 | map_comp f h := by |
| 219 | ext q |
| 220 | exact PairedPELClasses.pullback_comp f.unop h.unop q |
| 221 | |
| 222 | def pairedPELSource : pairedPELModuliFunctor P iota N n ⟶ PEL.Classifying.pelModuliFunctor P iota N where |
| 223 | app _ := TypeCat.ofHom PairedPELClasses.source |
| 224 | naturality _ _ f := by |
| 225 | ext q |
| 226 | exact PairedPELClasses.source_pullback f.unop q |
| 227 | |
| 228 | def pairedPELTarget : pairedPELModuliFunctor P iota N n ⟶ PEL.Classifying.pelModuliFunctor P iota N where |
| 229 | app _ := TypeCat.ofHom PairedPELClasses.target |
| 230 | naturality _ _ f := by |
| 231 | ext q |
| 232 | exact PairedPELClasses.target_pullback f.unop q |
| 233 | |
| 234 | def pairedPELSwap : pairedPELModuliFunctor P iota N n ⟶ pairedPELModuliFunctor P iota N n where |
| 235 | app _ := TypeCat.ofHom PairedPELClasses.swap |
| 236 | naturality _ _ f := by |
| 237 | ext q |
| 238 | exact (PairedPELClasses.pullback_swap f.unop q).symm |
| 239 | |
| 240 | theorem pairedPELSwap_involutive : |
| 241 | pairedPELSwap (P := P) (iota := iota) (N := N) (n := n) ≫ pairedPELSwap = 𝟙 _ := by |
| 242 | ext T q |
| 243 | exact PairedPELClasses.swap_swap q |
| 244 | |
| 245 | theorem pairedPELSwap_source : |
| 246 | pairedPELSwap (P := P) (iota := iota) (N := N) (n := n) ≫ pairedPELSource = pairedPELTarget := by |
| 247 | ext T q |
| 248 | exact PairedPELClasses.source_swap q |
| 249 | |
| 250 | end |
| 251 | |
| 252 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Paired.PELFunctor |