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.InternalHomMaps |
| 2 | |
| 3 | /-! # Internal Hom Restriction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.InternalHomRestriction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restriction of local linear maps along an open immersion. -/ |
| 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 Y : Scheme.{u}} (f : X ⟶ Y) [IsOpenImmersion f] |
| 20 | |
| 21 | theorem opensOver_eq_of_left {U : Y.Opens} {V W : Over U} (h : V.left = W.left) : V = W := by |
| 22 | cases V |
| 23 | cases W |
| 24 | cases h |
| 25 | congr <;> exact Subsingleton.elim _ _ |
| 26 | |
| 27 | theorem opensOverPost_surjective (U : X.Opens) : |
| 28 | Function.Surjective (Over.post (X := U) f.opensFunctor).obj := by |
| 29 | intro W |
| 30 | have hpre : f ⁻¹ᵁ W.left ≤ U := by |
| 31 | calc |
| 32 | f ⁻¹ᵁ W.left ≤ f ⁻¹ᵁ (f ''ᵁ U) := fun _ hx => (leOfHom W.hom) hx |
| 33 | _ = U := f.preimage_image_eq U |
| 34 | refine ⟨Over.mk (homOfLE hpre), opensOver_eq_of_left ?_⟩ |
| 35 | exact (f.image_preimage_eq_opensRange_inf W.left).trans |
| 36 | (inf_eq_right.mpr ((leOfHom W.hom).trans (f.image_le_opensRange U))) |
| 37 | |
| 38 | instance opensOverPost_isEquivalence (U : X.Opens) : |
| 39 | (Over.post (X := U) f.opensFunctor).IsEquivalence := by |
| 40 | have : (Over.post (X := U) f.opensFunctor).EssSurj := |
| 41 | ⟨fun W => by |
| 42 | obtain ⟨V, hV⟩ := opensOverPost_surjective f U W |
| 43 | exact ⟨V, ⟨eqToIso hV⟩⟩⟩ |
| 44 | exact {} |
| 45 | |
| 46 | variable (M N : Y.Modules) |
| 47 | |
| 48 | def localLinearHomRestrict (U : X.Opens) |
| 49 | (a : Γ(InternalHom.Construction.moduleInternalHom M N, f ''ᵁ U)) : |
| 50 | (ModuleHomSheaf.Construction.linearHomSubfunctor (M.restrict f) (N.restrict f)).toFunctor.obj (.op U) := |
| 51 | ⟨Functor.whiskerLeft (Over.post f.opensFunctor).op a.val, |
| 52 | fun V r s => a.property ((Over.post f.opensFunctor).obj V) ((f.appIso V.left).inv r) s⟩ |
| 53 | |
| 54 | theorem localLinearHomRestrict_injective (U : X.Opens) : |
| 55 | Function.Injective (localLinearHomRestrict f M N U) := by |
| 56 | intro a b hab |
| 57 | apply Subtype.ext |
| 58 | let F := (Functor.whiskeringLeft (Over U)ᵒᵖ (Over (f ''ᵁ U))ᵒᵖ Ab).obj |
| 59 | (Over.post f.opensFunctor).op |
| 60 | exact F.map_injective (congrArg Subtype.val hab) |
| 61 | |
| 62 | theorem localLinearHomRestrict_surjective (U : X.Opens) : |
| 63 | Function.Surjective (localLinearHomRestrict f M N U) := by |
| 64 | intro b |
| 65 | let F := (Functor.whiskeringLeft (Over U)ᵒᵖ (Over (f ''ᵁ U))ᵒᵖ Ab).obj |
| 66 | (Over.post f.opensFunctor).op |
| 67 | let a : (presheafHom M.presheaf N.presheaf).obj (.op (f ''ᵁ U)) := F.preimage b.val |
| 68 | have he : Functor.whiskerLeft (Over.post f.opensFunctor).op a = b.val := |
| 69 | F.map_preimage (X := (Over.forget (f ''ᵁ U)).op ⋙ M.presheaf) |
| 70 | (Y := (Over.forget (f ''ᵁ U)).op ⋙ N.presheaf) b.val |
| 71 | have ha : ModuleHomSheaf.Construction.IsLinearLocalHom M N a := by |
| 72 | intro W r s |
| 73 | obtain ⟨V, rfl⟩ := opensOverPost_surjective f U W |
| 74 | change Γ(Y, f ''ᵁ V.left) at r |
| 75 | change Γ(M, f ''ᵁ V.left) at s |
| 76 | have hb := b.property V ((f.appIso V.left).hom r) s |
| 77 | rw [← he] at hb |
| 78 | change a.app (.op ((Over.post f.opensFunctor).obj V)) |
| 79 | ((f.appIso V.left).inv ((f.appIso V.left).hom r) • s) = |
| 80 | (f.appIso V.left).inv ((f.appIso V.left).hom r) • |
| 81 | (show Γ(N, f ''ᵁ V.left) from a.app (.op ((Over.post f.opensFunctor).obj V)) s) at hb |
| 82 | have hr : (f.appIso V.left).inv ((f.appIso V.left).hom r) = r := |
| 83 | ConcreteCategory.congr_hom (f.appIso V.left).hom_inv_id r |
| 84 | erw [hr] at hb |
| 85 | exact hb |
| 86 | exact ⟨⟨a, ha⟩, Subtype.ext he⟩ |
| 87 | |
| 88 | def localLinearHomRestrictEquiv (U : X.Opens) : |
| 89 | Γ(InternalHom.Construction.moduleInternalHom M N, f ''ᵁ U) ≃ |
| 90 | (ModuleHomSheaf.Construction.linearHomSubfunctor (M.restrict f) (N.restrict f)).toFunctor.obj (.op U) := |
| 91 | Equiv.ofBijective (localLinearHomRestrict f M N U) |
| 92 | ⟨localLinearHomRestrict_injective f M N U, localLinearHomRestrict_surjective f M N U⟩ |
| 93 | |
| 94 | theorem appIso_inv_naturality {U V : X.Opens} (i : V ⟶ U) : |
| 95 | (f.appIso U).inv ≫ Y.presheaf.map (f.opensFunctor.map i).op = |
| 96 | X.presheaf.map i.op ≫ (f.appIso V).inv := by |
| 97 | have he := congrArg (fun z : Γ(Y, f ''ᵁ U) ⟶ Γ(X, V) => |
| 98 | (f.appIso U).inv ≫ z ≫ (f.appIso V).inv) (f.appIso_hom_naturality i.op) |
| 99 | simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id, Iso.inv_hom_id_assoc] at he |
| 100 | exact he |
| 101 | |
| 102 | def moduleInternalHomRestrictHom : |
| 103 | (InternalHom.Construction.moduleInternalHom M N).restrict f ⟶ InternalHom.Construction.moduleInternalHom (M.restrict f) (N.restrict f) where |
| 104 | val.app U := ModuleCat.ofHom |
| 105 | (X := ((InternalHom.Construction.moduleInternalHom M N).restrict f).val.obj U) |
| 106 | (Y := (InternalHom.Construction.moduleInternalHom (M.restrict f) (N.restrict f)).val.obj U) |
| 107 | { toFun := localLinearHomRestrict f M N U.unop |
| 108 | map_add' _ _ := Subtype.ext rfl |
| 109 | map_smul' r a := by |
| 110 | apply Subtype.ext |
| 111 | apply NatTrans.ext |
| 112 | funext V |
| 113 | apply AddCommGrpCat.ext |
| 114 | intro s |
| 115 | change Y.presheaf.map (f.opensFunctor.map V.unop.hom).op ((f.appIso U.unop).inv r) • |
| 116 | (show Γ(N, f ''ᵁ V.unop.left) from |
| 117 | a.val.app (.op ((Over.post f.opensFunctor).obj V.unop)) s) = |
| 118 | (f.appIso V.unop.left).inv (X.presheaf.map V.unop.hom.op r) • |
| 119 | (show Γ(N, f ''ᵁ V.unop.left) from |
| 120 | a.val.app (.op ((Over.post f.opensFunctor).obj V.unop)) s) |
| 121 | exact congrArg (fun c : Γ(Y, f ''ᵁ V.unop.left) => c • |
| 122 | (show Γ(N, f ''ᵁ V.unop.left) from |
| 123 | a.val.app (.op ((Over.post f.opensFunctor).obj V.unop)) s)) |
| 124 | (ConcreteCategory.congr_hom (appIso_inv_naturality f V.unop.hom) r) } |
| 125 | val.naturality {_U _V} i := by |
| 126 | ext a |
| 127 | apply Subtype.ext |
| 128 | apply NatTrans.ext |
| 129 | funext W |
| 130 | apply AddCommGrpCat.ext |
| 131 | intro s |
| 132 | rfl |
| 133 | |
| 134 | instance moduleInternalHomRestrictHom_isIso : IsIso (moduleInternalHomRestrictHom f M N) := by |
| 135 | rw [Scheme.Modules.Hom.isIso_iff_isIso_app] |
| 136 | intro U |
| 137 | exact (ConcreteCategory.isIso_iff_bijective ((moduleInternalHomRestrictHom f M N).app U)).mpr |
| 138 | (localLinearHomRestrictEquiv f M N U).bijective |
| 139 | |
| 140 | /-- The internal Hom commutes with restriction to an open subscheme. -/ |
| 141 | def moduleInternalHomRestrictIso : |
| 142 | (InternalHom.Construction.moduleInternalHom M N).restrict f ≅ InternalHom.Construction.moduleInternalHom (M.restrict f) (N.restrict f) := |
| 143 | asIso (moduleInternalHomRestrictHom f M N) |
| 144 | |
| 145 | end Construction |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.InternalHomRestriction |