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.AbelianModuli.HilbertConstruction.CokernelCompletion |
| 2 | import Mathlib.LinearAlgebra.Isomorphisms |
| 3 | |
| 4 | /-! # Completion Cokernel Eq -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CompletionCokernelEq.CompletionCokernel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The cokernel of the reduced differential agrees with the original cokernel. -/ |
| 11 | |
| 12 | universe u v w z |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] |
| 15 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 16 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 17 | variable {F : Type z} [AddCommGroup F] [Module R F] |
| 18 | variable (f : M →ₗ[R] N) (v : F →ₗ[R] N) |
| 19 | |
| 20 | def map : F →ₗ[R] N ⧸ f.range := f.range.mkQ.comp v |
| 21 | |
| 22 | theorem surjective (h : Function.Surjective (f.coprod v)) : |
| 23 | Function.Surjective (map f v) := by |
| 24 | intro y |
| 25 | obtain ⟨z, rfl⟩ := f.range.mkQ_surjective y |
| 26 | obtain ⟨⟨m, x⟩, hx⟩ := h z |
| 27 | refine ⟨x, ?_⟩ |
| 28 | change f.range.mkQ (v x) = f.range.mkQ z |
| 29 | have hmf : f.range.mkQ (f m) = 0 := by |
| 30 | apply (Submodule.Quotient.mk_eq_zero f.range).mpr |
| 31 | exact ⟨m, rfl⟩ |
| 32 | have hz : f m + v x = z := hx |
| 33 | rw [← hz, map_add, hmf, zero_add] |
| 34 | |
| 35 | theorem kernel_eq_range : |
| 36 | (map f v).ker = (CokernelCompletion.CokernelCompletionKernel.projection f v).range := by |
| 37 | ext x |
| 38 | constructor |
| 39 | · intro hx |
| 40 | have hv : v x ∈ f.range := (Submodule.Quotient.mk_eq_zero f.range).mp hx |
| 41 | obtain ⟨m, hm⟩ := hv |
| 42 | let y : (f.coprod v).ker := ⟨(-m, x), by |
| 43 | change f (-m) + v x = 0 |
| 44 | rw [map_neg, hm, neg_add_cancel]⟩ |
| 45 | exact ⟨y, rfl⟩ |
| 46 | · rintro ⟨y, rfl⟩ |
| 47 | change f.range.mkQ (v y.val.2) = 0 |
| 48 | apply (Submodule.Quotient.mk_eq_zero f.range).mpr |
| 49 | refine ⟨-y.val.1, ?_⟩ |
| 50 | have hy : f y.val.1 + v y.val.2 = 0 := y.property |
| 51 | rw [map_neg] |
| 52 | exact neg_eq_iff_add_eq_zero.mpr hy |
| 53 | |
| 54 | def iso (h : Function.Surjective (f.coprod v)) : |
| 55 | (F ⧸ (CokernelCompletion.CokernelCompletionKernel.projection f v).range) ≃ₗ[R] (N ⧸ f.range) := |
| 56 | (Submodule.quotEquivOfEq _ _ (kernel_eq_range f v).symm).trans |
| 57 | ((map f v).quotKerEquivOfSurjective (surjective f v h)) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CompletionCokernelEq.CompletionCokernel |