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.Picard.Homomorphisms.TensorHom |
| 2 | |
| 3 | /-! # Internal Hom Unit -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.InternalHomUnit |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The internal Hom from the structure sheaf is the target sheaf itself. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | |
| 15 | namespace Construction |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {X : Scheme.{u}} (N : X.Modules) |
| 20 | |
| 21 | def internalHomUnitEval : InternalHom.Construction.moduleInternalHom (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N ⟶ N where |
| 22 | val.app U := ModuleCat.ofHom ((TensorHom.Construction.internalHomEval (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N U.unop).flip |
| 23 | (1 : Γ(X, U.unop))) |
| 24 | val.naturality {U V} f := by |
| 25 | ext a |
| 26 | have he := TensorHom.Construction.internalHomEval_naturality (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N f.unop a |
| 27 | (1 : Γ(X, U.unop)) |
| 28 | change TensorHom.Construction.internalHomEval (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N V.unop |
| 29 | ((InternalHom.Construction.moduleInternalHom (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N).presheaf.map f a) (1 : Γ(X, V.unop)) = _ |
| 30 | have h1 : (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).presheaf.map f.unop.op (1 : Γ(X, U.unop)) = |
| 31 | (1 : Γ(X, V.unop)) := (X.presheaf.map f.unop.op).hom.map_one |
| 32 | rw [h1] at he |
| 33 | exact he |
| 34 | |
| 35 | def moduleUnitBilinear : AbelianModuli.HilbertConstruction.Bilinear.Sheaves.SheafBilinearMap N (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N where |
| 36 | app U := (LinearMap.lsmul Γ(X, U) Γ(N, U)).flip |
| 37 | naturality {_U _V} f s r := N.val.map_smul f.op r s |
| 38 | |
| 39 | def internalHomUnitInv : N ⟶ InternalHom.Construction.moduleInternalHom (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N := |
| 40 | TensorHom.Construction.sheafBilinearCurry (moduleUnitBilinear N) |
| 41 | |
| 42 | theorem internalHomUnitInv_eval : internalHomUnitInv N ≫ internalHomUnitEval N = 𝟙 N := by |
| 43 | apply Scheme.Modules.hom_ext |
| 44 | intro U |
| 45 | apply AddCommGrpCat.ext |
| 46 | intro s |
| 47 | change (1 : Γ(X, U)) • N.presheaf.map (𝟙 U).op s = s |
| 48 | rw [op_id, N.presheaf.map_id, AddCommGrpCat.id_apply, one_smul] |
| 49 | |
| 50 | theorem internalHomUnitEval_inv : internalHomUnitEval N ≫ internalHomUnitInv N = 𝟙 _ := by |
| 51 | apply Scheme.Modules.hom_ext |
| 52 | intro U |
| 53 | apply AddCommGrpCat.ext |
| 54 | intro a |
| 55 | apply Subtype.ext |
| 56 | apply NatTrans.ext |
| 57 | funext V |
| 58 | apply AddCommGrpCat.ext |
| 59 | intro r |
| 60 | change Γ(X, V.unop.left) at r |
| 61 | change r • N.presheaf.map V.unop.hom.op |
| 62 | (TensorHom.Construction.internalHomEval (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N U a (1 : Γ(X, U))) = |
| 63 | a.val.app V r |
| 64 | have hn := TensorHom.Construction.internalHomEval_naturality (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N V.unop.hom a |
| 65 | (1 : Γ(X, U)) |
| 66 | have h1 : (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).presheaf.map V.unop.hom.op (1 : Γ(X, U)) = |
| 67 | (1 : Γ(X, V.unop.left)) := (X.presheaf.map V.unop.hom.op).hom.map_one |
| 68 | rw [h1] at hn |
| 69 | rw [← hn] |
| 70 | change r • (show Γ(N, V.unop.left) from a.val.app V (1 : Γ(X, V.unop.left))) = |
| 71 | a.val.app V r |
| 72 | have he := a.property V.unop r (1 : Γ(X, V.unop.left)) |
| 73 | exact he.symm.trans (congrArg (fun t : Γ(X, V.unop.left) => a.val.app V t) (mul_one r)) |
| 74 | |
| 75 | def internalHomUnitIso : InternalHom.Construction.moduleInternalHom (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) N ≅ N where |
| 76 | hom := internalHomUnitEval N |
| 77 | inv := internalHomUnitInv N |
| 78 | hom_inv_id := internalHomUnitEval_inv N |
| 79 | inv_hom_id := internalHomUnitInv_eval N |
| 80 | |
| 81 | end Construction |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.InternalHomUnit |