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 Mathlib.AlgebraicGeometry.IdealSheaf.Functorial |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FinitePresentation |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 5 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Products |
| 6 | |
| 7 | /-! # Functor -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Functor |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | The relative Hilbert functor before decomposition by Hilbert polynomial. |
| 15 | Families are actual ideal sheaves in a scheme-theoretic fiber product, with |
| 16 | flat, proper, locally finitely presented structure map. No parameter space |
| 17 | or representability assertion is included in this definition. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {S : Scheme.{u}} (X : Over S) |
| 25 | |
| 26 | abbrev ambient (T : Over S) : Scheme.{u} := (T ⨯ X).left |
| 27 | |
| 28 | def ambientMap {T U : Over S} (f : T ⟶ U) : ambient X T ⟶ ambient X U := |
| 29 | (prod.map f (𝟙 X)).left |
| 30 | |
| 31 | def ambientProjection (T : Over S) : ambient X T ⟶ T.left := |
| 32 | (prod.fst : T ⨯ X ⟶ T).left |
| 33 | |
| 34 | @[simp] theorem ambientMap_id (T : Over S) : |
| 35 | ambientMap X (𝟙 T) = 𝟙 (ambient X T) := by |
| 36 | change (prod.map (𝟙 T) (𝟙 X)).left = _ |
| 37 | rw [prod.map_id_id] |
| 38 | rfl |
| 39 | |
| 40 | theorem ambientMap_comp {T U V : Over S} (f : T ⟶ U) (g : U ⟶ V) : |
| 41 | ambientMap X (f ≫ g) = ambientMap X f ≫ ambientMap X g := by |
| 42 | change (prod.map (f ≫ g) (𝟙 X)).left = _ |
| 43 | rw [← Category.id_comp (𝟙 X), ← prod.map_map] |
| 44 | rfl |
| 45 | |
| 46 | theorem ambient_isPullback {T U : Over S} (f : T ⟶ U) : |
| 47 | IsPullback (ambientProjection X T) (ambientMap X f) |
| 48 | f.left (ambientProjection X U) := |
| 49 | (IsPullback.of_prod_fst_with_id f X).map (Over.forget S) |
| 50 | |
| 51 | def familyProjection {T : Over S} (I : (ambient X T).IdealSheafData) : |
| 52 | I.subscheme ⟶ T.left := |
| 53 | I.subschemeι ≫ ambientProjection X T |
| 54 | |
| 55 | def IsFamily {T : Over S} (I : (ambient X T).IdealSheafData) : Prop := |
| 56 | Flat (familyProjection X I) ∧ |
| 57 | IsProper (familyProjection X I) ∧ |
| 58 | LocallyOfFinitePresentation (familyProjection X I) |
| 59 | |
| 60 | def Family (T : Over S) := {I : (ambient X T).IdealSheafData // IsFamily X I} |
| 61 | |
| 62 | /-- The map on closed subschemes induced by pullback of their ideal sheaves. -/ |
| 63 | def familyMap {T U : Over S} (f : T ⟶ U) |
| 64 | (I : (ambient X U).IdealSheafData) : |
| 65 | (I.comap (ambientMap X f)).subscheme ⟶ I.subscheme := |
| 66 | (I.comapIso (ambientMap X f)).hom ≫ |
| 67 | pullback.snd (ambientMap X f) I.subschemeι |
| 68 | |
| 69 | theorem family_ambient_isPullback {T U : Over S} (f : T ⟶ U) |
| 70 | (I : (ambient X U).IdealSheafData) : |
| 71 | IsPullback (I.comap (ambientMap X f)).subschemeι |
| 72 | (familyMap X f I) (ambientMap X f) I.subschemeι := by |
| 73 | apply isPullback_of_isClosedImmersion |
| 74 | · dsimp [familyMap] |
| 75 | rw [Category.assoc, ← pullback.condition, |
| 76 | ← Category.assoc, Scheme.IdealSheafData.comapIso_hom_fst] |
| 77 | · simp only [Scheme.IdealSheafData.ker_subschemeι] |
| 78 | |
| 79 | /-- Flatness, properness, and finite presentation are transported along an |
| 80 | actual cartesian square, not stipulated in the pullback construction. -/ |
| 81 | theorem family_isPullback {T U : Over S} (f : T ⟶ U) |
| 82 | (I : (ambient X U).IdealSheafData) : |
| 83 | IsPullback (familyProjection X (I.comap (ambientMap X f))) |
| 84 | (familyMap X f I) f.left (familyProjection X I) := |
| 85 | (family_ambient_isPullback X f I).paste_horiz (ambient_isPullback X f) |
| 86 | |
| 87 | theorem isFamily_comap {T U : Over S} (f : T ⟶ U) |
| 88 | (I : (ambient X U).IdealSheafData) (hI : IsFamily X I) : |
| 89 | IsFamily X (I.comap (ambientMap X f)) := by |
| 90 | exact ⟨MorphismProperty.of_isPullback (family_isPullback X f I).flip hI.1, |
| 91 | MorphismProperty.of_isPullback (family_isPullback X f I).flip hI.2.1, |
| 92 | MorphismProperty.of_isPullback (family_isPullback X f I).flip hI.2.2⟩ |
| 93 | |
| 94 | def pullbackFamily {T U : Over S} (f : T ⟶ U) (I : Family X U) : Family X T := |
| 95 | ⟨I.val.comap (ambientMap X f), isFamily_comap X f I.val I.property⟩ |
| 96 | |
| 97 | theorem pullbackFamily_id {T : Over S} (I : Family X T) : |
| 98 | pullbackFamily X (𝟙 T) I = I := by |
| 99 | apply Subtype.ext |
| 100 | change I.val.comap (ambientMap X (𝟙 T)) = I.val |
| 101 | rw [ambientMap_id, Scheme.IdealSheafData.comap_id] |
| 102 | |
| 103 | theorem pullbackFamily_comp {T U V : Over S} |
| 104 | (f : T ⟶ U) (g : U ⟶ V) (I : Family X V) : |
| 105 | pullbackFamily X (f ≫ g) I = |
| 106 | pullbackFamily X f (pullbackFamily X g I) := by |
| 107 | apply Subtype.ext |
| 108 | change I.val.comap (ambientMap X (f ≫ g)) = |
| 109 | (I.val.comap (ambientMap X g)).comap (ambientMap X f) |
| 110 | rw [ambientMap_comp, Scheme.IdealSheafData.comap_comp] |
| 111 | |
| 112 | /-- The genuine relative Hilbert functor of proper flat finitely presented |
| 113 | closed subschemes of the fibers of X. -/ |
| 114 | def familyFunctor : (Over S)ᵒᵖ ⥤ Type u where |
| 115 | obj T := Family X T.unop |
| 116 | map f := ↾pullbackFamily X f.unop |
| 117 | map_id T := by |
| 118 | ext I |
| 119 | exact pullbackFamily_id X I |
| 120 | map_comp f g := by |
| 121 | ext I |
| 122 | exact pullbackFamily_comp X g.unop f.unop I |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Functor |