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.TwoEquationSymmetry |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.EquationFiniteLength |
| 3 | import Mathlib.RingTheory.Ideal.Operations |
| 4 | |
| 5 | /-! # Local Intersection Length -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.LocalIntersectionLength.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: finite local intersection lengths for two equations |
| 13 | |
| 14 | The actual double cokernel is R/(a,b), and all kernel/cokernel lengths |
| 15 | are finite when this quotient has finite length. For two nonzero |
| 16 | equations in a domain, the intersection Euler length is symmetric. |
| 17 | When the second multiplication on the quotient is injective, the |
| 18 | correction kernel vanishes and the invariant is the usual quotient length. |
| 19 | -/ |
| 20 | |
| 21 | variable {R : Type*} [CommRing R] (a b : R) |
| 22 | |
| 23 | theorem equationEndomorphism_range_eq_span : (MultiplicationSequence.BundleCycles.equationEndomorphism a R).range = Ideal.span {a} := |
| 24 | Ideal.range_mul' a |
| 25 | |
| 26 | def twoEquationCokernelIdealEquiv : |
| 27 | MultiplicationSequence.BundleCycles.equationCokernel a (MultiplicationSequence.BundleCycles.equationCokernel b R) ≃ₗ[R] R ⧸ Ideal.span {a, b} := by |
| 28 | have h : (MultiplicationSequence.BundleCycles.equationEndomorphism b R).range ⊔ (MultiplicationSequence.BundleCycles.equationEndomorphism a R).range = Ideal.span {a, b} := by |
| 29 | rw [equationEndomorphism_range_eq_span, equationEndomorphism_range_eq_span, sup_comm] |
| 30 | exact (Ideal.span_insert a {b}).symm |
| 31 | exact (TwoEquationSymmetry.BundleCycles.twoEquationCokernelQuotientEquiv a b).trans (Submodule.quotEquivOfEq _ _ h) |
| 32 | |
| 33 | theorem equationCokernel_annihilated (M : Type*) [AddCommGroup M] [Module R M] : |
| 34 | Module.IsTorsionBy R (MultiplicationSequence.BundleCycles.equationCokernel a M) a := by |
| 35 | apply (Module.isTorsionBy_quotient_iff (MultiplicationSequence.BundleCycles.equationEndomorphism a M).range a).mpr |
| 36 | intro x |
| 37 | exact ⟨x, rfl⟩ |
| 38 | |
| 39 | variable [IsNoetherianRing R] |
| 40 | |
| 41 | /-- The finite local intersection invariant of the two actual equations. -/ |
| 42 | def localIntersectionLength (hI : IsFiniteLength R (R ⧸ Ideal.span {a, b})) : ℤ := |
| 43 | EquationFiniteLength.BundleCycles.twoEquationEulerLength a b hI (equationCokernel_annihilated b R) |
| 44 | |
| 45 | omit [IsNoetherianRing R] in |
| 46 | theorem twoEquationQuotientFinite_swap (hI : IsFiniteLength R (R ⧸ Ideal.span {a, b})) : |
| 47 | IsFiniteLength R (R ⧸ Ideal.span {b, a}) := |
| 48 | (congrArg (fun I : Ideal R => IsFiniteLength R (R ⧸ I)) (Ideal.span_pair_comm (x := a) (y := b))).mp hI |
| 49 | |
| 50 | /-- Symmetry follows from the two actual kernel and cokernel identifications. -/ |
| 51 | theorem localIntersectionLength_comm [IsDomain R] (ha : a ≠ 0) (hb : b ≠ 0) |
| 52 | (hI : IsFiniteLength R (R ⧸ Ideal.span {a, b})) : |
| 53 | localIntersectionLength a b hI = localIntersectionLength b a (twoEquationQuotientFinite_swap a b hI) := |
| 54 | TwoEquationSymmetry.BundleCycles.equationEulerLength_comm a b (TwoEquationSymmetry.BundleCycles.equationEndomorphism_injective a ha) (TwoEquationSymmetry.BundleCycles.equationEndomorphism_injective b hb) |
| 55 | (EquationFiniteLength.BundleCycles.equationKernel_finite_of_two_equations a b hI (equationCokernel_annihilated b R)) |
| 56 | (EquationFiniteLength.BundleCycles.equationCokernel_finite_of_two_equations a b hI (equationCokernel_annihilated b R)) |
| 57 | (EquationFiniteLength.BundleCycles.equationKernel_finite_of_two_equations b a (twoEquationQuotientFinite_swap a b hI) (equationCokernel_annihilated a R)) |
| 58 | (EquationFiniteLength.BundleCycles.equationCokernel_finite_of_two_equations b a (twoEquationQuotientFinite_swap a b hI) (equationCokernel_annihilated a R)) |
| 59 | |
| 60 | /-- For a regular multiplication on R/bR, the invariant is the actual length of R/(a,b). -/ |
| 61 | theorem localIntersectionLength_eq_quotientLength |
| 62 | (hI : IsFiniteLength R (R ⧸ Ideal.span {a, b})) |
| 63 | (ha : Function.Injective (MultiplicationSequence.BundleCycles.equationEndomorphism a (MultiplicationSequence.BundleCycles.equationCokernel b R))) : |
| 64 | localIntersectionLength a b hI = ((Module.length R (R ⧸ Ideal.span {a, b})).toNat : ℤ) := by |
| 65 | have hK : Module.length R (MultiplicationSequence.BundleCycles.equationKernel a (MultiplicationSequence.BundleCycles.equationCokernel b R)) = 0 := by |
| 66 | change Module.length R (MultiplicationSequence.BundleCycles.equationEndomorphism a (MultiplicationSequence.BundleCycles.equationCokernel b R)).ker = 0 |
| 67 | rw [LinearMap.ker_eq_bot.mpr ha, Module.length_bot] |
| 68 | unfold localIntersectionLength EquationFiniteLength.BundleCycles.twoEquationEulerLength EquationEulerLength.BundleCycles.equationEulerLength |
| 69 | rw [hK, ENat.toNat_zero, Nat.cast_zero, sub_zero, (twoEquationCokernelIdealEquiv a b).length_eq] |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.Divisors.LineBundles.LocalIntersectionLength.BundleCycles |