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 | /- |
| 2 | Copyright (c) 2020 Markus Himmel. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Markus Himmel, Kim Morrison |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.Algebra.Category.ModuleCat.EpiMono |
| 8 | import Mathlib.Algebra.Group.Shrink |
| 9 | import Mathlib.Algebra.Module.Projective |
| 10 | import Mathlib.CategoryTheory.Preadditive.Projective.Basic |
| 11 | |
| 12 | /-! # Category Projectives -/ |
| 13 | |
| 14 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.CategoryProjectives |
| 15 | |
| 16 | open _root_.ModuleCat |
| 17 | |
| 18 | /-! |
| 19 | # The category of `R`-modules has enough projectives. |
| 20 | -/ |
| 21 | |
| 22 | /- HilbertConstruction-local adaptation, using default elaboration settings. -/ |
| 23 | |
| 24 | universe v u w |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.Module |
| 27 | |
| 28 | variable {R : Type u} [Ring R] (P : ModuleCat.{v} R) |
| 29 | |
| 30 | instance ModuleCat.projective_of_categoryTheory_projective [Module.Projective R P] : |
| 31 | CategoryTheory.Projective P := by |
| 32 | refine ⟨fun E X epi => ?_⟩ |
| 33 | obtain ⟨f, h⟩ := Module.projective_lifting_property X.hom E.hom |
| 34 | ((ModuleCat.epi_iff_surjective _).mp epi) |
| 35 | exact ⟨ofHom f, hom_ext h⟩ |
| 36 | |
| 37 | instance ModuleCat.projective_of_module_projective [Small.{v} R] [Projective P] : |
| 38 | Module.Projective R P := by |
| 39 | refine Module.Projective.of_lifting_property ?_ |
| 40 | intro _ _ _ _ _ _ f g s |
| 41 | have : Epi (↟f) := (ModuleCat.epi_iff_surjective (↟f)).mpr s |
| 42 | exact ⟨(Projective.factorThru (↟g) (↟f)).hom, |
| 43 | ModuleCat.hom_ext_iff.mp <| Projective.factorThru_comp (↟g) (↟f)⟩ |
| 44 | |
| 45 | /-- The categorical notion of projective object agrees with the explicit module-theoretic notion. -/ |
| 46 | theorem IsProjective.iff_projective [Small.{v} R] (P : Type v) [AddCommGroup P] [Module R P] : |
| 47 | Module.Projective R P ↔ Projective (of R P) := |
| 48 | ⟨fun _ => CategoryProjectives.ModuleCat.projective_of_categoryTheory_projective (of R P), |
| 49 | fun _ => CategoryProjectives.ModuleCat.projective_of_module_projective (of R P)⟩ |
| 50 | |
| 51 | namespace ModuleCat |
| 52 | |
| 53 | variable {M : ModuleCat.{v} R} |
| 54 | |
| 55 | -- We transport the corresponding result from `Module.Projective`. |
| 56 | /-- Modules that have a basis are projective. -/ |
| 57 | theorem projective_of_free {ι : Type w} (b : Basis ι R M) : Projective M := |
| 58 | have : Module.Projective R M := Module.Projective.of_basis b |
| 59 | projective_of_categoryTheory_projective M |
| 60 | |
| 61 | /-- The category of modules has enough projectives, since every module is a quotient of a free |
| 62 | module. -/ |
| 63 | instance enoughProjectives [Small.{v} R] : EnoughProjectives (ModuleCat.{v} R) where |
| 64 | presentation M := |
| 65 | let e : Basis M R (M →₀ Shrink.{v} R) := ⟨Finsupp.mapRange.linearEquiv (Shrink.linearEquiv R R)⟩ |
| 66 | ⟨{p := ModuleCat.of R (M →₀ Shrink.{v} R) |
| 67 | projective := projective_of_free e |
| 68 | f := ofHom <| e.constr ℕ _root_.id |
| 69 | epi := by |
| 70 | rw [epi_iff_range_eq_top, LinearMap.range_eq_top] |
| 71 | refine fun m ↦ ⟨Finsupp.single m 1, ?_⟩ |
| 72 | simp [e, Basis.constr_apply] }⟩ |
| 73 | |
| 74 | end ModuleCat |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.CategoryProjectives |