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 | |
| 3 | /-! # Geometry -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Frobenius.Geometry |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: Frobenius on the geometric fiber |
| 11 | |
| 12 | Arithmetic Frobenius is the q-power automorphism of the algebraic closure |
| 13 | of a finite field. Its inverse is geometric Frobenius. Both fix the base |
| 14 | field, and hence induce actual scheme automorphisms of every geometric |
| 15 | fiber. Cohomological pullback is kept separate from these scheme maps. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | variable (p a : ℕ) [Fact p.Prime] |
| 23 | variable (k : Type u) [Field k] [Fintype k] [CharP k p] |
| 24 | |
| 25 | /-- Arithmetic q-Frobenius on the algebraic closure, fixing the finite base field. -/ |
| 26 | def arithmeticFrobenius (hcard : Fintype.card k = p ^ a) : |
| 27 | AlgebraicClosure k ≃ₐ[k] AlgebraicClosure k where |
| 28 | toRingEquiv := iterateFrobeniusEquiv (AlgebraicClosure k) p a |
| 29 | commutes' x := by |
| 30 | change (algebraMap k (AlgebraicClosure k) x) ^ (p ^ a) = _ |
| 31 | rw [← map_pow, ← hcard, FiniteField.pow_card] |
| 32 | |
| 33 | @[simp] |
| 34 | lemma arithmeticFrobenius_apply (hcard : Fintype.card k = p ^ a) |
| 35 | (x : AlgebraicClosure k) : arithmeticFrobenius p a k hcard x = x ^ (p ^ a) := rfl |
| 36 | |
| 37 | /-- Geometric Frobenius, as a field automorphism. -/ |
| 38 | def geometricFrobenius (hcard : Fintype.card k = p ^ a) : |
| 39 | AlgebraicClosure k ≃ₐ[k] AlgebraicClosure k := |
| 40 | (arithmeticFrobenius p a k hcard).symm |
| 41 | |
| 42 | lemma geometricFrobenius_pow (hcard : Fintype.card k = p ^ a) |
| 43 | (x : AlgebraicClosure k) : |
| 44 | geometricFrobenius p a k hcard x ^ (p ^ a) = x := |
| 45 | (arithmeticFrobenius p a k hcard).apply_symm_apply x |
| 46 | |
| 47 | section BaseChange |
| 48 | |
| 49 | variable {k} |
| 50 | variable {L : Type u} [Field L] [Algebra k L] |
| 51 | omit [Fintype k] |
| 52 | |
| 53 | /-- The geometric fiber over a specified extension field. -/ |
| 54 | abbrev geometricFiber {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of k)) : Scheme.{u} := |
| 55 | pullback f (Spec.map (CommRingCat.ofHom (algebraMap k L))) |
| 56 | |
| 57 | /-- The scheme automorphism corresponding contravariantly to a field automorphism. -/ |
| 58 | def scalarSchemeIso (σ : L ≃ₐ[k] L) : |
| 59 | Spec (CommRingCat.of L) ≅ Spec (CommRingCat.of L) := |
| 60 | Scheme.Spec.mapIso σ.toRingEquiv.toCommRingCatIso.op |
| 61 | |
| 62 | lemma scalarSchemeIso_over (σ : L ≃ₐ[k] L) : |
| 63 | (scalarSchemeIso σ).hom ≫ Spec.map (CommRingCat.ofHom (algebraMap k L)) = |
| 64 | Spec.map (CommRingCat.ofHom (algebraMap k L)) := by |
| 65 | change Spec.map (CommRingCat.ofHom σ.toRingHom) ≫ _ = _ |
| 66 | rw [← Spec.map_comp] |
| 67 | congr 1 |
| 68 | ext x |
| 69 | exact σ.commutes x |
| 70 | |
| 71 | /-- Field automorphisms act on the scheme-theoretic geometric fiber. -/ |
| 72 | def geometricFiberIso {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of k)) |
| 73 | (σ : L ≃ₐ[k] L) : geometricFiber (L := L) f ≅ geometricFiber (L := L) f where |
| 74 | hom := pullback.lift (pullback.fst _ _) |
| 75 | (pullback.snd _ _ ≫ (scalarSchemeIso σ).hom) (by |
| 76 | rw [Category.assoc, scalarSchemeIso_over] |
| 77 | exact pullback.condition) |
| 78 | inv := pullback.lift (pullback.fst _ _) |
| 79 | (pullback.snd _ _ ≫ (scalarSchemeIso σ).inv) (by |
| 80 | change pullback.fst f _ ≫ f = |
| 81 | (pullback.snd f _ ≫ (scalarSchemeIso σ.symm).hom) ≫ _ |
| 82 | rw [Category.assoc, scalarSchemeIso_over] |
| 83 | exact pullback.condition) |
| 84 | hom_inv_id := by |
| 85 | apply pullback.hom_ext |
| 86 | · simp only [Category.assoc, Category.id_comp] |
| 87 | erw [pullback.lift_fst, pullback.lift_fst] |
| 88 | · simp only [Category.assoc, Category.id_comp] |
| 89 | erw [pullback.lift_snd, ← Category.assoc, pullback.lift_snd] |
| 90 | simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id] |
| 91 | inv_hom_id := by |
| 92 | apply pullback.hom_ext |
| 93 | · simp only [Category.assoc, Category.id_comp] |
| 94 | erw [pullback.lift_fst, pullback.lift_fst] |
| 95 | · simp only [Category.assoc, Category.id_comp] |
| 96 | erw [pullback.lift_snd, ← Category.assoc, pullback.lift_snd] |
| 97 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 98 | |
| 99 | @[simp] |
| 100 | lemma geometricFiberIso_hom_fst {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of k)) |
| 101 | (σ : L ≃ₐ[k] L) : |
| 102 | (geometricFiberIso f σ).hom ≫ pullback.fst f _ = pullback.fst f _ := |
| 103 | pullback.lift_fst _ _ _ |
| 104 | |
| 105 | @[simp] |
| 106 | lemma geometricFiberIso_hom_snd {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of k)) |
| 107 | (σ : L ≃ₐ[k] L) : |
| 108 | (geometricFiberIso f σ).hom ≫ pullback.snd f _ = |
| 109 | pullback.snd f _ ≫ (scalarSchemeIso σ).hom := |
| 110 | pullback.lift_snd _ _ _ |
| 111 | |
| 112 | end BaseChange |
| 113 | |
| 114 | variable (L : Type v) [Field L] [Algebra k L] |
| 115 | |
| 116 | /-- The fixed elements of q-power Frobenius in any extension field are |
| 117 | exactly the elements of the finite base field. -/ |
| 118 | lemma fixed_by_card_power_iff (z : L) : |
| 119 | z ^ Fintype.card k = z ↔ ∃ x : k, algebraMap k L x = z := by |
| 120 | classical |
| 121 | constructor |
| 122 | · intro hz |
| 123 | let P : Polynomial k := Polynomial.X ^ Fintype.card k - Polynomial.X |
| 124 | have hcard : P.roots.card = P.natDegree := by |
| 125 | dsimp [P] |
| 126 | rw [FiniteField.roots_X_pow_card_sub_X, |
| 127 | FiniteField.X_pow_card_sub_X_natDegree_eq k Fintype.one_lt_card] |
| 128 | rfl |
| 129 | have hmap := Polynomial.roots_map_of_injective_of_card_eq_natDegree |
| 130 | (algebraMap k L).injective hcard |
| 131 | have hzmem : z ∈ (P.map (algebraMap k L)).roots := by |
| 132 | apply (Polynomial.mem_roots ((Polynomial.map_ne_zero_iff |
| 133 | (algebraMap k L).injective).mpr |
| 134 | (FiniteField.X_pow_card_sub_X_ne_zero k Fintype.one_lt_card))).mpr |
| 135 | simpa only [P, Polynomial.map_sub, Polynomial.map_pow, Polynomial.map_X, |
| 136 | Polynomial.IsRoot.def, Polynomial.eval_sub, Polynomial.eval_pow, |
| 137 | Polynomial.eval_X, sub_eq_zero] using hz |
| 138 | rw [← hmap, Multiset.mem_map] at hzmem |
| 139 | obtain ⟨x, _, hx⟩ := hzmem |
| 140 | exact ⟨x, hx⟩ |
| 141 | · rintro ⟨x, rfl⟩ |
| 142 | rw [← map_pow, FiniteField.pow_card] |
| 143 | |
| 144 | /-- Affine geometric points fixed by Frobenius descend uniquely to |
| 145 | rational points over the finite base field. -/ |
| 146 | lemma affine_point_fixed_iff_descends |
| 147 | (R : Type u) [CommRing R] [Algebra k R] (x : R →ₐ[k] L) : |
| 148 | (∀ r : R, x r ^ Fintype.card k = x r) ↔ |
| 149 | ∃! y : R →ₐ[k] k, ∀ r : R, algebraMap k L (y r) = x r := by |
| 150 | constructor |
| 151 | · intro hx |
| 152 | choose y hy using fun r => (fixed_by_card_power_iff k L (x r)).mp (hx r) |
| 153 | let yAlg : R →ₐ[k] k := |
| 154 | { toFun := y |
| 155 | map_zero' := by |
| 156 | apply (algebraMap k L).injective |
| 157 | rw [hy, map_zero, map_zero] |
| 158 | map_one' := by |
| 159 | apply (algebraMap k L).injective |
| 160 | rw [hy, map_one, map_one] |
| 161 | map_add' r s := by |
| 162 | apply (algebraMap k L).injective |
| 163 | rw [hy, map_add, map_add, hy, hy] |
| 164 | map_mul' r s := by |
| 165 | apply (algebraMap k L).injective |
| 166 | rw [hy, map_mul, map_mul, hy, hy] |
| 167 | commutes' r := by |
| 168 | apply (algebraMap k L).injective |
| 169 | rw [hy, x.commutes] |
| 170 | rfl } |
| 171 | refine ⟨yAlg, hy, ?_⟩ |
| 172 | intro z hz |
| 173 | ext r |
| 174 | apply (algebraMap k L).injective |
| 175 | exact (hz r).trans (hy r).symm |
| 176 | · rintro ⟨y, hy, _⟩ r |
| 177 | exact (fixed_by_card_power_iff k L (x r)).mpr ⟨y r, hy r⟩ |
| 178 | |
| 179 | end |
| 180 | |
| 181 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Frobenius.Geometry |