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.Quotients.FiniteDescent.CokernelCompletion |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.KernelTransportConstruction |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.CompletionCokernelEq |
| 4 | |
| 5 | /-! # Completion Tensor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CompletionTensor.Construction.CompletionTensorKernel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The kernel of the finite replacement computes degree-zero cohomology |
| 12 | after every tensor base change. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u v w z t |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 20 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 21 | variable {F : Type z} [AddCommGroup F] [Module R F] |
| 22 | variable (f : M →ₗ[R] N) (v : F →ₗ[R] N) |
| 23 | variable (A : Type t) [AddCommGroup A] [Module R A] |
| 24 | |
| 25 | theorem tensor_coprod : |
| 26 | ((f.lTensor A).coprod (v.lTensor A)).comp (TensorProduct.prodRight R R A M F).toLinearMap = |
| 27 | (f.coprod v).lTensor A := by |
| 28 | ext a x <;> simp |
| 29 | |
| 30 | def splitKernel : ((f.coprod v).lTensor A).ker ≃ₗ[R] |
| 31 | ((f.lTensor A).coprod (v.lTensor A)).ker := |
| 32 | KernelTransportConstruction.Construction.KernelTransport.equiv (TensorProduct.prodRight R R A M F) |
| 33 | ((f.coprod v).lTensor A) ((f.lTensor A).coprod (v.lTensor A)) (tensor_coprod f v A) |
| 34 | |
| 35 | variable [Module.Flat R N] (h : Function.Surjective (f.coprod v)) |
| 36 | |
| 37 | def completionIso : A ⊗[R] (f.coprod v).ker ≃ₗ[R] |
| 38 | ((f.lTensor A).coprod (v.lTensor A)).ker := |
| 39 | (FlatKernelProd.Construction.FlatKernel.tensorIso (f.coprod v) h A).symm.trans (splitKernel f v A) |
| 40 | |
| 41 | theorem completionIso_tmul (a : A) (x : (f.coprod v).ker) : |
| 42 | (completionIso f v A h (a ⊗ₜ[R] x)).val = (a ⊗ₜ[R] x.val.1, a ⊗ₜ[R] x.val.2) := by |
| 43 | change TensorProduct.prodRight R R A M F |
| 44 | (((f.coprod v).kerLTensorEquivOfSurjective h A).symm (a ⊗ₜ[R] x)).val = _ |
| 45 | rw [LinearMap.tensorKerEquivOfSurjective_symm_tmul, TensorProduct.prodRight_tmul] |
| 46 | |
| 47 | theorem projection_comp : |
| 48 | (CokernelCompletion.Construction.CokernelCompletionKernel.projection (f.lTensor A) (v.lTensor A)).comp |
| 49 | (completionIso f v A h).toLinearMap = |
| 50 | (CokernelCompletion.Construction.CokernelCompletionKernel.projection f v).lTensor A := by |
| 51 | ext a x |
| 52 | change (completionIso f v A h (a ⊗ₜ[R] x)).val.2 = a ⊗ₜ[R] x.val.2 |
| 53 | rw [completionIso_tmul] |
| 54 | |
| 55 | def zeroCohomologyIso : ((CokernelCompletion.Construction.CokernelCompletionKernel.projection f v).lTensor A).ker ≃ₗ[R] |
| 56 | (f.lTensor A).ker := |
| 57 | (KernelTransportConstruction.Construction.KernelTransport.equiv (completionIso f v A h) |
| 58 | ((CokernelCompletion.Construction.CokernelCompletionKernel.projection f v).lTensor A) |
| 59 | (CokernelCompletion.Construction.CokernelCompletionKernel.projection (f.lTensor A) (v.lTensor A)) |
| 60 | (projection_comp f v A h)).trans |
| 61 | (CokernelCompletion.Construction.CokernelCompletionKernel.kernelIso (f.lTensor A) (v.lTensor A)) |
| 62 | |
| 63 | include h in |
| 64 | omit [Module.Flat R N] in |
| 65 | theorem tensor_surjective : Function.Surjective ((f.lTensor A).coprod (v.lTensor A)) := by |
| 66 | intro x |
| 67 | obtain ⟨y, hy⟩ := LinearMap.lTensor_surjective A h x |
| 68 | exact ⟨TensorProduct.prodRight R R A M F y, |
| 69 | (LinearMap.congr_fun (tensor_coprod f v A) y).trans hy⟩ |
| 70 | |
| 71 | include h in |
| 72 | theorem projection_range : ((CokernelCompletion.Construction.CokernelCompletionKernel.projection f v).lTensor A).range = |
| 73 | (CokernelCompletion.Construction.CokernelCompletionKernel.projection (f.lTensor A) (v.lTensor A)).range := by |
| 74 | rw [← projection_comp f v A h] |
| 75 | apply LinearMap.range_comp_of_range_eq_top |
| 76 | exact LinearMap.range_eq_top.mpr (completionIso f v A h).surjective |
| 77 | |
| 78 | def oneCohomologyIso : |
| 79 | ((A ⊗[R] F) ⧸ ((CokernelCompletion.Construction.CokernelCompletionKernel.projection f v).lTensor A).range) ≃ₗ[R] |
| 80 | ((A ⊗[R] N) ⧸ (f.lTensor A).range) := |
| 81 | (Submodule.quotEquivOfEq _ _ (projection_range f v A h)).trans |
| 82 | (CompletionCokernelEq.Construction.CompletionCokernel.iso (f.lTensor A) (v.lTensor A) (tensor_surjective f v A h)) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CompletionTensor.Construction.CompletionTensorKernel |