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.PeriodInvariants.Quotient |
| 2 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.PrincipalEnvelope |
| 3 | |
| 4 | /-! # Finite Lattices -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteLattices.Period |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Integral lattices in the finite de Rham quotients |
| 12 | |
| 13 | The integral theta quotients embed in their p-localizations. A single factorial |
| 14 | clears the denominators of the entire divided-power envelope in each quotient. |
| 15 | -/ |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.PeriodInvariants.PeriodRing OAI.NumberTheory.PadicHodge.PeriodInvariants.ThetaKernel OAI.NumberTheory.PadicHodge.PeriodInvariants.Nontriviality OAI.NumberTheory.PadicHodge.PeriodInvariants.AdicSeparation |
| 18 | PeriodInvariants.Quotient PrincipalEnvelope |
| 19 | |
| 20 | variable (p : ℕ) [Fact p.Prime] |
| 21 | |
| 22 | abbrev IntegralQuotient (N : ℕ) := PeriodRing.Ainf p ⧸ Ideal.span {ThetaKernel.xi p ^ N} |
| 23 | |
| 24 | abbrev RationalQuotient (N : ℕ) := |
| 25 | Nontriviality.Binf p ⧸ (Ideal.span {ThetaKernel.xi p ^ N}).map (algebraMap (PeriodRing.Ainf p) (Nontriviality.Binf p)) |
| 26 | |
| 27 | instance integralQuotient_complete (N : ℕ) : |
| 28 | IsAdicComplete (Ideal.span {(p : IntegralQuotient p N)}) (IntegralQuotient p N) := |
| 29 | PeriodInvariants.Quotient.thetaPowerQuotient_complete p N |
| 30 | |
| 31 | instance rationalQuotient_localization (N : ℕ) : |
| 32 | IsLocalization (Submonoid.powers (p : IntegralQuotient p N)) (RationalQuotient p N) := by |
| 33 | have h : IsLocalization |
| 34 | (Algebra.algebraMapSubmonoid (IntegralQuotient p N) (Submonoid.powers (p : PeriodRing.Ainf p))) |
| 35 | (RationalQuotient p N) := inferInstance |
| 36 | simpa only [Algebra.algebraMapSubmonoid, Submonoid.map_powers, map_natCast] using h |
| 37 | |
| 38 | theorem integralQuotient_p_cancel (N n : ℕ) (x : IntegralQuotient p N) |
| 39 | (hx : (p : IntegralQuotient p N) ^ n * x = 0) : x = 0 := by |
| 40 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 41 | have hm : ThetaKernel.xi p ^ N ∣ (p : PeriodRing.Ainf p) ^ n * a := by |
| 42 | apply Ideal.mem_span_singleton.mp |
| 43 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 44 | simpa only [map_mul, map_pow, map_natCast] using hx |
| 45 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 46 | exact Ideal.mem_span_singleton.mpr (AdicSeparation.xi_pow_dvd_of_p_pow_mul p N n a hm) |
| 47 | |
| 48 | /-- The integral lattice embeds faithfully in each rational finite quotient. -/ |
| 49 | theorem integralQuotient_injective (N : ℕ) : |
| 50 | Function.Injective (algebraMap (IntegralQuotient p N) (RationalQuotient p N)) := by |
| 51 | apply IsLocalization.injective (M := Submonoid.powers (p : IntegralQuotient p N)) |
| 52 | (RationalQuotient p N) |
| 53 | intro a ha |
| 54 | obtain ⟨n, rfl⟩ := (Submonoid.mem_powers_iff a (p : IntegralQuotient p N)).mp ha |
| 55 | rw [mem_nonZeroDivisors_iff_left] |
| 56 | intro x hx |
| 57 | exact integralQuotient_p_cancel p N n x hx |
| 58 | |
| 59 | def envelopeProjection (N : ℕ) : PeriodRing.AcrisZero p →ₐ[PeriodRing.Ainf p] RationalQuotient p N := |
| 60 | { (Ideal.Quotient.mk _).comp (Nontriviality.acrisZeroToBinf p) with |
| 61 | commutes' a := by |
| 62 | change Ideal.Quotient.mk _ (Nontriviality.acrisZeroToBinf p (algebraMap (PeriodRing.Ainf p) (PeriodRing.AcrisZero p) a)) = _ |
| 63 | rw [Nontriviality.acrisZeroToBinf_algebraMap] |
| 64 | rfl } |
| 65 | |
| 66 | theorem factorial_unit (N n : ℕ) : IsUnit (n.factorial : RationalQuotient p N) := by |
| 67 | have h : IsUnit (n.factorial : ℚ_[p]) := |
| 68 | isUnit_iff_ne_zero.mpr (Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero n)) |
| 69 | have hh := h.map ((Ideal.Quotient.mk _).comp (Nontriviality.padicToBinf p) : ℚ_[p] →+* RationalQuotient p N) |
| 70 | simpa only [map_natCast] using hh |
| 71 | |
| 72 | theorem projection_factorial_dividedPower (N n : ℕ) : |
| 73 | (n.factorial : RationalQuotient p N) * envelopeProjection p N (PrincipalEnvelope.xiDividedPower p n) = |
| 74 | algebraMap (PeriodRing.Ainf p) (RationalQuotient p N) (ThetaKernel.xi p) ^ n := by |
| 75 | have h := congrArg (envelopeProjection p N) (PeriodRing.factorial_mul_dividedPower p n (PrincipalEnvelope.xiKernel p)) |
| 76 | simpa only [map_mul, map_natCast, map_pow, AlgHom.commutes, PrincipalEnvelope.xiDividedPower, PrincipalEnvelope.xiKernel] using h |
| 77 | |
| 78 | theorem projection_dividedPower_vanishes (N n : ℕ) (hn : N ≤ n) : |
| 79 | envelopeProjection p N (PrincipalEnvelope.xiDividedPower p n) = 0 := by |
| 80 | apply (factorial_unit p N n).mul_left_cancel |
| 81 | rw [mul_zero, projection_factorial_dividedPower] |
| 82 | have hm : ThetaKernel.xi p ^ n ∈ Ideal.span {ThetaKernel.xi p ^ N} := |
| 83 | Ideal.mem_span_singleton.mpr (pow_dvd_pow (ThetaKernel.xi p) hn) |
| 84 | have hmap := Ideal.mem_map_of_mem (algebraMap (PeriodRing.Ainf p) (Nontriviality.Binf p)) hm |
| 85 | have hzero := Ideal.Quotient.eq_zero_iff_mem.mpr hmap |
| 86 | change Ideal.Quotient.mk _ (algebraMap (PeriodRing.Ainf p) (Nontriviality.Binf p) (ThetaKernel.xi p ^ n)) = 0 at hzero |
| 87 | rw [IsScalarTower.algebraMap_apply (PeriodRing.Ainf p) (Nontriviality.Binf p) (RationalQuotient p N)] |
| 88 | rw [Ideal.Quotient.algebraMap_eq] |
| 89 | simpa only [map_pow] using hzero |
| 90 | |
| 91 | theorem factorial_projection_dividedPower_integral (N n : ℕ) : |
| 92 | ∃ a : PeriodRing.Ainf p, algebraMap (PeriodRing.Ainf p) (RationalQuotient p N) a = |
| 93 | (N.factorial : RationalQuotient p N) * envelopeProjection p N (PrincipalEnvelope.xiDividedPower p n) := by |
| 94 | by_cases hn : N ≤ n |
| 95 | · exact ⟨0, by rw [map_zero, projection_dividedPower_vanishes p N n hn, mul_zero]⟩ |
| 96 | · obtain ⟨k, hk⟩ := Nat.factorial_dvd_factorial (show n ≤ N by omega) |
| 97 | refine ⟨(k : PeriodRing.Ainf p) * ThetaKernel.xi p ^ n, ?_⟩ |
| 98 | rw [map_mul, map_natCast, map_pow, hk, Nat.cast_mul] |
| 99 | rw [mul_right_comm (n.factorial : RationalQuotient p N), |
| 100 | projection_factorial_dividedPower] |
| 101 | ring |
| 102 | |
| 103 | /-- One denominator bound holds for every element of the uncompleted envelope. -/ |
| 104 | theorem factorial_projection_integral (N : ℕ) (x : PeriodRing.AcrisZero p) : |
| 105 | ∃ a : PeriodRing.Ainf p, algebraMap (PeriodRing.Ainf p) (RationalQuotient p N) a = |
| 106 | (N.factorial : RationalQuotient p N) * envelopeProjection p N x := by |
| 107 | have hx : x ∈ Submodule.span (PeriodRing.Ainf p) (Set.range (PrincipalEnvelope.xiDividedPower p)) := by |
| 108 | change x ∈ PrincipalEnvelope.dividedPowerSpan p |
| 109 | rw [PrincipalEnvelope.dividedPowerSpan_eq_top] |
| 110 | exact Submodule.mem_top |
| 111 | induction hx using Submodule.span_induction with |
| 112 | | mem y hy => |
| 113 | obtain ⟨n, rfl⟩ := hy |
| 114 | exact factorial_projection_dividedPower_integral p N n |
| 115 | | zero => exact ⟨0, by rw [map_zero, map_zero, mul_zero]⟩ |
| 116 | | add y z hy hz ihy ihz => |
| 117 | obtain ⟨a, ha⟩ := ihy |
| 118 | obtain ⟨b, hb⟩ := ihz |
| 119 | exact ⟨a + b, by rw [map_add, ha, hb, map_add, mul_add]⟩ |
| 120 | | smul r y hy ih => |
| 121 | obtain ⟨a, ha⟩ := ih |
| 122 | refine ⟨r * a, ?_⟩ |
| 123 | rw [Algebra.smul_def r y, map_mul, map_mul, AlgHom.commutes, ha] |
| 124 | ring |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteLattices.Period |