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.Crystalline.Cohomology.EnvelopeThickeningP |
| 2 | import Mathlib.CategoryTheory.Category.Preorder |
| 3 | |
| 4 | /-! # Padic PDP -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.PadicPDP.PadicPDThickening |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Crystalline thickenings modulo powers of p |
| 12 | |
| 13 | Compatibility with the Witt divided powers makes every positive power of |
| 14 | the ideal `(p)` a sub-DP ideal. Its quotients are affine crystalline |
| 15 | objects even when their defining ideal has no uniform nilpotence bound. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory Opposite |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 23 | (B : Type u) [CommRing B] [Algebra k B] |
| 24 | (E : Type u) [CommRing E] [Algebra (WittVector p k) E] |
| 25 | (r : E →+* B) (hr : Function.Surjective r) |
| 26 | (hbase : r.comp (algebraMap (WittVector p k) E) = |
| 27 | (algebraMap k B).comp WittVector.constantCoeff) |
| 28 | (δ : DividedPowers (RingHom.ker r)) |
| 29 | (hδ : DividedPowers.IsDPMorphism (Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) δ |
| 30 | (algebraMap (WittVector p k) E)) |
| 31 | |
| 32 | def ideal (n : ℕ) : Ideal E := (Ideal.span {(p : E)}) ^ (n + 1) |
| 33 | |
| 34 | omit [Algebra k B] in |
| 35 | include hδ in |
| 36 | theorem ideal_isSubDPIdeal (n : ℕ) : DividedPowers.IsSubDPIdeal δ (ideal p E n) := by |
| 37 | have h := DividedPowers.isSubDPIdeal_map_of_isSubDPIdeal hδ |
| 38 | (PD.Truncation.PDTruncation.power_isSubDPIdeal (WittVector p k) (Ideal.span {(p : WittVector p k)}) |
| 39 | (Witt.DividedPowers.WittDividedPowers.wittDividedPowers p k) n) |
| 40 | simpa only [Ideal.map_pow, Ideal.map_span, Set.image_singleton, map_natCast, ideal] using h |
| 41 | |
| 42 | abbrev Ring (n : ℕ) := E ⧸ ideal p E n |
| 43 | |
| 44 | def reduction (n : ℕ) : Ring p E n →+* B := |
| 45 | Ideal.Quotient.lift (ideal p E n) r (ideal_isSubDPIdeal p k B E r δ hδ n).1 |
| 46 | |
| 47 | omit [Algebra k B] in |
| 48 | @[simp] theorem reduction_mk (n : ℕ) (x : E) : |
| 49 | PadicPDThickening.reduction p k B E r δ hδ n (Ideal.Quotient.mk (ideal p E n) x) = r x := rfl |
| 50 | |
| 51 | omit [Algebra k B] in |
| 52 | theorem reduction_kernel (n : ℕ) : |
| 53 | RingHom.ker (PadicPDThickening.reduction p k B E r δ hδ n) = |
| 54 | (RingHom.ker r).map (Ideal.Quotient.mk (ideal p E n)) := |
| 55 | Ideal.ker_quotient_lift (I := ideal p E n) r _ |
| 56 | |
| 57 | omit [Algebra k B] in |
| 58 | include hδ in |
| 59 | theorem quotientKernel_isSubDPIdeal (n : ℕ) : |
| 60 | DividedPowers.IsSubDPIdeal δ |
| 61 | (RingHom.ker (Ideal.Quotient.mk (ideal p E n)) ⊓ RingHom.ker r) := by |
| 62 | rw [Ideal.mk_ker, inf_of_le_left (ideal_isSubDPIdeal p k B E r δ hδ n).1] |
| 63 | exact ideal_isSubDPIdeal p k B E r δ hδ n |
| 64 | |
| 65 | def dividedPowers (n : ℕ) : DividedPowers (RingHom.ker (PadicPDThickening.reduction p k B E r δ hδ n)) := |
| 66 | DividedPowers.Quotient.OfSurjective.dividedPowers δ Ideal.Quotient.mk_surjective |
| 67 | (reduction_kernel p k B E r δ hδ n) (quotientKernel_isSubDPIdeal p k B E r δ hδ n) |
| 68 | |
| 69 | omit [Algebra k B] in |
| 70 | theorem quotient_isDPMorphism (n : ℕ) : |
| 71 | DividedPowers.IsDPMorphism δ (PadicPDThickening.dividedPowers p k B E r δ hδ n) |
| 72 | (Ideal.Quotient.mk (ideal p E n)) := |
| 73 | DividedPowers.Quotient.OfSurjective.isDPMorphism δ Ideal.Quotient.mk_surjective |
| 74 | (reduction_kernel p k B E r δ hδ n) (quotientKernel_isSubDPIdeal p k B E r δ hδ n) |
| 75 | |
| 76 | omit [Fact (Nat.Prime p)] in |
| 77 | theorem p_pow_eq_zero (n : ℕ) : (p : Ring p E n) ^ (n + 1) = 0 := by |
| 78 | have h : Ideal.Quotient.mk (ideal p E n) ((p : E) ^ (n + 1)) = 0 := |
| 79 | Ideal.Quotient.eq_zero_iff_mem.mpr |
| 80 | (Ideal.pow_mem_pow (Ideal.subset_span (Set.mem_singleton (p : E))) (n + 1)) |
| 81 | simpa only [map_pow, map_natCast] using h |
| 82 | |
| 83 | /-- The genuine crystalline object obtained by reduction modulo `p^(n+1)`. -/ |
| 84 | def thickening (n : ℕ) : PD.Thickening.AffinePDThickening p k B where |
| 85 | ring := CommRingCat.of (Ring p E n) |
| 86 | reduction := PadicPDThickening.reduction p k B E r δ hδ n |
| 87 | reduction_surjective b := by |
| 88 | obtain ⟨x, rfl⟩ := hr b |
| 89 | exact ⟨Ideal.Quotient.mk (ideal p E n) x, rfl⟩ |
| 90 | reduction_base := by |
| 91 | ext w |
| 92 | exact DFunLike.congr_fun hbase w |
| 93 | p_nilpotent := ⟨n + 1, p_pow_eq_zero p E n⟩ |
| 94 | dividedPowers := PadicPDThickening.dividedPowers p k B E r δ hδ n |
| 95 | baseDP := (quotient_isDPMorphism p k B E r δ hδ n).comp _ hδ |
| 96 | |
| 97 | variable (T : PD.Thickening.AffinePDThickening p k B) (g : E →ₐ[WittVector p k] T.ring) |
| 98 | (hg : T.reduction.comp g.toRingHom = r) |
| 99 | (hgδ : DividedPowers.IsDPMorphism δ T.dividedPowers g.toRingHom) |
| 100 | |
| 101 | theorem ideal_le_kernel (n : ℕ) (hn : (p : T.ring) ^ (n + 1) = 0) : |
| 102 | ideal p E n ≤ RingHom.ker g := by |
| 103 | rw [ideal, Ideal.span_singleton_pow, Ideal.span_le] |
| 104 | rintro x (rfl : x = (p : E) ^ (n + 1)) |
| 105 | change g ((p : E) ^ (n + 1)) = 0 |
| 106 | simpa only [map_pow, map_natCast] using hn |
| 107 | |
| 108 | /-- Factor a map through a sufficiently large p-power quotient. -/ |
| 109 | def lift (n : ℕ) (hn : (p : T.ring) ^ (n + 1) = 0) : |
| 110 | Ring p E n →ₐ[WittVector p k] T.ring where |
| 111 | __ := Ideal.Quotient.lift (ideal p E n) g.toRingHom (ideal_le_kernel p k B E T g n hn) |
| 112 | commutes' w := g.commutes w |
| 113 | |
| 114 | @[simp] theorem lift_mk (n : ℕ) (hn : (p : T.ring) ^ (n + 1) = 0) (x : E) : |
| 115 | PadicPDThickening.lift p k B E T g n hn (Ideal.Quotient.mk (ideal p E n) x) = g x := rfl |
| 116 | |
| 117 | include hg in |
| 118 | theorem lift_reduction (n : ℕ) (hn : (p : T.ring) ^ (n + 1) = 0) : |
| 119 | T.reduction.comp (PadicPDThickening.lift p k B E T g n hn).toRingHom = PadicPDThickening.reduction p k B E r δ hδ n := by |
| 120 | apply RingHom.ext |
| 121 | intro x |
| 122 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 123 | exact DFunLike.congr_fun hg x |
| 124 | |
| 125 | include hgδ in |
| 126 | theorem lift_isDPMorphism (n : ℕ) (hn : (p : T.ring) ^ (n + 1) = 0) : |
| 127 | DividedPowers.IsDPMorphism (PadicPDThickening.dividedPowers p k B E r δ hδ n) T.dividedPowers |
| 128 | (PadicPDThickening.lift p k B E T g n hn).toRingHom := by |
| 129 | apply DividedPowers.IsDPMorphism.of_comp |
| 130 | δ (PadicPDThickening.dividedPowers p k B E r δ hδ n) T.dividedPowers |
| 131 | (Ideal.Quotient.mk (ideal p E n)) (PadicPDThickening.lift p k B E T g n hn).toRingHom |
| 132 | (reduction_kernel p k B E r δ hδ n) (quotient_isDPMorphism p k B E r δ hδ n) |
| 133 | exact hgδ |
| 134 | |
| 135 | /-- Factorization as a morphism in the actual affine crystalline category. -/ |
| 136 | def morphism (n : ℕ) (hn : (p : T.ring) ^ (n + 1) = 0) : |
| 137 | thickening p k B E r hr hbase δ hδ n ⟶ T where |
| 138 | hom := PadicPDThickening.lift p k B E T g n hn |
| 139 | reduction_comp := lift_reduction p k B E r δ hδ T g hg n hn |
| 140 | dp_comp := lift_isDPMorphism p k B E r δ hδ T g hgδ n hn |
| 141 | |
| 142 | include hg hgδ in |
| 143 | theorem exists_morphism : ∃ n : ℕ, Nonempty (thickening p k B E r hr hbase δ hδ n ⟶ T) := by |
| 144 | obtain ⟨n, hn⟩ := T.p_nilpotent |
| 145 | have hn' : (p : T.ring) ^ (n + 1) = 0 := by rw [pow_succ, hn, zero_mul] |
| 146 | exact ⟨n, ⟨morphism p k B E r hr hbase δ hδ T g hg hgδ n hn'⟩⟩ |
| 147 | |
| 148 | def quotient (n : ℕ) : E →ₐ[WittVector p k] (thickening p k B E r hr hbase δ hδ n).ring := |
| 149 | Ideal.Quotient.mkₐ (WittVector p k) (ideal p E n) |
| 150 | |
| 151 | /-- The transition from a larger p-power quotient to a smaller one. -/ |
| 152 | def transition (n m : ℕ) (h : n ≤ m) : |
| 153 | thickening p k B E r hr hbase δ hδ m ⟶ thickening p k B E r hr hbase δ hδ n := |
| 154 | morphism p k B E r hr hbase δ hδ (thickening p k B E r hr hbase δ hδ n) |
| 155 | (quotient p k B E r hr hbase δ hδ n) (by ext x; rfl) |
| 156 | (quotient_isDPMorphism p k B E r δ hδ n) m |
| 157 | (pow_eq_zero_of_le (Nat.add_le_add_right h 1) (p_pow_eq_zero p E n)) |
| 158 | |
| 159 | @[simp] theorem transition_mk (n m : ℕ) (h : n ≤ m) (x : E) : |
| 160 | (transition p k B E r hr hbase δ hδ n m h).hom |
| 161 | (Ideal.Quotient.mk (ideal p E m) x) = Ideal.Quotient.mk (ideal p E n) x := rfl |
| 162 | |
| 163 | theorem transition_refl (n : ℕ) : |
| 164 | transition p k B E r hr hbase δ hδ n n le_rfl = 𝟙 _ := by |
| 165 | apply PD.Thickening.AffinePDThickening.Hom.ext |
| 166 | apply AlgHom.ext |
| 167 | intro x |
| 168 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 169 | rfl |
| 170 | |
| 171 | theorem transition_comp (l n m : ℕ) (hln : l ≤ n) (hnm : n ≤ m) : |
| 172 | transition p k B E r hr hbase δ hδ n m hnm ≫ |
| 173 | transition p k B E r hr hbase δ hδ l n hln = |
| 174 | transition p k B E r hr hbase δ hδ l m (hln.trans hnm) := by |
| 175 | apply PD.Thickening.AffinePDThickening.Hom.ext |
| 176 | apply AlgHom.ext |
| 177 | intro x |
| 178 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 179 | rfl |
| 180 | |
| 181 | /-- The actual inverse system of affine crystalline thickenings. -/ |
| 182 | def tower : ℕᵒᵖ ⥤ PD.Thickening.AffinePDThickening p k B where |
| 183 | obj n := thickening p k B E r hr hbase δ hδ n.unop |
| 184 | map f := transition p k B E r hr hbase δ hδ _ _ (leOfHom f.unop) |
| 185 | map_id n := transition_refl p k B E r hr hbase δ hδ n.unop |
| 186 | map_comp f g := (transition_comp p k B E r hr hbase δ hδ _ _ _ |
| 187 | (leOfHom g.unop) (leOfHom f.unop)).symm |
| 188 | |
| 189 | end |
| 190 | |
| 191 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.PadicPDP.PadicPDThickening |