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.ArithmeticGeometry.OrdinaryLocus.Openness.SectionFrameApps |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.TensorSections |
| 3 | import Mathlib.CategoryTheory.Monoidal.CoherenceLemmas |
| 4 | |
| 5 | /-! # Tensor Section Frame -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorSectionFrame.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A nonvanishing unit section trivializes a tensor factor, naturally in the other module. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry MonoidalCategory |
| 14 | open OAI.AlgebraicGeometry.SheafCohomology.Projective.TensorSections |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | section Monoidal |
| 19 | |
| 20 | variable {C : Type u} [Category.{v} C] [MonoidalCategory C] {P : C} |
| 21 | |
| 22 | def tensorByUnitSection (M : C) (a : 𝟙_ C ⟶ P) : M ⟶ M ⊗ P := |
| 23 | (ρ_ M).inv ≫ (𝟙 M ⊗ₘ a) |
| 24 | |
| 25 | theorem tensorByUnitSection_naturality {M N : C} (q : M ⟶ N) (a : 𝟙_ C ⟶ P) : |
| 26 | q ≫ tensorByUnitSection N a = tensorByUnitSection M a ≫ (q ⊗ₘ 𝟙 P) := by |
| 27 | unfold tensorByUnitSection |
| 28 | rw [← Category.assoc, rightUnitor_inv_naturality, ← tensorHom_id, |
| 29 | Category.assoc, tensor_id_comp_id_tensor, Category.assoc, id_tensor_comp_tensor_id] |
| 30 | |
| 31 | theorem tensorByUnitSection_unit (a : 𝟙_ C ⟶ P) : |
| 32 | tensorByUnitSection (𝟙_ C) a ≫ (λ_ P).hom = a := by |
| 33 | rw [tensorByUnitSection, ← unitors_inv_equal, id_tensorHom] |
| 34 | simpa only [Category.assoc] using (id_whiskerLeft_symm a).symm |
| 35 | |
| 36 | end Monoidal |
| 37 | |
| 38 | theorem moduleMap_over_isIso_iff {X : Scheme.{u}} {M N : X.Modules} |
| 39 | (q : M ⟶ N) (U : X.Opens) : |
| 40 | IsIso (q.over U) ↔ IsIso ((Scheme.Modules.pullback U.ι).map q) := by |
| 41 | let F := (Scheme.Modules.overEquiv U).functor |
| 42 | let e := Scheme.Modules.overFunctorEquiv U ≪≫ Scheme.Modules.restrictFunctorIsoPullback U.ι |
| 43 | rw [← isIso_iff_of_reflects_iso (q.over U) F] |
| 44 | have h : F.map (q.over U) ≫ (e.app N).hom = |
| 45 | (e.app M).hom ≫ (Scheme.Modules.pullback U.ι).map q := e.hom.naturality q |
| 46 | exact (isIso_comp_right_iff _ (e.app N).hom).symm.trans |
| 47 | ((congrArg IsIso h).to_iff.trans (isIso_comp_left_iff (e.app M).hom _)) |
| 48 | |
| 49 | theorem moduleMap_app_isIso_of_pullback {X : Scheme.{u}} {M N : X.Modules} |
| 50 | (q : M ⟶ N) (U : X.Opens) [IsIso ((Scheme.Modules.pullback U.ι).map q)] : |
| 51 | IsIso (q.app U) := by |
| 52 | have : IsIso (q.over U) := (moduleMap_over_isIso_iff q U).mpr inferInstance |
| 53 | have hm : IsIso ((q.over U).val.app (.op (Over.mk (𝟙 U)))) := |
| 54 | (SheafOfModules.evaluation (X.ringCatSheaf.over U) (.op (Over.mk (𝟙 U)))).map_isIso (q.over U) |
| 55 | exact @Functor.map_isIso _ _ _ _ _ _ (forget₂ (ModuleCat Γ(X, U)) AddCommGrpCat) |
| 56 | (q.val.app (.op U)) hm |
| 57 | |
| 58 | local instance tensorSectionFrameMonoidal (X : Scheme.{u}) : |
| 59 | MonoidalCategory X.Modules := AlgebraicGeometry.SheafCohomology.Projective.Monoidal.Scheme.Modules.monoidalCategory X |
| 60 | |
| 61 | theorem tensorByUnitSection_pullback_isIso {X : Scheme.{u}} (M : X.Modules) {P : X.Modules} |
| 62 | (a : 𝟙_ X.Modules ⟶ P) (U : X.Opens) |
| 63 | [IsIso ((Scheme.Modules.pullback U.ι).map a)] : |
| 64 | IsIso ((Scheme.Modules.pullback U.ι).map (tensorByUnitSection M a)) := by |
| 65 | let F := Scheme.Modules.pullback U.ι |
| 66 | let : F.Monoidal := AlgebraicGeometry.SheafCohomology.Projective.PullbackTensorGeneral.Scheme.Modules.pullbackMonoidal U.ι |
| 67 | change IsIso (F.map ((ρ_ M).inv ≫ (𝟙 M ⊗ₘ a))) |
| 68 | rw [Functor.map_comp, Functor.Monoidal.map_tensor, F.map_id] |
| 69 | infer_instance |
| 70 | |
| 71 | def tensorSectionFrameAppEquiv {X : Scheme.{u}} (M : X.Modules) {P : X.Modules} |
| 72 | (a : 𝟙_ X.Modules ⟶ P) (U : X.Opens) |
| 73 | [IsIso ((Scheme.Modules.pullback U.ι).map a)] : |
| 74 | Γ(M, U) ≃ₗ[Γ(X, U)] Γ(M ⊗ P, U) := by |
| 75 | have := tensorByUnitSection_pullback_isIso M a U |
| 76 | have := moduleMap_app_isIso_of_pullback (tensorByUnitSection M a) U |
| 77 | exact LinearEquiv.ofBijective ((tensorByUnitSection M a).val.app (.op U)).hom |
| 78 | (ConcreteCategory.bijective_of_isIso ((tensorByUnitSection M a).app U)) |
| 79 | |
| 80 | theorem tensorSectionFrameAppEquiv_naturality |
| 81 | {X : Scheme.{u}} {M N P : X.Modules} (q : M ⟶ N) |
| 82 | (a : 𝟙_ X.Modules ⟶ P) (U : X.Opens) |
| 83 | [IsIso ((Scheme.Modules.pullback U.ι).map a)] (x : Γ(M ⊗ P, U)) : |
| 84 | (tensorSectionFrameAppEquiv N a U).symm ((q ⊗ₘ 𝟙 P).app U x) = |
| 85 | q.app U ((tensorSectionFrameAppEquiv M a U).symm x) := by |
| 86 | apply (tensorSectionFrameAppEquiv N a U).injective |
| 87 | rw [LinearEquiv.apply_symm_apply] |
| 88 | have h := congrArg (fun z : M ⟶ N ⊗ P => |
| 89 | z.app U ((tensorSectionFrameAppEquiv M a U).symm x)) (tensorByUnitSection_naturality q a) |
| 90 | have he : (tensorByUnitSection M a).app U ((tensorSectionFrameAppEquiv M a U).symm x) = x := |
| 91 | (tensorSectionFrameAppEquiv M a U).apply_symm_apply x |
| 92 | change (tensorByUnitSection N a).app U (q.app U ((tensorSectionFrameAppEquiv M a U).symm x)) = |
| 93 | (q ⊗ₘ 𝟙 P).app U ((tensorByUnitSection M a).app U ((tensorSectionFrameAppEquiv M a U).symm x)) at h |
| 94 | rw [he] at h |
| 95 | exact h.symm |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorSectionFrame.Construction |