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.Branch.FiltrationWeight |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.EquationUnitLength |
| 3 | |
| 4 | /-! # Equation Euler -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.EquationEuler.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: the one-equation Euler length on an actual branch module |
| 12 | |
| 13 | For a finite module with annihilator radical P, its multiplication |
| 14 | Euler length is its actual length at P times the equation order on |
| 15 | R/P. An auxiliary annihilator, constructed by prime avoidance, lets |
| 16 | the proved two-equation prime-filtration formula supply the result. |
| 17 | -/ |
| 18 | |
| 19 | variable {R : Type*} [CommRing R] |
| 20 | |
| 21 | private theorem branchWeight_list_sum (L : List (Ideal R)) (P : Ideal R) (w : ℤ) : |
| 22 | (L.map (fun J => if J = P then w else 0)).sum = (L.count P : ℤ) * w := by |
| 23 | classical |
| 24 | induction L with |
| 25 | | nil => simp |
| 26 | | cons J L ih => |
| 27 | by_cases he : J = P |
| 28 | · subst J |
| 29 | simp [ih, add_mul, add_comm] |
| 30 | · simp [he, ih] |
| 31 | |
| 32 | variable {M : Type*} [AddCommGroup M] [Module R M] |
| 33 | [IsNoetherianRing R] [IsDomain R] [IsLocalRing R] [Module.Finite R M] |
| 34 | |
| 35 | theorem equationEulerLength_branch_formula (r x : R) (hr : r ≠ 0) |
| 36 | (hdim : ringKrullDim R = 2) (P : Ideal R) [P.IsPrime] |
| 37 | (hP : P ∈ (Ideal.span {r}).minimalPrimes) |
| 38 | (hAnn : (Module.annihilator R M).radical = P) (hxP : x ∉ P) |
| 39 | (hK : Module.length R (MultiplicationSequence.BundleCycles.equationKernel x M) ≠ ⊤) |
| 40 | (hC : Module.length R (MultiplicationSequence.BundleCycles.equationCokernel x M) ≠ ⊤) : |
| 41 | EquationEulerLength.BundleCycles.equationEulerLength x M hK hC = |
| 42 | ((Module.length (Localization P.primeCompl) (LocalizedModule P.primeCompl M)).toNat : ℤ) * |
| 43 | PrimeIntersectionLength.BundleCycles.primeIntersectionQuotientLength x P := by |
| 44 | classical |
| 45 | by_cases hxunit : IsUnit x |
| 46 | · rw [EquationUnitLength.BundleCycles.equationEulerLength_zero_of_unit x hxunit, EquationUnitLength.BundleCycles.primeIntersectionQuotientLength_unit x hxunit, mul_zero] |
| 47 | let branchEulerDimension : Ring.KrullDimLE 2 R := Ring.krullDimLE_iff.mpr hdim.le |
| 48 | obtain ⟨y, hyI, hy, hxy⟩ := AuxiliaryParameter.BundleCycles.branchIdeal_exists_proper_parameter r x hr hdim P |
| 49 | (Module.annihilator R M) hP hAnn hxP hxunit |
| 50 | have hyM : Module.IsTorsionBy R M y := fun {m} => Module.mem_annihilator.mp hyI m |
| 51 | have hyP : y ∈ P := hAnn ▸ Ideal.le_radical hyI |
| 52 | have hPy : P ∈ (Ideal.span {y}).minimalPrimes := |
| 53 | (SurfacePrimeFactors.BundleCycles.surfacePrime_minimal_or_maximal y hy P hyP).resolve_right |
| 54 | (AuxiliaryParameter.BundleCycles.minimalPrincipalPrime_ne_maximal r hdim P hP) |
| 55 | let F := PrimeFiltration.BundleCycles.modulePrimeFiltration (R := R) (M := M) |
| 56 | have hbase : EquationEulerLength.BundleCycles.equationEulerLength x M hK hC = |
| 57 | (F.factors.map (SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight x y)).sum := |
| 58 | (F.whole_eulerSum_eq x y (LocalIntersectionFiniteness.BundleCycles.finiteLength_quotient_of_radical_maximal _ hxy) hyM).symm.trans |
| 59 | (F.surface_eulerSum_eq x y hy hdim hxy hyM) |
| 60 | have hweights : F.factors.map (SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight x y) = |
| 61 | F.factors.map (fun J => if J = P then PrimeIntersectionLength.BundleCycles.primeIntersectionQuotientLength x P else 0) := by |
| 62 | apply List.map_congr_left |
| 63 | intro J hJ |
| 64 | exact FiltrationWeight.BundleCycles.branchFiltration_weight r x y hr hdim P hP hPy hAnn F J hJ |
| 65 | have hlen : (Module.length (Localization P.primeCompl) (LocalizedModule P.primeCompl M)).toNat = |
| 66 | F.factors.count P := by |
| 67 | rw [F.whole_localized_length_eq_count y hyM P hPy, ENat.toNat_natCast] |
| 68 | rw [hbase, hweights, branchWeight_list_sum, hlen] |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.EquationEuler.BundleCycles |