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.CoverComparisons |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ClosedFamily.AmbientTransport |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ClosedFamily.Gluing |
| 4 | |
| 5 | /-! # Family Descent Data -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Embedded.FamilyDescentData |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Compatible embedded flat families on a directed base cover give effective ideal descent data. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S : Scheme.{u}} (P T : Over S) (C : T.left.OpenCover) |
| 18 | variable [Category C.I₀] [C.LocallyDirected] |
| 19 | |
| 20 | /-- Local embedded families agreeing under all transitions of a directed base cover. -/ |
| 21 | structure EmbeddedFamilyDescentData where |
| 22 | family : ∀ i, Closed.Families.FlatClosedFamily (FamilyFunctor.embeddedFamilyAmbient P (FamilyOpenCover.overOpenCoverObject T C i)) |
| 23 | compatible : ∀ {i j} (f : i ⟶ j), |
| 24 | (FamilyFunctor.embeddedFlatFamilyFunctor P).map (CoverComparisons.overOpenCoverTransition T C f).op (family j) = family i |
| 25 | |
| 26 | namespace EmbeddedFamilyDescentData |
| 27 | |
| 28 | variable {P T C} (D : EmbeddedFamilyDescentData P T C) |
| 29 | |
| 30 | /-- Transfer each local ideal family onto the ordinary pullback ambient. -/ |
| 31 | def canonicalFamily (i : C.I₀) : Closed.Families.FlatClosedFamily (CoverComparisons.coverPullbackAmbient P T C i) := |
| 32 | (D.family i).changeAmbient (CoverComparisons.embeddedCoverIso P T C i) |
| 33 | |
| 34 | /-- The transferred ideals agree on the actual transitions of the pullback cover. -/ |
| 35 | def idealDescentData : IdealDescent.IdealDescentData (C.pullback₁ (FamilyFunctor.embeddedFamilyAmbient P T).hom) where |
| 36 | ideal i := (D.canonicalFamily i).ideal |
| 37 | compatible {i j} f := by |
| 38 | let eᵢ := (CoverComparisons.embeddedCoverIso P T C i).inv.left |
| 39 | let eⱼ := (CoverComparisons.embeddedCoverIso P T C j).inv.left |
| 40 | let a := FamilyFunctor.embeddedFamilyAmbientMap P (CoverComparisons.overOpenCoverTransition T C f) |
| 41 | let d := Scheme.Cover.trans (C.pullback₁ (FamilyFunctor.embeddedFamilyAmbient P T).hom) f |
| 42 | have he : eᵢ ≫ a = d ≫ eⱼ := CoverComparisons.embeddedCoverIso_inv_transition P T C f |
| 43 | have hc : (D.family j).ideal.comap a = (D.family i).ideal := |
| 44 | congrArg Closed.Families.FlatClosedFamily.ideal (D.compatible f) |
| 45 | change ((D.family j).ideal.comap eⱼ).comap d = (D.family i).ideal.comap eᵢ |
| 46 | exact ((D.family j).ideal.comap_comp d eⱼ).symm.trans |
| 47 | ((congrArg (fun p => (D.family j).ideal.comap p) he.symm).trans |
| 48 | (((D.family j).ideal.comap_comp eᵢ a).trans |
| 49 | (congrArg (fun I => I.comap eᵢ) hc))) |
| 50 | |
| 51 | /-- The local structure map to the entire base is its structure map to the cover member followed |
| 52 | by the open immersion into the base. -/ |
| 53 | theorem canonicalFamily_structure (i : C.I₀) : |
| 54 | (D.idealDescentData.ideal i).subschemeι ≫ |
| 55 | (C.pullback₁ (FamilyFunctor.embeddedFamilyAmbient P T).hom).f i ≫ (FamilyFunctor.embeddedFamilyAmbient P T).hom = |
| 56 | (D.canonicalFamily i).scheme.hom ≫ C.f i := by |
| 57 | change (D.canonicalFamily i).ideal.subschemeι ≫ |
| 58 | pullback.fst (FamilyFunctor.embeddedFamilyAmbient P T).hom (C.f i) ≫ (FamilyFunctor.embeddedFamilyAmbient P T).hom = |
| 59 | ((D.canonicalFamily i).ideal.subschemeι ≫ pullback.snd (FamilyFunctor.embeddedFamilyAmbient P T).hom (C.f i)) ≫ C.f i |
| 60 | exact (congrArg (fun p => (D.canonicalFamily i).ideal.subschemeι ≫ p) |
| 61 | (pullback.condition (f := (FamilyFunctor.embeddedFamilyAmbient P T).hom) (g := C.f i))).trans |
| 62 | (Category.assoc _ _ _).symm |
| 63 | |
| 64 | theorem canonicalFamily_flat (i : C.I₀) : |
| 65 | Flat ((D.idealDescentData.ideal i).subschemeι ≫ |
| 66 | (C.pullback₁ (FamilyFunctor.embeddedFamilyAmbient P T).hom).f i ≫ (FamilyFunctor.embeddedFamilyAmbient P T).hom) := by |
| 67 | have : Flat (D.canonicalFamily i).scheme.hom := (D.canonicalFamily i).flat |
| 68 | exact (D.canonicalFamily_structure i).symm ▸ |
| 69 | (inferInstance : Flat ((D.canonicalFamily i).scheme.hom ≫ C.f i)) |
| 70 | |
| 71 | theorem canonicalFamily_locallyFinitePresentation (i : C.I₀) : |
| 72 | LocallyOfFinitePresentation ((D.idealDescentData.ideal i).subschemeι ≫ |
| 73 | (C.pullback₁ (FamilyFunctor.embeddedFamilyAmbient P T).hom).f i ≫ (FamilyFunctor.embeddedFamilyAmbient P T).hom) := by |
| 74 | have : LocallyOfFinitePresentation (D.canonicalFamily i).scheme.hom := |
| 75 | (D.canonicalFamily i).locallyFinitePresentation |
| 76 | exact (D.canonicalFamily_structure i).symm ▸ |
| 77 | (inferInstance : LocallyOfFinitePresentation ((D.canonicalFamily i).scheme.hom ≫ C.f i)) |
| 78 | |
| 79 | end EmbeddedFamilyDescentData |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Embedded.FamilyDescentData |