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.NumberTheory.PadicHodge.IntegralComparison.Frobenius.Geometry |
| 2 | |
| 3 | /-! # Fixed Points -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.FixedPoints |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: the affine Frobenius fixed locus |
| 11 | |
| 12 | For a finite-type algebra R over a finite field k, the fixed locus of |
| 13 | q-power Frobenius is defined by the actual ideal generated by r^q - r. |
| 14 | Its coordinate ring is finite over k and étale. The vanishing of its |
| 15 | Kähler differentials supplies the infinitesimal fixed-point calculation; |
| 16 | no cohomological trace formula is asserted here. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.Polynomial |
| 20 | |
| 21 | universe u v |
| 22 | |
| 23 | variable (k : Type u) [Field k] [Fintype k] |
| 24 | variable (R : Type v) [CommRing R] [Algebra k R] |
| 25 | |
| 26 | /-- The equations of the scheme-theoretic q-Frobenius fixed locus. -/ |
| 27 | def fixedIdeal : Ideal R := |
| 28 | Ideal.span (Set.range fun r : R => r ^ Fintype.card k - r) |
| 29 | |
| 30 | /-- The coordinate ring of the affine fixed locus. -/ |
| 31 | abbrev FixedAlgebra := R ⧸ fixedIdeal k R |
| 32 | |
| 33 | omit [Field k] [Algebra k R] in |
| 34 | lemma pow_card_eq (x : FixedAlgebra k R) : x ^ Fintype.card k = x := by |
| 35 | obtain ⟨r, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 36 | apply sub_eq_zero.mp |
| 37 | rw [← map_pow, ← map_sub, Ideal.Quotient.eq_zero_iff_mem] |
| 38 | exact Ideal.subset_span ⟨r, rfl⟩ |
| 39 | |
| 40 | /-- The quotient map equalizes q-Frobenius and the identity. -/ |
| 41 | lemma quotient_equalizes : |
| 42 | (Ideal.Quotient.mkₐ k (fixedIdeal k R)).comp (FiniteField.frobeniusAlgHom k R) = |
| 43 | Ideal.Quotient.mkₐ k (fixedIdeal k R) := by |
| 44 | ext r |
| 45 | change Ideal.Quotient.mk _ (r ^ Fintype.card k) = Ideal.Quotient.mk _ r |
| 46 | rw [map_pow, pow_card_eq] |
| 47 | |
| 48 | variable {k R} |
| 49 | |
| 50 | /-- The universal property of the fixed-locus equations, for all target algebras. -/ |
| 51 | lemma kills_fixedIdeal_iff {S : Type*} [CommRing S] [Algebra k S] (x : R →ₐ[k] S) : |
| 52 | fixedIdeal k R ≤ RingHom.ker x ↔ |
| 53 | x.comp (FiniteField.frobeniusAlgHom k R) = x := by |
| 54 | rw [fixedIdeal, Ideal.span_le] |
| 55 | constructor |
| 56 | · intro h |
| 57 | ext r |
| 58 | exact sub_eq_zero.mp (by simpa using h ⟨r, rfl⟩) |
| 59 | · intro h s hs |
| 60 | obtain ⟨r, rfl⟩ := hs |
| 61 | change x (r ^ Fintype.card k - r) = 0 |
| 62 | rw [map_sub] |
| 63 | exact sub_eq_zero.mpr (AlgHom.congr_fun h r) |
| 64 | |
| 65 | /-- Maps out of the fixed locus are precisely the maps fixed by Frobenius. -/ |
| 66 | def fixedPointEquiv (S : Type*) [CommRing S] [Algebra k S] : |
| 67 | (FixedAlgebra k R →ₐ[k] S) ≃ |
| 68 | {x : R →ₐ[k] S // x.comp (FiniteField.frobeniusAlgHom k R) = x} where |
| 69 | toFun y := ⟨y.comp (Ideal.Quotient.mkₐ k (fixedIdeal k R)), by |
| 70 | rw [AlgHom.comp_assoc, quotient_equalizes]⟩ |
| 71 | invFun x := Ideal.Quotient.liftₐ (fixedIdeal k R) x.val |
| 72 | ((kills_fixedIdeal_iff x.val).mpr x.property) |
| 73 | left_inv y := by |
| 74 | ext r |
| 75 | obtain ⟨s, rfl⟩ := Ideal.Quotient.mk_surjective r |
| 76 | rfl |
| 77 | right_inv x := by apply Subtype.ext; rfl |
| 78 | |
| 79 | variable (k R) |
| 80 | |
| 81 | /-- Every element of the fixed-locus algebra is integral over k, since it |
| 82 | is annihilated by the monic polynomial X^q - X. -/ |
| 83 | instance fixedAlgebraIntegral : Algebra.IsIntegral k (FixedAlgebra k R) where |
| 84 | isIntegral x := by |
| 85 | refine ⟨X ^ Fintype.card k - X, monic_X_pow_sub ?_, ?_⟩ |
| 86 | · rw [degree_X] |
| 87 | exact_mod_cast Fintype.one_lt_card (α := k) |
| 88 | · simpa only [eval₂_sub, eval₂_pow, eval₂_X, sub_eq_zero] using pow_card_eq k R x |
| 89 | |
| 90 | /-- A finite-type affine scheme has a finite Frobenius fixed locus. -/ |
| 91 | instance fixedAlgebraFinite [Algebra.FiniteType k R] : |
| 92 | Module.Finite k (FixedAlgebra k R) := Algebra.IsIntegral.finite |
| 93 | |
| 94 | /-- The differential of every q-th power vanishes over the finite base field. -/ |
| 95 | lemma differential_pow_card (r : R) : |
| 96 | KaehlerDifferential.D k R (r ^ Fintype.card k) = 0 := by |
| 97 | rw [Derivation.leibniz_pow, ← Nat.cast_smul_eq_nsmul k, |
| 98 | FiniteField.cast_card_eq_zero, zero_smul] |
| 99 | |
| 100 | /-- The fixed-locus equations have no nonzero infinitesimal differentials. -/ |
| 101 | instance fixedAlgebraDifferentials : |
| 102 | Subsingleton (KaehlerDifferential k (FixedAlgebra k R)) := by |
| 103 | suffices (⊤ : Submodule (FixedAlgebra k R) |
| 104 | (KaehlerDifferential k (FixedAlgebra k R))) ≤ ⊥ from |
| 105 | (subsingleton_iff_forall_eq 0).mpr fun y => this trivial |
| 106 | rw [← KaehlerDifferential.span_range_derivation, Submodule.span_le] |
| 107 | rintro _ ⟨x, rfl⟩ |
| 108 | change KaehlerDifferential.D k (FixedAlgebra k R) x = 0 |
| 109 | rw [← pow_card_eq k R x] |
| 110 | exact differential_pow_card k (FixedAlgebra k R) x |
| 111 | |
| 112 | instance fixedAlgebraFormallyUnramified : |
| 113 | Algebra.FormallyUnramified k (FixedAlgebra k R) := ⟨inferInstance⟩ |
| 114 | |
| 115 | /-- The finite-type Frobenius fixed locus is étale over k. -/ |
| 116 | instance fixedAlgebraEtale [Algebra.FiniteType k R] : |
| 117 | Algebra.Etale k (FixedAlgebra k R) where |
| 118 | formallyEtale := Algebra.FormallyEtale.of_formallyUnramified_of_field k (FixedAlgebra k R) |
| 119 | finitePresentation := Algebra.FinitePresentation.of_finiteType.mp inferInstance |
| 120 | |
| 121 | /-- In particular there are no nilpotent contributions at fixed points. -/ |
| 122 | instance fixedAlgebraReduced [Algebra.FiniteType k R] : IsReduced (FixedAlgebra k R) := |
| 123 | Algebra.FormallyUnramified.isReduced_of_field k (FixedAlgebra k R) |
| 124 | |
| 125 | instance fixedAlgebraArtinian [Algebra.FiniteType k R] : |
| 126 | IsArtinianRing (FixedAlgebra k R) := .of_finite k (FixedAlgebra k R) |
| 127 | |
| 128 | /-- Every residue field of the fixed locus is the base field itself. -/ |
| 129 | def residueFieldEquiv (m : MaximalSpectrum (FixedAlgebra k R)) : |
| 130 | (FixedAlgebra k R ⧸ m.asIdeal) ≃ₐ[k] k := by |
| 131 | letI : Field (FixedAlgebra k R ⧸ m.asIdeal) := Ideal.Quotient.field m.asIdeal |
| 132 | refine (AlgEquiv.ofBijective (Algebra.ofId k (FixedAlgebra k R ⧸ m.asIdeal)) |
| 133 | ⟨(algebraMap k _).injective, ?_⟩).symm |
| 134 | intro z |
| 135 | apply (Frobenius.Geometry.fixed_by_card_power_iff k _ z).mp |
| 136 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective z |
| 137 | rw [← map_pow, pow_card_eq] |
| 138 | |
| 139 | /-- The fixed-locus algebra is a finite product of copies of k. Thus each |
| 140 | geometric fixed point contributes one to the length of this locus. -/ |
| 141 | def fixedAlgebraProduct [Algebra.FiniteType k R] : |
| 142 | FixedAlgebra k R ≃ₐ[k] (MaximalSpectrum (FixedAlgebra k R) → k) := |
| 143 | ((IsArtinianRing.equivPi (FixedAlgebra k R)).restrictScalars k).trans |
| 144 | (AlgEquiv.piCongrRight (residueFieldEquiv k R)) |
| 145 | |
| 146 | instance fixedAlgebraSplit [Algebra.FiniteType k R] : |
| 147 | Algebra.IsFiniteSplit k (FixedAlgebra k R) := |
| 148 | .of_algEquiv (fixedAlgebraProduct k R).symm |
| 149 | |
| 150 | /-- All k-rational points factor uniquely through the fixed locus. -/ |
| 151 | def rationalPointEquiv : (FixedAlgebra k R →ₐ[k] k) ≃ (R →ₐ[k] k) := |
| 152 | (fixedPointEquiv (k := k) (R := R) k).trans |
| 153 | { toFun := Subtype.val |
| 154 | invFun := fun x => ⟨x, by |
| 155 | ext r |
| 156 | change x (r ^ Fintype.card k) = x r |
| 157 | rw [map_pow, FiniteField.pow_card]⟩ |
| 158 | left_inv := fun _ => rfl |
| 159 | right_inv := fun _ => rfl } |
| 160 | |
| 161 | /-- Points of the fixed locus agree with the rational points of Spec R. -/ |
| 162 | def rationalPointMaximalEquiv [Algebra.FiniteType k R] : |
| 163 | (R →ₐ[k] k) ≃ MaximalSpectrum (FixedAlgebra k R) := |
| 164 | (rationalPointEquiv k R).symm.trans |
| 165 | ((Algebra.IsFiniteSplit.algHomEquivPrimeSpectrum k (FixedAlgebra k R)).trans |
| 166 | { toFun := fun x => ⟨x.asIdeal, inferInstance⟩ |
| 167 | invFun := MaximalSpectrum.toPrimeSpectrum |
| 168 | left_inv := fun _ => rfl |
| 169 | right_inv := fun _ => rfl }) |
| 170 | |
| 171 | /-- The length of the fixed locus is its number of distinct points. -/ |
| 172 | lemma fixedAlgebra_finrank [Algebra.FiniteType k R] : |
| 173 | Module.finrank k (FixedAlgebra k R) = Nat.card (MaximalSpectrum (FixedAlgebra k R)) := by |
| 174 | let := Fintype.ofFinite (MaximalSpectrum (FixedAlgebra k R)) |
| 175 | rw [(fixedAlgebraProduct k R).toLinearEquiv.finrank_eq, Module.finrank_pi] |
| 176 | simp [Nat.card_eq_fintype_card] |
| 177 | |
| 178 | /-- The length of the Frobenius fixed locus counts the rational points. -/ |
| 179 | lemma fixedAlgebra_finrank_eq_rationalPointCount [Algebra.FiniteType k R] : |
| 180 | Module.finrank k (FixedAlgebra k R) = Nat.card (R →ₐ[k] k) := by |
| 181 | rw [fixedAlgebra_finrank, Nat.card_congr (rationalPointMaximalEquiv k R)] |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.FixedPoints |