The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V07. Linear algebra

Mathlib.Algebra.Module.Presentation.Cokernel

28 declarations. Mathlib docs · Source

def Module.Presentation.CokernelData.ctorIdx E1 #

{A : Type u} →
  {inst : Ring A} →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        {inst_1 : AddCommGroup M₁} →
          {inst_2 : Module A M₁} →
            {inst_3 : AddCommGroup M₂} →
              {inst_4 : Module A M₂} →
                {pres₂ : Module.Presentation A M₂} →
                  {f : M₁ →ₗ[A] M₂} → {ι : Type w₁} → {g₁ : ι → M₁} → pres₂.CokernelData f g₁ → ℕ

theorem Module.Presentation.CokernelData.mk.injEq E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] {pres₂ : Module.Presentation A M₂} {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (lift : ι → pres₂.G →₀ A) (π_lift : ∀ (i : ι), pres₂.π (lift i) = f (g₁ i)) (lift_1 : ι → pres₂.G →₀ A)
  (π_lift_1 : ∀ (i : ι), pres₂.π (lift_1 i) = f (g₁ i)),
  ({ lift := lift, π_lift := π_lift } = { lift := lift_1, π_lift := π_lift_1 }) = (lift = lift_1)

theorem Module.Presentation.CokernelData.mk.inj E1 #

∀ {A : Type u} {inst : Ring A} {M₁ : Type v₁} {M₂ : Type v₂} {inst_1 : AddCommGroup M₁} {inst_2 : Module A M₁}
  {inst_3 : AddCommGroup M₂} {inst_4 : Module A M₂} {pres₂ : Module.Presentation A M₂} {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} {lift : ι → pres₂.G →₀ A} {π_lift : ∀ (i : ι), pres₂.π (lift i) = f (g₁ i)} {lift_1 : ι → pres₂.G →₀ A}
  {π_lift_1 : ∀ (i : ι), pres₂.π (lift_1 i) = f (g₁ i)},
  { lift := lift, π_lift := π_lift } = { lift := lift_1, π_lift := π_lift_1 } → lift = lift_1

structure Module.Presentation.CokernelData E1 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        [inst_1 : AddCommGroup M₁] →
          [inst_2 : Module A M₁] →
            [inst_3 : AddCommGroup M₂] →
              [inst_4 : Module A M₂] →
                Module.Presentation A M₂ → (M₁ →ₗ[A] M₂) → {ι : Type w₁} → (ι → M₁) → Type (max (max u w₁) w₂₀)

Given a linear map f : M₁ →ₗ[A] M₂, a presentation of M₂ and a choice of generators of M₁, this structure specifies a lifting of the image by f of each generator of M₁ as a linear combination of the generators of M₂.

ctor Module.Presentation.CokernelData.mk E0 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        [inst_1 : AddCommGroup M₁] →
          [inst_2 : Module A M₁] →
            [inst_3 : AddCommGroup M₂] →
              [inst_4 : Module A M₂] →
                {pres₂ : Module.Presentation A M₂} →
                  {f : M₁ →ₗ[A] M₂} →
                    {ι : Type w₁} →
                      {g₁ : ι → M₁} →
                        (lift : ι → pres₂.G →₀ A) → (∀ (i : ι), pres₂.π (lift i) = f (g₁ i)) → pres₂.CokernelData f g₁

abbrev Module.Presentation.CokernelData.lift E1 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        [inst_1 : AddCommGroup M₁] →
          [inst_2 : Module A M₁] →
            [inst_3 : AddCommGroup M₂] →
              [inst_4 : Module A M₂] →
                {pres₂ : Module.Presentation A M₂} →
                  {f : M₁ →ₗ[A] M₂} → {ι : Type w₁} → {g₁ : ι → M₁} → pres₂.CokernelData f g₁ → ι → pres₂.G →₀ A

a lifting of f (g₁ i) in pres₂.G →₀ A

theorem Module.Presentation.CokernelData.π_lift E1 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] {pres₂ : Module.Presentation A M₂} {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (self : pres₂.CokernelData f g₁) (i : ι), pres₂.π (self.lift i) = f (g₁ i)

def Module.Presentation.CokernelData.ofSection E1 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        [inst_1 : AddCommGroup M₁] →
          [inst_2 : Module A M₁] →
            [inst_3 : AddCommGroup M₂] →
              [inst_4 : Module A M₂] →
                (pres₂ : Module.Presentation A M₂) →
                  (f : M₁ →ₗ[A] M₂) →
                    {ι : Type w₁} →
                      (g₁ : ι → M₁) →
                        (s : M₂ → pres₂.G →₀ A) → (∀ (m₂ : M₂), pres₂.π (s m₂) = m₂) → pres₂.CokernelData f g₁

Constructor for Presentation.CokernelData in case we have a chosen set-theoretic section of the projection (pres₂.G →₀ A) → M₂.

theorem Module.Presentation.CokernelData.ofSection_lift E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) (f : M₁ →ₗ[A] M₂) {ι : Type w₁}
  (g₁ : ι → M₁) (s : M₂ → pres₂.G →₀ A) (hs : ∀ (m₂ : M₂), pres₂.π (s m₂) = m₂) (i : ι),
  (Module.Presentation.CokernelData.ofSection pres₂ f g₁ s hs).lift i = s (f (g₁ i))

instance Module.Presentation.nonempty_cokernelData E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) (f : M₁ →ₗ[A] M₂) {ι : Type w₁}
  (g₁ : ι → M₁), Nonempty (pres₂.CokernelData f g₁)

def Module.Presentation.cokernelRelations E1 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        [inst_1 : AddCommGroup M₁] →
          [inst_2 : Module A M₁] →
            [inst_3 : AddCommGroup M₂] →
              [inst_4 : Module A M₂] →
                (pres₂ : Module.Presentation A M₂) →
                  {f : M₁ →ₗ[A] M₂} → {ι : Type w₁} → {g₁ : ι → M₁} → pres₂.CokernelData f g₁ → Module.Relations A

The shape of the presentation by generators and relations of the cokernel of f : M₁ →ₗ[A] M₂. It consists of a generator for each generator of M₂, and there are two types of relations: one for each relation in the presentation in M₂, and one for each generator of M₁.

theorem Module.Presentation.cokernelRelations_relation E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (x : pres₂.R ⊕ ι),
  (pres₂.cokernelRelations data).relation x =
    match x with
    | Sum.inl r => pres₂.relation r
    | Sum.inr i => data.lift i

theorem Module.Presentation.cokernelRelations_R E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁), (pres₂.cokernelRelations data).R = (pres₂.R ⊕ ι)

theorem Module.Presentation.cokernelRelations_G E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁), (pres₂.cokernelRelations data).G = pres₂.G

def Module.Presentation.cokernelSolution E1 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        [inst_1 : AddCommGroup M₁] →
          [inst_2 : Module A M₁] →
            [inst_3 : AddCommGroup M₂] →
              [inst_4 : Module A M₂] →
                (pres₂ : Module.Presentation A M₂) →
                  {f : M₁ →ₗ[A] M₂} →
                    {ι : Type w₁} →
                      {g₁ : ι → M₁} →
                        (data : pres₂.CokernelData f g₁) → (pres₂.cokernelRelations data).Solution (M₂ ⧸ f.range)

The obvious solution in M₂ ⧸ LinearMap.range f to the equations in pres₂.cokernelRelations data.

theorem Module.Presentation.cokernelSolution_var E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (g : (pres₂.cokernelRelations data).G),
  (pres₂.cokernelSolution data).var g = f.range.mkQ (pres₂.var g)

def Module.Presentation.cokernelSolution.isPresentationCore E1 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        [inst_1 : AddCommGroup M₁] →
          [inst_2 : Module A M₁] →
            [inst_3 : AddCommGroup M₂] →
              [inst_4 : Module A M₂] →
                (pres₂ : Module.Presentation A M₂) →
                  {f : M₁ →ₗ[A] M₂} →
                    {ι : Type w₁} →
                      {g₁ : ι → M₁} →
                        (data : pres₂.CokernelData f g₁) →
                          Submodule.span A (Set.range g₁) = ⊤ → (pres₂.cokernelSolution data).IsPresentationCore

The cokernel can be defined by generators and relations.

theorem Module.Presentation.cokernelSolution.isPresentation E1 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁),
  Submodule.span A (Set.range g₁) = ⊤ → (pres₂.cokernelSolution data).IsPresentation

def Module.Presentation.cokernel E1 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        [inst_1 : AddCommGroup M₁] →
          [inst_2 : Module A M₁] →
            [inst_3 : AddCommGroup M₂] →
              [inst_4 : Module A M₂] →
                (pres₂ : Module.Presentation A M₂) →
                  {f : M₁ →ₗ[A] M₂} →
                    {ι : Type w₁} →
                      {g₁ : ι → M₁} →
                        pres₂.CokernelData f g₁ →
                          Submodule.span A (Set.range g₁) = ⊤ → Module.Presentation A (M₂ ⧸ f.range)

The presentation of the cokernel of a linear map f : M₁ →ₗ[A] M₂ that is obtained from a presentation pres₂ of M₂, a choice of generators g₁ : ι → M₁ of M₁, and an additional data in pres₂.CokernelData f g₁.

theorem Module.Presentation.cokernel_relation E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (hg₁ : Submodule.span A (Set.range g₁) = ⊤) (x : pres₂.R ⊕ ι),
  (pres₂.cokernel data hg₁).relation x =
    match x with
    | Sum.inl r => pres₂.relation r
    | Sum.inr i => data.lift i

theorem Module.Presentation.cokernel_R E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (hg₁ : Submodule.span A (Set.range g₁) = ⊤),
  (pres₂.cokernel data hg₁).R = (pres₂.R ⊕ ι)

theorem Module.Presentation.cokernel_var E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (hg₁ : Submodule.span A (Set.range g₁) = ⊤)
  (g : (pres₂.cokernelRelations data).G), (pres₂.cokernel data hg₁).var g = Submodule.Quotient.mk (pres₂.var g)

theorem Module.Presentation.cokernel_G E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} [inst_1 : AddCommGroup M₁] [inst_2 : Module A M₁]
  [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] (pres₂ : Module.Presentation A M₂) {f : M₁ →ₗ[A] M₂} {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (hg₁ : Submodule.span A (Set.range g₁) = ⊤),
  (pres₂.cokernel data hg₁).G = pres₂.G

def Module.Presentation.ofExact E1 #

{A : Type u} →
  [inst : Ring A] →
    {M₁ : Type v₁} →
      {M₂ : Type v₂} →
        {M₃ : Type v₃} →
          [inst_1 : AddCommGroup M₁] →
            [inst_2 : Module A M₁] →
              [inst_3 : AddCommGroup M₂] →
                [inst_4 : Module A M₂] →
                  [inst_5 : AddCommGroup M₃] →
                    [inst_6 : Module A M₃] →
                      {f : M₁ →ₗ[A] M₂} →
                        {g : M₂ →ₗ[A] M₃} →
                          (pres₂ : Module.Presentation A M₂) →
                            {ι : Type w₁} →
                              {g₁ : ι → M₁} →
                                pres₂.CokernelData f g₁ →
                                  Function.Exact ⇑f ⇑g →
                                    Function.Surjective ⇑g →
                                      Submodule.span A (Set.range g₁) = ⊤ → Module.Presentation A M₃

Given an exact sequence of A-modules M₁ → M₂ → M₃ → 0, this is the presentation of M₃ that is obtained from a presentation pres₂ of M₂, a choice of generators g₁ : ι → M₁ of M₁, and an additional data in a Presentation.CokernelData structure.

theorem Module.Presentation.ofExact_G E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} {M₃ : Type v₃} [inst_1 : AddCommGroup M₁]
  [inst_2 : Module A M₁] [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] [inst_5 : AddCommGroup M₃]
  [inst_6 : Module A M₃] {f : M₁ →ₗ[A] M₂} {g : M₂ →ₗ[A] M₃} (pres₂ : Module.Presentation A M₂) {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (hfg : Function.Exact ⇑f ⇑g) (hg : Function.Surjective ⇑g)
  (hg₁ : Submodule.span A (Set.range g₁) = ⊤), (pres₂.ofExact data hfg hg hg₁).G = pres₂.G

theorem Module.Presentation.ofExact_R E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} {M₃ : Type v₃} [inst_1 : AddCommGroup M₁]
  [inst_2 : Module A M₁] [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] [inst_5 : AddCommGroup M₃]
  [inst_6 : Module A M₃] {f : M₁ →ₗ[A] M₂} {g : M₂ →ₗ[A] M₃} (pres₂ : Module.Presentation A M₂) {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (hfg : Function.Exact ⇑f ⇑g) (hg : Function.Surjective ⇑g)
  (hg₁ : Submodule.span A (Set.range g₁) = ⊤), (pres₂.ofExact data hfg hg hg₁).R = (pres₂.R ⊕ ι)

theorem Module.Presentation.ofExact_relation E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} {M₃ : Type v₃} [inst_1 : AddCommGroup M₁]
  [inst_2 : Module A M₁] [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] [inst_5 : AddCommGroup M₃]
  [inst_6 : Module A M₃] {f : M₁ →ₗ[A] M₂} {g : M₂ →ₗ[A] M₃} (pres₂ : Module.Presentation A M₂) {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (hfg : Function.Exact ⇑f ⇑g) (hg : Function.Surjective ⇑g)
  (hg₁ : Submodule.span A (Set.range g₁) = ⊤) (x : pres₂.R ⊕ ι),
  (pres₂.ofExact data hfg hg hg₁).relation x =
    match x with
    | Sum.inl r => pres₂.relation r
    | Sum.inr i => data.lift i

theorem Module.Presentation.ofExact_var E0 #

∀ {A : Type u} [inst : Ring A] {M₁ : Type v₁} {M₂ : Type v₂} {M₃ : Type v₃} [inst_1 : AddCommGroup M₁]
  [inst_2 : Module A M₁] [inst_3 : AddCommGroup M₂] [inst_4 : Module A M₂] [inst_5 : AddCommGroup M₃]
  [inst_6 : Module A M₃] {f : M₁ →ₗ[A] M₂} {g : M₂ →ₗ[A] M₃} (pres₂ : Module.Presentation A M₂) {ι : Type w₁}
  {g₁ : ι → M₁} (data : pres₂.CokernelData f g₁) (hfg : Function.Exact ⇑f ⇑g) (hg : Function.Surjective ⇑g)
  (hg₁ : Submodule.span A (Set.range g₁) = ⊤) (g_1 : (pres₂.cokernel data hg₁).G),
  (pres₂.ofExact data hfg hg hg₁).var g_1 = g (pres₂.var g_1)