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 Mathlib.RingTheory.Length |
| 2 | import Mathlib.LinearAlgebra.Quotient.Basic |
| 3 | |
| 4 | /-! # Cokernel Length -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.CokernelLength.Constructions |
| 7 | |
| 8 | /-! |
| 9 | # ThomClass: invariance of divisor length under finite-colength enlargement |
| 10 | |
| 11 | An injective endomorphism has the same cokernel length on an invariant |
| 12 | submodule of finite colength. Comparing the two factorizations of the same |
| 13 | composite proves this without assuming a divisor or pushforward identity. |
| 14 | This is the module calculation used for finite birational normalization. |
| 15 | -/ |
| 16 | |
| 17 | open LinearMap _root_.Submodule |
| 18 | |
| 19 | variable {R A B C : Type*} [Ring R] |
| 20 | [AddCommGroup A] [AddCommGroup B] [AddCommGroup C] |
| 21 | [Module R A] [Module R B] [Module R C] |
| 22 | |
| 23 | theorem length_cokernel_comp (f : A →ₗ[R] B) (g : B →ₗ[R] C) |
| 24 | (hg : Function.Injective g) : |
| 25 | Module.length R (C ⧸ (g.comp f).range) = |
| 26 | Module.length R (B ⧸ f.range) + Module.length R (C ⧸ g.range) := by |
| 27 | let u : (B ⧸ f.range) →ₗ[R] C ⧸ (g.comp f).range := |
| 28 | f.range.mapQ (g.comp f).range g (by |
| 29 | rintro y ⟨x, rfl⟩ |
| 30 | exact ⟨x, rfl⟩) |
| 31 | have hle : (g.comp f).range ≤ g.range := by |
| 32 | rintro y ⟨x, rfl⟩ |
| 33 | exact ⟨f x, rfl⟩ |
| 34 | let v : (C ⧸ (g.comp f).range) →ₗ[R] C ⧸ g.range := |
| 35 | (g.comp f).range.mapQ g.range LinearMap.id hle |
| 36 | have hu : Function.Injective u := by |
| 37 | rw [← LinearMap.ker_eq_bot] |
| 38 | change (f.range.mapQ (g.comp f).range g _).ker = ⊥ |
| 39 | rw [Submodule.ker_mapQ, LinearMap.range_comp, Submodule.comap_map_eq, |
| 40 | LinearMap.ker_eq_bot.mpr hg, sup_bot_eq, Submodule.mkQ_map_self] |
| 41 | have hv : Function.Surjective v := by |
| 42 | intro c |
| 43 | obtain ⟨x, rfl⟩ := g.range.mkQ_surjective c |
| 44 | exact ⟨(g.comp f).range.mkQ x, rfl⟩ |
| 45 | have he : Function.Exact u v := by |
| 46 | rw [LinearMap.exact_iff] |
| 47 | change ((g.comp f).range.mapQ g.range LinearMap.id _).ker = |
| 48 | (f.range.mapQ (g.comp f).range g _).range |
| 49 | rw [Submodule.range_mapQ, Submodule.ker_mapQ, Submodule.comap_id] |
| 50 | exact Module.length_eq_add_of_exact u v hu hv he |
| 51 | |
| 52 | /-- Finite-colength enlargement does not change the cokernel length of a |
| 53 | compatible injective endomorphism. No length finiteness is required of the |
| 54 | endomorphism's own cokernel. -/ |
| 55 | theorem length_cokernel_eq_of_finite_colength |
| 56 | (i : A →ₗ[R] B) (u : A →ₗ[R] A) (v : B →ₗ[R] B) |
| 57 | (hi : Function.Injective i) (hv : Function.Injective v) |
| 58 | (hcomm : i.comp u = v.comp i) |
| 59 | (hfinite : Module.length R (B ⧸ i.range) ≠ ⊤) : |
| 60 | Module.length R (A ⧸ u.range) = Module.length R (B ⧸ v.range) := by |
| 61 | have h₁ := length_cokernel_comp u i hi |
| 62 | have h₂ := length_cokernel_comp i v hv |
| 63 | rw [hcomm, h₂] at h₁ |
| 64 | have h₃ : Module.length R (A ⧸ u.range) + Module.length R (B ⧸ i.range) = |
| 65 | Module.length R (B ⧸ v.range) + Module.length R (B ⧸ i.range) := by |
| 66 | simpa only [add_comm] using h₁.symm |
| 67 | exact ENat.add_left_injective_of_ne_top hfinite h₃ |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.CycleClass.Thom.CokernelLength.Constructions |