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.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenReindex |
| 2 | |
| 3 | /-! # Subscheme Section Diagram -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Open.SubschemeSectionDiagram |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A diagram of opens contained in one open subscheme has the same |
| 10 | actual section diagram there. The identification preserves both open |
| 11 | restriction and coefficient morphisms. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u v |
| 16 | variable {Y : Scheme.{u}} {C : Type v} [Category C] |
| 17 | (F : C ⥤ Y.Opens) (V : Y.Opens) (hF : ∀ r, F.obj r ≤ V) |
| 18 | |
| 19 | private abbrev sections (N : Y.Modules) : Y.Opensᵒᵖ ⥤ AddCommGrpCat.{u} := |
| 20 | ((SheafOfModules.toSheaf Y.ringCatSheaf).obj N).obj |
| 21 | |
| 22 | def opens : C ⥤ V.toScheme.Opens := F ⋙ Opens.map V.ι.base |
| 23 | |
| 24 | include hF in |
| 25 | theorem image_eq (r : C) : V.ι ''ᵁ ((opens F V).obj r) = F.obj r := by |
| 26 | change V.ι ''ᵁ (V.ι ⁻¹ᵁ F.obj r) = F.obj r |
| 27 | rw [Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι, |
| 28 | inf_eq_right.mpr (hF r)] |
| 29 | |
| 30 | def imageOpens : C ⥤ Y.Opens := opens F V ⋙ V.ι.opensFunctor |
| 31 | |
| 32 | def coordinates (N : Y.Modules) : |
| 33 | (opens F V).op ⋙ sections (N.restrict V.ι) ≅ (imageOpens F V).op ⋙ sections N := |
| 34 | NatIso.ofComponents |
| 35 | (fun r => N.restrictAppIso V.ι ((opens F V).obj r.unop)) |
| 36 | (fun {_ _} a => N.map_restrictAppIso_hom V.ι ((opens F V).map a.unop).op) |
| 37 | |
| 38 | def geometricIso (N : Y.Modules) : F.op ⋙ sections N ≅ |
| 39 | (imageOpens F V).op ⋙ sections N := |
| 40 | NatIso.ofComponents |
| 41 | (fun r => (sections N).mapIso ((eqToIso (image_eq F V hF r.unop)).op)) |
| 42 | (fun {_ _} a => by |
| 43 | change (sections N).map _ ≫ (sections N).map _ = |
| 44 | (sections N).map _ ≫ (sections N).map _ |
| 45 | rw [← (sections N).map_comp, ← (sections N).map_comp] |
| 46 | congr 1) |
| 47 | |
| 48 | def iso (N : Y.Modules) : F.op ⋙ sections N ≅ |
| 49 | (opens F V).op ⋙ sections (N.restrict V.ι) := |
| 50 | geometricIso F V hF N ≪≫ (coordinates F V N).symm |
| 51 | |
| 52 | variable (F₂ : C ⥤ Y.Opens) (hF₂ : ∀ r, F₂.obj r ≤ V) (α : F₂ ⟶ F) |
| 53 | |
| 54 | def opensMap : opens F₂ V ⟶ opens F V := Functor.whiskerRight α (Opens.map V.ι.base) |
| 55 | |
| 56 | def restriction (N : Y.Modules) : F.op ⋙ sections N ⟶ F₂.op ⋙ sections N := |
| 57 | Functor.whiskerRight (NatTrans.op α) (sections N) |
| 58 | |
| 59 | theorem restriction_square (N : Y.Modules) : |
| 60 | restriction F F₂ α N ≫ (iso F₂ V hF₂ N).hom = |
| 61 | (iso F V hF N).hom ≫ |
| 62 | restriction (opens F V) (opens F₂ V) (opensMap F V F₂ α) (N.restrict V.ι) := by |
| 63 | apply NatTrans.ext |
| 64 | funext r |
| 65 | change N.presheaf.map (α.app r.unop).op ≫ |
| 66 | (N.presheaf.map (eqToHom (image_eq F₂ V hF₂ r.unop)).op ≫ |
| 67 | (N.restrictAppIso V.ι ((opens F₂ V).obj r.unop)).inv) = |
| 68 | (N.presheaf.map (eqToHom (image_eq F V hF r.unop)).op ≫ |
| 69 | (N.restrictAppIso V.ι ((opens F V).obj r.unop)).inv) ≫ |
| 70 | (N.restrict V.ι).presheaf.map ((opensMap F V F₂ α).app r.unop).op |
| 71 | rw [Category.assoc, N.restrictAppIso_inv_map V.ι] |
| 72 | simp only [← Category.assoc, ← N.presheaf.map_comp] |
| 73 | congr 2 |
| 74 | |
| 75 | variable {N P : Y.Modules} (f : N ⟶ P) |
| 76 | |
| 77 | def coefficientMap : F.op ⋙ sections N ⟶ F.op ⋙ sections P := |
| 78 | Functor.whiskerLeft F.op ((SheafOfModules.toSheaf Y.ringCatSheaf).map f).hom |
| 79 | |
| 80 | theorem coefficient_square : |
| 81 | coefficientMap F f ≫ (iso F V hF P).hom = |
| 82 | (iso F V hF N).hom ≫ |
| 83 | coefficientMap (opens F V) ((Scheme.Modules.restrictFunctor V.ι).map f) := by |
| 84 | apply NatTrans.ext |
| 85 | funext r |
| 86 | exact (((SheafOfModules.toSheaf Y.ringCatSheaf).map f).hom.naturality |
| 87 | (eqToHom (image_eq F V hF r.unop)).op).symm |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Open.SubschemeSectionDiagram |