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.LocalIntersectionLength |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LocalizedPrimeFactor |
| 3 | |
| 4 | /-! # Prime Intersection Length -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.PrimeIntersectionLength.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: prime-factor contributions are quotient lengths |
| 12 | |
| 13 | On R/P, multiplication by an equation outside the prime P is injective. |
| 14 | Its cokernel is the actual quotient R/(P+(a)). Thus its finite Euler |
| 15 | contribution is exactly the local quotient length used by a divisor on |
| 16 | the prime support. |
| 17 | -/ |
| 18 | |
| 19 | variable {R : Type*} [CommRing R] (a : R) (J : Ideal R) |
| 20 | |
| 21 | theorem quotientEquation_range : |
| 22 | (MultiplicationSequence.BundleCycles.equationEndomorphism a (R ⧸ J)).range = Submodule.map J.mkQ (Ideal.span {a}) := by |
| 23 | apply le_antisymm |
| 24 | · rintro _ ⟨x, rfl⟩ |
| 25 | obtain ⟨r, rfl⟩ := J.mkQ_surjective x |
| 26 | exact ⟨a * r, (Ideal.span {a}).mul_mem_right r |
| 27 | (Ideal.subset_span (Set.mem_singleton a)), rfl⟩ |
| 28 | · rintro _ ⟨r, hr, rfl⟩ |
| 29 | obtain ⟨x, rfl⟩ := (Ideal.mem_span_singleton.mp hr) |
| 30 | exact ⟨J.mkQ x, rfl⟩ |
| 31 | |
| 32 | def primeEquationCokernelEquiv : |
| 33 | MultiplicationSequence.BundleCycles.equationCokernel a (R ⧸ J) ≃ₗ[R] R ⧸ (J ⊔ Ideal.span {a}) := |
| 34 | (Submodule.quotEquivOfEq _ _ (quotientEquation_range a J)).trans |
| 35 | (Submodule.quotientQuotientEquivQuotientSup J (Ideal.span {a})) |
| 36 | |
| 37 | theorem primeEquation_injective [J.IsPrime] (ha : a ∉ J) : |
| 38 | Function.Injective (MultiplicationSequence.BundleCycles.equationEndomorphism a (R ⧸ J)) := by |
| 39 | have hn : Ideal.Quotient.mk J a ≠ 0 := fun h => ha ((Ideal.Quotient.eq_zero_iff_mem).mp h) |
| 40 | intro x y h |
| 41 | exact mul_left_cancel₀ hn h |
| 42 | |
| 43 | /-- The actual quotient-length contribution on the prime support. -/ |
| 44 | def primeIntersectionQuotientLength : ℤ := |
| 45 | ((Module.length R (R ⧸ (J ⊔ Ideal.span {a}))).toNat : ℤ) |
| 46 | |
| 47 | variable [IsNoetherianRing R] |
| 48 | |
| 49 | theorem twoEquationEulerLength_prime (b : R) (hI : IsFiniteLength R (R ⧸ Ideal.span {a, b})) |
| 50 | [J.IsPrime] (hb : b ∈ J) (ha : a ∉ J) : |
| 51 | EquationFiniteLength.BundleCycles.twoEquationEulerLength a b hI (LocalizedPrimeFactor.BundleCycles.idealQuotient_annihilated J b hb) = |
| 52 | primeIntersectionQuotientLength a J := by |
| 53 | have hk : Module.length R (MultiplicationSequence.BundleCycles.equationKernel a (R ⧸ J)) = 0 := by |
| 54 | change Module.length R (MultiplicationSequence.BundleCycles.equationEndomorphism a (R ⧸ J)).ker = 0 |
| 55 | rw [LinearMap.ker_eq_bot.mpr (primeEquation_injective a J ha), Module.length_bot] |
| 56 | unfold EquationFiniteLength.BundleCycles.twoEquationEulerLength EquationEulerLength.BundleCycles.equationEulerLength primeIntersectionQuotientLength |
| 57 | rw [hk, ENat.toNat_zero, Nat.cast_zero, sub_zero, (primeEquationCokernelEquiv a J).length_eq] |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.Divisors.LineBundles.PrimeIntersectionLength.BundleCycles |