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.GroupSchemes.AffineHopf |
| 2 | |
| 3 | /-! # Coordinate Maps -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.GroupSchemes |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Coordinate morphisms recovered from the given geometric morphisms. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.MonObj |
| 13 | |
| 14 | universe u |
| 15 | variable {k : Type u} [Field k] |
| 16 | |
| 17 | /-- Pullback on coordinate algebras under the actual affine scheme morphism. -/ |
| 18 | def FiniteEtale.FiniteCommGroupScheme.coordinateMap {G H : FiniteEtale.FiniteCommGroupScheme k} (f : G.scheme ⟶ H.scheme) : |
| 19 | H.algebra →ₐ[k] G.algebra := |
| 20 | ((algSpec.fullyFaithful (R := CommRingCat.of k)).preimage f).unop.hom |
| 21 | |
| 22 | /-- Spec of the recovered algebra map is the original scheme map. -/ |
| 23 | theorem FiniteEtale.FiniteCommGroupScheme.coordinateMap_spec {G H : FiniteEtale.FiniteCommGroupScheme k} (f : G.scheme ⟶ H.scheme) : |
| 24 | (algSpec (CommRingCat.of k)).map (CommAlgCat.ofHom (FiniteEtale.FiniteCommGroupScheme.coordinateMap f)).op = f := |
| 25 | (algSpec.fullyFaithful (R := CommRingCat.of k)).map_preimage f |
| 26 | |
| 27 | theorem FiniteEtale.FiniteCommGroupScheme.coordinateMap_id (G : FiniteEtale.FiniteCommGroupScheme k) : |
| 28 | FiniteEtale.FiniteCommGroupScheme.coordinateMap (𝟙 G.scheme) = AlgHom.id k G.algebra := by |
| 29 | exact congrArg (fun f : op G.algebra ⟶ op G.algebra => f.unop.hom) |
| 30 | (algSpec.fullyFaithful (R := CommRingCat.of k)).preimage_id |
| 31 | |
| 32 | theorem FiniteEtale.FiniteCommGroupScheme.coordinateMap_comp {G H J : FiniteEtale.FiniteCommGroupScheme k} |
| 33 | (f : G.scheme ⟶ H.scheme) (g : H.scheme ⟶ J.scheme) : |
| 34 | FiniteEtale.FiniteCommGroupScheme.coordinateMap (f ≫ g) = (FiniteEtale.FiniteCommGroupScheme.coordinateMap f).comp (FiniteEtale.FiniteCommGroupScheme.coordinateMap g) := by |
| 35 | exact congrArg (fun f : op G.algebra ⟶ op J.algebra => f.unop.hom) |
| 36 | ((algSpec.fullyFaithful (R := CommRingCat.of k)).preimage_comp f g) |
| 37 | |
| 38 | /-- Pullback preserves the group laws reconstructed on the coordinate algebras. -/ |
| 39 | theorem FiniteEtale.FiniteCommGroupScheme.coordinateMap_isMonHom {G H : FiniteEtale.FiniteCommGroupScheme k} |
| 40 | (f : G.scheme ⟶ H.scheme) [IsMonHom f] : |
| 41 | letI := G.coordinateGroup |
| 42 | letI := H.coordinateGroup |
| 43 | IsMonHom (CommAlgCat.ofHom (FiniteEtale.FiniteCommGroupScheme.coordinateMap f)).op := by |
| 44 | let : (algSpec (CommRingCat.of k)).Braided := braidedAlgSpec |
| 45 | let := G.coordinateGroup |
| 46 | let := H.coordinateGroup |
| 47 | constructor |
| 48 | · apply (algSpec.fullyFaithful (R := CommRingCat.of k)).map_injective |
| 49 | change (algSpec (CommRingCat.of k)).map |
| 50 | ((algSpec.fullyFaithful (R := CommRingCat.of k)).preimage |
| 51 | (Functor.OplaxMonoidal.η (algSpec (CommRingCat.of k)) ≫ η[G.scheme]) ≫ |
| 52 | (algSpec.fullyFaithful (R := CommRingCat.of k)).preimage f) = _ |
| 53 | simp only [Functor.map_comp, Functor.FullyFaithful.map_preimage] |
| 54 | rw [Category.assoc, IsMonHom.one_hom] |
| 55 | exact ((algSpec.fullyFaithful (R := CommRingCat.of k)).map_preimage _).symm |
| 56 | · apply (algSpec.fullyFaithful (R := CommRingCat.of k)).map_injective |
| 57 | change (algSpec (CommRingCat.of k)).map |
| 58 | ((algSpec.fullyFaithful (R := CommRingCat.of k)).preimage |
| 59 | (Functor.OplaxMonoidal.δ (algSpec (CommRingCat.of k)) _ _ ≫ μ[G.scheme]) ≫ |
| 60 | (algSpec.fullyFaithful (R := CommRingCat.of k)).preimage f) = _ |
| 61 | simp only [Functor.map_comp, Functor.FullyFaithful.map_preimage] |
| 62 | rw [Category.assoc, IsMonHom.mul_hom] |
| 63 | change _ = (algSpec (CommRingCat.of k)).map |
| 64 | ((CommAlgCat.ofHom (FiniteEtale.FiniteCommGroupScheme.coordinateMap f)).op ⊗ₘ |
| 65 | (CommAlgCat.ofHom (FiniteEtale.FiniteCommGroupScheme.coordinateMap f)).op) ≫ |
| 66 | (algSpec (CommRingCat.of k)).map |
| 67 | ((algSpec.fullyFaithful (R := CommRingCat.of k)).preimage |
| 68 | (Functor.OplaxMonoidal.δ (algSpec (CommRingCat.of k)) _ _ ≫ μ[H.scheme])) |
| 69 | rw [Functor.FullyFaithful.map_preimage, |
| 70 | ← Functor.OplaxMonoidal.δ_natural_assoc, FiniteEtale.FiniteCommGroupScheme.coordinateMap_spec] |
| 71 | rfl |
| 72 | |
| 73 | /-- Pullback along a group-scheme morphism is a genuine bialgebra map. -/ |
| 74 | def FiniteEtale.FiniteCommGroupScheme.coordinateBialgMap {G H : FiniteEtale.FiniteCommGroupScheme k} |
| 75 | (f : G.scheme ⟶ H.scheme) [IsMonHom f] : |
| 76 | letI := G.coordinateHopf |
| 77 | letI := H.coordinateHopf |
| 78 | letI := G.coordinateCoalgebra |
| 79 | letI := H.coordinateCoalgebra |
| 80 | H.algebra →ₐc[k] G.algebra := by |
| 81 | let := G.coordinateGroup |
| 82 | let := H.coordinateGroup |
| 83 | have := FiniteEtale.FiniteCommGroupScheme.coordinateMap_isMonHom f |
| 84 | let g : Grp.mk (op G.algebra) ⟶ Grp.mk (op H.algebra) := |
| 85 | Grp.homMk (CommAlgCat.ofHom (FiniteEtale.FiniteCommGroupScheme.coordinateMap f)).op |
| 86 | exact ((commHopfAlgCatEquivCogrpCommAlgCat k).inverse.map |
| 87 | g.op).hom |
| 88 | |
| 89 | /-- The bialgebra map has exactly the original affine pullback as underlying map. -/ |
| 90 | theorem FiniteEtale.FiniteCommGroupScheme.coordinateBialgMap_toAlgHom {G H : FiniteEtale.FiniteCommGroupScheme k} |
| 91 | (f : G.scheme ⟶ H.scheme) [IsMonHom f] : |
| 92 | letI := G.coordinateHopf |
| 93 | letI := H.coordinateHopf |
| 94 | letI := G.coordinateCoalgebra |
| 95 | letI := H.coordinateCoalgebra |
| 96 | (FiniteEtale.FiniteCommGroupScheme.coordinateBialgMap f).toAlgHom = FiniteEtale.FiniteCommGroupScheme.coordinateMap f := rfl |
| 97 | |
| 98 | /-- A geometric closed immersion gives a surjection on the recovered coordinate algebras. -/ |
| 99 | theorem FiniteEtale.FiniteCommGroupScheme.coordinateMap_surjective {G H : FiniteEtale.FiniteCommGroupScheme k} |
| 100 | (f : G.scheme ⟶ H.scheme) [IsClosedImmersion f.left] : |
| 101 | Function.Surjective (FiniteEtale.FiniteCommGroupScheme.coordinateMap f) := by |
| 102 | let q := CommRingCat.ofHom (FiniteEtale.FiniteCommGroupScheme.coordinateMap f).toRingHom |
| 103 | have hs : Spec.map q = f.left := congrArg Over.Hom.left (FiniteEtale.FiniteCommGroupScheme.coordinateMap_spec f) |
| 104 | have hf : IsClosedImmersion f.left := inferInstance |
| 105 | have : IsClosedImmersion (Spec.map q) := hs.symm ▸ hf |
| 106 | have hsurj := (IsClosedImmersion.isAffine_surjective_of_isAffine (Spec.map q)).2 |
| 107 | have he : (Scheme.ΓSpecIso (CommRingCat.of H.algebra)).inv ≫ |
| 108 | (Spec.map q).appTop ≫ (Scheme.ΓSpecIso (CommRingCat.of G.algebra)).hom = q := by |
| 109 | rw [Scheme.ΓSpecIso_naturality, Iso.inv_hom_id_assoc] |
| 110 | have h := (ConcreteCategory.bijective_of_isIso |
| 111 | (Scheme.ΓSpecIso (CommRingCat.of G.algebra)).hom).2.comp |
| 112 | (hsurj.comp (ConcreteCategory.bijective_of_isIso |
| 113 | (Scheme.ΓSpecIso (CommRingCat.of H.algebra)).inv).2) |
| 114 | change Function.Surjective ((Scheme.ΓSpecIso (CommRingCat.of H.algebra)).inv ≫ |
| 115 | (Spec.map q).appTop ≫ (Scheme.ΓSpecIso (CommRingCat.of G.algebra)).hom) at h |
| 116 | change Function.Surjective q |
| 117 | simpa only [he] using h |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.GroupSchemes |