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.EquationLoci |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.HomFunctor |
| 3 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Section.Comparisons |
| 4 | |
| 5 | /-! # Hom Equations -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Group.HomEquations.GroupHomEquations |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The group-homomorphism equations form an actual closed locus inside |
| 12 | the relative Hom scheme. The only parameter representations used are |
| 13 | the two ordinary relative Hom functors supplied by Presentations. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 17 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {S : Scheme.{u}} (G : Over S) [GrpObj G] |
| 22 | |
| 23 | def unitAxis (T : Over S) : T ⟶ T ⨯ G := prod.lift (𝟙 T) 1 |
| 24 | |
| 25 | def multiplied {T : Over S} (f : T ⨯ G ⟶ G) : T ⨯ (G ⨯ G) ⟶ G := |
| 26 | prod.map (𝟙 T) (prod.fst * prod.snd : G ⨯ G ⟶ G) ≫ f |
| 27 | |
| 28 | def multiplyImages {T : Over S} (f : T ⨯ G ⟶ G) : T ⨯ (G ⨯ G) ⟶ G := |
| 29 | (prod.map (𝟙 T) prod.fst ≫ f) * (prod.map (𝟙 T) prod.snd ≫ f) |
| 30 | |
| 31 | def RespectsGroup {T : Over S} (f : T ⨯ G ⟶ G) : Prop := |
| 32 | unitAxis G T ≫ f = 1 ∧ multiplied G f = multiplyImages G f |
| 33 | |
| 34 | theorem unitAxis_naturality {T U : Over S} (a : T ⟶ U) : |
| 35 | unitAxis G T ≫ prod.map a (𝟙 G) = a ≫ unitAxis G U := by |
| 36 | apply prod.hom_ext |
| 37 | · simp only [unitAxis, Category.assoc, prod.map_fst, prod.lift_fst_assoc, |
| 38 | prod.lift_fst, Category.id_comp, Category.comp_id] |
| 39 | · simp only [unitAxis, Category.assoc, prod.map_snd, |
| 40 | prod.lift_snd, Category.comp_id, MonObj.comp_one] |
| 41 | |
| 42 | theorem multiplied_restrict {T U : Over S} (a : T ⟶ U) (f : U ⨯ G ⟶ G) : |
| 43 | multiplied G (prod.map a (𝟙 G) ≫ f) = |
| 44 | prod.map a (𝟙 (G ⨯ G)) ≫ multiplied G f := by |
| 45 | simp only [multiplied, ← Category.assoc, prod.map_map, Category.id_comp, Category.comp_id] |
| 46 | |
| 47 | theorem multiplyImages_restrict {T U : Over S} (a : T ⟶ U) (f : U ⨯ G ⟶ G) : |
| 48 | multiplyImages G (prod.map a (𝟙 G) ≫ f) = |
| 49 | prod.map a (𝟙 (G ⨯ G)) ≫ multiplyImages G f := by |
| 50 | simp only [multiplyImages, MonObj.comp_mul, ← Category.assoc, prod.map_map, |
| 51 | Category.id_comp, Category.comp_id] |
| 52 | |
| 53 | variable (H J : Over S) |
| 54 | (eH : (HilbertScheme.Presentations.HomFunctor.Hom.morphismFunctor G G).RepresentableBy H) |
| 55 | (eJ : (HilbertScheme.Presentations.HomFunctor.Hom.morphismFunctor (G ⨯ G) G).RepresentableBy J) |
| 56 | [hG : IsSeparated G.hom] [hJ : IsSeparated J.hom] |
| 57 | |
| 58 | def universal : H ⨯ G ⟶ G := eH.homEquiv (𝟙 H) |
| 59 | |
| 60 | omit [GrpObj G] hG in |
| 61 | theorem universal_restrict {T : Over S} (a : T ⟶ H) : |
| 62 | eH.homEquiv a = prod.map a (𝟙 G) ≫ universal G H eH := by |
| 63 | exact (congrArg eH.homEquiv (Category.comp_id a)).symm.trans |
| 64 | (eH.homEquiv_comp a (𝟙 H)) |
| 65 | |
| 66 | omit [GrpObj G] hG hJ in |
| 67 | theorem classify_product_element {T U : Over S} (a : T ⟶ U) |
| 68 | (r : U ⨯ (G ⨯ G) ⟶ G) : |
| 69 | eJ.homEquiv (a ≫ eJ.homEquiv.symm r) = prod.map a (𝟙 (G ⨯ G)) ≫ r := |
| 70 | (eJ.homEquiv_comp a (eJ.homEquiv.symm r)).trans |
| 71 | (congrArg (fun v => prod.map a (𝟙 (G ⨯ G)) ≫ v) (eJ.homEquiv.apply_symm_apply r)) |
| 72 | |
| 73 | def unitEquation : HilbertScheme.Presentations.EquationLoci.MorphismEquation H where |
| 74 | target := G |
| 75 | separated := inferInstance |
| 76 | lhs := unitAxis G H ≫ universal G H eH |
| 77 | rhs := 1 |
| 78 | |
| 79 | def multiplicationEquation : HilbertScheme.Presentations.EquationLoci.MorphismEquation H where |
| 80 | target := J |
| 81 | separated := inferInstance |
| 82 | lhs := eJ.homEquiv.symm (multiplied G (universal G H eH)) |
| 83 | rhs := eJ.homEquiv.symm (multiplyImages G (universal G H eH)) |
| 84 | |
| 85 | def equations : List (HilbertScheme.Presentations.EquationLoci.MorphismEquation H) := |
| 86 | [unitEquation G H eH, multiplicationEquation G H J eH eJ] |
| 87 | |
| 88 | theorem satisfies_iff {T : Over S} (a : T ⟶ H) : |
| 89 | HilbertScheme.Presentations.EquationLoci.Satisfies (equations G H J eH eJ) a ↔ RespectsGroup G (eH.homEquiv a) := by |
| 90 | have hu : a ≫ (unitEquation G H eH).lhs = a ≫ (unitEquation G H eH).rhs ↔ |
| 91 | unitAxis G T ≫ eH.homEquiv a = 1 := by |
| 92 | simp only [unitEquation, universal_restrict, ← Category.assoc, unitAxis_naturality, |
| 93 | MonObj.comp_one] |
| 94 | have hm : a ≫ (multiplicationEquation G H J eH eJ).lhs = |
| 95 | a ≫ (multiplicationEquation G H J eH eJ).rhs ↔ |
| 96 | multiplied G (eH.homEquiv a) = multiplyImages G (eH.homEquiv a) := by |
| 97 | let c : (T ⟶ J) ≃ (T ⨯ (G ⨯ G) ⟶ G) := eJ.homEquiv |
| 98 | refine Iff.trans c.injective.eq_iff.symm ?_ |
| 99 | change eJ.homEquiv (a ≫ eJ.homEquiv.symm _) = |
| 100 | eJ.homEquiv (a ≫ eJ.homEquiv.symm _) ↔ _ |
| 101 | rw [classify_product_element, classify_product_element, |
| 102 | universal_restrict, multiplied_restrict, multiplyImages_restrict] |
| 103 | rfl |
| 104 | change (∀ e ∈ [unitEquation G H eH, multiplicationEquation G H J eH eJ], |
| 105 | a ≫ e.lhs = a ≫ e.rhs) ↔ _ |
| 106 | simp only [List.mem_cons, List.not_mem_nil, forall_eq_or_imp, |
| 107 | RespectsGroup, hu, hm, forall_false, implies_true, and_true] |
| 108 | |
| 109 | include eJ hG hJ in |
| 110 | theorem exists_closed_group_hom_locus : |
| 111 | ∃ (Z : Over S) (j : Z ⟶ H), IsClosedImmersion j.left ∧ |
| 112 | RespectsGroup G (eH.homEquiv j) ∧ |
| 113 | ∀ (T : Over S) (f : T ⨯ G ⟶ G), RespectsGroup G f → |
| 114 | ∃! a : T ⟶ Z, eH.homEquiv (a ≫ j) = f := by |
| 115 | obtain ⟨Z, j, hj, hZ⟩ := HilbertScheme.Presentations.EquationLoci.finite_equations_closed_locus (equations G H J eH eJ) |
| 116 | let := hj |
| 117 | have : Mono j := Over.mono_of_mono_left j |
| 118 | have hjGroup : RespectsGroup G (eH.homEquiv j) := (satisfies_iff G H J eH eJ j).mp |
| 119 | ((hZ Z j).mpr ⟨𝟙 Z, Category.id_comp j, fun a ha => |
| 120 | (cancel_mono j).mp (ha.trans (Category.id_comp j).symm)⟩) |
| 121 | refine ⟨Z, j, hj, hjGroup, ?_⟩ |
| 122 | intro T f hf |
| 123 | let p : T ⟶ H := eH.homEquiv.symm f |
| 124 | have hp : eH.homEquiv p = f := eH.homEquiv.apply_symm_apply f |
| 125 | obtain ⟨a, ha, huniq⟩ := (hZ T p).mp |
| 126 | ((satisfies_iff G H J eH eJ p).mpr (hp.symm ▸ hf)) |
| 127 | refine ⟨a, (congrArg eH.homEquiv ha).trans hp, ?_⟩ |
| 128 | intro b hb |
| 129 | exact huniq b (eH.homEquiv.injective (hb.trans hp.symm)) |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Group.HomEquations.GroupHomEquations |