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.Embedded.ForgetfulMaps |
| 2 | |
| 3 | /-! # Ambient Isomorphisms -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Embedded |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Changes of ambient coordinates act on embedded polarized families. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {S : Scheme.{u}} {P Q R : Over S} {T U : Over S} |
| 16 | |
| 17 | /-- An ambient isomorphism induces an isomorphism over each test scheme. -/ |
| 18 | def AmbientIsomorphisms.embeddedAmbientIso (e : P ≅ Q) (T : Over S) : |
| 19 | FamilyFunctor.embeddedFamilyAmbient P T ≅ FamilyFunctor.embeddedFamilyAmbient Q T := |
| 20 | Over.isoMk ((Over.forget S).mapIso (prod.mapIso (Iso.refl T) e)) |
| 21 | (congrArg Over.Hom.left ((prod.map_fst (𝟙 T) e.hom).trans (Category.comp_id _))) |
| 22 | |
| 23 | /-- Ambient coordinate changes commute with base change of the test scheme. -/ |
| 24 | theorem AmbientIsomorphisms.embeddedAmbientIso_naturality (e : P ≅ Q) (f : T ⟶ U) : |
| 25 | (AmbientIsomorphisms.embeddedAmbientIso e T).hom.left ≫ FamilyFunctor.embeddedFamilyAmbientMap Q f = |
| 26 | FamilyFunctor.embeddedFamilyAmbientMap P f ≫ (AmbientIsomorphisms.embeddedAmbientIso e U).hom.left := by |
| 27 | change (prod.map (𝟙 T) e.hom).left ≫ (prod.map f (𝟙 Q)).left = |
| 28 | (prod.map f (𝟙 P)).left ≫ (prod.map (𝟙 U) e.hom).left |
| 29 | have he : prod.map (𝟙 T) e.hom ≫ prod.map f (𝟙 Q) = |
| 30 | prod.map f (𝟙 P) ≫ prod.map (𝟙 U) e.hom := by |
| 31 | simp only [prod.map_map, Category.id_comp, Category.comp_id] |
| 32 | exact congrArg Over.Hom.left he |
| 33 | |
| 34 | theorem AmbientIsomorphisms.embeddedAmbientIso_refl (P : Over S) (T : Over S) : |
| 35 | (AmbientIsomorphisms.embeddedAmbientIso (Iso.refl P) T).hom = 𝟙 (FamilyFunctor.embeddedFamilyAmbient P T) := by |
| 36 | apply Over.OverMorphism.ext |
| 37 | have he := congrArg (fun f : T ⨯ P ⟶ T ⨯ P => f.left) |
| 38 | (prod.map_id_id : prod.map (𝟙 T) (𝟙 P) = 𝟙 (T ⨯ P)) |
| 39 | exact he |
| 40 | |
| 41 | theorem AmbientIsomorphisms.embeddedAmbientIso_trans (e : P ≅ Q) (h : Q ≅ R) (T : Over S) : |
| 42 | (AmbientIsomorphisms.embeddedAmbientIso (e ≪≫ h) T).hom = |
| 43 | (AmbientIsomorphisms.embeddedAmbientIso e T).hom ≫ (AmbientIsomorphisms.embeddedAmbientIso h T).hom := by |
| 44 | apply Over.OverMorphism.ext |
| 45 | have he : prod.map (𝟙 T) (e.hom ≫ h.hom) = |
| 46 | prod.map (𝟙 T) e.hom ≫ prod.map (𝟙 T) h.hom := by |
| 47 | simpa only [Category.id_comp] using (prod.map_map (𝟙 T) e.hom (𝟙 T) h.hom).symm |
| 48 | have hleft := congrArg (fun f : T ⨯ P ⟶ T ⨯ R => f.left) he |
| 49 | exact hleft |
| 50 | |
| 51 | variable {g N : ℕ} {δ : Fin g → ℕ} |
| 52 | |
| 53 | /-- Change ambient coordinates while retaining all polarized moduli data. -/ |
| 54 | def PolarizedObjects.EmbeddedPolarizedObject.changeAmbient (A : PolarizedObjects.EmbeddedPolarizedObject P g δ N T) |
| 55 | (e : P ≅ Q) : PolarizedObjects.EmbeddedPolarizedObject Q g δ N T where |
| 56 | object := A.object |
| 57 | embedding := A.embedding ≫ (AmbientIsomorphisms.embeddedAmbientIso e T).hom |
| 58 | closedImmersion := by |
| 59 | have : IsIso (AmbientIsomorphisms.embeddedAmbientIso e T).hom.left := |
| 60 | inferInstanceAs (IsIso ((Over.forget T.left).map (AmbientIsomorphisms.embeddedAmbientIso e T).hom)) |
| 61 | exact @IsClosedImmersion.comp _ _ _ A.embedding.left (AmbientIsomorphisms.embeddedAmbientIso e T).hom.left |
| 62 | inferInstance inferInstance |
| 63 | |
| 64 | /-- Isomorphisms of embedded objects persist after changing ambient coordinates. -/ |
| 65 | def PolarizedIsomorphisms.EmbeddedLevelIso.changeAmbient {A B : PolarizedObjects.EmbeddedPolarizedObject P g δ N T} |
| 66 | (h : PolarizedIsomorphisms.EmbeddedLevelIso A B) (e : P ≅ Q) : |
| 67 | PolarizedIsomorphisms.EmbeddedLevelIso (A.changeAmbient e) (B.changeAmbient e) where |
| 68 | iso := h.iso |
| 69 | embedding := (Category.assoc _ _ _).symm.trans |
| 70 | (congrArg (fun a => a ≫ (AmbientIsomorphisms.embeddedAmbientIso e T).hom) h.embedding) |
| 71 | |
| 72 | /-- Changing ambient coordinates commutes with pulling back an embedded object. -/ |
| 73 | def PolarizedIsomorphisms.EmbeddedLevelIso.changeAmbientPullback (A : PolarizedObjects.EmbeddedPolarizedObject P g δ N U) |
| 74 | (e : P ≅ Q) (f : T ⟶ U) : |
| 75 | PolarizedIsomorphisms.EmbeddedLevelIso ((A.changeAmbient e).pullback f) ((A.pullback f).changeAmbient e) where |
| 76 | iso := Moduli.Isomorphisms.LevelPreservingIso.refl (A.object.pullback f.left) |
| 77 | embedding := by |
| 78 | change 𝟙 _ ≫ ((A.pullback f).embedding ≫ (AmbientIsomorphisms.embeddedAmbientIso e T).hom) = |
| 79 | ((A.changeAmbient e).pullback f).embedding |
| 80 | rw [Category.id_comp] |
| 81 | apply PullbackComposition.embeddedAmbient_hom_ext f |
| 82 | let a := (A.pullback f).embedding.left |
| 83 | let b := ((A.changeAmbient e).pullback f).embedding.left |
| 84 | let r := CategoryTheory.Limits.pullback.fst A.object.abelian.scheme.hom f.left |
| 85 | have ha : a ≫ FamilyFunctor.embeddedFamilyAmbientMap P f = r ≫ A.embedding.left := |
| 86 | (A.pullback_embedding_isPullback f).w |
| 87 | have hb : b ≫ FamilyFunctor.embeddedFamilyAmbientMap Q f = |
| 88 | r ≫ (A.embedding.left ≫ (AmbientIsomorphisms.embeddedAmbientIso e U).hom.left) := |
| 89 | ((A.changeAmbient e).pullback_embedding_isPullback f).w |
| 90 | change (a ≫ (AmbientIsomorphisms.embeddedAmbientIso e T).hom.left) ≫ FamilyFunctor.embeddedFamilyAmbientMap Q f = |
| 91 | b ≫ FamilyFunctor.embeddedFamilyAmbientMap Q f |
| 92 | exact (Category.assoc _ _ _).trans |
| 93 | ((congrArg (fun z => a ≫ z) (AmbientIsomorphisms.embeddedAmbientIso_naturality e f)).trans |
| 94 | ((Category.assoc _ _ _).symm.trans |
| 95 | ((congrArg (fun z => z ≫ (AmbientIsomorphisms.embeddedAmbientIso e U).hom.left) ha).trans |
| 96 | ((Category.assoc _ _ _).trans hb.symm)))) |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Embedded |