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.IntegralComparison.Module.IdealQuotient |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.PowerModuleSequence |
| 3 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 4 | import Mathlib.Algebra.Homology.HomologySequenceLemmas |
| 5 | import Mathlib.Algebra.Homology.Linear |
| 6 | import Mathlib.Algebra.Homology.ShortComplex.Linear |
| 7 | |
| 8 | /-! # Principal Cochain Exact -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.PrincipalCochainExact.PrincipalCochainQuotient |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! The actual coefficient-power quotient sequence of a regular cochain complex and its connecting maps. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | |
| 18 | universe u v |
| 19 | variable (R : Type u) [CommRing R] (C : CochainComplex (ModuleCat.{v} R) ℕ) (r : R) |
| 20 | |
| 21 | abbrev quotient (n : ℕ) := IntegralComparison.Module.IdealQuotient.complex R ((Ideal.span {r}) ^ n) C |
| 22 | abbrev projection (n : ℕ) := IntegralComparison.Module.IdealQuotient.complexProjection R ((Ideal.span {r}) ^ n) C |
| 23 | |
| 24 | theorem scalar_projection (n : ℕ) : (r ^ n • 𝟙 C) ≫ projection R C r n = 0 := by |
| 25 | apply HomologicalComplex.Hom.ext |
| 26 | funext a |
| 27 | apply ModuleCat.hom_ext |
| 28 | apply LinearMap.ext |
| 29 | intro x |
| 30 | change (Submodule.Quotient.mk (r ^ n • x) : |
| 31 | IntegralComparison.Principal.PowerModuleSequence.Quotient R (C.X a) r n) = 0 |
| 32 | exact (Submodule.Quotient.mk_eq_zero _).mpr |
| 33 | ((IntegralComparison.Principal.PowerModuleSequence.mem_submodule R (C.X a) r n _).mpr ⟨x, rfl⟩) |
| 34 | |
| 35 | def sequence (n : ℕ) : ShortComplex (CochainComplex (ModuleCat.{v} R) ℕ) := |
| 36 | ShortComplex.mk (r ^ n • 𝟙 C) (projection R C r n) (scalar_projection R C r n) |
| 37 | |
| 38 | theorem shortExact (hreg : ∀ a, IsSMulRegular (C.X a) r) (n : ℕ) : |
| 39 | (sequence R C r n).ShortExact := by |
| 40 | apply HomologicalComplex.shortExact_of_degreewise_shortExact |
| 41 | intro a |
| 42 | refine { exact := ?_, mono_f := ?_, epi_g := ?_ } |
| 43 | · apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 44 | intro x hx |
| 45 | have hx' : x ∈ IntegralComparison.Principal.PowerModuleSequence.submodule R (C.X a) r n := |
| 46 | (Submodule.Quotient.mk_eq_zero _).mp hx |
| 47 | obtain ⟨y, hy⟩ := (IntegralComparison.Principal.PowerModuleSequence.mem_submodule R (C.X a) r n x).mp hx' |
| 48 | exact ⟨y, hy⟩ |
| 49 | · apply (ModuleCat.mono_iff_injective _).mpr |
| 50 | exact IsSMulRegular.pow n (hreg a) |
| 51 | · apply (ModuleCat.epi_iff_surjective _).mpr |
| 52 | exact (IntegralComparison.Principal.PowerModuleSequence.submodule R (C.X a) r n).mkQ_surjective |
| 53 | |
| 54 | def transition (n m : ℕ) (h : n ≤ m) : quotient R C r m ⟶ quotient R C r n where |
| 55 | f a := ModuleCat.ofHom (Submodule.factorPow (Ideal.span {r}) (C.X a) h) |
| 56 | comm' a b _ := by |
| 57 | apply ModuleCat.hom_ext |
| 58 | apply LinearMap.ext |
| 59 | intro x |
| 60 | obtain ⟨y, rfl⟩ := (IntegralComparison.Principal.PowerModuleSequence.submodule R (C.X a) r m).mkQ_surjective x |
| 61 | rfl |
| 62 | |
| 63 | theorem projection_transition (n m : ℕ) (h : n ≤ m) : |
| 64 | projection R C r m ≫ transition R C r n m h = projection R C r n := by |
| 65 | apply HomologicalComplex.Hom.ext |
| 66 | funext a |
| 67 | rfl |
| 68 | |
| 69 | def adjacent (n : ℕ) : sequence R C r (n + 1) ⟶ sequence R C r n where |
| 70 | τ₁ := r • 𝟙 C |
| 71 | τ₂ := 𝟙 C |
| 72 | τ₃ := transition R C r n (n + 1) (Nat.le_succ n) |
| 73 | comm₁₂ := by |
| 74 | apply HomologicalComplex.Hom.ext |
| 75 | funext a |
| 76 | apply ModuleCat.hom_ext |
| 77 | apply LinearMap.ext |
| 78 | intro x |
| 79 | change r ^ n • (r • x) = r ^ (n + 1) • x |
| 80 | rw [← mul_smul, pow_succ] |
| 81 | comm₂₃ := by |
| 82 | change 𝟙 C ≫ projection R C r n = projection R C r (n + 1) ≫ _ |
| 83 | rw [Category.id_comp, projection_transition] |
| 84 | |
| 85 | variable (hreg : ∀ a, IsSMulRegular (C.X a) r) |
| 86 | |
| 87 | def connecting (n i : ℕ) : (quotient R C r n).homology i →ₗ[R] C.homology (i + 1) := |
| 88 | ((shortExact R C r hreg n).δ i (i + 1) rfl).hom |
| 89 | |
| 90 | theorem homology_scalar (a : R) (i : ℕ) : |
| 91 | HomologicalComplex.homologyMap (a • 𝟙 C) i = a • 𝟙 (C.homology i) := by |
| 92 | change ShortComplex.homologyMap (a • 𝟙 (C.sc i)) = _ |
| 93 | rw [ShortComplex.homologyMap_smul, ShortComplex.homologyMap_id] |
| 94 | rfl |
| 95 | |
| 96 | theorem connecting_torsion (n i : ℕ) (x : (quotient R C r n).homology i) : |
| 97 | r ^ n • connecting R C r hreg n i x = 0 := by |
| 98 | have h := (shortExact R C r hreg n).δ_comp i (i + 1) rfl |
| 99 | change _ ≫ HomologicalComplex.homologyMap (r ^ n • 𝟙 C) (i + 1) = 0 at h |
| 100 | rw [homology_scalar] at h |
| 101 | exact ConcreteCategory.congr_hom h x |
| 102 | |
| 103 | theorem connecting_transition (n i : ℕ) (x : (quotient R C r (n + 1)).homology i) : |
| 104 | r • connecting R C r hreg (n + 1) i x = connecting R C r hreg n i |
| 105 | (HomologicalComplex.homologyMap (transition R C r n (n + 1) (Nat.le_succ n)) i x) := by |
| 106 | have h := HomologicalComplex.HomologySequence.δ_naturality (adjacent R C r n) |
| 107 | (shortExact R C r hreg (n + 1)) (shortExact R C r hreg n) i (i + 1) rfl |
| 108 | change _ ≫ HomologicalComplex.homologyMap (r • 𝟙 C) (i + 1) = _ at h |
| 109 | rw [homology_scalar] at h |
| 110 | exact ConcreteCategory.congr_hom h x |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.NumberTheory.PadicHodge.GeometricComparison.PrincipalCochainExact.PrincipalCochainQuotient |