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 |
| 2 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius |
| 3 | |
| 4 | /-! # Frobenius Geometry -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Global.FrobeniusGeometry |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: global q-Frobenius over a finite field |
| 12 | |
| 13 | Iterate the actual scheme Frobenius from the proved Homomorphisms helper. Its action |
| 14 | on global functions is the p^a-power map, and over a field of cardinality |
| 15 | p^a the resulting scheme morphism is a morphism over that field. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (p : ℕ) (hp : p.Prime) |
| 23 | |
| 24 | def iterate (X : Scheme.{u}) (hX : (p : Γ(X, ⊤)) = 0) : ℕ → (X ⟶ X) |
| 25 | | 0 => 𝟙 X |
| 26 | | n + 1 => iterate X hX n ≫ AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.absoluteFrobenius p hp X hX |
| 27 | |
| 28 | lemma iterate_appTop (X : Scheme.{u}) (hX : (p : Γ(X, ⊤)) = 0) (n : ℕ) (s : Γ(X, ⊤)) : |
| 29 | (FrobeniusGeometry.iterate p hp X hX n).appTop s = s ^ (p ^ n) := by |
| 30 | induction n generalizing s with |
| 31 | | zero => change s = s ^ (p ^ 0); simp |
| 32 | | succ n ih => |
| 33 | change (FrobeniusGeometry.iterate p hp X hX n).appTop (s ^ p) = s ^ (p ^ (n + 1)) |
| 34 | rw [ih, ← pow_mul, ← pow_succ'] |
| 35 | |
| 36 | lemma hom_ext_appTop {X Y : Scheme.{u}} [IsAffine Y] {f g : X ⟶ Y} (h : f.appTop = g.appTop) : f = g := by |
| 37 | apply (CategoryTheory.cancel_mono Y.toSpecΓ).mp |
| 38 | rw [Scheme.toSpecΓ_naturality, Scheme.toSpecΓ_naturality, h] |
| 39 | |
| 40 | variable (k : Type u) [Field k] [CharP k p] |
| 41 | |
| 42 | lemma spec_prime_zero : (p : Γ(Spec (CommRingCat.of k), ⊤)) = 0 := by |
| 43 | have h := congrArg (Scheme.ΓSpecIso (CommRingCat.of k)).inv (CharP.cast_eq_zero k p) |
| 44 | simpa only [map_natCast, map_zero] using h |
| 45 | |
| 46 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of k)) |
| 47 | |
| 48 | include f in |
| 49 | lemma scheme_prime_zero : (p : Γ(X, ⊤)) = 0 := |
| 50 | AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.prime_eq_zero_of_map p (spec_prime_zero p k) f |
| 51 | |
| 52 | def qFrobenius (a : ℕ) : X ⟶ X := FrobeniusGeometry.iterate p hp X (scheme_prime_zero p k f) a |
| 53 | |
| 54 | variable [Fintype k] |
| 55 | |
| 56 | omit [CharP k p] in |
| 57 | lemma spec_global_fixed (a : ℕ) (hcard : Fintype.card k = p ^ a) (s : Γ(Spec (CommRingCat.of k), ⊤)) : |
| 58 | s ^ (p ^ a) = s := by |
| 59 | apply (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (CommRingCat.of k)).hom).injective |
| 60 | change (Scheme.ΓSpecIso (CommRingCat.of k)).hom.hom (s ^ (p ^ a)) = |
| 61 | (Scheme.ΓSpecIso (CommRingCat.of k)).hom.hom s |
| 62 | rw [map_pow, ← hcard, FiniteField.pow_card] |
| 63 | |
| 64 | lemma qFrobenius_over (a : ℕ) (hcard : Fintype.card k = p ^ a) : qFrobenius p hp k f a ≫ f = f := by |
| 65 | apply hom_ext_appTop |
| 66 | apply CommRingCat.hom_ext |
| 67 | apply RingHom.ext |
| 68 | intro s |
| 69 | change (FrobeniusGeometry.iterate p hp X (scheme_prime_zero p k f) a).appTop (f.appTop s) = f.appTop s |
| 70 | rw [iterate_appTop, ← map_pow, spec_global_fixed p k a hcard] |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Global.FrobeniusGeometry |