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.ConstantSectionsOn |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Geometric.Splitting |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.EmbeddingParametersIs |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ConstantScheme |
| 5 | |
| 6 | /-! # Constant Base Change -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.ConstantBaseChange.ConstantGroupModels |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Constant finite groups as actual group schemes, and closed subgroup |
| 15 | embeddings constructed from geometrically distinct group-valued sections. |
| 16 | The group operations come from the represented locally constant functor. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections |
| 22 | |
| 23 | variable (S : Scheme) (G : Type) [Group G] |
| 24 | |
| 25 | def representable : (AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G ⋙ forget GrpCat).RepresentableBy |
| 26 | (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) where |
| 27 | homEquiv := AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G _ |
| 28 | homEquiv_comp a x := by |
| 29 | apply LocallyConstant.ext |
| 30 | intro t |
| 31 | rfl |
| 32 | |
| 33 | instance group : GrpObj (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) := |
| 34 | GrpObj.ofRepresentableBy _ (AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G) (representable S G) |
| 35 | |
| 36 | def pointIso : yonedaGrpObj (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) ≅ AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G := |
| 37 | yonedaGrpObjIsoOfRepresentableBy _ (AbelianModuli.HilbertConstruction.Constant.GroupMaps.constantGroupFunctor S G) (representable S G) |
| 38 | |
| 39 | def labels : G →* (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S ⟶ AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) := |
| 40 | ((pointIso S G).inv.app (.op (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S))).hom.comp |
| 41 | (LocallyConstant.constMonoidHom (X := S) (Y := G)) |
| 42 | |
| 43 | theorem labels_eq_component (g : G) : labels S G g = AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.component S g := by |
| 44 | apply (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S)).injective |
| 45 | change (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S)) |
| 46 | ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S)).symm (LocallyConstant.const S g)) = _ |
| 47 | rw [Equiv.apply_symm_apply] |
| 48 | apply LocallyConstant.ext |
| 49 | intro s |
| 50 | exact (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex_ι g s).symm |
| 51 | |
| 52 | theorem labels_injective [Nonempty S] : Function.Injective (labels S G) := by |
| 53 | intro g h he |
| 54 | have hi := congrArg (fun p : AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S ⟶ AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G => |
| 55 | AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex S G (p.left (Classical.arbitrary S))) he |
| 56 | rw [labels_eq_component, labels_eq_component] at hi |
| 57 | change AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex S G (Sigma.ι (fun _ : G => S) g (Classical.arbitrary S)) = |
| 58 | AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex S G (Sigma.ι (fun _ : G => S) h (Classical.arbitrary S)) at hi |
| 59 | simpa only [AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex_ι] using hi |
| 60 | |
| 61 | variable {S G} {H : Over S} [GrpObj H] |
| 62 | |
| 63 | def sectionsGroupMap (a : G →* (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S ⟶ H)) : |
| 64 | Grp.mk (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) ⟶ Grp.mk H := |
| 65 | yonedaGrpFullyFaithful.preimage ((pointIso S G).hom ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.extendNatTrans a) |
| 66 | |
| 67 | theorem sectionsGroupMap_hom (a : G →* (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S ⟶ H)) : |
| 68 | (sectionsGroupMap a).hom.hom = AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a) := by |
| 69 | let e := AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G) |
| 70 | change e.symm (e (𝟙 _)) ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a) = AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a) |
| 71 | rw [e.symm_apply_apply, Category.id_comp] |
| 72 | |
| 73 | instance sectionsMap_isMonHom (a : G →* (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S ⟶ H)) : |
| 74 | IsMonHom (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a)) := by |
| 75 | rw [← sectionsGroupMap_hom a] |
| 76 | infer_instance |
| 77 | |
| 78 | /-- Geometric distinctness of the labels proves monicity on every test |
| 79 | scheme, including disconnected and nonreduced schemes. -/ |
| 80 | theorem sectionsMap_mono (a : G →* (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S ⟶ H)) |
| 81 | (ha : AbelianScheme.TorsionQuotient.EmbeddingParametersIs.EmbeddingParameters.Distinct H G a) : Mono (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a)) := by |
| 82 | have hind (U : Over S) (hne : Nonempty U.left) (c : G) |
| 83 | (hc : AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.toBase U ≫ a c = 1) : c = 1 := by |
| 84 | let u := Classical.choice hne |
| 85 | let k := U.left.residueField u |
| 86 | let s := U.left.fromSpecResidueField u ≫ U.hom |
| 87 | let p : Over.mk s ⟶ U := Over.homMk (U.left.fromSpecResidueField u) rfl |
| 88 | apply ha k s (p ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.toBase U) |
| 89 | change (p ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.toBase U) ≫ a c = (p ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.toBase U) ≫ a 1 |
| 90 | rw [Category.assoc, hc, a.map_one, MonObj.comp_one] |
| 91 | exact (MonObj.comp_one (p ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.toBase U)).symm |
| 92 | constructor |
| 93 | intro T x y hxy |
| 94 | apply (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G T).injective |
| 95 | apply AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.extendHom_injective a hind T |
| 96 | change (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G T).symm |
| 97 | ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G T) x) ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a) = |
| 98 | (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G T).symm |
| 99 | ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G T) y) ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a) |
| 100 | rw [Equiv.symm_apply_apply, Equiv.symm_apply_apply] |
| 101 | exact hxy |
| 102 | |
| 103 | variable [Finite G] [IsFinite H.hom] [Etale H.hom] |
| 104 | |
| 105 | /-- The finite constant group is embedded as an actual closed subgroup |
| 106 | scheme by the supplied geometrically distinct group-valued sections. -/ |
| 107 | theorem constant_subgroup_closed |
| 108 | (a : G →* (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S ⟶ H)) |
| 109 | (ha : AbelianScheme.TorsionQuotient.EmbeddingParametersIs.EmbeddingParameters.Distinct H G a) : |
| 110 | IsClosedImmersion (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a)).left ∧ |
| 111 | IsFinite (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G).hom ∧ Etale (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G).hom ∧ |
| 112 | IsMonHom (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a)) ∧ ∀ g, AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.component S g ≫ AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a) = a g := by |
| 113 | have : Mono (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a)) := sectionsMap_mono a ha |
| 114 | have hf : IsFinite (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a)).left := |
| 115 | (AbelianScheme.TorsionQuotient.FiniteEtaleLift.FiniteEtaleLimits.hom_finite_etale (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.sectionsMap (⇑a))).1 |
| 116 | exact ⟨(IsClosedImmersion.iff_isFinite_and_mono _).mpr ⟨hf, inferInstance⟩, |
| 117 | inferInstance, inferInstance, inferInstance, AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.component_sectionsMap (⇑a)⟩ |
| 118 | |
| 119 | variable {k : Type} [Field k] [IsSepClosed k] |
| 120 | (H : Over (Spec (.of k))) [GrpObj H] [IsFinite H.hom] [Etale H.hom] |
| 121 | |
| 122 | /-- A finite étale group scheme over an algebraically closed field has an |
| 123 | actual constant group-scheme model, with its group comparison constructed. -/ |
| 124 | theorem exists_constant_group_model : |
| 125 | ∃ (G : Type) (_ : Group G) (_ : Finite G), |
| 126 | ∃ e : AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme (Spec (.of k)) G ≅ H, IsMonHom e.hom := by |
| 127 | obtain ⟨G, hG, hfin, ⟨e⟩⟩ := AbelianModuli.ReferenceFamily.Geometric.Splitting.GeometricSplitting.exists_constant_groupIso H |
| 128 | let eG : Grp.mk (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme (Spec (.of k)) G) ≅ Grp.mk H := |
| 129 | yonedaGrpFullyFaithful.preimageIso (pointIso (Spec (.of k)) G ≪≫ e) |
| 130 | let eS := (Grp.forget (Over (Spec (.of k)))).mapIso eG |
| 131 | exact ⟨G, hG, hfin, eS, inferInstanceAs (IsMonHom eG.hom.hom.hom)⟩ |
| 132 | |
| 133 | end |
| 134 | |
| 135 | /-! The canonical constant-scheme base-change isomorphism has the expected |
| 136 | map on every label. This supplies an actual cartesian square for the |
| 137 | arithmetic finite subgroup models, with no abstract comparison premise. -/ |
| 138 | |
| 139 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 140 | |
| 141 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections |
| 142 | |
| 143 | variable {S S' : Scheme} (f : S' ⟶ S) (I : Type) |
| 144 | |
| 145 | def scalarMap : (∐ fun _ : I => S') ⟶ (∐ fun _ : I => S) := |
| 146 | Sigma.desc (fun i => f ≫ Sigma.ι (fun _ : I => S) i) |
| 147 | |
| 148 | @[reassoc] theorem component_scalarMap (i : I) : |
| 149 | Sigma.ι (fun _ : I => S') i ≫ scalarMap f I = f ≫ Sigma.ι (fun _ : I => S) i := |
| 150 | Sigma.ι_comp_desc _ _ |
| 151 | |
| 152 | theorem scalarMap_base : |
| 153 | scalarMap f I ≫ (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom = (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S' I).hom ≫ f := by |
| 154 | change scalarMap f I ≫ Sigma.desc (fun _ : I => 𝟙 S) = |
| 155 | Sigma.desc (fun _ : I => 𝟙 S') ≫ f |
| 156 | apply Sigma.hom_ext |
| 157 | intro i |
| 158 | rw [component_scalarMap_assoc, Sigma.ι_comp_desc, |
| 159 | Category.comp_id, Sigma.ι_comp_desc_assoc, Category.id_comp] |
| 160 | |
| 161 | theorem baseChangeIso_fst : |
| 162 | (AbelianModuli.HilbertConstruction.Constant.BaseChange.constantSchemeBaseChangeIso f I).hom.left ≫ |
| 163 | pullback.fst (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom f = scalarMap f I := by |
| 164 | apply Sigma.hom_ext |
| 165 | intro i |
| 166 | apply Eq.trans ?_ (component_scalarMap f I i).symm |
| 167 | let e₀ := AbelianModuli.HilbertConstruction.Constant.BaseChange.constantSetRepresentable S' I |
| 168 | let e₁ := AbelianModuli.HilbertConstruction.Constant.BaseChange.constantSetPullbackRepresentable f I |
| 169 | let e := AbelianModuli.HilbertConstruction.Constant.BaseChange.constantSchemeBaseChangeIso f I |
| 170 | have he : e₁.homEquiv e.hom = e₀.homEquiv (𝟙 _) := |
| 171 | e₁.homEquiv.apply_symm_apply _ |
| 172 | have hp : e₁.homEquiv (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.component S' i ≫ e.hom) = LocallyConstant.const S' i := by |
| 173 | rw [e₁.homEquiv_comp, he] |
| 174 | apply LocallyConstant.ext |
| 175 | intro s |
| 176 | exact AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex_ι i s |
| 177 | let q : (Over.map f).obj (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S') ⟶ AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I := |
| 178 | Over.homMk (f ≫ Sigma.ι (fun _ : I => S) i) (by |
| 179 | change (f ≫ Sigma.ι (fun _ : I => S) i) ≫ Sigma.desc (fun _ : I => 𝟙 S) = 𝟙 S' ≫ f |
| 180 | rw [Category.assoc, Sigma.ι_comp_desc, Category.comp_id, Category.id_comp]) |
| 181 | have hq : AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I ((Over.map f).obj (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S')) q = |
| 182 | LocallyConstant.const S' i := by |
| 183 | apply LocallyConstant.ext |
| 184 | intro s |
| 185 | exact AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex_ι i (f s) |
| 186 | have hm : ((Over.mapPullbackAdj f).homEquiv (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S') (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I)).symm |
| 187 | (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.component S' i ≫ e.hom) = q := |
| 188 | (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I ((Over.map f).obj (AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections.baseTest S'))).injective |
| 189 | (hp.trans hq.symm) |
| 190 | exact (Category.assoc _ _ _).symm.trans (congrArg Over.Hom.left hm) |
| 191 | |
| 192 | /-- The scalar map on the actual disjoint unions is a base-change square. -/ |
| 193 | theorem scalarMap_isPullback : |
| 194 | IsPullback (scalarMap f I) (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S' I).hom |
| 195 | (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom f := |
| 196 | IsPullback.of_iso_pullback ⟨scalarMap_base f I⟩ |
| 197 | ((Over.forget S').mapIso (AbelianModuli.HilbertConstruction.Constant.BaseChange.constantSchemeBaseChangeIso f I)) |
| 198 | (baseChangeIso_fst f I) (AbelianModuli.HilbertConstruction.Constant.BaseChange.constantSchemeBaseChangeIso f I).hom.w |
| 199 | |
| 200 | end |
| 201 | |
| 202 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.ConstantBaseChange.ConstantGroupModels |