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.Comparison.Betti.Module.FrameBases |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Free |
| 3 | |
| 4 | /-! # Free Sheaf Hom -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.FreeSheafHom |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The universal property of the actual sheafification of a free module presheaf. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | variable {C : Type} [SmallCategory C] |
| 17 | |
| 18 | def constantSectionsEquiv (I : Type) (F : Cᵒᵖ ⥤ Type) : |
| 19 | ((Functor.const Cᵒᵖ).obj I ⟶ F) ≃ (I → F.sections) where |
| 20 | toFun a i := ⟨fun U => a.app U i, fun f => (NatTrans.naturality_apply a f i).symm⟩ |
| 21 | invFun s := |
| 22 | { app := fun U => ↾fun i => (s i).val U |
| 23 | naturality := fun U V f => by |
| 24 | ext i |
| 25 | exact ((s i).property f).symm } |
| 26 | left_inv a := by ext U i; rfl |
| 27 | right_inv s := by funext i; apply Subtype.ext; rfl |
| 28 | |
| 29 | variable (J : GrothendieckTopology C) (R : Sheaf J RingCat.{0}) (I : Type) |
| 30 | |
| 31 | abbrev freePresheaf : PresheafOfModules.{0} R.obj := |
| 32 | PresheafOfModules.freeObj ((Functor.const Cᵒᵖ).obj I) |
| 33 | |
| 34 | def sheafifiedFree : SheafOfModules.{0} R := |
| 35 | (PresheafOfModules.sheafification.{0} (R := R) (𝟙 R.obj)).obj (freePresheaf J R I) |
| 36 | |
| 37 | def sectionsHomEquiv (M : SheafOfModules.{0} R) : |
| 38 | (sheafifiedFree J R I ⟶ M) ≃ (I → M.sections) := |
| 39 | ((PresheafOfModules.sheafificationAdjunction.{0} (R := R) (𝟙 R.obj)).homEquiv |
| 40 | (freePresheaf J R I) M).trans |
| 41 | (PresheafOfModules.freeHomEquiv.trans |
| 42 | (constantSectionsEquiv I (M.val.presheaf ⋙ forget AddCommGrpCat))) |
| 43 | |
| 44 | theorem sectionsHomEquiv_naturality {M N : SheafOfModules.{0} R} |
| 45 | (f : sheafifiedFree J R I ⟶ M) (g : M ⟶ N) (i : I) : |
| 46 | sectionsHomEquiv J R I N (f ≫ g) i = SheafOfModules.sectionsMap g (sectionsHomEquiv J R I M f i) := by |
| 47 | apply PresheafOfModules.sections_ext |
| 48 | intro U |
| 49 | change (((PresheafOfModules.sheafificationAdjunction.{0} (R := R) (𝟙 R.obj)).homEquiv |
| 50 | (freePresheaf J R I) N (f ≫ g)).app U) (ModuleCat.freeMk i) = |
| 51 | g.val.app U ((((PresheafOfModules.sheafificationAdjunction.{0} (R := R) (𝟙 R.obj)).homEquiv |
| 52 | (freePresheaf J R I) M f).app U) (ModuleCat.freeMk i)) |
| 53 | erw [Adjunction.homEquiv_naturality_right] |
| 54 | rfl |
| 55 | |
| 56 | def homEquiv (M : SheafOfModules.{0} R) : |
| 57 | (sheafifiedFree J R I ⟶ M) ≃ (SheafOfModules.free (R := R) I ⟶ M) := |
| 58 | (sectionsHomEquiv J R I M).trans M.freeHomEquiv.symm |
| 59 | |
| 60 | theorem homEquiv_naturality {M N : SheafOfModules.{0} R} |
| 61 | (f : sheafifiedFree J R I ⟶ M) (g : M ⟶ N) : |
| 62 | FreeSheafHom.homEquiv J R I N (f ≫ g) = FreeSheafHom.homEquiv J R I M f ≫ g := by |
| 63 | apply N.freeHomEquiv.injective |
| 64 | funext i |
| 65 | change N.freeHomEquiv (N.freeHomEquiv.symm (sectionsHomEquiv J R I N (f ≫ g))) i = _ |
| 66 | rw [Equiv.apply_symm_apply, SheafOfModules.freeHomEquiv_comp_apply] |
| 67 | change _ = SheafOfModules.sectionsMap g |
| 68 | (M.freeHomEquiv (M.freeHomEquiv.symm (sectionsHomEquiv J R I M f)) i) |
| 69 | rw [Equiv.apply_symm_apply] |
| 70 | exact sectionsHomEquiv_naturality J R I f g i |
| 71 | |
| 72 | end |
| 73 | |
| 74 | /-! Canonical identification of sheafified free module presheaves with native free module sheaves. -/ |
| 75 | |
| 76 | open _root_.CategoryTheory |
| 77 | |
| 78 | variable {C : Type} [SmallCategory C] |
| 79 | (J : GrothendieckTopology C) (R : Sheaf J RingCat.{0}) (I : Type) |
| 80 | |
| 81 | def sheafifiedFreeIso : sheafifiedFree J R I ≅ SheafOfModules.free (R := R) I where |
| 82 | hom := (FreeSheafHom.homEquiv J R I (SheafOfModules.free (R := R) I)).symm (𝟙 _) |
| 83 | inv := FreeSheafHom.homEquiv J R I (sheafifiedFree J R I) (𝟙 _) |
| 84 | hom_inv_id := by |
| 85 | apply (FreeSheafHom.homEquiv J R I (sheafifiedFree J R I)).injective |
| 86 | rw [homEquiv_naturality, Equiv.apply_symm_apply, Category.id_comp] |
| 87 | inv_hom_id := by |
| 88 | have h := homEquiv_naturality J R I (𝟙 (sheafifiedFree J R I)) |
| 89 | ((FreeSheafHom.homEquiv J R I (SheafOfModules.free (R := R) I)).symm (𝟙 _)) |
| 90 | rw [Category.id_comp, Equiv.apply_symm_apply] at h |
| 91 | exact h.symm |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.Comparison.Betti.FreeSheafHom |