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.HilbertConstruction.Cochain.HeadCompletion |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CompletionTensor |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.TensorFunctor |
| 4 | |
| 5 | /-! # Completion Tensor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.CompletionTensor.CochainCompletionTensor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The cochain completion is a quasi-isomorphism after arbitrary tensor base change. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | variable (C : CochainComplex (ModuleCat.{v} R) ℕ) |
| 20 | variable {F : Type v} [AddCommGroup F] [Module R F] (v : F →ₗ[R] C.X 1) |
| 21 | variable (A : Type v) [AddCommGroup A] [Module R A] |
| 22 | variable [Module.Flat R (C.X 1)] (h : Function.Surjective ((C.d 0 1).hom.coprod v)) |
| 23 | |
| 24 | abbrev original := HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex A (HeadCompletion.CochainHeadCompletion.complex C v) |
| 25 | abbrev replaced := HeadCompletion.CochainHeadCompletion.complex (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex A C) (v.lTensor A) |
| 26 | |
| 27 | def component : ∀ n, (original C v A).X n ≅ (replaced C v A).X n |
| 28 | | 0 => (CompletionTensor.CompletionTensorKernel.completionIso (C.d 0 1).hom v A h).toModuleIso |
| 29 | | 1 => Iso.refl _ |
| 30 | | _ + 2 => Iso.refl _ |
| 31 | |
| 32 | def iso : original C v A ≅ replaced C v A := |
| 33 | HomologicalComplex.Hom.isoOfComponents (component C v A h) (by |
| 34 | intro i j hij |
| 35 | change i + 1 = j at hij |
| 36 | subst j |
| 37 | rcases i with _ | _ | n |
| 38 | · change ModuleCat.ofHom ((CokernelCompletion.CokernelCompletionKernel.projection |
| 39 | ((C.d 0 1).hom.lTensor A) (v.lTensor A)).comp |
| 40 | (CompletionTensor.CompletionTensorKernel.completionIso (C.d 0 1).hom v A h).toLinearMap) = |
| 41 | ModuleCat.ofHom ((CokernelCompletion.CokernelCompletionKernel.projection (C.d 0 1).hom v).lTensor A) |
| 42 | exact ModuleCat.hom_ext (CompletionTensor.CompletionTensorKernel.projection_comp (C.d 0 1).hom v A h) |
| 43 | · apply ModuleCat.hom_ext |
| 44 | apply TensorProduct.ext |
| 45 | ext a x |
| 46 | rfl |
| 47 | · exact (Category.id_comp ((replaced C v A).d (n + 2) (n + 3))).trans |
| 48 | ((HeadCompletion.CochainHeadCompletion.d_succ_succ (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex A C) (v.lTensor A) n).trans |
| 49 | ((congrArg (fun f : C.X (n + 2) ⟶ C.X (n + 3) => (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.tensor A).map f) |
| 50 | (HeadCompletion.CochainHeadCompletion.d_succ_succ C v n)).symm.trans |
| 51 | (Category.comp_id ((original C v A).d (n + 2) (n + 3))).symm))) |
| 52 | |
| 53 | theorem comparison : |
| 54 | HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.map A (HeadCompletion.CochainHeadCompletion.comparison C v) = |
| 55 | (iso C v A h).hom ≫ |
| 56 | HeadCompletion.CochainHeadCompletion.comparison (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex A C) (v.lTensor A) := by |
| 57 | ext n : 1 |
| 58 | rcases n with _ | _ | n |
| 59 | · apply ModuleCat.hom_ext |
| 60 | apply TensorProduct.ext |
| 61 | ext a x |
| 62 | change ((C.d 0 1).hom.coprod v).ker at x |
| 63 | change a ⊗ₜ[R] (-x.val.1) = |
| 64 | -(CompletionTensor.CompletionTensorKernel.completionIso (C.d 0 1).hom v A h (a ⊗ₜ[R] x)).val.1 |
| 65 | rw [CompletionTensor.CompletionTensorKernel.completionIso_tmul, TensorProduct.tmul_neg] |
| 66 | · apply ModuleCat.hom_ext |
| 67 | apply TensorProduct.ext |
| 68 | ext a x |
| 69 | rfl |
| 70 | · apply ModuleCat.hom_ext |
| 71 | apply TensorProduct.ext |
| 72 | ext a x |
| 73 | rfl |
| 74 | |
| 75 | include h in |
| 76 | theorem quasiIso : QuasiIso (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.map A (HeadCompletion.CochainHeadCompletion.comparison C v)) := by |
| 77 | have : QuasiIso |
| 78 | (HeadCompletion.CochainHeadCompletion.comparison (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex A C) (v.lTensor A)) := |
| 79 | HeadCompletion.CochainHeadCompletion.quasiIso _ _ |
| 80 | (CompletionTensor.CompletionTensorKernel.tensor_surjective (C.d 0 1).hom v A h) |
| 81 | rw [comparison C v A h] |
| 82 | infer_instance |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.CompletionTensor.CochainCompletionTensor |