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.Tower |
| 2 | |
| 3 | /-! # Unit Kernel -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Tensor.UnitKernel |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A unit basis of the kernel after scalar extension gives injectivity |
| 10 | and exactness of the original tensor unit map, in the coordinates used |
| 11 | by the local contraction criterion. -/ |
| 12 | |
| 13 | universe u |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | variable {R A M N : Type u} [CommRing R] [CommRing A] [Algebra R A] |
| 17 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 18 | (d : M →ₗ[R] N) (u : R →ₗ[R] M) (hd : d.comp u = 0) |
| 19 | |
| 20 | def tensorUnitCycle : (d.baseChange A).ker := |
| 21 | ⟨(1 : A) ⊗ₜ[R] u 1, by |
| 22 | change (1 : A) ⊗ₜ[R] d (u 1) = 0 |
| 23 | rw [show d (u 1) = 0 from LinearMap.congr_fun hd 1, TensorProduct.tmul_zero]⟩ |
| 24 | |
| 25 | def tensorUnitKernelMap : A →ₗ[A] (d.baseChange A).ker := |
| 26 | LinearMap.toSpanSingleton A _ (tensorUnitCycle (A := A) d u hd) |
| 27 | |
| 28 | theorem tensorUnitKernelMap_val (a : A) : |
| 29 | (tensorUnitKernelMap d u hd a).val = a ⊗ₜ[R] u 1 := by |
| 30 | change a • ((1 : A) ⊗ₜ[R] u 1) = _ |
| 31 | rw [TensorProduct.smul_tmul', smul_eq_mul, mul_one] |
| 32 | |
| 33 | theorem tensorUnitKernelMap_factor (a : A) : |
| 34 | (tensorUnitKernelMap d u hd a).val = u.lTensor A ((TensorProduct.AlgebraTensorModule.rid R A A).symm a) := by |
| 35 | rw [tensorUnitKernelMap_val, TensorProduct.AlgebraTensorModule.rid_symm_apply, |
| 36 | LinearMap.lTensor_tmul] |
| 37 | |
| 38 | theorem tensorUnitKernelMap_bijective_injective |
| 39 | (h : Function.Bijective (tensorUnitKernelMap (A := A) d u hd)) : |
| 40 | Function.Injective (u.lTensor A) := by |
| 41 | let e := TensorProduct.AlgebraTensorModule.rid R A A |
| 42 | intro x y hxy |
| 43 | apply e.injective |
| 44 | apply h.injective |
| 45 | apply Subtype.ext |
| 46 | rw [tensorUnitKernelMap_factor d u hd, tensorUnitKernelMap_factor d u hd, |
| 47 | e.symm_apply_apply, e.symm_apply_apply] |
| 48 | exact hxy |
| 49 | |
| 50 | theorem tensorUnitKernelMap_bijective_exact |
| 51 | (h : Function.Bijective (tensorUnitKernelMap (A := A) d u hd)) : |
| 52 | (d.lTensor A).ker = (u.lTensor A).range := by |
| 53 | ext x |
| 54 | constructor |
| 55 | · intro hx |
| 56 | obtain ⟨a, ha⟩ := h.surjective (⟨x, hx⟩ : (d.baseChange A).ker) |
| 57 | refine ⟨(TensorProduct.AlgebraTensorModule.rid R A A).symm a, ?_⟩ |
| 58 | exact (tensorUnitKernelMap_factor d u hd a).symm.trans (congrArg Subtype.val ha) |
| 59 | · rintro ⟨y, rfl⟩ |
| 60 | have hzero := congrArg (fun f : R →ₗ[R] N => f.lTensor A) hd |
| 61 | rw [LinearMap.lTensor_comp, LinearMap.lTensor_zero] at hzero |
| 62 | exact LinearMap.congr_fun hzero y |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Tensor.UnitKernel |