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.HilbertScheme.Presentations.Hilbert.ClosedAmbientNaturality |
| 2 | import Mathlib.CategoryTheory.Subfunctor.Image |
| 3 | |
| 4 | /-! # Closed Ambient Range -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.ClosedAmbientRange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The image of the closed-ambient Hilbert map consists precisely of |
| 11 | families whose defining ideal contains the ambient embedding's kernel. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {S : Scheme.{u}} {X Y : Over S} (j : X ⟶ Y) [IsClosedImmersion j.left] |
| 17 | variable {T : Over S} (F : Functor.Family Y T) (hF : (ClosedAmbientMap.ambientEmbedding j T).ker ≤ F.val) |
| 18 | |
| 19 | def closedAmbientLift : F.val.subscheme ⟶ Functor.ambient X T := |
| 20 | IsClosedImmersion.lift (ClosedAmbientMap.ambientEmbedding j T) F.val.subschemeι |
| 21 | (by simpa only [F.val.ker_subschemeι] using hF) |
| 22 | |
| 23 | theorem closedAmbientLift_fac : closedAmbientLift j F hF ≫ ClosedAmbientMap.ambientEmbedding j T = F.val.subschemeι := |
| 24 | IsClosedImmersion.lift_fac _ _ _ |
| 25 | |
| 26 | instance closedAmbientLift_isClosedImmersion : IsClosedImmersion (closedAmbientLift j F hF) := by |
| 27 | let : IsClosedImmersion (closedAmbientLift j F hF ≫ ClosedAmbientMap.ambientEmbedding j T) := |
| 28 | (closedAmbientLift_fac j F hF).symm ▸ inferInstanceAs (IsClosedImmersion F.val.subschemeι) |
| 29 | exact IsClosedImmersion.of_comp_isClosedImmersion (closedAmbientLift j F hF) (ClosedAmbientMap.ambientEmbedding j T) |
| 30 | |
| 31 | theorem closedAmbientLift_projection : |
| 32 | closedAmbientLift j F hF ≫ Functor.ambientProjection X T = Functor.familyProjection Y F.val := by |
| 33 | rw [← ClosedAmbientMap.ambientEmbedding_projection j T, ← Category.assoc, closedAmbientLift_fac] |
| 34 | rfl |
| 35 | |
| 36 | def restrictAmbientFamily : Functor.Family X T := by |
| 37 | let l := closedAmbientLift j F hF |
| 38 | have he : l ≫ Functor.ambientProjection X T = Functor.familyProjection Y F.val := closedAmbientLift_projection j F hF |
| 39 | let : Flat (l ≫ Functor.ambientProjection X T) := he.symm ▸ F.property.1 |
| 40 | let : IsProper (l ≫ Functor.ambientProjection X T) := he.symm ▸ F.property.2.1 |
| 41 | let : LocallyOfFinitePresentation (l ≫ Functor.ambientProjection X T) := he.symm ▸ F.property.2.2 |
| 42 | exact Closed.ImmersionFamily.Hilbert.closedImmersionFamily X l |
| 43 | |
| 44 | theorem pushforward_restrictAmbientFamily : |
| 45 | ClosedAmbientMap.pushforwardFamily j (restrictAmbientFamily j F hF) = F := by |
| 46 | apply Subtype.ext |
| 47 | change (closedAmbientLift j F hF).ker.map (ClosedAmbientMap.ambientEmbedding j T) = F.val |
| 48 | rw [Scheme.IdealSheafData.map_ker, closedAmbientLift_fac, F.val.ker_subschemeι] |
| 49 | |
| 50 | theorem restrictAmbientFamily_ideal : |
| 51 | (restrictAmbientFamily j F hF).val = F.val.comap (ClosedAmbientMap.ambientEmbedding j T) := by |
| 52 | have h := congrArg (fun G : Functor.Family Y T => G.val.comap (ClosedAmbientMap.ambientEmbedding j T)) |
| 53 | (pushforward_restrictAmbientFamily j F hF) |
| 54 | exact (Closed.ImmersionIdealEmbedding.ideal_comap_map_closed (ClosedAmbientMap.ambientEmbedding j T) (restrictAmbientFamily j F hF).val).symm.trans h |
| 55 | |
| 56 | omit hF in |
| 57 | theorem pushforwardFamily_range_iff : |
| 58 | (∃ G : Functor.Family X T, ClosedAmbientMap.pushforwardFamily j G = F) ↔ (ClosedAmbientMap.ambientEmbedding j T).ker ≤ F.val := by |
| 59 | constructor |
| 60 | · rintro ⟨G, rfl⟩ |
| 61 | exact Scheme.Hom.le_ker_comp G.val.subschemeι (ClosedAmbientMap.ambientEmbedding j T) |
| 62 | · intro h |
| 63 | exact ⟨restrictAmbientFamily j F h, pushforward_restrictAmbientFamily j F h⟩ |
| 64 | |
| 65 | def closedAmbientHilbertLocus : Subfunctor (Functor.familyFunctor Y) := |
| 66 | Subfunctor.range (ClosedAmbientNaturality.closedAmbientTransformation j) |
| 67 | |
| 68 | omit hF in |
| 69 | theorem closedAmbientHilbertLocus_mem : |
| 70 | F ∈ (closedAmbientHilbertLocus j).obj (.op T) ↔ (ClosedAmbientMap.ambientEmbedding j T).ker ≤ F.val := |
| 71 | pushforwardFamily_range_iff j F |
| 72 | |
| 73 | def closedAmbientHilbertEquivalence : Functor.familyFunctor X ≅ (closedAmbientHilbertLocus j).toFunctor := by |
| 74 | let t : Functor.familyFunctor X ⟶ Functor.familyFunctor Y := ClosedAmbientNaturality.closedAmbientTransformation j |
| 75 | let : Mono t := ClosedAmbientNaturality.closedAmbientTransformation_mono j |
| 76 | let e := asIso (Subfunctor.toRange t) |
| 77 | exact e |
| 78 | |
| 79 | theorem closedAmbientHilbertEquivalence_inclusion : |
| 80 | (closedAmbientHilbertEquivalence j).hom ≫ (closedAmbientHilbertLocus j).ι = |
| 81 | ClosedAmbientNaturality.closedAmbientTransformation j := rfl |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.ClosedAmbientRange |