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.LocalRing.Module |
| 2 | import Mathlib.RingTheory.Finiteness.Prod |
| 3 | |
| 4 | /-! # Detected Kernel Contraction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.DetectedKernelContraction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A section that detects the kernel on the closed fiber constructs a |
| 11 | linear contraction over a local ring. Its kernel formula survives tensor |
| 12 | product with every module, providing the algebra for arbitrary base change. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | variable {R M N : Type} [CommRing R] |
| 17 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 18 | |
| 19 | theorem kernel_contraction_of_split_detector |
| 20 | (d : M →ₗ[R] N) (s : M →ₗ[R] R) (u : R →ₗ[R] M) |
| 21 | (hs : s.comp u = LinearMap.id) (hd : d.comp u = 0) |
| 22 | (p : N × R →ₗ[R] M) (hp : p.comp (d.prod s) = LinearMap.id) : |
| 23 | ∃ v : N →ₗ[R] M, v.comp d + u.comp s = LinearMap.id := by |
| 24 | have hpu (r : R) : p (0, r) = u r := by |
| 25 | have h := LinearMap.congr_fun hp (u r) |
| 26 | change p (d (u r), s (u r)) = u r at h |
| 27 | have hdu : d (u r) = 0 := LinearMap.congr_fun hd r |
| 28 | have hsu : s (u r) = r := LinearMap.congr_fun hs r |
| 29 | rw [hdu, hsu] at h |
| 30 | exact h |
| 31 | refine ⟨p.comp (LinearMap.inl R N R), ?_⟩ |
| 32 | apply LinearMap.ext |
| 33 | intro x |
| 34 | change p (d x, 0) + u (s x) = x |
| 35 | rw [← hpu, ← map_add] |
| 36 | simpa only [Prod.mk_add_mk, add_zero, zero_add, LinearMap.comp_apply, |
| 37 | LinearMap.prod_apply, LinearMap.id_apply, Function.prod_apply] using LinearMap.congr_fun hp x |
| 38 | |
| 39 | theorem exists_local_kernel_contraction |
| 40 | [IsLocalRing R] [Module.Finite R M] [Module.Finite R N] [Module.Free R N] |
| 41 | (d : M →ₗ[R] N) (s : M →ₗ[R] R) (u : R →ₗ[R] M) |
| 42 | (hs : s.comp u = LinearMap.id) (hd : d.comp u = 0) |
| 43 | (hdetect : Function.Injective ((d.prod s).lTensor (IsLocalRing.ResidueField R))) : |
| 44 | ∃ v : N →ₗ[R] M, v.comp d + u.comp s = LinearMap.id := by |
| 45 | obtain ⟨p, hp⟩ := (IsLocalRing.split_injective_iff_lTensor_residueField_injective |
| 46 | (d.prod s)).mpr hdetect |
| 47 | exact kernel_contraction_of_split_detector d s u hs hd p hp |
| 48 | |
| 49 | theorem kernel_contraction_tensor |
| 50 | (d : M →ₗ[R] N) (s : M →ₗ[R] R) (u : R →ₗ[R] M) (v : N →ₗ[R] M) |
| 51 | (h : v.comp d + u.comp s = LinearMap.id) |
| 52 | (A : Type) [AddCommGroup A] [Module R A] |
| 53 | (x : A ⊗[R] M) (hx : d.lTensor A x = 0) : |
| 54 | x = u.lTensor A (s.lTensor A x) := by |
| 55 | have he := congrArg (fun f : Module.End R M => f.lTensor A) h |
| 56 | rw [LinearMap.lTensor_add, LinearMap.lTensor_comp, LinearMap.lTensor_comp, |
| 57 | LinearMap.lTensor_id] at he |
| 58 | have hxe := LinearMap.congr_fun he x |
| 59 | simpa only [LinearMap.add_apply, LinearMap.comp_apply, hx, map_zero, zero_add, |
| 60 | LinearMap.id_apply] using hxe.symm |
| 61 | |
| 62 | theorem local_detected_kernel_after_tensor |
| 63 | [IsLocalRing R] [Module.Finite R M] [Module.Finite R N] [Module.Free R N] |
| 64 | (d : M →ₗ[R] N) (s : M →ₗ[R] R) (u : R →ₗ[R] M) |
| 65 | (hs : s.comp u = LinearMap.id) (hd : d.comp u = 0) |
| 66 | (hdetect : Function.Injective ((d.prod s).lTensor (IsLocalRing.ResidueField R))) |
| 67 | (A : Type) [AddCommGroup A] [Module R A] |
| 68 | (x : A ⊗[R] M) (hx : d.lTensor A x = 0) : |
| 69 | x = u.lTensor A (s.lTensor A x) := by |
| 70 | obtain ⟨v, hv⟩ := exists_local_kernel_contraction d s u hs hd hdetect |
| 71 | exact kernel_contraction_tensor d s u v hv A x hx |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.DetectedKernelContraction |