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.ReferenceFamily.ProperMapImmersionLocus |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.EtaleSubgroup |
| 3 | |
| 4 | /-! # Etale Subgroup Containment -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.AbelianModuli.ReferenceFamily.Finite.EtaleSubgroupContainment |
| 11 | |
| 12 | /-! Containment of two actual finite etale subgroup families is a |
| 13 | clopen condition on their common parameter. The classifier retains |
| 14 | all test schemes, including nonreduced ones. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SubgroupFunctor |
| 20 | |
| 21 | variable {S : Scheme.{0}} {H T : Over S} [GrpObj H] |
| 22 | |
| 23 | def RelativeSubgroupContained (F G : AbelianScheme.TorsionQuotient.SubgroupFunctor.RelativeSubgroup H T) : Prop := |
| 24 | ∀ (X : Over S) (t : X ⟶ T), F.points X t ≤ G.points X t |
| 25 | |
| 26 | theorem relativeSubgroupContained_baseChange {F G : AbelianScheme.TorsionQuotient.SubgroupFunctor.RelativeSubgroup H T} |
| 27 | (h : RelativeSubgroupContained F G) {U : Over S} (f : U ⟶ T) : |
| 28 | RelativeSubgroupContained (F.baseChange f) (G.baseChange f) := |
| 29 | fun X t => h X (t ≫ f) |
| 30 | |
| 31 | theorem relativeSubgroupContained_iff_model {F G : AbelianScheme.TorsionQuotient.SubgroupFunctor.RelativeSubgroup H T} |
| 32 | (R : F.Model) : |
| 33 | RelativeSubgroupContained F G ↔ R.toGroup ∈ G.points R.carrier R.toBase := by |
| 34 | constructor |
| 35 | · intro h |
| 36 | exact h R.carrier R.toBase ((R.points_iff _ _ _).mpr |
| 37 | ⟨𝟙 R.carrier, Category.id_comp _, Category.id_comp _⟩) |
| 38 | · intro h X t a ha |
| 39 | obtain ⟨k, hk, ha'⟩ := (R.points_iff X t a).mp ha |
| 40 | have hm := G.naturality k R.toBase h |
| 41 | rwa [hk, ha'] at hm |
| 42 | |
| 43 | theorem relativeSubgroup_eq_iff_contained (F G : AbelianScheme.TorsionQuotient.SubgroupFunctor.RelativeSubgroup H T) : |
| 44 | F = G ↔ RelativeSubgroupContained F G ∧ RelativeSubgroupContained G F := by |
| 45 | constructor |
| 46 | · rintro rfl |
| 47 | exact ⟨fun _ _ => le_rfl, fun _ _ => le_rfl⟩ |
| 48 | · rintro ⟨hFG, hGF⟩ |
| 49 | ext X t |
| 50 | exact le_antisymm (hFG X t) (hGF X t) |
| 51 | |
| 52 | variable [IsFinite H.hom] [Etale H.hom] |
| 53 | {F G : AbelianScheme.TorsionQuotient.SubgroupFunctor.RelativeSubgroup H T} (R : F.Model) (Q : G.Model) |
| 54 | |
| 55 | def finiteEtaleSubgroupContainmentLocus : T.left.Opens := by |
| 56 | let : IsFinite R.toBase.left := R.finite |
| 57 | exact ProperMapImmersionLocus.properMapImmersionLocus R.toBase.left |
| 58 | (AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion R).left (AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion Q).left |
| 59 | |
| 60 | theorem finiteEtaleSubgroupContainmentLocus_isClosed : |
| 61 | IsClosed (finiteEtaleSubgroupContainmentLocus R Q : Set T.left) := by |
| 62 | let : IsFinite R.toBase.left := R.finite |
| 63 | let : Etale R.toBase.left := AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.etale R |
| 64 | exact ProperMapImmersionLocus.properMapImmersionLocus_isClosed R.toBase.left |
| 65 | (AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion R).left (AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion Q).left |
| 66 | R.toBase.left.isOpenMap |
| 67 | |
| 68 | theorem finiteEtaleSubgroupContainmentLocus_classifies |
| 69 | {U : Over S} (f : U ⟶ T) : |
| 70 | Set.range f.left ⊆ finiteEtaleSubgroupContainmentLocus R Q ↔ |
| 71 | RelativeSubgroupContained (F.baseChange f) (G.baseChange f) := by |
| 72 | let : IsFinite R.toBase.left := R.finite |
| 73 | let a : (R.baseChange f).carrier ⟶ R.carrier := pullback.fst R.toBase f |
| 74 | let b : (R.baseChange f).carrier ⟶ U := pullback.snd R.toBase f |
| 75 | let v : R.carrier ⟶ T ⊗ H := AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion R |
| 76 | have hs : IsPullback a.left b.left R.toBase.left f.left := |
| 77 | (IsPullback.of_hasPullback R.toBase f).map (Over.forget S) |
| 78 | have ht : Set.range f.left ⊆ finiteEtaleSubgroupContainmentLocus R Q ↔ |
| 79 | ∀ z : (R.baseChange f).carrier.left, |
| 80 | v.left (a.left z) ∈ Set.range (AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion Q).left := |
| 81 | ProperMapImmersionLocus.schemeFiberwiseOpenLocus_baseChange R.toBase.left |
| 82 | (v.left ⁻¹ᵁ ⟨Set.range (AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion Q).left, |
| 83 | (AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion Q).left.isOpenMap.isOpen_range⟩) |
| 84 | a.left b.left f.left hs |
| 85 | refine ht.trans ?_ |
| 86 | rw [relativeSubgroupContained_iff_model (R.baseChange f)] |
| 87 | change (∀ z : (R.baseChange f).carrier.left, |
| 88 | v.left (a.left z) ∈ Set.range (AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.inclusion Q).left) ↔ |
| 89 | a ≫ R.toGroup ∈ G.points (R.baseChange f).carrier (b ≫ f) |
| 90 | rw [AbelianScheme.TorsionQuotient.EtaleSubgroup.EtaleSubgroupModels.membership_iff_range Q (b ≫ f) (a ≫ R.toGroup)] |
| 91 | have hp : lift (b ≫ f) (a ≫ R.toGroup) = a ≫ v := by |
| 92 | rw [← show a ≫ R.toBase = b ≫ f from pullback.condition] |
| 93 | exact (comp_lift a R.toBase R.toGroup).symm |
| 94 | rw [hp] |
| 95 | constructor |
| 96 | · intro h y hy |
| 97 | obtain ⟨z, rfl⟩ := hy |
| 98 | exact h z |
| 99 | · intro h z |
| 100 | exact h ⟨z, rfl⟩ |
| 101 | |
| 102 | end AlgebraicGeometry.AbelianModuli.ReferenceFamily.Finite.EtaleSubgroupContainment |
| 103 | |
| 104 | namespace AlgebraicGeometry.AbelianModuli.ReferenceFamily.Finite.EtaleSubgroupContainment.FiniteEtaleSubgroupEquality |
| 105 | |
| 106 | /-! Equality of two finite etale subgroup families is represented by |
| 107 | an actual clopen subscheme of their parameter, with unique classifiers |
| 108 | on every test scheme. -/ |
| 109 | |
| 110 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 111 | |
| 112 | open OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SubgroupFunctor |
| 113 | |
| 114 | variable {S : Scheme.{0}} {H T : Over S} [GrpObj H] |
| 115 | [IsFinite H.hom] [Etale H.hom] |
| 116 | {F G : AbelianScheme.TorsionQuotient.SubgroupFunctor.RelativeSubgroup H T} (R : F.Model) (Q : G.Model) |
| 117 | |
| 118 | def locus : T.left.Opens := |
| 119 | finiteEtaleSubgroupContainmentLocus R Q ⊓ finiteEtaleSubgroupContainmentLocus Q R |
| 120 | |
| 121 | theorem locus_isClosed : IsClosed (locus R Q : Set T.left) := |
| 122 | (finiteEtaleSubgroupContainmentLocus_isClosed R Q).inter |
| 123 | (finiteEtaleSubgroupContainmentLocus_isClosed Q R) |
| 124 | |
| 125 | theorem range_subset_locus_iff {U : Over S} (f : U ⟶ T) : |
| 126 | Set.range f.left ⊆ locus R Q ↔ F.baseChange f = G.baseChange f := by |
| 127 | change (Set.range f.left ⊆ |
| 128 | (finiteEtaleSubgroupContainmentLocus R Q : Set T.left) ∩ |
| 129 | (finiteEtaleSubgroupContainmentLocus Q R : Set T.left)) ↔ _ |
| 130 | rw [Set.subset_inter_iff, finiteEtaleSubgroupContainmentLocus_classifies R Q f, |
| 131 | finiteEtaleSubgroupContainmentLocus_classifies Q R f] |
| 132 | exact (relativeSubgroup_eq_iff_contained _ _).symm |
| 133 | |
| 134 | def carrier : Over S := Over.mk ((locus R Q).ι ≫ T.hom) |
| 135 | |
| 136 | def inclusion : FiniteEtaleSubgroupEquality.carrier R Q ⟶ T := Over.homMk (locus R Q).ι rfl |
| 137 | |
| 138 | instance inclusion_open : IsOpenImmersion (inclusion R Q).left := |
| 139 | inferInstanceAs (IsOpenImmersion (locus R Q).ι) |
| 140 | |
| 141 | instance inclusion_closed : IsClosedImmersion (inclusion R Q).left := by |
| 142 | apply IsClosedImmersion.of_isPreimmersion |
| 143 | change IsClosed (Set.range (locus R Q).ι) |
| 144 | rw [Scheme.Opens.range_ι] |
| 145 | exact locus_isClosed R Q |
| 146 | |
| 147 | instance inclusion_mono : Mono (inclusion R Q) := Over.mono_of_mono_left _ |
| 148 | |
| 149 | instance carrier_finite [IsFinite T.hom] : IsFinite (FiniteEtaleSubgroupEquality.carrier R Q).hom := |
| 150 | inferInstanceAs (IsFinite ((inclusion R Q).left ≫ T.hom)) |
| 151 | |
| 152 | instance carrier_etale [Etale T.hom] : Etale (FiniteEtaleSubgroupEquality.carrier R Q).hom := |
| 153 | inferInstanceAs (Etale ((inclusion R Q).left ≫ T.hom)) |
| 154 | |
| 155 | theorem classifies {U : Over S} (f : U ⟶ T) : |
| 156 | (∃! g : U ⟶ FiniteEtaleSubgroupEquality.carrier R Q, g ≫ inclusion R Q = f) ↔ |
| 157 | F.baseChange f = G.baseChange f := by |
| 158 | refine Iff.trans ?_ (range_subset_locus_iff R Q f) |
| 159 | constructor |
| 160 | · rintro ⟨g, hg, _⟩ y ⟨x, rfl⟩ |
| 161 | rw [← hg] |
| 162 | exact (g.left x).property |
| 163 | · intro hr |
| 164 | have hr' : Set.range f.left ⊆ Set.range (locus R Q).ι := by |
| 165 | rw [Scheme.Opens.range_ι] |
| 166 | exact hr |
| 167 | let l := IsOpenImmersion.lift (locus R Q).ι f.left hr' |
| 168 | have hl : l ≫ (locus R Q).ι = f.left := IsOpenImmersion.lift_fac _ _ _ |
| 169 | let g : U ⟶ FiniteEtaleSubgroupEquality.carrier R Q := Over.homMk l (by |
| 170 | change l ≫ ((locus R Q).ι ≫ T.hom) = U.hom |
| 171 | rw [← Category.assoc, hl, f.w]) |
| 172 | have hg : g ≫ inclusion R Q = f := Over.OverMorphism.ext hl |
| 173 | exact ⟨g, hg, fun a ha => (cancel_mono (inclusion R Q)).mp (ha.trans hg.symm)⟩ |
| 174 | |
| 175 | theorem universal_equality : |
| 176 | F.baseChange (inclusion R Q) = G.baseChange (inclusion R Q) := by |
| 177 | apply (classifies R Q (inclusion R Q)).mp |
| 178 | exact ⟨𝟙 (FiniteEtaleSubgroupEquality.carrier R Q), Category.id_comp _, |
| 179 | fun a ha => (cancel_mono (inclusion R Q)).mp (ha.trans (Category.id_comp _).symm)⟩ |
| 180 | |
| 181 | end AlgebraicGeometry.AbelianModuli.ReferenceFamily.Finite.EtaleSubgroupContainment.FiniteEtaleSubgroupEquality |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI |