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 OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Tensor.UnitKernel |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.DetectedKernelContraction |
| 3 | |
| 4 | /-! # Unit Kernel Basis -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Tensor.UnitKernelBasis |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A degree-zero unit contraction makes the actual tensor kernel |
| 11 | freely generated by the unit after every coefficient-ring extension. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | variable {R A M N : Type} [CommRing R] [CommRing A] [Algebra R A] |
| 16 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 17 | (d : M →ₗ[R] N) (u : R →ₗ[R] M) (hd : d.comp u = 0) |
| 18 | |
| 19 | theorem tensorUnitKernelMap_bijective_of_injective_exact |
| 20 | (hu : Function.Injective (u.lTensor A)) |
| 21 | (hex : (d.lTensor A).ker = (u.lTensor A).range) : |
| 22 | Function.Bijective (UnitKernel.tensorUnitKernelMap (A := A) d u hd) := by |
| 23 | let e := TensorProduct.AlgebraTensorModule.rid R A A |
| 24 | constructor |
| 25 | · intro a b hab |
| 26 | apply e.symm.injective |
| 27 | apply hu |
| 28 | exact (UnitKernel.tensorUnitKernelMap_factor d u hd a).symm.trans |
| 29 | ((congrArg Subtype.val hab).trans (UnitKernel.tensorUnitKernelMap_factor d u hd b)) |
| 30 | · intro x |
| 31 | have hx : x.val ∈ (d.lTensor A).ker := x.property |
| 32 | obtain ⟨y, hy⟩ := (show x.val ∈ (u.lTensor A).range from hex ▸ hx) |
| 33 | refine ⟨e y, Subtype.ext ?_⟩ |
| 34 | exact (UnitKernel.tensorUnitKernelMap_factor d u hd (e y)).trans |
| 35 | ((congrArg (u.lTensor A) (e.symm_apply_apply y)).trans hy) |
| 36 | |
| 37 | theorem tensorUnitKernelMap_bijective_of_contraction |
| 38 | (s : M →ₗ[R] R) (v : N →ₗ[R] M) |
| 39 | (hs : s.comp u = LinearMap.id) (hv : v.comp d + u.comp s = LinearMap.id) : |
| 40 | Function.Bijective (UnitKernel.tensorUnitKernelMap (A := A) d u hd) := by |
| 41 | have hsu := congrArg (fun f : Module.End R R => f.lTensor A) hs |
| 42 | rw [LinearMap.lTensor_comp, LinearMap.lTensor_id] at hsu |
| 43 | have hu : Function.Injective (u.lTensor A) := |
| 44 | Function.HasLeftInverse.injective ⟨s.lTensor A, fun x => LinearMap.congr_fun hsu x⟩ |
| 45 | apply tensorUnitKernelMap_bijective_of_injective_exact d u hd hu |
| 46 | ext x |
| 47 | constructor |
| 48 | · intro hx |
| 49 | exact ⟨s.lTensor A x, (DetectedKernelContraction.kernel_contraction_tensor d s u v hv A x hx).symm⟩ |
| 50 | · rintro ⟨y, rfl⟩ |
| 51 | have hdu := congrArg (fun f : R →ₗ[R] N => f.lTensor A) hd |
| 52 | rw [LinearMap.lTensor_comp, LinearMap.lTensor_zero] at hdu |
| 53 | exact LinearMap.congr_fun hdu y |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Tensor.UnitKernelBasis |