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.WeakAdmissibility.FiniteSeriesComparison |
| 2 | import OAI.NumberTheory.PadicHodge.WeakAdmissibility.CrystallineRelation |
| 3 | import OAI.NumberTheory.PadicHodge.WeakAdmissibility.DividedPowerRecurrence |
| 4 | |
| 5 | /-! # Comparison Kernel -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.ComparisonKernel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The kernel of the completed comparison is generated by the divided-power relation. -/ |
| 12 | |
| 13 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.Logarithm.PeriodRings OAI.NumberTheory.PadicHodge.WeakAdmissibility.ThetaKernel OAI.NumberTheory.PadicHodge.WeakAdmissibility.ThetaQuotients OAI.NumberTheory.PadicHodge.WeakAdmissibility.ThetaDividedPowers |
| 14 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.FiniteDeRhamP OAI.NumberTheory.PadicHodge.WeakAdmissibility.Comparison OAI.NumberTheory.PadicHodge.WeakAdmissibility.DividedPowerCompletion |
| 15 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.Coordinates OAI.NumberTheory.PadicHodge.WeakAdmissibility.FiniteSeriesComparison OAI.NumberTheory.PadicHodge.WeakAdmissibility.CrystallineRelation |
| 16 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.RestrictedCoefficients OAI.NumberTheory.PadicHodge.WeakAdmissibility.RestrictedCoefficients.Series OAI.NumberTheory.PadicHodge.WeakAdmissibility.DividedPowerRelation OAI.NumberTheory.PadicHodge.WeakAdmissibility.DividedPowerRecurrence |
| 17 | |
| 18 | def weightedPartial {R : Type*} [CommRing R] (ξ : R) (a : ℕ → R) : ℕ → R |
| 19 | | 0 => a 0 |
| 20 | | n + 1 => (n + 1 : ℕ) * weightedPartial ξ a n + a (n + 1) * ξ ^ (n + 1) |
| 21 | |
| 22 | variable (p : ℕ) [Fact p.Prime] |
| 23 | |
| 24 | theorem factorial_thetaDividedPower (n : ℕ) : |
| 25 | (n.factorial : Logarithm.PeriodRings.ACrisUncompleted p) * ThetaDividedPowers.thetaDividedPower p n = |
| 26 | algebraMap (Logarithm.PeriodRings.AInf p) (Logarithm.PeriodRings.ACrisUncompleted p) (ThetaKernel.thetaGenerator p ^ n) := by |
| 27 | exact (DeRhamEnvelope.factorial_mul_dividedPower p (ThetaKernel.thetaGenerator p) _ n).trans |
| 28 | (map_pow _ _ _).symm |
| 29 | |
| 30 | theorem weightedPartial_uncompleted (a : ℕ → Logarithm.PeriodRings.AInf p) (n : ℕ) : |
| 31 | algebraMap (Logarithm.PeriodRings.AInf p) (Logarithm.PeriodRings.ACrisUncompleted p) (ComparisonKernel.weightedPartial (ThetaKernel.thetaGenerator p) a n) = |
| 32 | (n.factorial : Logarithm.PeriodRings.ACrisUncompleted p) * |
| 33 | ∑ i ∈ Finset.range (n + 1), |
| 34 | algebraMap (Logarithm.PeriodRings.AInf p) (Logarithm.PeriodRings.ACrisUncompleted p) (a i) * ThetaDividedPowers.thetaDividedPower p i := by |
| 35 | induction n with |
| 36 | | zero => |
| 37 | have hzero : ThetaDividedPowers.thetaDividedPower p 0 = 1 := Subtype.ext (ThetaDividedPowers.gammaXi_zero p) |
| 38 | simp only [ComparisonKernel.weightedPartial, Nat.factorial_zero, Nat.cast_one, Nat.zero_add, Finset.sum_range_one, |
| 39 | hzero, mul_one, one_mul] |
| 40 | | succ n ih => |
| 41 | rw [Finset.sum_range_succ _ (n + 1)] |
| 42 | rw [ComparisonKernel.weightedPartial, map_add, map_mul, map_natCast, ih, map_mul, |
| 43 | Nat.factorial_succ, Nat.cast_mul] |
| 44 | have ht := factorial_thetaDividedPower p (n + 1) |
| 45 | rw [Nat.factorial_succ, Nat.cast_mul] at ht |
| 46 | rw [← ht] |
| 47 | ring |
| 48 | |
| 49 | theorem weightedPartial_finite (a : ℕ → Logarithm.PeriodRings.AInf p) (m n : ℕ) : |
| 50 | FiniteDeRhamP.integralToFinite p m (Ideal.Quotient.mk _ (ComparisonKernel.weightedPartial (ThetaKernel.thetaGenerator p) a n)) = |
| 51 | (n.factorial : FiniteDeRhamP.FiniteDeRham p m) * |
| 52 | ∑ i ∈ Finset.range (n + 1), FiniteSeriesComparison.finiteTerm p m i (a i) := by |
| 53 | rw [← FiniteDeRhamP.uncompletedToFinite_algebraMap, weightedPartial_uncompleted, map_mul, map_natCast, |
| 54 | map_sum] |
| 55 | rfl |
| 56 | |
| 57 | theorem kernel_weightedPartial_dvd (x : FiniteSeriesComparison.CoefficientCompletion p) |
| 58 | (hx : Comparison.aCrisToBdRPlus p (DividedPowerCompletion.completedDividedPowers p x) = 0) (n : ℕ) : |
| 59 | ThetaKernel.thetaGenerator p ^ (n + 1) ∣ |
| 60 | ComparisonKernel.weightedPartial (ThetaKernel.thetaGenerator p) (fun i => Coordinates.coordinate (p : Logarithm.PeriodRings.AInf p) i x) n := by |
| 61 | have hf : Comparison.aCrisToFinite p (n + 1) (DividedPowerCompletion.completedDividedPowers p x) = 0 := by |
| 62 | rw [← Comparison.aCrisToBdRPlus_eval, hx] |
| 63 | change AdicCompletion.evalₐ (DeRham.deRhamIdeal p) (n + 1) |
| 64 | (0 : AdicCompletion (DeRham.deRhamIdeal p) (Logarithm.PeriodRings.BInf p)) = 0 |
| 65 | exact map_zero _ |
| 66 | rw [FiniteSeriesComparison.finite_comparison_series] at hf |
| 67 | apply Ideal.mem_span_singleton.mp |
| 68 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 69 | apply FiniteDeRhamP.integralToFinite_injective p (n + 1) |
| 70 | rw [map_zero, weightedPartial_finite, hf, mul_zero] |
| 71 | |
| 72 | theorem kernel_recurrence (x : FiniteSeriesComparison.CoefficientCompletion p) |
| 73 | (hx : Comparison.aCrisToBdRPlus p (DividedPowerCompletion.completedDividedPowers p x) = 0) : |
| 74 | ∃ b : ℕ → Logarithm.PeriodRings.AInf p, |
| 75 | ThetaKernel.thetaGenerator p * b 0 = Coordinates.coordinate (p : Logarithm.PeriodRings.AInf p) 0 x ∧ |
| 76 | ∀ n : ℕ, ThetaKernel.thetaGenerator p * b (n + 1) = |
| 77 | Coordinates.coordinate (p : Logarithm.PeriodRings.AInf p) (n + 1) x + (n + 1 : ℕ) * b n := by |
| 78 | choose b hb using kernel_weightedPartial_dvd p x hx |
| 79 | refine ⟨b, ?_, ?_⟩ |
| 80 | · simpa only [ComparisonKernel.weightedPartial, zero_add, pow_one] using (hb 0).symm |
| 81 | · intro n |
| 82 | apply mul_left_cancel₀ (pow_ne_zero (n + 1) (ThetaKernel.thetaGenerator_ne_zero p)) |
| 83 | have he := hb (n + 1) |
| 84 | rw [ComparisonKernel.weightedPartial, hb n] at he |
| 85 | calc |
| 86 | ThetaKernel.thetaGenerator p ^ (n + 1) * (ThetaKernel.thetaGenerator p * b (n + 1)) = |
| 87 | ThetaKernel.thetaGenerator p ^ (n + 1 + 1) * b (n + 1) := by rw [pow_succ]; ring |
| 88 | _ = (n + 1 : ℕ) * (ThetaKernel.thetaGenerator p ^ (n + 1) * b n) + |
| 89 | Coordinates.coordinate (p : Logarithm.PeriodRings.AInf p) (n + 1) x * ThetaKernel.thetaGenerator p ^ (n + 1) := he.symm |
| 90 | _ = ThetaKernel.thetaGenerator p ^ (n + 1) * |
| 91 | (Coordinates.coordinate (p : Logarithm.PeriodRings.AInf p) (n + 1) x + (n + 1 : ℕ) * b n) := by ring |
| 92 | |
| 93 | theorem thetaGenerator_cancel_p_dvd (r : ℕ) (x : Logarithm.PeriodRings.AInf p) |
| 94 | (hx : (p : Logarithm.PeriodRings.AInf p) ^ r ∣ ThetaKernel.thetaGenerator p * x) : (p : Logarithm.PeriodRings.AInf p) ^ r ∣ x := by |
| 95 | have hm : ThetaKernel.thetaGenerator p ^ 1 * x ∈ (Ideal.span {(p : Logarithm.PeriodRings.AInf p)}) ^ r := by |
| 96 | simpa only [Ideal.span_singleton_pow, Ideal.mem_span_singleton, pow_one] using hx |
| 97 | have he := ThetaQuotients.thetaPower_cancel_pPower p 1 r x hm |
| 98 | simpa only [Ideal.span_singleton_pow, Ideal.mem_span_singleton] using he |
| 99 | |
| 100 | theorem completedDividedPowers_kernel (x : FiniteSeriesComparison.CoefficientCompletion p) |
| 101 | (hx : Comparison.aCrisToBdRPlus p (DividedPowerCompletion.completedDividedPowers p x) = 0) : |
| 102 | DividedPowerCompletion.completedDividedPowers p x = 0 := by |
| 103 | obtain ⟨b, hb0, hbrec⟩ := kernel_recurrence p x hx |
| 104 | have hb := DividedPowerRecurrence.recurrence_restricted p (ThetaKernel.thetaGenerator p) |
| 105 | (fun i => Coordinates.coordinate (p : Logarithm.PeriodRings.AInf p) i x) b (Coordinates.coordinates_restricted (p : Logarithm.PeriodRings.AInf p) x) |
| 106 | (thetaGenerator_cancel_p_dvd p) hbrec |
| 107 | obtain ⟨c, rfl⟩ := AdicCompletion.mk_surjective (Ideal.span {(p : Logarithm.PeriodRings.AInf p)}) (ℕ →₀ Logarithm.PeriodRings.AInf p) x |
| 108 | have he := DividedPowerRelation.completed_relation_of_recurrence (p : Logarithm.PeriodRings.AInf p) (ThetaKernel.thetaGenerator p) c |
| 109 | (fun i => Coordinates.coordinate (p : Logarithm.PeriodRings.AInf p) i (AdicCompletion.mk _ (ℕ →₀ Logarithm.PeriodRings.AInf p) c)) b |
| 110 | (Coordinates.coordinate_mk_approx (p : Logarithm.PeriodRings.AInf p) c) hb hb0 hbrec |
| 111 | rw [← he] |
| 112 | exact CrystallineRelation.completedDividedPowers_relation p _ |
| 113 | |
| 114 | theorem aCrisToBdRPlus_injective : Function.Injective (Comparison.aCrisToBdRPlus p) := by |
| 115 | apply (injective_iff_map_eq_zero _).mpr |
| 116 | intro y hy |
| 117 | obtain ⟨x, rfl⟩ := DividedPowerCompletion.completedDividedPowers_surjective p y |
| 118 | exact completedDividedPowers_kernel p x hy |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.ComparisonKernel |