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.CategoryTheory.Generator.Sheaf |
| 2 | import Mathlib.CategoryTheory.Limits.MonoCoprod |
| 3 | import Mathlib.CategoryTheory.Preadditive.Injective.Basic |
| 4 | |
| 5 | /-! # Sheaf Injective -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.SheafInjective.SheafInjectiveRestrictions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Restriction along monomorphisms for injective sheaves |
| 13 | |
| 14 | Free representable presheaves carry monomorphisms of site objects to |
| 15 | monomorphisms. Left exact sheafification preserves these maps. Injectivity |
| 16 | then extends maps from any coefficient object across the restriction. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 20 | |
| 21 | universe v u v' u' |
| 22 | |
| 23 | variable {C : Type u} [Category.{v} C] {A : Type u'} [Category.{v'} A] |
| 24 | [HasCoproducts.{v} A] |
| 25 | |
| 26 | def presheafMap {P Q : C} (f : P ⟶ Q) (M : A) : |
| 27 | Presheaf.freeYoneda P M ⟶ Presheaf.freeYoneda Q M where |
| 28 | app Y := Sigma.map' (fun (g : Y.unop ⟶ P) => g ≫ f) (fun _ => 𝟙 M) |
| 29 | naturality _ _ _ := by |
| 30 | apply Sigma.hom_ext |
| 31 | intro g |
| 32 | simp [Presheaf.freeYoneda, Category.assoc] |
| 33 | |
| 34 | instance presheafMap_mono [HasZeroMorphisms A] {P Q : C} (f : P ⟶ Q) [Mono f] (M : A) : |
| 35 | Mono (presheafMap f M) := by |
| 36 | have : ∀ Y, Mono ((presheafMap f M).app Y) := by |
| 37 | intro Y |
| 38 | exact MonoCoprod.mono_map'_of_injective (fun (_ : Y.unop ⟶ Q) => M) |
| 39 | (fun (g : Y.unop ⟶ P) => g ≫ f) (fun _ _ h => (cancel_mono f).mp h) |
| 40 | exact NatTrans.mono_of_mono_app _ |
| 41 | |
| 42 | theorem presheafHomEquiv_map {P Q : C} (f : P ⟶ Q) (M : A) |
| 43 | {F : Cᵒᵖ ⥤ A} (α : Presheaf.freeYoneda Q M ⟶ F) : |
| 44 | Presheaf.freeYonedaHomEquiv (presheafMap f M ≫ α) = |
| 45 | Presheaf.freeYonedaHomEquiv α ≫ F.map f.op := by |
| 46 | have hm : Sigma.ι (fun (_ : P ⟶ P) => M) (𝟙 P) ≫ (presheafMap f M).app (op P) = |
| 47 | Sigma.ι (fun (_ : P ⟶ Q) => M) f := by |
| 48 | change Sigma.ι (fun (_ : P ⟶ P) => M) (𝟙 P) ≫ |
| 49 | Sigma.map' (f := fun (_ : P ⟶ Q) => M) (fun (g : P ⟶ P) => g ≫ f) (fun _ => 𝟙 M) = _ |
| 50 | simp |
| 51 | have hr : Sigma.ι (fun (_ : Q ⟶ Q) => M) (𝟙 Q) ≫ |
| 52 | (Presheaf.freeYoneda Q M).map f.op = Sigma.ι (fun (_ : P ⟶ Q) => M) f := by |
| 53 | change Sigma.ι (fun (_ : Q ⟶ Q) => M) (𝟙 Q) ≫ |
| 54 | Sigma.map' (f := fun (_ : P ⟶ Q) => M) (fun (g : Q ⟶ Q) => f ≫ g) (fun _ => 𝟙 M) = _ |
| 55 | simp |
| 56 | have h := congrArg (fun g => Sigma.ι (fun (_ : Q ⟶ Q) => M) (𝟙 Q) ≫ g) |
| 57 | (α.naturality f.op) |
| 58 | exact (Category.assoc _ _ _).symm.trans |
| 59 | ((congrArg (fun g => g ≫ α.app (op P)) hm).trans |
| 60 | ((congrArg (fun g => g ≫ α.app (op P)) hr).symm.trans |
| 61 | ((Category.assoc _ _ _).trans (h.trans (Category.assoc _ _ _).symm)))) |
| 62 | |
| 63 | variable (J : GrothendieckTopology C) [HasWeakSheafify J A] |
| 64 | |
| 65 | def sheafMap {P Q : C} (f : P ⟶ Q) (M : A) : |
| 66 | Sheaf.freeYoneda J P M ⟶ Sheaf.freeYoneda J Q M := |
| 67 | (presheafToSheaf J A).map (presheafMap f M) |
| 68 | |
| 69 | instance sheafMap_mono [HasZeroMorphisms A] |
| 70 | [(presheafToSheaf J A).PreservesMonomorphisms] |
| 71 | {P Q : C} (f : P ⟶ Q) [Mono f] (M : A) : Mono (sheafMap J f M) := by |
| 72 | dsimp [sheafMap] |
| 73 | have : Mono (presheafMap f M) := presheafMap_mono f M |
| 74 | exact Functor.PreservesMonomorphisms.preserves (F := presheafToSheaf J A) (presheafMap f M) |
| 75 | |
| 76 | theorem sheafHomEquiv_map {P Q : C} (f : P ⟶ Q) (M : A) |
| 77 | {F : Sheaf J A} (α : Sheaf.freeYoneda J Q M ⟶ F) : |
| 78 | Sheaf.freeYonedaHomEquiv (sheafMap J f M ≫ α) = |
| 79 | Sheaf.freeYonedaHomEquiv α ≫ F.obj.map f.op := by |
| 80 | change Presheaf.freeYonedaHomEquiv |
| 81 | ((sheafificationAdjunction J A).homEquiv _ _ ((presheafToSheaf J A).map (presheafMap f M) ≫ α)) = _ |
| 82 | have h := (sheafificationAdjunction J A).homEquiv_naturality_left (presheafMap f M) α |
| 83 | exact (congrArg Presheaf.freeYonedaHomEquiv h).trans (presheafHomEquiv_map f M _) |
| 84 | |
| 85 | theorem exists_extension [HasZeroMorphisms A] |
| 86 | [(presheafToSheaf J A).PreservesMonomorphisms] |
| 87 | {P Q : C} (f : P ⟶ Q) [Mono f] (M : A) |
| 88 | (I : Sheaf J A) [Injective I] (a : M ⟶ I.obj.obj (op P)) : |
| 89 | ∃ b : M ⟶ I.obj.obj (op Q), b ≫ I.obj.map f.op = a := by |
| 90 | let α : Sheaf.freeYoneda J P M ⟶ I := Sheaf.freeYonedaHomEquiv.symm a |
| 91 | let β := Injective.factorThru α (sheafMap J f M) |
| 92 | refine ⟨Sheaf.freeYonedaHomEquiv β, ?_⟩ |
| 93 | rw [← sheafHomEquiv_map J f M β, Injective.comp_factorThru] |
| 94 | exact Sheaf.freeYonedaHomEquiv.apply_symm_apply a |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.SheafInjective.SheafInjectiveRestrictions |