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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SchemeModuleQuasicoherent.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.AlgebraicGeometry.Modules.Tilde |
| 8 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 9 | |
| 10 | /-! # Kernel Sections -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.KernelSections |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules Opposite |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R : CommRingCat.{u}} |
| 21 | |
| 22 | local instance evaluationAdditive (U : (Spec R).Opens) : |
| 23 | (SheafOfModules.evaluation (Spec R).ringCatSheaf (op U)).Additive := by |
| 24 | dsimp only [SheafOfModules.evaluation] |
| 25 | infer_instance |
| 26 | |
| 27 | def specKernelSectionEquiv |
| 28 | {M N : (Spec R).Modules} (f : M ⟶ N) (U : (Spec R).Opens) : |
| 29 | Γ(kernel f, U) ≃ₗ[R] |
| 30 | ((modulesSpecToSheaf.map f).hom.app (op U)).hom.ker := |
| 31 | let e := (PreservesKernel.iso |
| 32 | (SheafOfModules.evaluation (Spec R).ringCatSheaf (op U)) f).trans |
| 33 | (ModuleCat.kernelIsoKer _) |
| 34 | let fU : Γ(M, U) →ₗ[Γ(Spec R, U)] Γ(N, U) := |
| 35 | (f.val.app (op U)).hom |
| 36 | letI : Module R fU.ker := |
| 37 | Module.compHom (R := Γ(Spec R, U)) fU.ker |
| 38 | (algebraMap R Γ(Spec R, U)) |
| 39 | letI : IsScalarTower R Γ(Spec R, U) fU.ker := |
| 40 | .of_algebraMap_smul fun _ _ ↦ rfl |
| 41 | let eΓ : Γ(kernel f, U) ≃ₗ[Γ(Spec R, U)] fU.ker := |
| 42 | e.toLinearEquiv |
| 43 | let eR : Γ(kernel f, U) ≃ₗ[R] fU.ker := |
| 44 | { toEquiv := eΓ.toEquiv |
| 45 | map_add' := eΓ.map_add |
| 46 | map_smul' := by |
| 47 | intro r x |
| 48 | change eΓ ((algebraMap R Γ(Spec R, U)) r • x) = |
| 49 | (algebraMap R Γ(Spec R, U)) r • eΓ x |
| 50 | exact eΓ.map_smul _ _ } |
| 51 | let eKer : fU.ker ≃ₗ[R] |
| 52 | ((modulesSpecToSheaf.map f).hom.app (op U)).hom.ker := |
| 53 | { toFun := fun x ↦ ⟨x.1, x.2⟩ |
| 54 | invFun := fun x ↦ ⟨x.1, x.2⟩ |
| 55 | left_inv := fun _ ↦ rfl |
| 56 | right_inv := fun _ ↦ rfl |
| 57 | map_add' := fun _ _ ↦ rfl |
| 58 | map_smul' := by |
| 59 | intro r x |
| 60 | apply Subtype.ext |
| 61 | change (algebraMap R Γ(Spec R, U)) r • (x : Γ(M, U)) = _ |
| 62 | rfl } |
| 63 | eR.trans eKer |
| 64 | |
| 65 | theorem specKernelSectionEquiv_coe |
| 66 | {M N : (Spec R).Modules} (f : M ⟶ N) (U : (Spec R).Opens) |
| 67 | (x : Γ(kernel f, U)) : |
| 68 | (specKernelSectionEquiv f U x).1 = |
| 69 | (kernel.ι f).val.app (op U) x := by |
| 70 | change (((ModuleCat.kernelIsoKer |
| 71 | ((SheafOfModules.evaluation (Spec R).ringCatSheaf (op U)).map f)).hom |
| 72 | ((PreservesKernel.iso |
| 73 | (SheafOfModules.evaluation (Spec R).ringCatSheaf (op U)) f).hom x)).1) = |
| 74 | (kernel.ι f).val.app (op U) x |
| 75 | let F := SheafOfModules.evaluation (Spec R).ringCatSheaf (op U) |
| 76 | have hsub := ConcreteCategory.congr_hom |
| 77 | (ModuleCat.kernelIsoKer_hom_ker_subtype (F.map f)) |
| 78 | ((PreservesKernel.iso F f).hom x) |
| 79 | have hcomparison := ConcreteCategory.congr_hom |
| 80 | (PreservesKernel.iso_inv_ι (G := F) (f := f)) |
| 81 | ((PreservesKernel.iso F f).hom x) |
| 82 | change F.map (kernel.ι f) |
| 83 | ((PreservesKernel.iso F f).inv ((PreservesKernel.iso F f).hom x)) = |
| 84 | (kernel.ι (F.map f)) ((PreservesKernel.iso F f).hom x) at hcomparison |
| 85 | have hinv : (PreservesKernel.iso F f).inv |
| 86 | ((PreservesKernel.iso F f).hom x) = x := |
| 87 | ConcreteCategory.congr_hom (PreservesKernel.iso F f).hom_inv_id x |
| 88 | rw [hinv] at hcomparison |
| 89 | symm at hcomparison |
| 90 | exact hsub.trans hcomparison |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.KernelSections |