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.FormalGeometry.Completion.Frobenius |
| 2 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 3 | import Mathlib.RingTheory.TensorProduct.Basic |
| 4 | |
| 5 | /-! # Endomorphisms -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction |
| 8 | |
| 9 | /-! |
| 10 | # Completion: algebraic endomorphisms and their rational algebra |
| 11 | |
| 12 | These are actual group-object morphisms, with pointwise addition and |
| 13 | composition as multiplication. No finiteness, polarization, or spectral |
| 14 | property is part of the definition. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory MonoidalCategory CartesianMonoidalCategory MonObj |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | section Endomorphisms |
| 23 | |
| 24 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 25 | [BraidedCategory C] (A : C) [GrpObj A] [IsCommMonObj A] |
| 26 | |
| 27 | /-- Algebraic group endomorphisms, with the pointwise group law written additively. -/ |
| 28 | abbrev AlgebraicEnd := Additive (Grp.mk A ⟶ Grp.mk A) |
| 29 | |
| 30 | instance algebraicEndMonoid : Monoid (AlgebraicEnd A) where |
| 31 | one := Additive.ofMul (𝟙 (Grp.mk A)) |
| 32 | mul f g := Additive.ofMul (g.toMul ≫ f.toMul) |
| 33 | mul_assoc f g h := (Category.assoc h.toMul g.toMul f.toMul).symm |
| 34 | one_mul f := Category.comp_id f.toMul |
| 35 | mul_one f := Category.id_comp f.toMul |
| 36 | |
| 37 | instance algebraicEndRing : Ring (AlgebraicEnd A) := |
| 38 | { algebraicEndMonoid A, (inferInstance : AddCommGroup (AlgebraicEnd A)) with |
| 39 | zero_mul := fun f => MonObj.comp_one f.toMul |
| 40 | mul_zero := fun f => MonObj.one_comp f.toMul |
| 41 | left_distrib := fun f g h => MonObj.mul_comp g.toMul h.toMul f.toMul |
| 42 | right_distrib := fun f g h => MonObj.comp_mul h.toMul f.toMul g.toMul } |
| 43 | |
| 44 | /-- The rational algebra of actual algebraic group endomorphisms. -/ |
| 45 | abbrev RationalAlgebraicEnd := TensorProduct ℤ ℚ (AlgebraicEnd A) |
| 46 | |
| 47 | theorem algebraicEnd_mul_apply (f g : AlgebraicEnd A) : |
| 48 | (f * g).toMul.hom.hom = g.toMul.hom.hom ≫ f.toMul.hom.hom := rfl |
| 49 | |
| 50 | end Endomorphisms |
| 51 | |
| 52 | open _root_.AlgebraicGeometry |
| 53 | |
| 54 | variable (k : Type u) [Field k] [Fintype k] |
| 55 | (A : Over (Spec (CommRingCat.of k))) [GrpObj A] [IsCommMonObj A] |
| 56 | |
| 57 | /-- Frobenius as an element of the genuine endomorphism ring. -/ |
| 58 | noncomputable def algebraicFrobenius : AlgebraicEnd A := |
| 59 | Additive.ofMul (Grp.ofHom (Frobenius.Construction.finiteFieldSchemeFrobenius k A)) |
| 60 | |
| 61 | /-- Frobenius in the rationalized endomorphism algebra. -/ |
| 62 | noncomputable def rationalAlgebraicFrobenius : RationalAlgebraicEnd A := |
| 63 | (1 : ℚ) ⊗ₜ[ℤ] algebraicFrobenius k A |
| 64 | |
| 65 | /-- Frobenius commutes with every endomorphism defined over the ground field. -/ |
| 66 | theorem algebraicFrobenius_commutes (f : AlgebraicEnd A) : |
| 67 | Commute (algebraicFrobenius k A) f := by |
| 68 | change f.toMul ≫ (algebraicFrobenius k A).toMul = |
| 69 | (algebraicFrobenius k A).toMul ≫ f.toMul |
| 70 | apply Grp.hom_ext |
| 71 | exact (Frobenius.Construction.finiteFieldSchemeFrobenius_naturality k A f.toMul.hom.hom).symm |
| 72 | |
| 73 | /-- The rational Frobenius element lies in the center of End⁰ over k. -/ |
| 74 | theorem rationalAlgebraicFrobenius_commutes (x : RationalAlgebraicEnd A) : |
| 75 | Commute (rationalAlgebraicFrobenius k A) x := by |
| 76 | induction x using TensorProduct.inductionOn with |
| 77 | | tmul r f => |
| 78 | change ((1 : ℚ) ⊗ₜ[ℤ] algebraicFrobenius k A) * (r ⊗ₜ[ℤ] f) = |
| 79 | (r ⊗ₜ[ℤ] f) * ((1 : ℚ) ⊗ₜ[ℤ] algebraicFrobenius k A) |
| 80 | simp only [Algebra.TensorProduct.tmul_mul_tmul, _root_.one_mul, _root_.mul_one] |
| 81 | rw [(algebraicFrobenius_commutes k A f).eq] |
| 82 | | add x y hx hy => exact hx.add_right hy |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction |