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.LinearAlgebra.FiniteDimensional.Lemmas |
| 2 | |
| 3 | /-! # Kernel Dimension Criterion -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KernelDimensionCriterion |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A specified family of cycles is a basis of a kernel exactly when |
| 10 | its own coefficient map is injective and the kernel has no larger dimension. |
| 11 | This expresses completeness as two open rank inequalities. -/ |
| 12 | universe u v w z |
| 13 | variable {R : Type u} [CommRing R] |
| 14 | variable {V : Type v} [AddCommGroup V] [Module R V] |
| 15 | variable {M : Type w} [AddCommGroup M] [Module R M] |
| 16 | variable {N : Type z} [AddCommGroup N] [Module R N] |
| 17 | |
| 18 | def linearKernelComparison (s : V →ₗ[R] M) (d : M →ₗ[R] N) (h : d.comp s = 0) : V →ₗ[R] d.ker := |
| 19 | s.codRestrict d.ker (fun x => LinearMap.congr_fun h x) |
| 20 | |
| 21 | variable {K : Type u} [Field K] |
| 22 | variable {V : Type v} [AddCommGroup V] [Module K V] [FiniteDimensional K V] |
| 23 | variable {M : Type w} [AddCommGroup M] [Module K M] [FiniteDimensional K M] |
| 24 | variable {N : Type z} [AddCommGroup N] [Module K N] |
| 25 | |
| 26 | theorem linearKernelComparison_bijective_iff (s : V →ₗ[K] M) (d : M →ₗ[K] N) (h : d.comp s = 0) : |
| 27 | Function.Bijective (linearKernelComparison s d h) ↔ |
| 28 | Function.Injective s ∧ Module.finrank K d.ker ≤ Module.finrank K V := by |
| 29 | let k := linearKernelComparison s d h |
| 30 | constructor |
| 31 | · intro hk |
| 32 | refine ⟨fun x y hxy => hk.injective (Subtype.ext hxy), ?_⟩ |
| 33 | exact (LinearEquiv.ofBijective k hk).finrank_eq.ge |
| 34 | · rintro ⟨hs, hd⟩ |
| 35 | have hk : Function.Injective k := fun x y hxy => hs (congrArg Subtype.val hxy) |
| 36 | have hr : Module.finrank K V = Module.finrank K d.ker := |
| 37 | le_antisymm (LinearMap.finrank_le_finrank_of_injective hk) hd |
| 38 | exact ⟨hk, (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hr).mp hk⟩ |
| 39 | |
| 40 | theorem linearKernelComparison_bijective_iff_kernelDimensions |
| 41 | (s : V →ₗ[K] M) (d : M →ₗ[K] N) (h : d.comp s = 0) : |
| 42 | Function.Bijective (linearKernelComparison s d h) ↔ |
| 43 | Module.finrank K s.ker ≤ 0 ∧ Module.finrank K d.ker ≤ Module.finrank K V := by |
| 44 | rw [linearKernelComparison_bijective_iff, Nat.le_zero, Submodule.finrank_eq_zero, LinearMap.ker_eq_bot] |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KernelDimensionCriterion |