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.TensorProduct.Map |
| 2 | import Mathlib.LinearAlgebra.Prod |
| 3 | |
| 4 | /-! # Kernel Detector Tensor -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.KernelDetectorTensor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A left inverse to the unit detects a tensor differential's kernel |
| 11 | whenever that kernel is generated by the tensor unit map. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | theorem tensor_kernel_detector_injective |
| 16 | {R M N A : Type} [CommRing R] |
| 17 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 18 | [AddCommGroup A] [Module R A] |
| 19 | (d : M →ₗ[R] N) (s : M →ₗ[R] R) (u : R →ₗ[R] M) |
| 20 | (hs : s.comp u = LinearMap.id) |
| 21 | (hex : (d.lTensor A).ker = (u.lTensor A).range) : |
| 22 | Function.Injective ((d.prod s).lTensor A) := by |
| 23 | apply LinearMap.ker_eq_bot.mp |
| 24 | apply bot_unique |
| 25 | intro x hx |
| 26 | have he : (d.prod s).lTensor A x = 0 := hx |
| 27 | have hfst : (LinearMap.fst R N R).comp (d.prod s) = d := rfl |
| 28 | have hsnd : (LinearMap.snd R N R).comp (d.prod s) = s := rfl |
| 29 | have hdX : d.lTensor A x = 0 := by |
| 30 | rw [← hfst, LinearMap.lTensor_comp, LinearMap.comp_apply, he, map_zero] |
| 31 | have hsX : s.lTensor A x = 0 := by |
| 32 | rw [← hsnd, LinearMap.lTensor_comp, LinearMap.comp_apply, he, map_zero] |
| 33 | have hm : x ∈ (u.lTensor A).range := hex ▸ hdX |
| 34 | obtain ⟨y, hy⟩ := hm |
| 35 | have hsu := congrArg (fun f : Module.End R R => f.lTensor A) hs |
| 36 | rw [LinearMap.lTensor_comp, LinearMap.lTensor_id] at hsu |
| 37 | have hy0 : y = 0 := by |
| 38 | have hv := LinearMap.congr_fun hsu y |
| 39 | rw [LinearMap.comp_apply, hy, hsX, LinearMap.id_apply] at hv |
| 40 | exact hv.symm |
| 41 | change x = 0 |
| 42 | rw [← hy, hy0, map_zero] |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.KernelDetectorTensor |