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.SurfaceParameters |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.PrimeIntersectionLength |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.WholeFiltration |
| 4 | import Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 5 | |
| 6 | /-! # Surface Filtration Expansion -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # LineBundleCycles: local surface intersection expanded over prime supports |
| 14 | |
| 15 | For proper parameters on a two-dimensional Noetherian local domain, |
| 16 | every prime factor contributes its actual quotient length on a minimal |
| 17 | prime support. All other factors are residue-field factors and have zero |
| 18 | Euler contribution. The resulting expansion is proved for every actual |
| 19 | prime filtration. |
| 20 | -/ |
| 21 | |
| 22 | variable {R : Type*} [CommRing R] |
| 23 | |
| 24 | def SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight (a b : R) (P : Ideal R) : ℤ := by |
| 25 | classical |
| 26 | exact if P ∈ (Ideal.span {b}).minimalPrimes then PrimeIntersectionLength.BundleCycles.primeIntersectionQuotientLength a P else 0 |
| 27 | |
| 28 | variable [IsNoetherianRing R] [IsDomain R] [IsLocalRing R] |
| 29 | variable (a b : R) (hb : b ≠ 0) (hdim : ringKrullDim R = 2) |
| 30 | variable (hab : (Ideal.span {a, b}).radical = IsLocalRing.maximalIdeal R) |
| 31 | |
| 32 | include hb hdim |
| 33 | |
| 34 | theorem SurfaceFiltrationExpansion.BundleCycles.surfacePrimeEuler_eq_weight (J : Ideal R) [J.IsPrime] (hbJ : b ∈ J) : |
| 35 | EquationFiniteLength.BundleCycles.twoEquationEulerLength a b (LocalIntersectionFiniteness.BundleCycles.finiteLength_quotient_of_radical_maximal _ hab) |
| 36 | (LocalizedPrimeFactor.BundleCycles.idealQuotient_annihilated J b hbJ) = SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight a b J := by |
| 37 | classical |
| 38 | let : Ring.KrullDimLE 2 R := Ring.krullDimLE_iff.mpr hdim.le |
| 39 | by_cases hJ : J ∈ (Ideal.span {b}).minimalPrimes |
| 40 | · rw [SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight, ite_eq_left hJ] |
| 41 | exact PrimeIntersectionLength.BundleCycles.twoEquationEulerLength_prime a J b _ hbJ (SurfaceParameters.BundleCycles.surfaceParameter_not_mem_minimal a b hdim hab J hJ) |
| 42 | · rw [SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight, ite_eq_right hJ] |
| 43 | have he := (SurfacePrimeFactors.BundleCycles.surfacePrime_minimal_or_maximal b hb J hbJ).resolve_left hJ |
| 44 | apply TwoEquationEulerFunctorial.BundleCycles.twoEquationEulerLength_zero_of_finite |
| 45 | apply Module.length_ne_top_iff.mpr |
| 46 | apply LocalIntersectionFiniteness.BundleCycles.finiteLength_quotient_of_radical_maximal |
| 47 | exact (Ideal.IsPrime.radical ‹J.IsPrime›).trans he |
| 48 | |
| 49 | section |
| 50 | |
| 51 | theorem PrimeFiltration.BundleCycles.PrimeFiltrationAbove.surface_eulerSum_eq {M : Type*} [AddCommGroup M] [Module R M] [Module.Finite R M] |
| 52 | (hbM : Module.IsTorsionBy R M b) {N : Submodule R M} (F : PrimeFiltration.BundleCycles.PrimeFiltrationAbove N) : |
| 53 | F.eulerSum a b (LocalIntersectionFiniteness.BundleCycles.finiteLength_quotient_of_radical_maximal _ hab) hbM = |
| 54 | (F.factors.map (SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight a b)).sum := by |
| 55 | induction F with |
| 56 | | top => rfl |
| 57 | | step N L hNL J hJ e tail ih => |
| 58 | let : J.IsPrime := hJ |
| 59 | have hbJ := LocalizedPrimeFactor.BundleCycles.annihilator_mem_ideal J b (PrimeFiltrationEuler.BundleCycles.primeFactor_annihilated b hbM N L J e) |
| 60 | exact congrArg₂ (· + ·) (SurfaceFiltrationExpansion.BundleCycles.surfacePrimeEuler_eq_weight a b hb hdim hab J hbJ) ih |
| 61 | |
| 62 | end |
| 63 | |
| 64 | /-- The actual intersection length expanded over an arbitrary prime filtration of R/bR. -/ |
| 65 | theorem SurfaceFiltrationExpansion.BundleCycles.localIntersectionLength_eq_filtration_sum |
| 66 | (F : PrimeFiltration.BundleCycles.PrimeFiltrationAbove (⊥ : Submodule R (MultiplicationSequence.BundleCycles.equationCokernel b R))) : |
| 67 | LocalIntersectionLength.BundleCycles.localIntersectionLength a b (LocalIntersectionFiniteness.BundleCycles.finiteLength_quotient_of_radical_maximal _ hab) = |
| 68 | (F.factors.map (SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight a b)).sum := |
| 69 | (F.whole_eulerSum_eq a b _ (LocalIntersectionLength.BundleCycles.equationCokernel_annihilated b R)).symm.trans |
| 70 | (F.surface_eulerSum_eq a b hb hdim hab (LocalIntersectionLength.BundleCycles.equationCokernel_annihilated b R)) |
| 71 | |
| 72 | /-- Group repeated prime factors, keeping their proved occurrence multiplicities. -/ |
| 73 | theorem SurfaceFiltrationExpansion.BundleCycles.localIntersectionLength_eq_filtration_weighted_sum |
| 74 | (F : PrimeFiltration.BundleCycles.PrimeFiltrationAbove (⊥ : Submodule R (MultiplicationSequence.BundleCycles.equationCokernel b R))) : |
| 75 | LocalIntersectionLength.BundleCycles.localIntersectionLength a b (LocalIntersectionFiniteness.BundleCycles.finiteLength_quotient_of_radical_maximal _ hab) = |
| 76 | ∑ J ∈ F.factors.toFinset, F.factors.count J • SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight a b J := |
| 77 | (SurfaceFiltrationExpansion.BundleCycles.localIntersectionLength_eq_filtration_sum a b hb hdim hab F).trans |
| 78 | (Finset.sum_list_map_count F.factors (SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight a b)) |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.Divisors.LineBundles |