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.PD.EnvelopeDp |
| 2 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 3 | |
| 4 | /-! # Envelope Reduction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.EnvelopeReduction.PDEnvelopeReduction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Cohomology: reduction of the relative divided-power envelope |
| 12 | |
| 13 | The envelope maps canonically to the original quotient algebra. Its |
| 14 | divided-power ideal is the kernel of this map, so passage to the envelope |
| 15 | does not change the closed subscheme. |
| 16 | -/ |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.EnvelopeDp.PDEnvelope |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] |
| 23 | variable (I₀ : Ideal R) (δ₀ : DividedPowers I₀) (I : Ideal A) |
| 24 | variable (hbase : I₀.map (algebraMap R A) ≤ I) |
| 25 | |
| 26 | /-- The original quotient as a target with zero divided-power ideal. -/ |
| 27 | def quotientTarget : EnvelopeDp.PDEnvelope.Target R A I₀ δ₀ I where |
| 28 | ring := CommRingCat.of (A ⧸ I) |
| 29 | ideal := ⊥ |
| 30 | dp := dividedPowersBot (A ⧸ I) |
| 31 | contains := by |
| 32 | change I.map (Ideal.Quotient.mk I) ≤ ⊥ |
| 33 | rw [Ideal.map_quotient_self] |
| 34 | baseDP := |
| 35 | { ideal_comp := by |
| 36 | rw [Ideal.map_le_iff_le_comap] |
| 37 | intro r hr |
| 38 | change Ideal.Quotient.mk I (algebraMap R A r) = 0 |
| 39 | exact Ideal.Quotient.eq_zero_iff_mem.mpr (hbase (Ideal.mem_map_of_mem _ hr)) |
| 40 | dpow_comp := by |
| 41 | intro n r hr |
| 42 | have hx : Ideal.Quotient.mk I (algebraMap R A r) = 0 := |
| 43 | Ideal.Quotient.eq_zero_iff_mem.mpr (hbase (Ideal.mem_map_of_mem _ hr)) |
| 44 | change (dividedPowersBot (A ⧸ I)).dpow n |
| 45 | (Ideal.Quotient.mk I (algebraMap R A r)) = |
| 46 | Ideal.Quotient.mk I (algebraMap R A (δ₀.dpow n r)) |
| 47 | rw [hx] |
| 48 | by_cases hn : n = 0 |
| 49 | · subst n |
| 50 | rw [δ₀.dpow_zero hr, map_one, map_one, (dividedPowersBot (A ⧸ I)).dpow_zero (by simp)] |
| 51 | · rw [(dividedPowersBot (A ⧸ I)).dpow_eval_zero hn] |
| 52 | exact (Ideal.Quotient.eq_zero_iff_mem.mpr |
| 53 | (hbase (Ideal.mem_map_of_mem _ (δ₀.dpow_mem hn hr)))).symm } |
| 54 | |
| 55 | /-- The canonical reduction of the envelope to the original quotient. -/ |
| 56 | def reduction : EnvelopeDp.PDEnvelope.Envelope R A I₀ δ₀ I →ₐ[A] A ⧸ I := |
| 57 | EnvelopeDp.PDEnvelope.lift R A I₀ δ₀ I (quotientTarget R A I₀ δ₀ I hbase) |
| 58 | |
| 59 | @[simp] |
| 60 | theorem reduction_ofAlgebra (a : A) : |
| 61 | reduction R A I₀ δ₀ I hbase (EnvelopeDp.PDEnvelope.ofAlgebra R A I₀ δ₀ I a) = Ideal.Quotient.mk I a := rfl |
| 62 | |
| 63 | theorem reduction_surjective : Function.Surjective (reduction R A I₀ δ₀ I hbase) := by |
| 64 | intro x |
| 65 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 66 | exact ⟨EnvelopeDp.PDEnvelope.ofAlgebra R A I₀ δ₀ I a, rfl⟩ |
| 67 | |
| 68 | theorem ideal_le_kernel : EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I ≤ RingHom.ker (reduction R A I₀ δ₀ I hbase).toRingHom := by |
| 69 | intro x hx |
| 70 | exact EnvelopeDp.PDEnvelope.evaluate_mem R A I₀ δ₀ I (quotientTarget R A I₀ δ₀ I hbase) hx |
| 71 | |
| 72 | /-- The original quotient maps back to the quotient of the envelope by its ideal. -/ |
| 73 | def quotientToQuotient : A ⧸ I →+* EnvelopeDp.PDEnvelope.Envelope R A I₀ δ₀ I ⧸ EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I := |
| 74 | Ideal.Quotient.lift I |
| 75 | ((Ideal.Quotient.mk (EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I)).comp (EnvelopeDp.PDEnvelope.ofAlgebra R A I₀ δ₀ I)) |
| 76 | (fun _a ha => Ideal.Quotient.eq_zero_iff_mem.mpr |
| 77 | (EnvelopeDp.PDEnvelope.contains R A I₀ δ₀ I (Ideal.mem_map_of_mem _ ha))) |
| 78 | |
| 79 | /-- Reduction descends through the envelope ideal. -/ |
| 80 | def reductionQuotient : EnvelopeDp.PDEnvelope.Envelope R A I₀ δ₀ I ⧸ EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I →+* A ⧸ I := |
| 81 | Ideal.Quotient.lift (EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I) (reduction R A I₀ δ₀ I hbase).toRingHom |
| 82 | (fun _ hx => ideal_le_kernel R A I₀ δ₀ I hbase hx) |
| 83 | |
| 84 | theorem quotientToQuotient_reduction_term (t : EnvelopeDp.PDEnvelope.RingTerm A I) : |
| 85 | quotientToQuotient R A I₀ δ₀ I (reduction R A I₀ δ₀ I hbase (EnvelopeDp.PDEnvelope.term R A I₀ δ₀ I t)) = |
| 86 | Ideal.Quotient.mk (EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I) (EnvelopeDp.PDEnvelope.term R A I₀ δ₀ I t) := by |
| 87 | cases t with |
| 88 | | coeff a => |
| 89 | change quotientToQuotient R A I₀ δ₀ I (Ideal.Quotient.mk I a) = |
| 90 | Ideal.Quotient.mk (EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I) (EnvelopeDp.PDEnvelope.ofAlgebra R A I₀ δ₀ I a) |
| 91 | exact Ideal.Quotient.lift_mk _ _ _ |
| 92 | | add x y => rw [EnvelopeDp.PDEnvelope.term_add, map_add, map_add, map_add, |
| 93 | quotientToQuotient_reduction_term x, quotientToQuotient_reduction_term y] |
| 94 | | neg x => rw [EnvelopeDp.PDEnvelope.term_neg, map_neg, map_neg, map_neg, quotientToQuotient_reduction_term x] |
| 95 | | mul x y => rw [EnvelopeDp.PDEnvelope.term_mul, map_mul, map_mul, map_mul, |
| 96 | quotientToQuotient_reduction_term x, quotientToQuotient_reduction_term y] |
| 97 | | ofIdeal x => |
| 98 | have hx : EnvelopeDp.PDEnvelope.idealTerm R A I₀ δ₀ I x ∈ EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I := Set.mem_range_self x |
| 99 | change quotientToQuotient R A I₀ δ₀ I (reduction R A I₀ δ₀ I hbase (EnvelopeDp.PDEnvelope.idealTerm R A I₀ δ₀ I x)) = |
| 100 | Ideal.Quotient.mk (EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I) (EnvelopeDp.PDEnvelope.idealTerm R A I₀ δ₀ I x) |
| 101 | rw [show reduction R A I₀ δ₀ I hbase (EnvelopeDp.PDEnvelope.idealTerm R A I₀ δ₀ I x) = 0 from |
| 102 | ideal_le_kernel R A I₀ δ₀ I hbase hx, |
| 103 | map_zero, Ideal.Quotient.eq_zero_iff_mem.mpr hx] |
| 104 | termination_by sizeOf t |
| 105 | |
| 106 | theorem quotientToQuotient_reduction (x : EnvelopeDp.PDEnvelope.Envelope R A I₀ δ₀ I) : |
| 107 | quotientToQuotient R A I₀ δ₀ I (reduction R A I₀ δ₀ I hbase x) = |
| 108 | Ideal.Quotient.mk (EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I) x := by |
| 109 | obtain ⟨t, rfl⟩ := Quotient.exists_rep x |
| 110 | exact PDEnvelopeReduction.quotientToQuotient_reduction_term R A I₀ δ₀ I hbase t |
| 111 | |
| 112 | theorem reductionQuotient_quotientToQuotient (x : A ⧸ I) : |
| 113 | reductionQuotient R A I₀ δ₀ I hbase (quotientToQuotient R A I₀ δ₀ I x) = x := by |
| 114 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 115 | simp only [quotientToQuotient, reductionQuotient, Ideal.Quotient.lift_mk, RingHom.comp_apply] |
| 116 | exact reduction_ofAlgebra R A I₀ δ₀ I hbase a |
| 117 | |
| 118 | /-- Passing to the divided-power envelope preserves the original closed subscheme. -/ |
| 119 | def quotientEquiv : EnvelopeDp.PDEnvelope.Envelope R A I₀ δ₀ I ⧸ EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I ≃+* A ⧸ I := |
| 120 | { reductionQuotient R A I₀ δ₀ I hbase with |
| 121 | invFun := quotientToQuotient R A I₀ δ₀ I |
| 122 | left_inv := by |
| 123 | intro x |
| 124 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 125 | change quotientToQuotient R A I₀ δ₀ I (reduction R A I₀ δ₀ I hbase a) = |
| 126 | Ideal.Quotient.mk (EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I) a |
| 127 | exact quotientToQuotient_reduction R A I₀ δ₀ I hbase a |
| 128 | right_inv := reductionQuotient_quotientToQuotient R A I₀ δ₀ I hbase } |
| 129 | |
| 130 | /-- The envelope ideal is exactly the kernel of its canonical reduction. -/ |
| 131 | theorem reduction_kernel : RingHom.ker (reduction R A I₀ δ₀ I hbase).toRingHom = EnvelopeDp.PDEnvelope.ideal R A I₀ δ₀ I := by |
| 132 | apply le_antisymm _ (ideal_le_kernel R A I₀ δ₀ I hbase) |
| 133 | intro x hx |
| 134 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 135 | rw [← quotientToQuotient_reduction R A I₀ δ₀ I hbase x, |
| 136 | show reduction R A I₀ δ₀ I hbase x = 0 from hx, map_zero] |
| 137 | |
| 138 | end |
| 139 | |
| 140 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.EnvelopeReduction.PDEnvelopeReduction |