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.TerminalModuleProjective |
| 2 | |
| 3 | /-! # Disjoint Cover Module Projective -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DisjointCoverModuleProjective |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Disjoint covers by objects with split covering sieves make global module sections exact. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 12 | |
| 13 | universe u v w z |
| 14 | |
| 15 | variable {C : Type u} [Category.{v} C] (J : GrothendieckTopology C) |
| 16 | (R : Type w) [CommRing R] |
| 17 | |
| 18 | theorem empty_zero (F : Sheaf J (ModuleCat.{w} R)) (W : C) (hW : (⊥ : Sieve W) ∈ J W) : |
| 19 | IsZero (F.obj.obj (op W)) := by |
| 20 | apply (IsZero.iff_id_eq_zero _).mpr |
| 21 | apply F.property.hom_ext ⟨⊥, hW⟩ |
| 22 | rintro ⟨V, f, hf⟩ |
| 23 | exact False.elim hf |
| 24 | |
| 25 | def sectionHom (M : ModuleCat.{w} R) (x : M) : ModuleCat.of R R ⟶ M := |
| 26 | ModuleCat.ofHom (LinearMap.toSpanSingleton R M x) |
| 27 | |
| 28 | variable {ι : Type z} {T : C} (U : ι → C) (f : ∀ i, U i ⟶ T) [∀ i, Mono (f i)] |
| 29 | (hcover : Sieve.ofArrows U f ∈ J T) |
| 30 | (hdisjoint : ∀ {W : C} {i j : ι}, i ≠ j → |
| 31 | ∀ (a : W ⟶ U i) (b : W ⟶ U j), a ≫ f i = b ≫ f j → (⊥ : Sieve W) ∈ J W) |
| 32 | |
| 33 | include hdisjoint in |
| 34 | theorem compatible (F : Sheaf J (ModuleCat.{w} R)) |
| 35 | {E : ModuleCat.{w} R} (x : ∀ i, E ⟶ F.obj.obj (op (U i))) |
| 36 | {W : C} {i j : ι} (a : W ⟶ U i) (b : W ⟶ U j) (h : a ≫ f i = b ≫ f j) : |
| 37 | x i ≫ F.obj.map a.op = x j ≫ F.obj.map b.op := by |
| 38 | by_cases hij : i = j |
| 39 | · subst j |
| 40 | rw [(cancel_mono (f i)).mp h] |
| 41 | · exact (empty_zero J R F W (hdisjoint hij a b h)).eq_of_tgt _ _ |
| 42 | |
| 43 | include hcover hdisjoint in |
| 44 | theorem glue (F : Sheaf J (ModuleCat.{w} R)) (x : ∀ i, F.obj.obj (op (U i))) : |
| 45 | ∃ y : F.obj.obj (op T), ∀ i, F.obj.map (f i).op y = x i := by |
| 46 | obtain ⟨g, hg, _⟩ := F.property.existsUnique_amalgamation_ofArrows f hcover |
| 47 | (fun i => sectionHom R _ (x i)) |
| 48 | (fun {W} {i} {j} a b h => compatible J R U f hdisjoint F (fun i => sectionHom R _ (x i)) a b h) |
| 49 | refine ⟨g 1, fun i => ?_⟩ |
| 50 | have hi := congrArg (fun q : ModuleCat.of R R ⟶ F.obj.obj (op (U i)) => q 1) (hg i) |
| 51 | change F.obj.map (f i).op (g 1) = (1 : R) • x i at hi |
| 52 | exact hi.trans (one_smul R (x i)) |
| 53 | |
| 54 | include hcover in |
| 55 | omit [∀ i, Mono (f i)] in |
| 56 | theorem separated (F : Sheaf J (ModuleCat.{w} R)) (x y : F.obj.obj (op T)) |
| 57 | (h : ∀ i, F.obj.map (f i).op x = F.obj.map (f i).op y) : x = y := by |
| 58 | have hxy : sectionHom R _ x = sectionHom R _ y := by |
| 59 | apply F.property.hom_ext_ofArrows f hcover |
| 60 | intro i |
| 61 | apply ModuleCat.hom_ext |
| 62 | apply LinearMap.ext |
| 63 | intro r |
| 64 | change F.obj.map (f i).op (r • x) = F.obj.map (f i).op (r • y) |
| 65 | rw [map_smul, map_smul, h i] |
| 66 | have hh := congrArg (fun q : ModuleCat.of R R ⟶ F.obj.obj (op T) => q 1) hxy |
| 67 | change (1 : R) • x = (1 : R) • y at hh |
| 68 | simpa only [one_smul] using hh |
| 69 | |
| 70 | variable [HasSheafify J (ModuleCat.{w} R)] |
| 71 | [J.HasSheafCompose (forget (ModuleCat.{w} R))] |
| 72 | [J.WEqualsLocallyBijective (ModuleCat.{w} R)] |
| 73 | (hsplit : ∀ i, ∀ S : Sieve (U i), S ∈ J (U i) → S = ⊤) |
| 74 | |
| 75 | include hcover hdisjoint hsplit in |
| 76 | theorem epi_surjective {F G : Sheaf J (ModuleCat.{w} R)} (φ : F ⟶ G) [Epi φ] : |
| 77 | Function.Surjective (φ.hom.app (op T)) := by |
| 78 | intro x |
| 79 | choose y hy using fun i => TerminalModuleProjective.epi_surjective J R (hsplit i) φ |
| 80 | (G.obj.map (f i).op x) |
| 81 | obtain ⟨s, hs⟩ := glue J R U f hcover hdisjoint F y |
| 82 | refine ⟨s, separated J R U f hcover G _ x (fun i => ?_)⟩ |
| 83 | have h := congrArg (fun q : F.obj.obj (op T) ⟶ G.obj.obj (op (U i)) => q s) |
| 84 | (φ.hom.naturality (f i).op) |
| 85 | change φ.hom.app (op (U i)) (F.obj.map (f i).op s) = G.obj.map (f i).op (φ.hom.app (op T) s) at h |
| 86 | exact h.symm.trans ((congrArg (φ.hom.app (op (U i))) (hs i)).trans (hy i)) |
| 87 | |
| 88 | include hcover hdisjoint hsplit in |
| 89 | theorem projective (hterminal : IsTerminal T) : |
| 90 | Projective ((constantSheaf J (ModuleCat.{w} R)).obj (ModuleCat.of R R)) := by |
| 91 | have : ((sheafSections J (ModuleCat.{w} R)).obj (op T)).PreservesEpimorphisms := |
| 92 | ⟨fun φ _ => ConcreteCategory.epi_of_surjective _ (epi_surjective J R U f hcover hdisjoint hsplit φ)⟩ |
| 93 | exact (constantSheafAdj J (ModuleCat.{w} R) hterminal).map_projective _ inferInstance |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DisjointCoverModuleProjective |