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.MultiplicationSequence |
| 2 | |
| 3 | /-! # Exact Sequence Length -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.ExactSequenceLength.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # LineBundleCycles: finite-length Euler characteristic of an exact sequence |
| 11 | |
| 12 | The six-term identity follows by splitting the actual sequence at its |
| 13 | images and applying additivity of module length. Finiteness of the four |
| 14 | middle terms also gives finiteness at the ends. No alternating-length |
| 15 | identity is supplied as an assumption. |
| 16 | -/ |
| 17 | |
| 18 | variable {R A B C D E F : Type*} [Ring R] |
| 19 | [AddCommGroup A] [Module R A] [AddCommGroup B] [Module R B] |
| 20 | [AddCommGroup C] [Module R C] [AddCommGroup D] [Module R D] |
| 21 | [AddCommGroup E] [Module R E] [AddCommGroup F] [Module R F] |
| 22 | |
| 23 | theorem moduleLengthNat_shortExact (f : A →ₗ[R] B) (g : B →ₗ[R] C) |
| 24 | (hf : Function.Injective f) (hg : Function.Surjective g) (h : Function.Exact f g) |
| 25 | (hB : Module.length R B ≠ ⊤) : |
| 26 | (Module.length R B).toNat = (Module.length R A).toNat + (Module.length R C).toNat := by |
| 27 | have hA : Module.length R A ≠ ⊤ := ne_top_of_le_ne_top hB (Module.length_le_of_injective f hf) |
| 28 | have hC : Module.length R C ≠ ⊤ := ne_top_of_le_ne_top hB (Module.length_le_of_surjective g hg) |
| 29 | exact (congrArg ENat.toNat (Module.length_eq_add_of_exact f g hf hg h)).trans (ENat.toNat_add hA hC) |
| 30 | |
| 31 | /-- Alternating length vanishes for the actual finite six-term exact sequence. -/ |
| 32 | theorem moduleLengthNat_sixTerm (f : A →ₗ[R] B) (g : B →ₗ[R] C) (h : C →ₗ[R] D) |
| 33 | (i : D →ₗ[R] E) (j : E →ₗ[R] F) |
| 34 | (hf : Function.Injective f) (hj : Function.Surjective j) |
| 35 | (hfg : Function.Exact f g) (hgh : Function.Exact g h) |
| 36 | (hhi : Function.Exact h i) (hij : Function.Exact i j) |
| 37 | (hB : Module.length R B ≠ ⊤) (hC : Module.length R C ≠ ⊤) |
| 38 | (hD : Module.length R D ≠ ⊤) (hE : Module.length R E ≠ ⊤) : |
| 39 | ((Module.length R A).toNat : ℤ) - (Module.length R B).toNat + (Module.length R C).toNat - |
| 40 | (Module.length R D).toNat + (Module.length R E).toNat - (Module.length R F).toNat = 0 := by |
| 41 | have h₁ := moduleLengthNat_shortExact f.range.subtype g.rangeRestrict |
| 42 | f.range.subtype_injective g.surjective_rangeRestrict hfg.linearMap_rangeRestrict hB |
| 43 | have h₂ := moduleLengthNat_shortExact g.range.subtype h.rangeRestrict |
| 44 | g.range.subtype_injective h.surjective_rangeRestrict hgh.linearMap_rangeRestrict hC |
| 45 | have h₃ := moduleLengthNat_shortExact h.range.subtype i.rangeRestrict |
| 46 | h.range.subtype_injective i.surjective_rangeRestrict hhi.linearMap_rangeRestrict hD |
| 47 | have h₄ := moduleLengthNat_shortExact i.range.subtype j.rangeRestrict |
| 48 | i.range.subtype_injective j.surjective_rangeRestrict hij.linearMap_rangeRestrict hE |
| 49 | have hleft : (Module.length R f.range).toNat = (Module.length R A).toNat := |
| 50 | congrArg ENat.toNat (LinearEquiv.ofInjective f hf).length_eq.symm |
| 51 | have hright : (Module.length R j.range).toNat = (Module.length R F).toNat := by |
| 52 | rw [LinearMap.range_eq_top.mpr hj, Module.length_top] |
| 53 | omega |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.Divisors.LineBundles.ExactSequenceLength.BundleCycles |