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.Verschiebung |
| 2 | import OAI.AlgebraicGeometry.GroupSchemes.DualMaps |
| 3 | |
| 4 | /-! # Local Obstruction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.GroupSchemes.LocalObstruction.FiniteEtale |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # FiniteEtale: the local algebra obstruction at the second level |
| 12 | |
| 13 | Finite-dimensional nilpotence gives the first-level Frobenius calculation. |
| 14 | Nakayama then rules out a nonzero proper kernel ideal generated by pth powers |
| 15 | of elements already in that ideal. These are algebraic steps of the connected |
| 16 | height-one argument; the geometric classification is not assumed. |
| 17 | -/ |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.GroupSchemes.Verschiebung.FiniteEtale |
| 20 | |
| 21 | universe u v |
| 22 | |
| 23 | variable (k : Type u) [Field k] |
| 24 | variable (A : Type v) [CommRing A] [Algebra k A] [Module.Finite k A] |
| 25 | |
| 26 | /-- A nilpotent in a finite-dimensional algebra vanishes by the dimension-th power. -/ |
| 27 | theorem nilpotent_pow_finrank (x : A) (hx : IsNilpotent x) : |
| 28 | x ^ Module.finrank k A = 0 := by |
| 29 | have hφ : IsNilpotent (Algebra.lmul k A x) := hx.map (Algebra.lmul k A) |
| 30 | have hz : (Algebra.lmul k A x) ^ Module.finrank k A = 0 := by |
| 31 | have h := (Algebra.lmul k A x).aeval_self_charpoly |
| 32 | rw [hφ.charpoly_eq_X_pow_finrank] at h |
| 33 | simpa using h |
| 34 | apply Algebra.lmul_injective (R := k) (A := A) |
| 35 | rw [map_pow, map_zero] |
| 36 | exact hz |
| 37 | |
| 38 | /-- In a local finite-dimensional algebra, the kernel of an augmentation is nilpotent. -/ |
| 39 | theorem nilpotent_of_augmentation_zero [IsLocalRing A] (ε : A →ₐ[k] k) |
| 40 | (x : A) (hx : ε x = 0) : IsNilpotent x := by |
| 41 | have : IsArtinianRing A := isArtinian_of_tower k inferInstance |
| 42 | rw [← mem_nilradical, nilradical, ← IsArtinianRing.jacobson_eq_radical, Ideal.zero_eq_bot, |
| 43 | IsLocalRing.jacobson_eq_maximalIdeal _ bot_ne_top] |
| 44 | rw [IsLocalRing.mem_maximalIdeal] |
| 45 | intro hu |
| 46 | have h := hu.map ε |
| 47 | simp only [hx, not_isUnit_zero] at h |
| 48 | |
| 49 | variable (p : ℕ) [Fact p.Prime] [CharP k p] |
| 50 | |
| 51 | /-- Frobenius on a local algebra of dimension p factors through its augmentation. -/ |
| 52 | theorem frobenius_of_local_rank_prime [IsLocalRing A] (hdim : Module.finrank k A = p) |
| 53 | (ε : A →ₐ[k] k) (x : A) : x ^ p = algebraMap k A ((ε x) ^ p) := by |
| 54 | have hn : (x - algebraMap k A (ε x)) ^ p = 0 := by |
| 55 | rw [← hdim] |
| 56 | apply nilpotent_pow_finrank k A |
| 57 | apply nilpotent_of_augmentation_zero k A ε |
| 58 | simp |
| 59 | calc |
| 60 | x ^ p = ((x - algebraMap k A (ε x)) + algebraMap k A (ε x)) ^ p := by |
| 61 | rw [sub_add_cancel] |
| 62 | _ = (x - algebraMap k A (ε x)) ^ p + (algebraMap k A (ε x)) ^ p := |
| 63 | Verschiebung.FiniteEtale.algebra_pow_add p k A _ _ |
| 64 | _ = (algebraMap k A (ε x)) ^ p := by rw [hn, zero_add] |
| 65 | _ = algebraMap k A ((ε x) ^ p) := (map_pow _ _ _).symm |
| 66 | |
| 67 | section IdealObstruction |
| 68 | |
| 69 | variable {R : Type*} [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 70 | |
| 71 | /-- Nakayama's obstruction: a proper ideal cannot be generated by pth powers |
| 72 | of images lying in the same ideal, unless the ideal is zero. -/ |
| 73 | theorem kernel_ideal_eq_bot (p : ℕ) (hp : 2 ≤ p) (m I : Ideal R) (V : R →+* R) |
| 74 | (hproper : I ≠ ⊤) (hV : ∀ x ∈ m, V x ∈ I) |
| 75 | (hgen : I = Ideal.span ((fun x => V x ^ p) '' (m : Set R))) : I = ⊥ := by |
| 76 | have hpow : I ≤ I ^ p := by |
| 77 | conv_lhs => rw [hgen] |
| 78 | apply Ideal.span_le.mpr |
| 79 | rintro _ ⟨x, hx, rfl⟩ |
| 80 | exact Ideal.pow_mem_pow (hV x hx) p |
| 81 | have hsq : I ≤ I * I := by |
| 82 | simpa only [pow_two] using hpow.trans (Ideal.pow_le_pow_right hp) |
| 83 | have hid : IsIdempotentElem I := le_antisymm Ideal.mul_le_left hsq |
| 84 | exact ((Ideal.isIdempotentElem_iff_eq_bot_or_top_of_isLocalRing I).mp hid).resolve_right hproper |
| 85 | |
| 86 | end IdealObstruction |
| 87 | |
| 88 | section DualLocal |
| 89 | |
| 90 | variable (C : Type*) [CommRing C] [HopfAlgebra k C] |
| 91 | [Coalgebra.IsCocomm k C] [Module.Finite k C] [PerfectRing k p] |
| 92 | |
| 93 | local instance : CommRing (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k C) := LinearMap.convCommRing |
| 94 | local instance : Algebra k (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k C) := LinearMap.convAlgebra |
| 95 | |
| 96 | variable [IsLocalRing (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k C)] |
| 97 | |
| 98 | /-- If the Cartier dual has local coordinate algebra of dimension p, |
| 99 | Verschiebung kills the augmentation ideal of the original group. -/ |
| 100 | theorem verschiebung_kills_augmentation (hdim : Module.finrank k C = p) |
| 101 | (x : C) (hx : Coalgebra.counit (R := k) x = 0) : |
| 102 | Verschiebung.FiniteEtale.verschiebungFun p k C x = 0 := by |
| 103 | apply (AbelianScheme.CartierDuality.DualAlgebra.Construction.dualCoordinateBidualLinearEquiv k C).injective |
| 104 | ext f |
| 105 | simp only [AbelianScheme.CartierDuality.DualAlgebra.Construction.dualCoordinateBidualLinearEquiv_apply, map_zero] |
| 106 | apply (frobeniusEquiv k p).injective |
| 107 | change f (Verschiebung.FiniteEtale.verschiebungFun p k C x) ^ p = (0 : k) ^ p |
| 108 | rw [Verschiebung.FiniteEtale.eval_verschiebung_pow, zero_pow (Fact.out : p.Prime).ne_zero] |
| 109 | have hdimD : Module.finrank k (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k C) = p := by |
| 110 | rw [(AbelianScheme.CartierDuality.DualAlgebra.Construction.dualCoordinateLinearEquiv k C).finrank_eq, Subspace.dual_finrank_eq, hdim] |
| 111 | rw [frobenius_of_local_rank_prime k (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k C) p hdimD |
| 112 | (Bialgebra.counitAlgHom k (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k C)) f] |
| 113 | simp only [LinearMap.convAlgebraMap_apply, hx, map_zero, smul_zero] |
| 114 | |
| 115 | end DualLocal |
| 116 | |
| 117 | variable (R S : Type*) [CommRing R] [CommRing S] |
| 118 | [HopfAlgebra k R] [HopfAlgebra k S] |
| 119 | [Coalgebra.IsCocomm k R] [Coalgebra.IsCocomm k S] |
| 120 | [Module.Finite k R] [Module.Finite k S] [PerfectRing k p] |
| 121 | |
| 122 | /-- The augmentation ideal of the coordinate Hopf algebra. -/ |
| 123 | def augmentationIdeal : Ideal R := RingHom.ker (Bialgebra.counitAlgHom k R).toRingHom |
| 124 | |
| 125 | /-- The ideal defining the kernel of multiplication by p in affine coordinates. -/ |
| 126 | def multiplicationKernelIdeal : Ideal R := |
| 127 | Ideal.span ((fun x => ((WithConv.toConv (LinearMap.id : R →ₗ[k] R)) ^ p) x) '' |
| 128 | (augmentationIdeal k R : Set R)) |
| 129 | |
| 130 | local instance : CommRing (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k S) := LinearMap.convCommRing |
| 131 | local instance : Algebra k (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k S) := LinearMap.convAlgebra |
| 132 | |
| 133 | /-- The connected/connected obstruction for a prime-order first level: |
| 134 | a larger local coordinate Hopf algebra cannot have this multiplication kernel |
| 135 | when the quotient's Cartier dual is local. -/ |
| 136 | theorem no_local_local_prime_step [IsLocalRing R] [IsLocalRing (AbelianScheme.CartierDuality.DualAlgebra.Construction.DualCoordinate k S)] |
| 137 | (hdimR : p < Module.finrank k R) (hdimS : Module.finrank k S = p) |
| 138 | (q : R →ₐc[k] S) |
| 139 | (hker : RingHom.ker q.toAlgHom.toRingHom = multiplicationKernelIdeal k p R) : False := by |
| 140 | have : Nontrivial S := (Bialgebra.counitAlgHom k S).toRingHom.domain_nontrivial |
| 141 | have : IsNoetherianRing R := IsNoetherianRing.of_finite k R |
| 142 | have hzero : RingHom.ker q.toAlgHom.toRingHom = ⊥ := by |
| 143 | apply kernel_ideal_eq_bot p (Fact.out : p.Prime).two_le (augmentationIdeal k R) |
| 144 | _ (Verschiebung.FiniteEtale.verschiebungRingHom p k R) |
| 145 | · exact RingHom.ker_ne_top _ |
| 146 | · intro x hx |
| 147 | change q.toCoalgHom (Verschiebung.FiniteEtale.verschiebungFun p k R x) = 0 |
| 148 | rw [DualMaps.FiniteEtale.verschiebung_natural k p q.toCoalgHom x] |
| 149 | apply verschiebung_kills_augmentation k p S hdimS |
| 150 | exact (CoalgHomClass.counit_comp_apply q x).trans hx |
| 151 | · change RingHom.ker q.toAlgHom.toRingHom = |
| 152 | Ideal.span ((fun x => Verschiebung.FiniteEtale.verschiebungFun p k R x ^ p) '' |
| 153 | (augmentationIdeal k R : Set R)) |
| 154 | simpa only [multiplicationKernelIdeal, Verschiebung.FiniteEtale.frobenius_verschiebung] using hker |
| 155 | have hinj : Function.Injective q.toLinearMap := |
| 156 | (RingHom.injective_iff_ker_eq_bot q.toAlgHom.toRingHom).mpr hzero |
| 157 | have hle := LinearMap.finrank_le_finrank_of_injective hinj |
| 158 | omega |
| 159 | |
| 160 | end |
| 161 | |
| 162 | end OAI.AlgebraicGeometry.GroupSchemes.LocalObstruction.FiniteEtale |