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.ThetaKernel |
| 2 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.Nontriviality |
| 3 | |
| 4 | /-! # Principal Envelope -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.PrincipalEnvelope |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # The divided-power basis for the principal theta kernel |
| 12 | |
| 13 | The actual envelope is spanned over A_inf by the divided powers of xi. |
| 14 | The multiplication formula has integral binomial coefficients. |
| 15 | -/ |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.PeriodInvariants.PeriodRing OAI.NumberTheory.PadicHodge.PeriodInvariants.ThetaKernel OAI.NumberTheory.PadicHodge.PeriodInvariants.Nontriviality |
| 18 | |
| 19 | section Formula |
| 20 | |
| 21 | variable {F : Type*} [Field F] [CharZero F] |
| 22 | |
| 23 | theorem divided_power_mul (z : F) (m n : ℕ) : |
| 24 | (z ^ m / (m.factorial : F)) * (z ^ n / (n.factorial : F)) = |
| 25 | ((m + n).choose n : F) * (z ^ (m + n) / ((m + n).factorial : F)) := by |
| 26 | rw [div_mul_div_comm, ← pow_add, ← mul_div_assoc] |
| 27 | apply (div_eq_div_iff |
| 28 | (mul_ne_zero (Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero m)) |
| 29 | (Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero n))) |
| 30 | (Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero (m + n)))).mpr |
| 31 | have h : ((m + n).choose n : F) * (m.factorial : F) * (n.factorial : F) = |
| 32 | ((m + n).factorial : F) := by |
| 33 | exact_mod_cast Nat.add_choose_mul_factorial_mul_factorial m n |
| 34 | rw [← h] |
| 35 | ring |
| 36 | |
| 37 | end Formula |
| 38 | |
| 39 | variable (p : ℕ) [Fact p.Prime] |
| 40 | |
| 41 | def xiKernel : RingHom.ker (PeriodRing.theta p) := ⟨ThetaKernel.xi p, ThetaKernel.theta_xi p⟩ |
| 42 | |
| 43 | def xiDividedPower (n : ℕ) : PeriodRing.AcrisZero p := PeriodRing.dividedPower p n (xiKernel p) |
| 44 | |
| 45 | theorem envelope_algebraMap_coe (a : PeriodRing.Ainf p) : |
| 46 | (algebraMap (PeriodRing.Ainf p) (PeriodRing.AcrisZero p) a : FractionRing (PeriodRing.Ainf p)) = |
| 47 | algebraMap (PeriodRing.Ainf p) (FractionRing (PeriodRing.Ainf p)) a := rfl |
| 48 | |
| 49 | theorem envelope_pow_coe (a : PeriodRing.AcrisZero p) (n : ℕ) : |
| 50 | (a ^ n : PeriodRing.AcrisZero p).val = (a : FractionRing (PeriodRing.Ainf p)) ^ n := rfl |
| 51 | |
| 52 | theorem xiDividedPower_zero : xiDividedPower p 0 = 1 := PeriodRing.dividedPower_zero p (xiKernel p) |
| 53 | |
| 54 | theorem xiDividedPower_mul (m n : ℕ) : |
| 55 | xiDividedPower p m * xiDividedPower p n = |
| 56 | ((m + n).choose n : PeriodRing.Ainf p) • xiDividedPower p (m + n) := by |
| 57 | apply Subtype.val_injective |
| 58 | simp only [Algebra.smul_def, Subalgebra.coe_mul, |
| 59 | map_natCast, xiDividedPower, PeriodRing.dividedPower_coe, xiKernel] |
| 60 | exact divided_power_mul _ m n |
| 61 | |
| 62 | theorem dividedPower_eq_smul_xi (n : ℕ) (x : RingHom.ker (PeriodRing.theta p)) : |
| 63 | ∃ a : PeriodRing.Ainf p, PeriodRing.dividedPower p n x = a • xiDividedPower p n := by |
| 64 | obtain ⟨a, ha⟩ := Ideal.mem_span_singleton.mp |
| 65 | (show (x : PeriodRing.Ainf p) ∈ Ideal.span {ThetaKernel.xi p} from (ThetaKernel.theta_kernel_eq_span p) ▸ x.property) |
| 66 | refine ⟨a ^ n, ?_⟩ |
| 67 | apply Subtype.val_injective |
| 68 | simp only [Algebra.smul_def, Subalgebra.coe_mul, envelope_pow_coe, envelope_algebraMap_coe, |
| 69 | map_pow, xiDividedPower, PeriodRing.dividedPower_coe, xiKernel] |
| 70 | rw [ha, map_mul, mul_pow] |
| 71 | ring |
| 72 | |
| 73 | def dividedPowerSpan : Submodule (PeriodRing.Ainf p) (PeriodRing.AcrisZero p) := |
| 74 | Submodule.span (PeriodRing.Ainf p) (Set.range (xiDividedPower p)) |
| 75 | |
| 76 | theorem dividedPowerSpan_mul : dividedPowerSpan p * dividedPowerSpan p ≤ dividedPowerSpan p := by |
| 77 | rw [dividedPowerSpan, Submodule.span_mul_span] |
| 78 | apply Submodule.span_le.mpr |
| 79 | rintro _ ⟨_, ⟨m, rfl⟩, _, ⟨n, rfl⟩, rfl⟩ |
| 80 | change xiDividedPower p m * xiDividedPower p n ∈ |
| 81 | Submodule.span (PeriodRing.Ainf p) (Set.range (xiDividedPower p)) |
| 82 | rw [xiDividedPower_mul] |
| 83 | exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨m + n, rfl⟩) |
| 84 | |
| 85 | theorem dividedPower_mem_span (n : ℕ) (x : RingHom.ker (PeriodRing.theta p)) : |
| 86 | PeriodRing.dividedPower p n x ∈ dividedPowerSpan p := by |
| 87 | obtain ⟨a, ha⟩ := dividedPower_eq_smul_xi p n x |
| 88 | rw [ha] |
| 89 | exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨n, rfl⟩) |
| 90 | |
| 91 | /-- The concrete envelope is generated as a module by the divided powers of xi. -/ |
| 92 | theorem dividedPowerSpan_eq_top : dividedPowerSpan p = ⊤ := by |
| 93 | apply top_unique |
| 94 | intro x hx |
| 95 | clear hx |
| 96 | obtain ⟨x, hx⟩ := x |
| 97 | change x ∈ Algebra.adjoin (PeriodRing.Ainf p) (PeriodRing.dividedPowerGenerators p) at hx |
| 98 | induction hx using Algebra.adjoin_induction with |
| 99 | | mem y hy => |
| 100 | obtain ⟨⟨n, a⟩, rfl⟩ := hy |
| 101 | exact dividedPower_mem_span p n a |
| 102 | | algebraMap a => |
| 103 | have h := Submodule.smul_mem (dividedPowerSpan p) a |
| 104 | (Submodule.subset_span (show xiDividedPower p 0 ∈ Set.range (xiDividedPower p) from ⟨0, rfl⟩)) |
| 105 | simp only [xiDividedPower_zero, Algebra.smul_def, mul_one] at h |
| 106 | convert h using 1 |
| 107 | apply Subtype.ext |
| 108 | rfl |
| 109 | | add y z hy hz ihy ihz => exact Submodule.add_mem _ ihy ihz |
| 110 | | mul y z hy hz ihy ihz => exact (Submodule.mul_le.mp (dividedPowerSpan_mul p)) _ ihy _ ihz |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.PrincipalEnvelope |