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 Mathlib.AlgebraicGeometry.Pullbacks |
| 2 | import Mathlib.AlgebraicGeometry.Group.Abelian |
| 3 | import Mathlib.FieldTheory.Finite.Basic |
| 4 | import Mathlib.Tactic |
| 5 | |
| 6 | /-! # Frobenius -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Frobenius.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Completion: the q-power Frobenius on schemes over a finite field |
| 14 | |
| 15 | The maps below are constructed on the structure sheaf and shown to be |
| 16 | local on stalks. The field cardinality may be any prime power. No |
| 17 | cohomological action or weight assertion is assumed. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable (k : Type u) [Field k] [Fintype k] |
| 25 | |
| 26 | /-- The q-power ring map for a ring receiving the finite field. -/ |
| 27 | def finiteFieldPowerRingHom {R : Type u} [CommRing R] (κ : k →+* R) : R →+* R := |
| 28 | letI : Algebra k R := κ.toAlgebra |
| 29 | (FiniteField.frobeniusAlgHom k R).toRingHom |
| 30 | |
| 31 | @[simp] |
| 32 | theorem finiteFieldPowerRingHom_apply {R : Type u} [CommRing R] |
| 33 | (κ : k →+* R) (r : R) : |
| 34 | finiteFieldPowerRingHom k κ r = r ^ Fintype.card k := rfl |
| 35 | |
| 36 | variable (X : Scheme.{u}) (κ : k →+* Γ(X, ⊤)) |
| 37 | |
| 38 | /-- The base field acts on the sections of every open. -/ |
| 39 | def sectionBaseMap (U : X.Opens) : k →+* Γ(X, U) := |
| 40 | (X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op).hom.comp κ |
| 41 | |
| 42 | /-- Frobenius on the ringed space fixes the topological space. -/ |
| 43 | def qPowerRingedFrobenius : X.toPresheafedSpace ⟶ X.toPresheafedSpace where |
| 44 | base := 𝟙 _ |
| 45 | c := { |
| 46 | app := fun U => CommRingCat.ofHom |
| 47 | (finiteFieldPowerRingHom k (sectionBaseMap k X κ U.unop)) |
| 48 | naturality := by |
| 49 | intro U V f |
| 50 | ext s |
| 51 | exact (map_pow (X.presheaf.map f).hom s (Fintype.card k)).symm |
| 52 | } |
| 53 | |
| 54 | theorem qPowerRingedFrobenius_stalk (x : X) (a : X.presheaf.stalk x) : |
| 55 | (qPowerRingedFrobenius k X κ).stalkMap x a = a ^ Fintype.card k := by |
| 56 | obtain ⟨U, hxU, s, rfl⟩ := X.presheaf.exists_germ_eq a |
| 57 | erw [PresheafedSpace.stalkMap_germ_apply] |
| 58 | exact map_pow (X.presheaf.germ U x hxU).hom s (Fintype.card k) |
| 59 | |
| 60 | /-- The q-power map is a genuine morphism of schemes. -/ |
| 61 | def qPowerSchemeFrobenius : X ⟶ X where |
| 62 | toHom := qPowerRingedFrobenius k X κ |
| 63 | prop x := { |
| 64 | map_nonunit := by |
| 65 | intro a ha |
| 66 | have hp : IsUnit (a ^ Fintype.card k) := |
| 67 | (qPowerRingedFrobenius_stalk k X κ x a) ▸ ha |
| 68 | exact (isUnit_pow_iff Fintype.card_pos.ne').mp hp |
| 69 | } |
| 70 | |
| 71 | @[simp] |
| 72 | theorem qPowerSchemeFrobenius_apply (x : X) : |
| 73 | qPowerSchemeFrobenius k X κ x = x := rfl |
| 74 | |
| 75 | @[simp] |
| 76 | theorem qPowerSchemeFrobenius_app (U : X.Opens) (s : Γ(X, U)) : |
| 77 | (qPowerSchemeFrobenius k X κ).app U s = s ^ Fintype.card k := rfl |
| 78 | |
| 79 | @[simp] |
| 80 | theorem qPowerSchemeFrobenius_appTop (s : Γ(X, ⊤)) : |
| 81 | (qPowerSchemeFrobenius k X κ).appTop s = s ^ Fintype.card k := rfl |
| 82 | |
| 83 | /-- q-power Frobenius commutes with every morphism of the underlying schemes. -/ |
| 84 | theorem qPowerSchemeFrobenius_naturality |
| 85 | {Y : Scheme.{u}} (κY : k →+* Γ(Y, ⊤)) (f : X ⟶ Y) : |
| 86 | qPowerSchemeFrobenius k X κ ≫ f = f ≫ qPowerSchemeFrobenius k Y κY := by |
| 87 | apply Scheme.Hom.ext (by rfl) |
| 88 | intro U |
| 89 | change (f.app U ≫ (qPowerSchemeFrobenius k X κ).app (f ⁻¹ᵁ U)) ≫ |
| 90 | X.presheaf.map (𝟙 (op (f ⁻¹ᵁ U))) = |
| 91 | (qPowerSchemeFrobenius k Y κY).app U ≫ f.app U |
| 92 | erw [CategoryTheory.Functor.map_id, Category.comp_id] |
| 93 | ext s |
| 94 | exact (map_pow (f.app U).hom s (Fintype.card k)).symm |
| 95 | |
| 96 | variable (A : Over (Spec (CommRingCat.of k))) |
| 97 | |
| 98 | /-- The base-field map induced by the structure morphism. -/ |
| 99 | def varietyBaseMap : k →+* Γ(A.left, ⊤) := |
| 100 | ((Scheme.ΓSpecIso (CommRingCat.of k)).inv ≫ A.hom.appTop).hom |
| 101 | |
| 102 | theorem qPowerSchemeFrobenius_over : |
| 103 | qPowerSchemeFrobenius k A.left (varietyBaseMap k A) ≫ A.hom = A.hom := by |
| 104 | apply ext_to_Spec |
| 105 | change (Scheme.ΓSpecIso (CommRingCat.of k)).inv ≫ |
| 106 | (A.hom.appTop ≫ (qPowerSchemeFrobenius k A.left (varietyBaseMap k A)).appTop) = |
| 107 | (Scheme.ΓSpecIso (CommRingCat.of k)).inv ≫ A.hom.appTop |
| 108 | ext x |
| 109 | change (qPowerSchemeFrobenius k A.left (varietyBaseMap k A)).appTop |
| 110 | (varietyBaseMap k A x) = varietyBaseMap k A x |
| 111 | rw [qPowerSchemeFrobenius_appTop, ← map_pow, FiniteField.pow_card] |
| 112 | |
| 113 | /-- The q-power Frobenius endomorphism over the finite ground field. -/ |
| 114 | def finiteFieldSchemeFrobenius : A ⟶ A := |
| 115 | Over.homMk (qPowerSchemeFrobenius k A.left (varietyBaseMap k A)) |
| 116 | (qPowerSchemeFrobenius_over k A) |
| 117 | |
| 118 | theorem finiteFieldSchemeFrobenius_naturality |
| 119 | {B : Over (Spec (CommRingCat.of k))} (f : A ⟶ B) : |
| 120 | finiteFieldSchemeFrobenius k A ≫ f = f ≫ finiteFieldSchemeFrobenius k B := by |
| 121 | apply Over.OverMorphism.ext |
| 122 | exact qPowerSchemeFrobenius_naturality k A.left (varietyBaseMap k A) |
| 123 | (varietyBaseMap k B) f.left |
| 124 | |
| 125 | open MonoidalCategory CartesianMonoidalCategory MonObj |
| 126 | |
| 127 | theorem finiteFieldSchemeFrobenius_unit : |
| 128 | finiteFieldSchemeFrobenius k (𝟙_ (Over (Spec (CommRingCat.of k)))) = 𝟙 _ := |
| 129 | Subsingleton.elim _ _ |
| 130 | |
| 131 | theorem finiteFieldSchemeFrobenius_tensor |
| 132 | (B : Over (Spec (CommRingCat.of k))) : |
| 133 | finiteFieldSchemeFrobenius k (A ⊗ B) = |
| 134 | finiteFieldSchemeFrobenius k A ⊗ₘ finiteFieldSchemeFrobenius k B := by |
| 135 | apply CartesianMonoidalCategory.hom_ext |
| 136 | · rw [tensorHom_fst] |
| 137 | exact finiteFieldSchemeFrobenius_naturality k (A ⊗ B) (fst A B) |
| 138 | · rw [tensorHom_snd] |
| 139 | exact finiteFieldSchemeFrobenius_naturality k (A ⊗ B) (snd A B) |
| 140 | |
| 141 | /-- In particular, Frobenius is an algebraic group endomorphism. -/ |
| 142 | instance finiteFieldSchemeFrobenius_isMonHom [MonObj A] : |
| 143 | IsMonHom (finiteFieldSchemeFrobenius k A) where |
| 144 | one_hom := by |
| 145 | have h := finiteFieldSchemeFrobenius_naturality k (𝟙_ _) η[A] |
| 146 | simpa only [finiteFieldSchemeFrobenius_unit, Category.id_comp] using h.symm |
| 147 | mul_hom := by |
| 148 | have h := finiteFieldSchemeFrobenius_naturality k (A ⊗ A) μ[A] |
| 149 | rw [finiteFieldSchemeFrobenius_tensor] at h |
| 150 | exact h.symm |
| 151 | |
| 152 | end |
| 153 | |
| 154 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Frobenius.Construction |