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 Mathlib.AlgebraicGeometry.Morphisms.IsIso |
| 2 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 3 | |
| 4 | /-! # Local Isomorphisms Is -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LocalIsomorphismsIs |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # CartierDuality: detecting native group isomorphisms on an open cover of the base |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 15 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 16 | |
| 17 | attribute [local instance] Over.cartesianMonoidalCategory |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | namespace Construction |
| 22 | |
| 23 | namespace LocalIsomorphisms |
| 24 | |
| 25 | variable {C : Type u} [Category.{v} C] [HasPullbacks C] |
| 26 | |
| 27 | /-- A map between two objects over a base has the expected cartesian |
| 28 | square after applying the native pullback functor. -/ |
| 29 | theorem pullbackMap_isPullback {S T : C} (f : T ⟶ S) {X Y : Over S} (g : X ⟶ Y) : |
| 30 | IsPullback (pullback.fst X.hom f) ((Over.pullback f).map g).left |
| 31 | g.left (pullback.fst Y.hom f) := by |
| 32 | have hs : IsPullback (pullback.fst X.hom f) |
| 33 | (((Over.pullback f).map g).left ≫ pullback.snd Y.hom f) (g.left ≫ Y.hom) f := by |
| 34 | rw [g.w] |
| 35 | have hp : ((Over.pullback f).map g).left ≫ pullback.snd Y.hom f = pullback.snd X.hom f := |
| 36 | pullback.lift_snd _ _ _ |
| 37 | rw [hp] |
| 38 | exact .of_hasPullback _ _ |
| 39 | exact hs.of_bot (pullback.lift_fst _ _ _).symm |
| 40 | (IsPullback.of_hasPullback Y.hom f) |
| 41 | |
| 42 | end LocalIsomorphisms |
| 43 | |
| 44 | namespace Schemes |
| 45 | |
| 46 | /-- Isomorphisms of objects over a scheme can be checked on an open |
| 47 | cover of the base, using the native pullback maps. -/ |
| 48 | theorem overMap_isIso_of_openCover {S : Scheme.{u}} {X Y : Over S} (g : X ⟶ Y) |
| 49 | (𝒰 : S.OpenCover) (h : ∀ i, IsIso ((Over.pullback (𝒰.f i)).map g)) : IsIso g := by |
| 50 | have hg : IsIso g.left := by |
| 51 | change MorphismProperty.isomorphisms Scheme g.left |
| 52 | apply (MorphismProperty.isomorphisms Scheme).of_zeroHypercover_target (𝒰.pullback₁ Y.hom) |
| 53 | intro i |
| 54 | have hi := h i |
| 55 | have hm : IsIso (((Over.pullback (𝒰.f i)).map g).left) := |
| 56 | inferInstanceAs (IsIso ((Over.forget (𝒰.X i)).map ((Over.pullback (𝒰.f i)).map g))) |
| 57 | let sq := LocalIsomorphisms.pullbackMap_isPullback (𝒰.f i) g |
| 58 | change IsIso (pullback.snd g.left (pullback.fst Y.hom (𝒰.f i))) |
| 59 | exact sq.isoPullback_inv_snd ▸ inferInstanceAs |
| 60 | (IsIso (sq.isoPullback.inv ≫ ((Over.pullback (𝒰.f i)).map g).left)) |
| 61 | let : IsIso ((Over.forget S).map g) := hg |
| 62 | exact isIso_of_reflects_iso g (Over.forget S) |
| 63 | |
| 64 | /-- A native group morphism is an isomorphism if its pullbacks along |
| 65 | an open cover of the base are isomorphisms. -/ |
| 66 | theorem groupMap_isIso_of_openCover {S : Scheme.{u}} {G H : Grp (Over S)} (g : G ⟶ H) |
| 67 | (𝒰 : S.OpenCover) (h : ∀ i, IsIso ((Over.pullback (𝒰.f i)).mapGrp.map g)) : IsIso g := by |
| 68 | have hg : IsIso g.hom.hom := overMap_isIso_of_openCover g.hom.hom 𝒰 (fun i => by |
| 69 | have hi := h i |
| 70 | exact inferInstanceAs (IsIso ((Grp.forget (Over (𝒰.X i))).map |
| 71 | ((Over.pullback (𝒰.f i)).mapGrp.map g)))) |
| 72 | let e : G ≅ H := Grp.mkIso (asIso g.hom.hom) |
| 73 | have he : e.hom = g := by |
| 74 | apply Grp.hom_ext |
| 75 | rfl |
| 76 | exact he ▸ e.isIso_hom |
| 77 | |
| 78 | end Schemes |
| 79 | |
| 80 | end Construction |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LocalIsomorphismsIs |