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.AuxiliaryParameter |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.SurfaceFiltrationExpansion |
| 3 | |
| 4 | /-! # Filtration Weight -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: prime-filtration weights for a module supported on one branch |
| 12 | |
| 13 | Every actual factor contains the radical of the module annihilator. |
| 14 | On a local surface, its prime is therefore the branch prime or the |
| 15 | closed point. Only the branch factors contribute to the Euler length. |
| 16 | -/ |
| 17 | |
| 18 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 19 | |
| 20 | theorem PrimeFiltration.BundleCycles.PrimeFiltrationAbove.factor_contains_annihilator_radical |
| 21 | {N : Submodule R M} (F : PrimeFiltration.BundleCycles.PrimeFiltrationAbove N) (J : Ideal R) (hJ : J ∈ F.factors) : |
| 22 | (Module.annihilator R M).radical ≤ J := |
| 23 | (F.factor_isPrime J hJ).radical_le_iff.mpr (fun x hx => |
| 24 | F.factor_contains_annihilator x (fun {m} => Module.mem_annihilator.mp hx m) J hJ) |
| 25 | |
| 26 | variable [IsNoetherianRing R] [IsDomain R] [IsLocalRing R] |
| 27 | |
| 28 | theorem Branch.FiltrationWeight.BundleCycles.branchFiltration_factor_maximal_of_ne (r : R) (hr : r ≠ 0) |
| 29 | (hdim : ringKrullDim R = 2) (P : Ideal R) (hP : P ∈ (Ideal.span {r}).minimalPrimes) |
| 30 | (hAnn : (Module.annihilator R M).radical = P) |
| 31 | {N : Submodule R M} (F : PrimeFiltration.BundleCycles.PrimeFiltrationAbove N) (J : Ideal R) |
| 32 | (hJ : J ∈ F.factors) (hJP : J ≠ P) : J = IsLocalRing.maximalIdeal R := by |
| 33 | let branchWeightPrime : J.IsPrime := F.factor_isPrime J hJ |
| 34 | let branchWeightDimension : Ring.KrullDimLE 2 R := Ring.krullDimLE_iff.mpr hdim.le |
| 35 | have hpj : P ≤ J := hAnn ▸ F.factor_contains_annihilator_radical J hJ |
| 36 | have hrJ := hpj (hP.le (Ideal.subset_span (Set.mem_singleton r))) |
| 37 | rcases SurfacePrimeFactors.BundleCycles.surfacePrime_minimal_or_maximal r hr J hrJ with hmin | he |
| 38 | · exact False.elim (hJP (Branch.AuxiliaryParameter.BundleCycles.minimalPrincipalPrimes_comparable_eq r r hr P J hP hmin hpj).symm) |
| 39 | · exact he |
| 40 | |
| 41 | theorem Branch.FiltrationWeight.BundleCycles.branchFiltration_weight (r x y : R) (hr : r ≠ 0) |
| 42 | (hdim : ringKrullDim R = 2) (P : Ideal R) (hP : P ∈ (Ideal.span {r}).minimalPrimes) |
| 43 | (hPy : P ∈ (Ideal.span {y}).minimalPrimes) (hAnn : (Module.annihilator R M).radical = P) |
| 44 | {N : Submodule R M} (F : PrimeFiltration.BundleCycles.PrimeFiltrationAbove N) (J : Ideal R) (hJ : J ∈ F.factors) : |
| 45 | SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight x y J = if J = P then PrimeIntersectionLength.BundleCycles.primeIntersectionQuotientLength x P else 0 := by |
| 46 | classical |
| 47 | by_cases he : J = P |
| 48 | · subst J |
| 49 | rw [ite_eq_left rfl, SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight, ite_eq_left hPy] |
| 50 | · rw [ite_eq_right he, SurfaceFiltrationExpansion.BundleCycles.surfacePrimeIntersectionWeight] |
| 51 | apply ite_eq_right |
| 52 | intro hmin |
| 53 | exact Branch.AuxiliaryParameter.BundleCycles.minimalPrincipalPrime_ne_maximal y hdim J hmin |
| 54 | (Branch.FiltrationWeight.BundleCycles.branchFiltration_factor_maximal_of_ne r hr hdim P hP hAnn F J hJ he) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.Divisors.LineBundles |