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.Algebra.CharP.Frobenius |
| 3 | import Mathlib.Tactic |
| 4 | |
| 5 | /-! # Frobenius -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction |
| 8 | |
| 9 | /-! |
| 10 | # Homomorphisms: construction of scheme Frobenius |
| 11 | |
| 12 | Result-specific foundations for Homomorphisms. No statement stub is imported. |
| 13 | Characteristic is expressed by `p = 0` in global sections; this also handles |
| 14 | empty schemes and the zero ring of sections on the empty open set. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (p : ℕ) (hp : p.Prime) |
| 22 | |
| 23 | /-- The p-power ring homomorphism, including the zero ring. -/ |
| 24 | def powerRingHom (R : Type u) [CommRing R] (hR : (p : R) = 0) : R →+* R where |
| 25 | toFun x := x ^ p |
| 26 | map_one' := one_pow p |
| 27 | map_mul' := fun x y => mul_pow x y p |
| 28 | map_zero' := zero_pow hp.ne_zero |
| 29 | map_add' x y := by |
| 30 | obtain ⟨r, hr⟩ := exists_add_pow_prime_eq hp x y |
| 31 | simpa only [hR, zero_mul, add_zero] using hr |
| 32 | |
| 33 | @[simp] |
| 34 | theorem powerRingHom_apply (R : Type u) [CommRing R] |
| 35 | (hR : (p : R) = 0) (x : R) : powerRingHom p hp R hR x = x ^ p := rfl |
| 36 | |
| 37 | theorem section_prime_eq_zero (X : Scheme.{u}) |
| 38 | (hX : (p : Γ(X, ⊤)) = 0) (U : X.Opens) : (p : Γ(X, U)) = 0 := by |
| 39 | have h := congrArg (X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op) hX |
| 40 | simpa only [map_natCast, map_zero] using h |
| 41 | |
| 42 | /-- Absolute Frobenius on the underlying ringed space. -/ |
| 43 | def ringedFrobenius (X : Scheme.{u}) (hX : (p : Γ(X, ⊤)) = 0) : |
| 44 | X.toPresheafedSpace ⟶ X.toPresheafedSpace where |
| 45 | base := 𝟙 _ |
| 46 | c := { |
| 47 | app := fun U => CommRingCat.ofHom |
| 48 | (powerRingHom p hp Γ(X, U.unop) (section_prime_eq_zero p X hX U.unop)) |
| 49 | naturality := by |
| 50 | intro U V f |
| 51 | ext x |
| 52 | exact (map_pow (X.presheaf.map f).hom x p).symm |
| 53 | } |
| 54 | |
| 55 | theorem ringedFrobenius_stalk_apply (X : Scheme.{u}) |
| 56 | (hX : (p : Γ(X, ⊤)) = 0) (x : X) (a : X.presheaf.stalk x) : |
| 57 | (ringedFrobenius p hp X hX).stalkMap x a = a ^ p := by |
| 58 | obtain ⟨U, hxU, s, rfl⟩ := X.presheaf.exists_germ_eq a |
| 59 | erw [PresheafedSpace.stalkMap_germ_apply] |
| 60 | exact map_pow (X.presheaf.germ U x hxU).hom s p |
| 61 | |
| 62 | /-- Absolute Frobenius as a morphism of schemes. -/ |
| 63 | def absoluteFrobenius (X : Scheme.{u}) (hX : (p : Γ(X, ⊤)) = 0) : X ⟶ X where |
| 64 | toHom := ringedFrobenius p hp X hX |
| 65 | prop x := { |
| 66 | map_nonunit := by |
| 67 | intro a ha |
| 68 | have ha' : IsUnit (a ^ p) := |
| 69 | (ringedFrobenius_stalk_apply p hp X hX x a) ▸ ha |
| 70 | exact (isUnit_pow_iff hp.ne_zero).mp ha' |
| 71 | } |
| 72 | |
| 73 | @[simp] |
| 74 | theorem absoluteFrobenius_apply (X : Scheme.{u}) |
| 75 | (hX : (p : Γ(X, ⊤)) = 0) (x : X) : |
| 76 | absoluteFrobenius p hp X hX x = x := rfl |
| 77 | |
| 78 | @[simp] |
| 79 | theorem absoluteFrobenius_app (X : Scheme.{u}) |
| 80 | (hX : (p : Γ(X, ⊤)) = 0) (U : X.Opens) (s : Γ(X, U)) : |
| 81 | (absoluteFrobenius p hp X hX).app U s = s ^ p := rfl |
| 82 | |
| 83 | /-- Scheme Frobenius is natural, without any perfectness hypothesis. -/ |
| 84 | theorem absoluteFrobenius_naturality {X Y : Scheme.{u}} |
| 85 | (hX : (p : Γ(X, ⊤)) = 0) (hY : (p : Γ(Y, ⊤)) = 0) (f : X ⟶ Y) : |
| 86 | absoluteFrobenius p hp X hX ≫ f = f ≫ absoluteFrobenius p hp Y hY := by |
| 87 | apply Scheme.Hom.ext (by rfl) |
| 88 | intro U |
| 89 | change (f.app U ≫ (absoluteFrobenius p hp X hX).app (f ⁻¹ᵁ U)) ≫ |
| 90 | X.presheaf.map (𝟙 (op (f ⁻¹ᵁ U))) = |
| 91 | (absoluteFrobenius p hp Y hY).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 p).symm |
| 95 | |
| 96 | /-- Characteristic p propagates along a scheme morphism. -/ |
| 97 | theorem prime_eq_zero_of_map {X Y : Scheme.{u}} |
| 98 | (hY : (p : Γ(Y, ⊤)) = 0) (f : X ⟶ Y) : (p : Γ(X, ⊤)) = 0 := by |
| 99 | have h := congrArg f.appTop hY |
| 100 | simpa only [map_natCast, map_zero] using h |
| 101 | |
| 102 | /-- Every scheme over Spec F_p satisfies the characteristic condition. -/ |
| 103 | theorem prime_eq_zero_of_overFp |
| 104 | (X : Scheme.{0}) (f : X ⟶ Spec (CommRingCat.of (ZMod p))) : |
| 105 | (p : Γ(X, ⊤)) = 0 := by |
| 106 | apply prime_eq_zero_of_map p (f := f) |
| 107 | have h := congrArg (Scheme.ΓSpecIso (CommRingCat.of (ZMod p))).inv |
| 108 | (ZMod.natCast_self p) |
| 109 | simpa only [map_natCast, map_zero] using h |
| 110 | |
| 111 | open _root_.CategoryTheory.Limits |
| 112 | |
| 113 | /-- The Frobenius twist is the actual scheme-theoretic base change. -/ |
| 114 | noncomputable def frobeniusTwist {S : Scheme.{u}} |
| 115 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) : Over S := |
| 116 | Over.mk (pullback.snd A.hom (absoluteFrobenius p hp S hS)) |
| 117 | |
| 118 | /-- Relative Frobenius is induced by the naturality square. -/ |
| 119 | noncomputable def relativeFrobenius {S : Scheme.{u}} |
| 120 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) : |
| 121 | A ⟶ frobeniusTwist p hp hS A := |
| 122 | Over.homMk |
| 123 | (pullback.lift |
| 124 | (absoluteFrobenius p hp A.left (prime_eq_zero_of_map p hS A.hom)) |
| 125 | A.hom (absoluteFrobenius_naturality p hp _ hS A.hom)) |
| 126 | (pullback.lift_snd _ _ _) |
| 127 | |
| 128 | /-- Relative and base Frobenius compose to absolute Frobenius. -/ |
| 129 | theorem relativeFrobenius_comp_fst {S : Scheme.{u}} |
| 130 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) : |
| 131 | (relativeFrobenius p hp hS A).left ≫ |
| 132 | pullback.fst A.hom (absoluteFrobenius p hp S hS) = |
| 133 | absoluteFrobenius p hp A.left (prime_eq_zero_of_map p hS A.hom) := by |
| 134 | exact pullback.lift_fst _ _ _ |
| 135 | |
| 136 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction |