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 Mathlib.RingTheory.Ideal.Quotient.PowTransition |
| 2 | import Mathlib.Algebra.Regular.SMul |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 4 | |
| 5 | /-! # Power Module Sequence -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.PowerModuleSequence |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Exact sequences for successive principal-ideal quotients of a regular module. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | open scoped Pointwise |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] (M : Type v) [AddCommGroup M] [Module R M] (r : R) |
| 19 | |
| 20 | abbrev submodule (n : ℕ) : Submodule R M := (Ideal.span {r}) ^ n • ⊤ |
| 21 | abbrev Quotient (n : ℕ) := M ⧸ submodule R M r n |
| 22 | |
| 23 | theorem mem_submodule (n : ℕ) (x : M) : x ∈ submodule R M r n ↔ ∃ y : M, r ^ n • y = x := by |
| 24 | rw [submodule, Ideal.span_singleton_pow, Submodule.ideal_span_singleton_smul, |
| 25 | Submodule.mem_smul_pointwise_iff_exists] |
| 26 | simp only [Submodule.mem_top, true_and] |
| 27 | |
| 28 | def inclusion (a b : ℕ) : PowerModuleSequence.Quotient R M r a →ₗ[R] PowerModuleSequence.Quotient R M r (a + b) := |
| 29 | Submodule.mapQ _ _ (LinearMap.lsmul R M (r ^ b)) (by |
| 30 | intro x hx |
| 31 | obtain ⟨y, rfl⟩ := (mem_submodule R M r a x).mp hx |
| 32 | apply (mem_submodule R M r (a + b) _).mpr |
| 33 | refine ⟨y, ?_⟩ |
| 34 | change r ^ (a + b) • y = r ^ b • (r ^ a • y) |
| 35 | rw [pow_add, mul_smul, smul_comm]) |
| 36 | |
| 37 | def projection (a b : ℕ) : PowerModuleSequence.Quotient R M r (a + b) →ₗ[R] PowerModuleSequence.Quotient R M r b := |
| 38 | Submodule.factorPow (Ideal.span {r}) M (Nat.le_add_left b a) |
| 39 | |
| 40 | theorem inclusion_mk (a b : ℕ) (x : M) : |
| 41 | inclusion R M r a b (Submodule.Quotient.mk x) = Submodule.Quotient.mk (r ^ b • x) := rfl |
| 42 | |
| 43 | theorem projection_mk (a b : ℕ) (x : M) : |
| 44 | projection R M r a b (Submodule.Quotient.mk x) = Submodule.Quotient.mk x := rfl |
| 45 | |
| 46 | theorem composition_zero (a b : ℕ) : (projection R M r a b).comp (inclusion R M r a b) = 0 := by |
| 47 | apply LinearMap.ext |
| 48 | intro q |
| 49 | obtain ⟨x, rfl⟩ := (submodule R M r a).mkQ_surjective q |
| 50 | change (Submodule.Quotient.mk (r ^ b • x) : PowerModuleSequence.Quotient R M r b) = 0 |
| 51 | exact (Submodule.Quotient.mk_eq_zero (submodule R M r b)).mpr ((mem_submodule R M r b _).mpr ⟨x, rfl⟩) |
| 52 | |
| 53 | theorem inclusion_injective (hr : IsSMulRegular M r) (a b : ℕ) : |
| 54 | Function.Injective (inclusion R M r a b) := by |
| 55 | apply LinearMap.ker_eq_bot.mp |
| 56 | apply le_antisymm ?_ bot_le |
| 57 | intro q hq |
| 58 | change q = 0 |
| 59 | obtain ⟨x, rfl⟩ := (submodule R M r a).mkQ_surjective q |
| 60 | change (Submodule.Quotient.mk (r ^ b • x) : PowerModuleSequence.Quotient R M r (a + b)) = 0 at hq |
| 61 | obtain ⟨y, hy⟩ := (mem_submodule R M r (a + b) _).mp ((Submodule.Quotient.mk_eq_zero (submodule R M r (a + b))).mp hq) |
| 62 | have he : r ^ a • y = x := (IsSMulRegular.pow b hr) (by |
| 63 | simpa only [pow_add, mul_smul, smul_comm (r ^ a) (r ^ b)] using hy) |
| 64 | exact (Submodule.Quotient.mk_eq_zero (submodule R M r a)).mpr ((mem_submodule R M r a _).mpr ⟨y, he⟩) |
| 65 | |
| 66 | theorem projection_surjective (a b : ℕ) : Function.Surjective (projection R M r a b) := by |
| 67 | intro q |
| 68 | obtain ⟨x, rfl⟩ := (submodule R M r b).mkQ_surjective q |
| 69 | exact ⟨Submodule.Quotient.mk x, rfl⟩ |
| 70 | |
| 71 | def sequence (a b : ℕ) : ShortComplex (ModuleCat.{v} R) := |
| 72 | ShortComplex.moduleCatMk (inclusion R M r a b) (projection R M r a b) (composition_zero R M r a b) |
| 73 | |
| 74 | theorem exact_sequence (a b : ℕ) : (sequence R M r a b).Exact := by |
| 75 | apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 76 | intro q hq |
| 77 | obtain ⟨x, rfl⟩ := (submodule R M r (a + b)).mkQ_surjective q |
| 78 | change (Submodule.Quotient.mk x : PowerModuleSequence.Quotient R M r b) = 0 at hq |
| 79 | obtain ⟨y, hy⟩ := (mem_submodule R M r b x).mp ((Submodule.Quotient.mk_eq_zero (submodule R M r b)).mp hq) |
| 80 | refine ⟨Submodule.Quotient.mk y, ?_⟩ |
| 81 | change (Submodule.Quotient.mk (r ^ b • y) : PowerModuleSequence.Quotient R M r (a + b)) = Submodule.Quotient.mk x |
| 82 | exact congrArg Submodule.Quotient.mk hy |
| 83 | |
| 84 | theorem shortExact (hr : IsSMulRegular M r) (a b : ℕ) : (sequence R M r a b).ShortExact where |
| 85 | exact := exact_sequence R M r a b |
| 86 | mono_f := (ModuleCat.mono_iff_injective _).mpr (inclusion_injective R M r hr a b) |
| 87 | epi_g := (ModuleCat.epi_iff_surjective _).mpr (projection_surjective R M r a b) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.PowerModuleSequence |