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.PELModuli.IntegralModel.EndomorphismFamiliesId |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.HomFunctor |
| 3 | import Mathlib.CategoryTheory.HomCongr |
| 4 | |
| 5 | /-! # Endomorphism Hom -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.EndomorphismHom.EndomorphismFamilies |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual endomorphism-family functor embeds in Presentations's relative Hom |
| 12 | functor. The map uses the canonical product/pullback identification and |
| 13 | the map/pullback adjunction, with restriction proved on scheme maps. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {S : Scheme.{u}} {g : ℕ} (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 20 | |
| 21 | def homSourceSchemeIso (T : Over S) : |
| 22 | (T ⨯ A.scheme).left ≅ pullback A.scheme.hom T.hom := |
| 23 | Over.prodLeftIsoPullback T A.scheme ≪≫ pullbackSymmetry T.hom A.scheme.hom |
| 24 | |
| 25 | @[reassoc (attr := simp)] theorem homSourceSchemeIso_fst (T : Over S) : |
| 26 | (homSourceSchemeIso A T).hom ≫ pullback.fst A.scheme.hom T.hom = |
| 27 | (prod.snd : T ⨯ A.scheme ⟶ A.scheme).left := by |
| 28 | simp only [homSourceSchemeIso, Iso.trans_hom, Category.assoc, |
| 29 | pullbackSymmetry_hom_comp_fst, Over.prodLeftIsoPullback_hom_snd] |
| 30 | |
| 31 | @[reassoc (attr := simp)] theorem homSourceSchemeIso_snd (T : Over S) : |
| 32 | (homSourceSchemeIso A T).hom ≫ pullback.snd A.scheme.hom T.hom = |
| 33 | (prod.fst : T ⨯ A.scheme ⟶ T).left := by |
| 34 | simp only [homSourceSchemeIso, Iso.trans_hom, Category.assoc, |
| 35 | pullbackSymmetry_hom_comp_snd, Over.prodLeftIsoPullback_hom_fst] |
| 36 | |
| 37 | def homSourceIso (T : Over S) : T ⨯ A.scheme ≅ |
| 38 | (Over.map T.hom).obj (A.pullback T.hom).scheme := |
| 39 | Over.isoMk (homSourceSchemeIso A T) (by |
| 40 | change (homSourceSchemeIso A T).hom ≫ (pullback.snd A.scheme.hom T.hom ≫ T.hom) = _ |
| 41 | rw [← Category.assoc, homSourceSchemeIso_snd] |
| 42 | exact (prod.fst : T ⨯ A.scheme ⟶ T).w) |
| 43 | |
| 44 | /-- Relative self-maps are exactly the actual maps T × A → A. -/ |
| 45 | def relativeHomEquiv (T : Over S) : |
| 46 | ((A.pullback T.hom).scheme ⟶ (A.pullback T.hom).scheme) ≃ |
| 47 | (T ⨯ A.scheme ⟶ A.scheme) := |
| 48 | ((Over.mapPullbackAdj T.hom).homEquiv (A.pullback T.hom).scheme A.scheme).symm.trans |
| 49 | ((homSourceIso A T).symm.homCongr (Iso.refl A.scheme)) |
| 50 | |
| 51 | theorem relativeHomEquiv_left (T : Over S) |
| 52 | (r : (A.pullback T.hom).scheme ⟶ (A.pullback T.hom).scheme) : |
| 53 | (relativeHomEquiv A T r).left = |
| 54 | (homSourceSchemeIso A T).hom ≫ r.left ≫ pullback.fst A.scheme.hom T.hom := by |
| 55 | change (homSourceSchemeIso A T).hom ≫ |
| 56 | (r.left ≫ pullback.fst A.scheme.hom T.hom) ≫ 𝟙 A.scheme.left = _ |
| 57 | rw [Category.comp_id] |
| 58 | |
| 59 | theorem homSource_naturality {T U : Over S} (f : T ⟶ U) : |
| 60 | (homSourceSchemeIso A T).hom ≫ EndomorphismFamiliesId.EndomorphismFamilies.familyMap A f = |
| 61 | (prod.map f (𝟙 A.scheme)).left ≫ (homSourceSchemeIso A U).hom := by |
| 62 | apply pullback.hom_ext |
| 63 | · rw [Category.assoc, EndomorphismFamiliesId.EndomorphismFamilies.familyMap_fst, homSourceSchemeIso_fst, Category.assoc, |
| 64 | homSourceSchemeIso_fst, ← Over.comp_left, prod.map_snd, Category.comp_id] |
| 65 | · rw [Category.assoc, EndomorphismFamiliesId.EndomorphismFamilies.familyMap_snd, ← Category.assoc, homSourceSchemeIso_snd, |
| 66 | Category.assoc, homSourceSchemeIso_snd, ← Over.comp_left] |
| 67 | exact (congrArg Over.Hom.left (prod.map_fst f (𝟙 A.scheme))).symm |
| 68 | |
| 69 | /-- Geometric restriction is the same map as precomposition in Presentations's |
| 70 | relative Hom functor. -/ |
| 71 | theorem relativeHom_restrict {T U : Over S} (f : T ⟶ U) |
| 72 | (r : Finite.Actions.GroupEndRing (A.pullback U.hom)) : |
| 73 | relativeHomEquiv A T ((EndomorphismFamiliesId.EndomorphismFamilies.restrict A f r).hom (A.pullback T.hom)) = |
| 74 | prod.map f (𝟙 A.scheme) ≫ relativeHomEquiv A U (r.hom (A.pullback U.hom)) := by |
| 75 | apply Over.OverMorphism.ext |
| 76 | rw [Over.comp_left, relativeHomEquiv_left, relativeHomEquiv_left] |
| 77 | change (homSourceSchemeIso A T).hom ≫ |
| 78 | EndomorphismFamiliesId.EndomorphismFamilies.endHom A (EndomorphismFamiliesId.EndomorphismFamilies.restrict A f r) ≫ pullback.fst A.scheme.hom T.hom = |
| 79 | (prod.map f (𝟙 A.scheme)).left ≫ |
| 80 | (homSourceSchemeIso A U).hom ≫ EndomorphismFamiliesId.EndomorphismFamilies.endHom A r ≫ pullback.fst A.scheme.hom U.hom |
| 81 | rw [EndomorphismFamiliesId.EndomorphismFamilies.restrict_fst, ← Category.assoc (homSourceSchemeIso A T).hom, |
| 82 | homSource_naturality, Category.assoc] |
| 83 | |
| 84 | /-- Forget only the group-homomorphism equations, retaining the actual |
| 85 | relative scheme morphism. -/ |
| 86 | def homInclusion : (EndomorphismFamiliesId.EndomorphismFamilies.endomorphismFunctor A ⋙ forget RingCat) ⟶ |
| 87 | HilbertScheme.Presentations.HomFunctor.Hom.morphismFunctor A.scheme A.scheme where |
| 88 | app T := TypeCat.ofHom (fun r => relativeHomEquiv A T.unop (r.hom (A.pullback T.unop.hom))) |
| 89 | naturality {T U} f := by |
| 90 | apply ConcreteCategory.ext_apply |
| 91 | intro r |
| 92 | exact relativeHom_restrict A f.unop r |
| 93 | |
| 94 | theorem homInclusion_injective (T : Over S) : |
| 95 | Function.Injective ((homInclusion A).app (op T)) := by |
| 96 | intro r q h |
| 97 | apply Finite.Actions.GroupEndRing.ext |
| 98 | exact (relativeHomEquiv A T).injective h |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.EndomorphismHom.EndomorphismFamilies |