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.ExactSequenceLength |
| 2 | |
| 3 | /-! # Equation Euler Length -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.EquationEulerLength.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # LineBundleCycles: additivity of the finite multiplication Euler length |
| 11 | |
| 12 | The local intersection invariant is cokernel length minus kernel length |
| 13 | for multiplication by the equation. Both lengths are required finite. |
| 14 | The actual multiplication snake sequence proves additivity across a |
| 15 | submodule and quotient. Modules of finite length contribute zero. |
| 16 | -/ |
| 17 | |
| 18 | variable {R : Type*} [CommRing R] |
| 19 | |
| 20 | /-- Cokernel length minus kernel length, with both finiteness conditions explicit. -/ |
| 21 | def equationEulerLength (a : R) (M : Type*) [AddCommGroup M] [Module R M] |
| 22 | (_hK : Module.length R (MultiplicationSequence.BundleCycles.equationKernel a M) ≠ ⊤) |
| 23 | (_hC : Module.length R (MultiplicationSequence.BundleCycles.equationCokernel a M) ≠ ⊤) : ℤ := |
| 24 | ((Module.length R (MultiplicationSequence.BundleCycles.equationCokernel a M)).toNat : ℤ) - (Module.length R (MultiplicationSequence.BundleCycles.equationKernel a M)).toNat |
| 25 | |
| 26 | /-- The exact snake sequence proves additivity without any injectivity assumption on multiplication. -/ |
| 27 | theorem equationEulerLength_additive (a : R) {M : Type*} [AddCommGroup M] [Module R M] |
| 28 | (P : Submodule R M) |
| 29 | (hKP : Module.length R (MultiplicationSequence.BundleCycles.equationKernel a P) ≠ ⊤) |
| 30 | (hCP : Module.length R (MultiplicationSequence.BundleCycles.equationCokernel a P) ≠ ⊤) |
| 31 | (hKM : Module.length R (MultiplicationSequence.BundleCycles.equationKernel a M) ≠ ⊤) |
| 32 | (hCM : Module.length R (MultiplicationSequence.BundleCycles.equationCokernel a M) ≠ ⊤) |
| 33 | (hKQ : Module.length R (MultiplicationSequence.BundleCycles.equationKernel a (M ⧸ P)) ≠ ⊤) |
| 34 | (hCQ : Module.length R (MultiplicationSequence.BundleCycles.equationCokernel a (M ⧸ P)) ≠ ⊤) : |
| 35 | equationEulerLength a M hKM hCM = |
| 36 | equationEulerLength a P hKP hCP + equationEulerLength a (M ⧸ P) hKQ hCQ := by |
| 37 | have h := ExactSequenceLength.BundleCycles.moduleLengthNat_sixTerm (MultiplicationSequence.BundleCycles.equationKernelInclusion a P) (MultiplicationSequence.BundleCycles.equationKernelQuotient a P) |
| 38 | (MultiplicationSequence.BundleCycles.equationSnakeBoundary a P) (MultiplicationSequence.BundleCycles.equationCokernelInclusion a P) (MultiplicationSequence.BundleCycles.equationCokernelQuotient a P) |
| 39 | (MultiplicationSequence.BundleCycles.equationKernelInclusion_injective a P) (MultiplicationSequence.BundleCycles.equationCokernelQuotient_surjective a P) |
| 40 | (MultiplicationSequence.BundleCycles.equationKernel_exact a P) (MultiplicationSequence.BundleCycles.equationSnake_kernel_exact a P) (MultiplicationSequence.BundleCycles.equationSnake_cokernel_exact a P) |
| 41 | (MultiplicationSequence.BundleCycles.equationCokernel_exact a P) hKM hKQ hCP hCM |
| 42 | unfold equationEulerLength |
| 43 | omega |
| 44 | |
| 45 | /-- Finite ambient length implies finite length of the multiplication kernel. -/ |
| 46 | theorem equationKernel_length_ne_top (a : R) (M : Type*) [AddCommGroup M] [Module R M] |
| 47 | (hM : Module.length R M ≠ ⊤) : Module.length R (MultiplicationSequence.BundleCycles.equationKernel a M) ≠ ⊤ := |
| 48 | ne_top_of_le_ne_top hM (Module.length_le_of_injective (MultiplicationSequence.BundleCycles.equationKernel a M).subtype |
| 49 | (Submodule.subtype_injective _)) |
| 50 | |
| 51 | /-- Finite ambient length implies finite length of the multiplication cokernel. -/ |
| 52 | theorem equationCokernel_length_ne_top (a : R) (M : Type*) [AddCommGroup M] [Module R M] |
| 53 | (hM : Module.length R M ≠ ⊤) : Module.length R (MultiplicationSequence.BundleCycles.equationCokernel a M) ≠ ⊤ := |
| 54 | ne_top_of_le_ne_top hM (Module.length_le_of_surjective (MultiplicationSequence.BundleCycles.equationEndomorphism a M).range.mkQ |
| 55 | (Submodule.mkQ_surjective _)) |
| 56 | |
| 57 | /-- A finite-length module contributes zero to the divisor intersection invariant. -/ |
| 58 | theorem equationEulerLength_zero_of_finite (a : R) (M : Type*) [AddCommGroup M] [Module R M] |
| 59 | (hK : Module.length R (MultiplicationSequence.BundleCycles.equationKernel a M) ≠ ⊤) |
| 60 | (hC : Module.length R (MultiplicationSequence.BundleCycles.equationCokernel a M) ≠ ⊤) |
| 61 | (hM : Module.length R M ≠ ⊤) : equationEulerLength a M hK hC = 0 := by |
| 62 | let u := MultiplicationSequence.BundleCycles.equationEndomorphism a M |
| 63 | have he : Function.Exact u.ker.subtype u.rangeRestrict := by |
| 64 | intro x |
| 65 | constructor |
| 66 | · intro hx |
| 67 | exact ⟨⟨x, congrArg Subtype.val hx⟩, rfl⟩ |
| 68 | · rintro ⟨y, rfl⟩ |
| 69 | exact Subtype.ext y.2 |
| 70 | have h₁ := ExactSequenceLength.BundleCycles.moduleLengthNat_shortExact u.ker.subtype u.rangeRestrict |
| 71 | u.ker.subtype_injective u.surjective_rangeRestrict he hM |
| 72 | have h₂ := ExactSequenceLength.BundleCycles.moduleLengthNat_shortExact u.range.subtype u.range.mkQ |
| 73 | u.range.subtype_injective u.range.mkQ_surjective (LinearMap.exact_subtype_mkQ u.range) hM |
| 74 | change ((Module.length R (M ⧸ u.range)).toNat : ℤ) - (Module.length R u.ker).toNat = 0 |
| 75 | omega |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.Divisors.LineBundles.EquationEulerLength.BundleCycles |