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.AbelianScheme.TateComparison.Subgroups |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PELCoherence |
| 3 | |
| 4 | /-! # Subgroup -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite-etale subgroup models and geometric elementary types are |
| 11 | preserved by actual base changes and group-scheme isomorphisms. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 14 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {S S' : Scheme.{u}} {g : ℕ} |
| 19 | |
| 20 | def Subgroup.pullbackPointsEquiv (A : Over S) (s : S' ⟶ S) (T : Over S') : |
| 21 | (T ⟶ (Over.pullback s).obj A) ≃ ((Over.map s).obj T ⟶ A) := |
| 22 | ((Over.mapPullbackAdj s).homEquiv T A).symm |
| 23 | |
| 24 | theorem Subgroup.pullbackPointsEquiv_map {A B : Over S} (f : A ⟶ B) (s : S' ⟶ S) |
| 25 | (T : Over S') (x : T ⟶ (Over.pullback s).obj A) : |
| 26 | TateComparison.Subgroup.pullbackPointsEquiv B s T (x ≫ (Over.pullback s).map f) = |
| 27 | TateComparison.Subgroup.pullbackPointsEquiv A s T x ≫ f := by |
| 28 | apply Over.OverMorphism.ext |
| 29 | change (x.left ≫ ((Over.pullback s).map f).left) ≫ pullback.fst B.hom s = |
| 30 | (x.left ≫ pullback.fst A.hom s) ≫ f.left |
| 31 | rw [Category.assoc, AbelianModuli.HilbertConstruction.Pullback.Comparisons.overPullback_map_left_fst, ← Category.assoc] |
| 32 | |
| 33 | def Subgroup.subgroupComapEquiv {G H : Type*} [Group G] [Group H] (e : G ≃* H) (F : Subgroup H) : |
| 34 | F.comap e.toMonoidHom ≃* F where |
| 35 | toFun x := ⟨e x.val, x.property⟩ |
| 36 | invFun y := ⟨e.symm y.val, by |
| 37 | change e (e.symm y.val) ∈ F |
| 38 | rw [e.apply_symm_apply] |
| 39 | exact y.property⟩ |
| 40 | left_inv x := Subtype.ext (e.symm_apply_apply x.val) |
| 41 | right_inv y := Subtype.ext (e.apply_symm_apply y.val) |
| 42 | map_mul' x y := Subtype.ext (e.map_mul x.val y.val) |
| 43 | |
| 44 | def Subgroup.groupIsoPoints {A B : Over S} [GrpObj A] [GrpObj B] |
| 45 | (e : A ≅ B) [IsMonHom e.hom] (T : Over S) : (T ⟶ A) ≃* (T ⟶ B) where |
| 46 | toFun x := x ≫ e.hom |
| 47 | invFun y := y ≫ e.inv |
| 48 | left_inv x := by simp |
| 49 | right_inv y := by simp |
| 50 | map_mul' x y := MonObj.mul_comp x y e.hom |
| 51 | |
| 52 | variable {A B : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} |
| 53 | |
| 54 | theorem Subgroups.PointSubgroup.comapHom_congr (F : Subgroups.PointSubgroup B) (f h : A.scheme ⟶ B.scheme) |
| 55 | [IsMonHom f] [IsMonHom h] (w : f = h) : F.comapHom f = F.comapHom h := by |
| 56 | subst h |
| 57 | rfl |
| 58 | |
| 59 | theorem Subgroups.PointSubgroup.hasFiniteEtaleModel_pullback (F : Subgroups.PointSubgroup A) (hF : F.HasFiniteEtaleModel) |
| 60 | (s : S' ⟶ S) : (F.pullback s).HasFiniteEtaleModel := by |
| 61 | obtain ⟨H, i, hiGroup, hiMono, hfinite, hetale, hmodel⟩ := hF |
| 62 | let : IsMonHom i := hiGroup |
| 63 | let : Mono i := hiMono |
| 64 | let : IsFinite H.X.hom := hfinite |
| 65 | let : Etale H.X.hom := hetale |
| 66 | let H' := BaseChange.baseChangedGroup H.X s |
| 67 | let i' : H'.X ⟶ (A.pullback s).scheme := (Over.pullback s).map i |
| 68 | refine ⟨H', i', inferInstanceAs (IsMonHom ((Over.pullback s).map i)), |
| 69 | inferInstanceAs (Mono ((Over.pullback s).map i)), ?_, ?_, ?_⟩ |
| 70 | · exact inferInstanceAs (IsFinite (pullback.snd H.X.hom s)) |
| 71 | · exact inferInstanceAs (Etale (pullback.snd H.X.hom s)) |
| 72 | · intro T x |
| 73 | change TateComparison.Subgroup.pullbackPointsEquiv A.scheme s T x ∈ F.atTest ((Over.map s).obj T) ↔ _ |
| 74 | rw [hmodel] |
| 75 | constructor |
| 76 | · rintro ⟨y, hy⟩ |
| 77 | refine ⟨(TateComparison.Subgroup.pullbackPointsEquiv H.X s T).symm y, ?_⟩ |
| 78 | apply (TateComparison.Subgroup.pullbackPointsEquiv A.scheme s T).injective |
| 79 | exact (TateComparison.Subgroup.pullbackPointsEquiv_map i s T ((TateComparison.Subgroup.pullbackPointsEquiv H.X s T).symm y)).trans |
| 80 | ((congrArg (fun z => z ≫ i) ((TateComparison.Subgroup.pullbackPointsEquiv H.X s T).apply_symm_apply y)).trans hy) |
| 81 | · rintro ⟨y, rfl⟩ |
| 82 | exact ⟨TateComparison.Subgroup.pullbackPointsEquiv H.X s T y, (TateComparison.Subgroup.pullbackPointsEquiv_map i s T y).symm⟩ |
| 83 | |
| 84 | theorem Subgroups.PointSubgroup.hasGeometricType_pullback (F : Subgroups.PointSubgroup A) {q : ℕ} {a : Fin 3 → ℕ} |
| 85 | (hF : F.HasGeometricType q a) (s : S' ⟶ S) : (F.pullback s).HasGeometricType q a := by |
| 86 | intro k _ _ t |
| 87 | obtain ⟨e⟩ := hF k (t ≫ s) |
| 88 | exact ⟨(TateComparison.Subgroup.subgroupComapEquiv (A.baseChangePointsMulEquiv s (Over.mk t)) |
| 89 | (F.atTest ((Over.map s).obj (Over.mk t)))).trans e⟩ |
| 90 | |
| 91 | theorem Subgroups.PointSubgroup.hasFiniteEtaleModel_comapIso (F : Subgroups.PointSubgroup B) (hF : F.HasFiniteEtaleModel) |
| 92 | (e : A.scheme ≅ B.scheme) [IsMonHom e.hom] : (F.comapHom e.hom).HasFiniteEtaleModel := by |
| 93 | obtain ⟨H, i, hiGroup, hiMono, hfinite, hetale, hmodel⟩ := hF |
| 94 | let : IsMonHom i := hiGroup |
| 95 | let : Mono i := hiMono |
| 96 | refine ⟨H, i ≫ e.inv, inferInstance, inferInstance, hfinite, hetale, ?_⟩ |
| 97 | intro T x |
| 98 | change x ≫ e.hom ∈ F.atTest T ↔ _ |
| 99 | rw [hmodel] |
| 100 | constructor |
| 101 | · rintro ⟨y, hy⟩ |
| 102 | refine ⟨y, ?_⟩ |
| 103 | rw [← Category.assoc, hy] |
| 104 | simp |
| 105 | · rintro ⟨y, hy⟩ |
| 106 | refine ⟨y, ?_⟩ |
| 107 | rw [← hy] |
| 108 | simp |
| 109 | |
| 110 | theorem Subgroups.PointSubgroup.hasGeometricType_comapIso (F : Subgroups.PointSubgroup B) {q : ℕ} {a : Fin 3 → ℕ} |
| 111 | (hF : F.HasGeometricType q a) (e : A.scheme ≅ B.scheme) [IsMonHom e.hom] : |
| 112 | (F.comapHom e.hom).HasGeometricType q a := by |
| 113 | intro k _ _ t |
| 114 | obtain ⟨h⟩ := hF k t |
| 115 | exact ⟨(TateComparison.Subgroup.subgroupComapEquiv (TateComparison.Subgroup.groupIsoPoints e (Over.mk t)) (F.atTest (Over.mk t))).trans h⟩ |
| 116 | |
| 117 | theorem Subgroups.PointSubgroup.pullback_inf (F G : Subgroups.PointSubgroup A) (s : S' ⟶ S) : |
| 118 | (F.inf G).pullback s = (F.pullback s).inf (G.pullback s) := by |
| 119 | apply Subgroups.PointSubgroup.ext |
| 120 | intro T |
| 121 | rfl |
| 122 | |
| 123 | theorem Subgroups.PointSubgroup.pullback_kernel (f : A.scheme ⟶ B.scheme) [IsMonHom f] (s : S' ⟶ S) : |
| 124 | (Subgroups.PointSubgroup.kernel f).pullback s = @Subgroups.PointSubgroup.kernel S' g |
| 125 | (A.pullback s) (B.pullback s) ((Over.pullback s).map f) |
| 126 | (inferInstanceAs (IsMonHom ((Over.pullback s).map f))) := by |
| 127 | apply Subgroups.PointSubgroup.ext |
| 128 | intro T |
| 129 | ext x |
| 130 | change A.baseChangePointsEquiv s T x ≫ f = 1 ↔ x ≫ (Over.pullback s).map f = 1 |
| 131 | rw [← AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme.baseChangePointsEquiv_map] |
| 132 | exact (B.baseChangePointsMulEquiv s T).map_eq_one_iff |
| 133 | |
| 134 | theorem Subgroups.PointSubgroup.comap_inf (F G : Subgroups.PointSubgroup B) (f : A.scheme ⟶ B.scheme) [IsMonHom f] : |
| 135 | (F.inf G).comapHom f = (F.comapHom f).inf (G.comapHom f) := by |
| 136 | apply Subgroups.PointSubgroup.ext |
| 137 | intro T |
| 138 | rfl |
| 139 | |
| 140 | theorem Subgroups.PointSubgroup.kernel_comp_right_iso {C : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} (f : A.scheme ⟶ B.scheme) [IsMonHom f] |
| 141 | (e : B.scheme ≅ C.scheme) [IsMonHom e.hom] : |
| 142 | Subgroups.PointSubgroup.kernel (f ≫ e.hom) = Subgroups.PointSubgroup.kernel f := by |
| 143 | apply Subgroups.PointSubgroup.ext |
| 144 | intro T |
| 145 | ext x |
| 146 | change x ≫ (f ≫ e.hom) = 1 ↔ x ≫ f = 1 |
| 147 | rw [← Category.assoc, ← (TateComparison.Subgroup.groupIsoPoints e T).map_one] |
| 148 | exact (TateComparison.Subgroup.groupIsoPoints e T).injective.eq_iff |
| 149 | |
| 150 | theorem Subgroups.PointSubgroup.kernel_comp_left {C : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} (f : A.scheme ⟶ B.scheme) [IsMonHom f] |
| 151 | (h : B.scheme ⟶ C.scheme) [IsMonHom h] : |
| 152 | Subgroups.PointSubgroup.kernel (f ≫ h) = (Subgroups.PointSubgroup.kernel h).comapHom f := by |
| 153 | apply Subgroups.PointSubgroup.ext |
| 154 | intro T |
| 155 | ext x |
| 156 | change x ≫ (f ≫ h) = 1 ↔ (x ≫ f) ≫ h = 1 |
| 157 | rw [Category.assoc] |
| 158 | |
| 159 | end |
| 160 | |
| 161 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison |