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.AlgebraicGeometry.Divisors.LineBundles.MinimalBranchSupport |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LocalizedEquationExact |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.SurfacePrimeFactors |
| 4 | |
| 5 | /-! # Diagonal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.Diagonal.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # LineBundleCycles: finite homology for every actual branch complex on a local surface |
| 15 | |
| 16 | At its defining prime the branch complex is exact. Away from that |
| 17 | prime and the closed point, its underlying module vanishes. Thus its |
| 18 | actual periodic homology is supported only at the closed point. |
| 19 | -/ |
| 20 | |
| 21 | variable {R : Type*} [CommRing R] [IsDomain R] [IsLocalRing R] [Ring.KrullDimLE 2 R] |
| 22 | |
| 23 | theorem surfaceMinimalPrime_le_eq_of_not_maximal (r : R) (hr : r ≠ 0) |
| 24 | (P : Ideal R) (hP : P ∈ (Ideal.span {r}).minimalPrimes) (q : PrimeSpectrum R) |
| 25 | (hqm : q.asIdeal ≠ IsLocalRing.maximalIdeal R) (hpq : P ≤ q.asIdeal) : q.asIdeal = P := by |
| 26 | let branchSupportPrime : q.asIdeal.IsPrime := q.isPrime |
| 27 | have hrq : r ∈ q.asIdeal := hpq (hP.le (Ideal.subset_span (Set.mem_singleton r))) |
| 28 | have hq := (SurfacePrimeFactors.BundleCycles.surfacePrime_minimal_or_maximal r hr q.asIdeal hrq).resolve_right hqm |
| 29 | exact le_antisymm (hq.2 ⟨hP.isPrime, hP.le⟩ hpq) hpq |
| 30 | |
| 31 | theorem productBranch_localized_exact_off_closed |
| 32 | (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) (P : Ideal R) [P.IsPrime] |
| 33 | (hP : P ∈ (Ideal.span {a * b}).minimalPrimes) (q : PrimeSpectrum R) |
| 34 | (hqm : q.asIdeal ≠ IsLocalRing.maximalIdeal R) : |
| 35 | Function.Exact |
| 36 | (Periodic.Localization.BundleCycles.localizedEndomorphism q.asIdeal.primeCompl (MultiplicationSequence.BundleCycles.equationEndomorphism a (PeriodicComplex.BundleCycles.productBranchModule a b P))) |
| 37 | (Periodic.Localization.BundleCycles.localizedEndomorphism q.asIdeal.primeCompl (MultiplicationSequence.BundleCycles.equationEndomorphism b (PeriodicComplex.BundleCycles.productBranchModule a b P))) ∧ |
| 38 | Function.Exact |
| 39 | (Periodic.Localization.BundleCycles.localizedEndomorphism q.asIdeal.primeCompl (MultiplicationSequence.BundleCycles.equationEndomorphism b (PeriodicComplex.BundleCycles.productBranchModule a b P))) |
| 40 | (Periodic.Localization.BundleCycles.localizedEndomorphism q.asIdeal.primeCompl (MultiplicationSequence.BundleCycles.equationEndomorphism a (PeriodicComplex.BundleCycles.productBranchModule a b P))) := by |
| 41 | by_cases hpq : P ≤ q.asIdeal |
| 42 | · have he := surfaceMinimalPrime_le_eq_of_not_maximal (a * b) (mul_ne_zero ha hb) P hP q hqm hpq |
| 43 | subst P |
| 44 | simp only [LocalizedEquationExact.BundleCycles.localizedEndomorphism_equation] |
| 45 | exact ⟨LocalizedEquationExact.BundleCycles.productBranch_local_exact a b hb q.asIdeal, LocalizedEquationExact.BundleCycles.productBranch_local_exact_reverse a b ha q.asIdeal⟩ |
| 46 | · have hz : Subsingleton (LocalizedModule q.asIdeal.primeCompl (PeriodicComplex.BundleCycles.productBranchModule a b P)) := |
| 47 | MinimalBranchSupport.BundleCycles.minimalPrime_branch_localization_zero (Ideal.span {a * b}) P hP q hpq |
| 48 | constructor <;> intro m <;> constructor |
| 49 | · intro _ |
| 50 | exact ⟨0, hz.elim _ _⟩ |
| 51 | · intro _ |
| 52 | exact hz.elim _ _ |
| 53 | · intro _ |
| 54 | exact ⟨0, hz.elim _ _⟩ |
| 55 | · intro _ |
| 56 | exact hz.elim _ _ |
| 57 | |
| 58 | variable [IsNoetherianRing R] |
| 59 | |
| 60 | theorem productBranchPeriodicComplex_homology_length_ne_top |
| 61 | (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) (P : Ideal R) [P.IsPrime] |
| 62 | (hP : P ∈ (Ideal.span {a * b}).minimalPrimes) (i : Bool) : |
| 63 | Module.length R ((PeriodicComplex.BundleCycles.productBranchPeriodicComplex a b P).homology i) ≠ ⊤ := by |
| 64 | cases i |
| 65 | · unfold PeriodicComplex.BundleCycles.productBranchPeriodicComplex |
| 66 | rw [(Periodic.Exact.BundleCycles.endomorphismPeriodicComplex_homology_false_iso _ _ _ _).toLinearEquiv.length_eq] |
| 67 | exact Periodic.Localization.BundleCycles.periodicHomology_length_ne_top_of_local_exact _ _ _ |
| 68 | (fun q hqm => (productBranch_localized_exact_off_closed a b ha hb P hP q hqm).2) |
| 69 | · unfold PeriodicComplex.BundleCycles.productBranchPeriodicComplex |
| 70 | rw [(Periodic.Exact.BundleCycles.endomorphismPeriodicComplex_homology_true_iso _ _ _ _).toLinearEquiv.length_eq] |
| 71 | exact Periodic.Localization.BundleCycles.periodicHomology_length_ne_top_of_local_exact _ _ _ |
| 72 | (fun q hqm => (productBranch_localized_exact_off_closed a b ha hb P hP q hqm).1) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | section |
| 77 | |
| 78 | /-! |
| 79 | # LineBundleCycles: the actual diagonal map to all minimal branch images |
| 80 | -/ |
| 81 | |
| 82 | variable {R : Type*} [CommRing R] |
| 83 | |
| 84 | abbrev minimalBranchIndex (r : R) := {P : Ideal R // P ∈ (Ideal.span {r}).minimalPrimes} |
| 85 | |
| 86 | instance minimalBranchIndex_prime (r : R) (P : minimalBranchIndex r) : P.1.IsPrime := P.2.isPrime |
| 87 | |
| 88 | instance minimalBranchIndex_fintype [IsNoetherianRing R] (r : R) : Fintype (minimalBranchIndex r) := |
| 89 | (Ideal.finite_minimalPrimes_of_isNoetherianRing R (Ideal.span {r})).fintype |
| 90 | |
| 91 | abbrev productBranchFamily (a b : R) := ∀ P : minimalBranchIndex (a * b), PeriodicComplex.BundleCycles.productBranchModule a b P.1 |
| 92 | |
| 93 | def productBranchDiagonal (a b : R) : ProductPeriodicComplex.BundleCycles.productEquationQuotient a b →ₗ[R] productBranchFamily a b := |
| 94 | LinearMap.pi (fun P => LocalizationImage.BundleCycles.localizationImageProjection P.1.primeCompl) |
| 95 | |
| 96 | theorem productEquation_annihilated (a b : R) (m : ProductPeriodicComplex.BundleCycles.productEquationQuotient a b) : |
| 97 | (a * b) • m = 0 := |
| 98 | (mul_smul a b m).trans (LinearMap.congr_fun (ProductPeriodicComplex.BundleCycles.productEquation_comp_zero_reverse a b) m) |
| 99 | |
| 100 | theorem productBranch_annihilated (a b : R) (P : Ideal R) [P.IsPrime] |
| 101 | (m : PeriodicComplex.BundleCycles.productBranchModule a b P) : (a * b) • m = 0 := by |
| 102 | obtain ⟨u, rfl⟩ := LocalizationImage.BundleCycles.localizationImageProjection_surjective P.primeCompl m |
| 103 | let f := LocalizationImage.BundleCycles.localizationImageProjection (M := ProductPeriodicComplex.BundleCycles.productEquationQuotient a b) P.primeCompl |
| 104 | exact (f.map_smul (a * b) u).symm.trans |
| 105 | ((congrArg f (productEquation_annihilated a b u)).trans f.map_zero) |
| 106 | |
| 107 | theorem productBranchFamily_annihilated (a b : R) (m : productBranchFamily a b) : |
| 108 | (a * b) • m = 0 := by |
| 109 | funext P |
| 110 | exact productBranch_annihilated a b P.1 (m P) |
| 111 | |
| 112 | end |
| 113 | |
| 114 | section |
| 115 | |
| 116 | /-! |
| 117 | # LineBundleCycles: the diagonal kernel is supported at the closed point |
| 118 | |
| 119 | A nonclosed prime containing ab is one of the indexed minimal primes. |
| 120 | The corresponding component of the actual diagonal then detects its |
| 121 | localized kernel. Outside V(ab), the annihilating product is invertible. |
| 122 | -/ |
| 123 | |
| 124 | variable {R : Type*} [CommRing R] [IsDomain R] [IsLocalRing R] [Ring.KrullDimLE 2 R] |
| 125 | |
| 126 | theorem productBranchDiagonal_kernel_localization_zero |
| 127 | (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) (q : PrimeSpectrum R) |
| 128 | (hqm : q.asIdeal ≠ IsLocalRing.maximalIdeal R) : |
| 129 | Subsingleton (LocalizedModule q.asIdeal.primeCompl (productBranchDiagonal a b).ker) := by |
| 130 | apply LocalizedModule.subsingleton_iff.mpr |
| 131 | intro x |
| 132 | by_cases hrq : a * b ∈ q.asIdeal |
| 133 | · let diagonalKernelPrime : q.asIdeal.IsPrime := q.isPrime |
| 134 | have hq := (SurfacePrimeFactors.BundleCycles.surfacePrime_minimal_or_maximal (a * b) (mul_ne_zero ha hb) q.asIdeal hrq).resolve_right hqm |
| 135 | let Q : minimalBranchIndex (a * b) := ⟨q.asIdeal, hq⟩ |
| 136 | have hx : LocalizedModule.mkLinearMap q.asIdeal.primeCompl (ProductPeriodicComplex.BundleCycles.productEquationQuotient a b) x.1 = 0 := |
| 137 | congrArg (fun v : productBranchFamily a b => |
| 138 | ((v Q) : LocalizedModule q.asIdeal.primeCompl (ProductPeriodicComplex.BundleCycles.productEquationQuotient a b))) x.2 |
| 139 | obtain ⟨s, hs⟩ := IsLocalizedModule.exists_of_eq (S := q.asIdeal.primeCompl) |
| 140 | (f := LocalizedModule.mkLinearMap q.asIdeal.primeCompl (ProductPeriodicComplex.BundleCycles.productEquationQuotient a b)) |
| 141 | (hx.trans (map_zero _).symm) |
| 142 | refine ⟨s.1, s.2, Subtype.ext ?_⟩ |
| 143 | exact hs.trans (smul_zero s) |
| 144 | · exact ⟨a * b, hrq, Subtype.ext (productEquation_annihilated a b x.1)⟩ |
| 145 | |
| 146 | theorem productBranchDiagonal_kernel_length_ne_top [IsNoetherianRing R] |
| 147 | (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 148 | Module.length R (productBranchDiagonal a b).ker ≠ ⊤ := |
| 149 | Closed.SupportLength.BundleCycles.moduleLength_ne_top_of_localizations_zero |
| 150 | (productBranchDiagonal_kernel_localization_zero a b ha hb) |
| 151 | |
| 152 | end |
| 153 | |
| 154 | /-! |
| 155 | # LineBundleCycles: the diagonal cokernel is supported at the closed point |
| 156 | |
| 157 | At a minimal prime, lift the tuple's component on that branch. Every |
| 158 | remaining component vanishes after localization. A finite product of |
| 159 | their denominators clears the whole tuple in the actual cokernel. |
| 160 | -/ |
| 161 | |
| 162 | variable {R : Type*} [CommRing R] [IsDomain R] [IsLocalRing R] |
| 163 | [Ring.KrullDimLE 2 R] [IsNoetherianRing R] |
| 164 | |
| 165 | theorem productBranchDiagonal_cokernel_localization_zero |
| 166 | (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) (q : PrimeSpectrum R) |
| 167 | (hqm : q.asIdeal ≠ IsLocalRing.maximalIdeal R) : |
| 168 | Subsingleton (LocalizedModule q.asIdeal.primeCompl |
| 169 | (productBranchFamily a b ⧸ (productBranchDiagonal a b).range)) := by |
| 170 | classical |
| 171 | apply LocalizedModule.subsingleton_iff.mpr |
| 172 | intro z |
| 173 | obtain ⟨u, rfl⟩ := (productBranchDiagonal a b).range.mkQ_surjective z |
| 174 | by_cases hrq : a * b ∈ q.asIdeal |
| 175 | · let diagonalCokernelPrime : q.asIdeal.IsPrime := q.isPrime |
| 176 | have hq := (SurfacePrimeFactors.BundleCycles.surfacePrime_minimal_or_maximal (a * b) (mul_ne_zero ha hb) q.asIdeal hrq).resolve_right hqm |
| 177 | let Q : minimalBranchIndex (a * b) := ⟨q.asIdeal, hq⟩ |
| 178 | obtain ⟨m, hm⟩ := LocalizationImage.BundleCycles.localizationImageProjection_surjective q.asIdeal.primeCompl (u Q) |
| 179 | let v : productBranchFamily a b := u - productBranchDiagonal a b m |
| 180 | have hvQ : v Q = 0 := by |
| 181 | change u Q - LocalizationImage.BundleCycles.localizationImageProjection q.asIdeal.primeCompl m = 0 |
| 182 | rw [hm, sub_self] |
| 183 | have hden : ∀ P : minimalBranchIndex (a * b), ∃ s : R, s ∉ q.asIdeal ∧ s • v P = 0 := by |
| 184 | intro P |
| 185 | by_cases hPQ : P = Q |
| 186 | · subst P |
| 187 | exact ⟨1, q.asIdeal.primeCompl.one_mem, |
| 188 | (one_smul R (v Q)).trans hvQ⟩ |
| 189 | · have hnot : ¬ P.1 ≤ q.asIdeal := by |
| 190 | intro hpq |
| 191 | apply hPQ |
| 192 | apply Subtype.ext |
| 193 | exact le_antisymm hpq (hq.2 ⟨P.2.isPrime, P.2.le⟩ hpq) |
| 194 | have hz := MinimalBranchSupport.BundleCycles.minimalPrime_branch_localization_zero (Ideal.span {a * b}) P.1 P.2 q hnot |
| 195 | exact LocalizedModule.subsingleton_iff.mp hz (v P) |
| 196 | choose s hs hs0 using hden |
| 197 | let r : R := ∏ P : minimalBranchIndex (a * b), s P |
| 198 | have hr : r ∉ q.asIdeal := q.asIdeal.primeCompl.prod_mem (fun P _ => hs P) |
| 199 | have hv : r • v = 0 := by |
| 200 | funext P |
| 201 | obtain ⟨k, hk⟩ := Finset.dvd_prod_of_mem s (Finset.mem_univ P) |
| 202 | change r • v P = 0 |
| 203 | calc |
| 204 | r • v P = k • (s P • v P) := |
| 205 | (congrArg (fun z : R => z • v P) hk).trans |
| 206 | ((mul_smul (s P) k (v P)).trans (smul_comm (s P) k (v P))) |
| 207 | _ = 0 := by rw [hs0 P, smul_zero] |
| 208 | have hu : r • u = productBranchDiagonal a b (r • m) := by |
| 209 | rw [(productBranchDiagonal a b).map_smul] |
| 210 | apply sub_eq_zero.mp |
| 211 | exact (smul_sub r u (productBranchDiagonal a b m)).symm.trans hv |
| 212 | refine ⟨r, hr, ?_⟩ |
| 213 | change (productBranchDiagonal a b).range.mkQ (r • u) = 0 |
| 214 | exact (Submodule.Quotient.mk_eq_zero _).mpr ⟨r • m, hu.symm⟩ |
| 215 | · refine ⟨a * b, hrq, ?_⟩ |
| 216 | change (productBranchDiagonal a b).range.mkQ ((a * b) • u) = 0 |
| 217 | rw [productBranchFamily_annihilated, map_zero] |
| 218 | |
| 219 | theorem productBranchDiagonal_cokernel_length_ne_top |
| 220 | (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 221 | Module.length R (productBranchFamily a b ⧸ (productBranchDiagonal a b).range) ≠ ⊤ := |
| 222 | Closed.SupportLength.BundleCycles.moduleLength_ne_top_of_localizations_zero |
| 223 | (productBranchDiagonal_cokernel_localization_zero a b ha hb) |
| 224 | |
| 225 | end |
| 226 | |
| 227 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.Diagonal.BundleCycles |