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.Determinant |
| 2 | |
| 3 | /-! # Injective Determinant -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.InjectiveDeterminant |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Injectivity of a map between free modules of the same finite rank |
| 10 | is equivalent to nonvanishing of its matrix determinant over a domain. -/ |
| 11 | |
| 12 | open _root_.Module |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable (R : Type*) [CommRing R] [IsDomain R] |
| 16 | {M N : Type*} [AddCommGroup M] [AddCommGroup N] [Module R M] [Module R N] |
| 17 | {ι : Type*} [Fintype ι] |
| 18 | |
| 19 | theorem matrix_ne_zero (a : Basis ι R M) (b : Basis ι R N) |
| 20 | (f : M →ₗ[R] N) (hf : Function.Injective f) : |
| 21 | (LinearMap.toMatrix a b f).det ≠ 0 := by |
| 22 | intro h |
| 23 | obtain ⟨v, hv, hv₀⟩ := Matrix.exists_mulVec_eq_zero_iff.mpr h |
| 24 | have he := LinearMap.toMatrix_mulVec_repr a b f (a.equivFun.symm v) |
| 25 | rw [← Basis.equivFun_apply, a.equivFun.apply_symm_apply, hv₀] at he |
| 26 | have hz : f (a.equivFun.symm v) = 0 := by |
| 27 | apply b.equivFun.injective |
| 28 | exact he.symm.trans (map_zero b.equivFun).symm |
| 29 | have h₀ : a.equivFun.symm v = 0 := hf (hz.trans (map_zero f).symm) |
| 30 | apply hv |
| 31 | simpa only [LinearEquiv.apply_symm_apply, map_zero] using congrArg a.equivFun h₀ |
| 32 | |
| 33 | theorem injective_of_matrix_ne_zero (a : Basis ι R M) (b : Basis ι R N) |
| 34 | (f : M →ₗ[R] N) (hf : (LinearMap.toMatrix a b f).det ≠ 0) : |
| 35 | Function.Injective f := by |
| 36 | intro x y hxy |
| 37 | by_contra hne |
| 38 | apply hf |
| 39 | apply Matrix.exists_mulVec_eq_zero_iff.mp |
| 40 | refine ⟨a.equivFun (x - y), a.equivFun.map_ne_zero_iff.mpr (sub_ne_zero.mpr hne), ?_⟩ |
| 41 | rw [Basis.equivFun_apply, LinearMap.toMatrix_mulVec_repr, map_sub, hxy, sub_self, map_zero] |
| 42 | rfl |
| 43 | |
| 44 | theorem end_ne_zero (b : Basis ι R M) (f : M →ₗ[R] M) |
| 45 | (hf : Function.Injective f) : f.det ≠ 0 := by |
| 46 | rw [← LinearMap.det_toMatrix b] |
| 47 | exact matrix_ne_zero R b b f hf |
| 48 | |
| 49 | theorem injective_of_end_ne_zero (b : Basis ι R M) (f : M →ₗ[R] M) |
| 50 | (hf : f.det ≠ 0) : Function.Injective f := by |
| 51 | apply injective_of_matrix_ne_zero R b b f |
| 52 | rwa [LinearMap.det_toMatrix] |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.InjectiveDeterminant |