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.Line.Bundles |
| 2 | import Mathlib.LinearAlgebra.Multilinear.Basic |
| 3 | |
| 4 | /-! # Powers -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.Powers |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | The universal property of tensor powers of module sheaves, expressed in |
| 12 | terms of actual multilinear maps on sections. This provides a concrete |
| 13 | predicate for powers of a line bundle, without an opaque tensor-power API. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {X : Scheme.{u}} |
| 21 | |
| 22 | /-- Multilinear maps of sheaves, compatible with every restriction map. -/ |
| 23 | structure SheafMultilinearMap (L : X.Modules) (n : ℕ) (M : X.Modules) where |
| 24 | app (U : X.Opens) : MultilinearMap Γ(X, U) (fun _ : Fin n => Γ(L, U)) Γ(M, U) |
| 25 | naturality {U V : X.Opens} (h : V ⟶ U) (s : Fin n → Γ(L, U)) : |
| 26 | M.presheaf.map h.op (app U s) = |
| 27 | app V (fun i => L.presheaf.map h.op (s i)) |
| 28 | |
| 29 | namespace SheafMultilinearMap |
| 30 | |
| 31 | variable {L M N P : X.Modules} {n : ℕ} |
| 32 | |
| 33 | @[ext] |
| 34 | theorem ext {β γ : SheafMultilinearMap L n M} (h : ∀ U, β.app U = γ.app U) : β = γ := by |
| 35 | cases β |
| 36 | cases γ |
| 37 | congr |
| 38 | exact funext h |
| 39 | |
| 40 | /-- The linear map on sections induced by a module-sheaf morphism. -/ |
| 41 | def homApp (f : M ⟶ N) (U : X.Opens) : Γ(M, U) →ₗ[Γ(X, U)] Γ(N, U) where |
| 42 | toFun s := f.app U s |
| 43 | map_add' s t := (f.app U).hom.map_add s t |
| 44 | map_smul' r s := f.app_smul r s |
| 45 | |
| 46 | /-- Postcomposition of a multilinear map by a sheaf morphism. -/ |
| 47 | def postcomp (β : SheafMultilinearMap L n M) (f : M ⟶ N) : |
| 48 | SheafMultilinearMap L n N where |
| 49 | app U := (homApp f U).compMultilinearMap (β.app U) |
| 50 | naturality {U V} h s := by |
| 51 | change N.presheaf.map h.op (f.app U (β.app U s)) = |
| 52 | f.app V (β.app V (fun i => L.presheaf.map h.op (s i))) |
| 53 | have hf := ConcreteCategory.congr_hom (f.mapPresheaf.naturality h.op) (β.app U s) |
| 54 | exact hf.symm.trans (congrArg (fun t => f.app V t) (β.naturality h s)) |
| 55 | |
| 56 | @[simp] |
| 57 | theorem postcomp_id (β : SheafMultilinearMap L n M) : β.postcomp (𝟙 M) = β := by |
| 58 | ext U s |
| 59 | rfl |
| 60 | |
| 61 | theorem postcomp_comp (β : SheafMultilinearMap L n M) (f : M ⟶ N) (g : N ⟶ P) : |
| 62 | β.postcomp (f ≫ g) = (β.postcomp f).postcomp g := by |
| 63 | ext U s |
| 64 | rfl |
| 65 | |
| 66 | /-- The tautological unary multilinear map. -/ |
| 67 | def unary (L : X.Modules) : SheafMultilinearMap L 1 L where |
| 68 | app U := (MultilinearMap.ofSubsingleton Γ(X, U) Γ(L, U) Γ(L, U) (0 : Fin 1)) |
| 69 | LinearMap.id |
| 70 | naturality _ _ := rfl |
| 71 | |
| 72 | /-- A unary multilinear map is an ordinary morphism of module sheaves. -/ |
| 73 | def unaryToHom (β : SheafMultilinearMap L 1 M) : L ⟶ M where |
| 74 | val.app U := ModuleCat.ofHom |
| 75 | ((MultilinearMap.ofSubsingleton Γ(X, U.unop) Γ(L, U.unop) Γ(M, U.unop) |
| 76 | (0 : Fin 1)).symm (β.app U.unop)) |
| 77 | val.naturality {U V} h := by |
| 78 | ext s |
| 79 | exact (β.naturality h.unop (fun _ => s)).symm |
| 80 | |
| 81 | @[simp] |
| 82 | theorem unary_postcomp_unaryToHom (β : SheafMultilinearMap L 1 M) : |
| 83 | (unary L).postcomp β.unaryToHom = β := by |
| 84 | ext U s |
| 85 | change β.app U (fun _ => s 0) = β.app U s |
| 86 | congr 1 |
| 87 | funext i |
| 88 | congr 1 |
| 89 | exact Subsingleton.elim _ _ |
| 90 | |
| 91 | @[simp] |
| 92 | theorem unaryToHom_unary_postcomp (f : L ⟶ M) : |
| 93 | ((unary L).postcomp f).unaryToHom = f := by |
| 94 | apply Scheme.Modules.hom_ext |
| 95 | intro U |
| 96 | ext s |
| 97 | rfl |
| 98 | |
| 99 | end SheafMultilinearMap |
| 100 | |
| 101 | /-- `P` is an `n`th tensor power of `L` when morphisms out of `P` correspond |
| 102 | bijectively to `n`-multilinear maps out of `L`, by postcomposition. -/ |
| 103 | def IsTensorPower (L : X.Modules) (n : ℕ) (P : X.Modules) : Prop := |
| 104 | ∃ β : SheafMultilinearMap L n P, |
| 105 | ∀ Q : X.Modules, Function.Bijective (fun f : P ⟶ Q => β.postcomp f) |
| 106 | |
| 107 | theorem isTensorPower_one (L : X.Modules) : IsTensorPower L 1 L := by |
| 108 | refine ⟨SheafMultilinearMap.unary L, fun Q => ?_⟩ |
| 109 | exact ⟨fun f g h => by |
| 110 | simpa using congrArg SheafMultilinearMap.unaryToHom h, |
| 111 | fun β => ⟨β.unaryToHom, β.unary_postcomp_unaryToHom⟩⟩ |
| 112 | |
| 113 | /-- The universal property determines the tensor power up to isomorphism. -/ |
| 114 | theorem IsTensorPower.unique {L P Q : X.Modules} {n : ℕ} |
| 115 | (hP : IsTensorPower L n P) (hQ : IsTensorPower L n Q) : Nonempty (P ≅ Q) := by |
| 116 | obtain ⟨β, hβ⟩ := hP |
| 117 | obtain ⟨γ, hγ⟩ := hQ |
| 118 | obtain ⟨f, hf⟩ := (hβ Q).surjective γ |
| 119 | obtain ⟨g, hg⟩ := (hγ P).surjective β |
| 120 | refine ⟨⟨f, g, ?_, ?_⟩⟩ |
| 121 | · apply (hβ P).injective |
| 122 | exact (β.postcomp_comp f g).trans |
| 123 | ((congrArg (fun δ : SheafMultilinearMap L n Q => δ.postcomp g) hf).trans |
| 124 | (hg.trans β.postcomp_id.symm)) |
| 125 | · apply (hγ Q).injective |
| 126 | exact (γ.postcomp_comp g f).trans |
| 127 | ((congrArg (fun δ : SheafMultilinearMap L n P => δ.postcomp f) hg).trans |
| 128 | (hf.trans γ.postcomp_id.symm)) |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.Powers |