Documentation

AlgebraInLean.Chapter02.Sheet00

def AlgebraInLean.Injective {α : Type u_1} {β : Type u_2} (f : αβ) :

A map is injective (or "one-to-one") when f(x) = f(y) only when x = y

Equations
Instances For
    def AlgebraInLean.Surjective {α : Type u_1} {β : Type u_2} (f : αβ) :

    A map is surjective (or "onto") when its image is the entire codomain

    Equations
    Instances For
      def AlgebraInLean.Bijective {α : Type u_1} {β : Type u_2} (f : αβ) :

      A map is bijective if it is both injective and surjective

      Equations
      Instances For
        theorem AlgebraInLean.surjective_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : αβ} {g : βγ} (h1 : AlgebraInLean.Surjective f) (h2 : AlgebraInLean.Surjective g) :

        The composition of surjective functions is surjective

        theorem AlgebraInLean.injective_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : αβ} {g : βγ} (h1 : AlgebraInLean.Injective f) (h2 : AlgebraInLean.Injective g) :

        The composition of injective functions is injective

        theorem AlgebraInLean.bijective_comp {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : αβ} {g : βγ} (h1 : AlgebraInLean.Bijective f) (h2 : AlgebraInLean.Bijective g) :

        The composition of bijective functions is bijective

        theorem AlgebraInLean.inv_from_bijective {α : Type u_1} {β : Type u_2} {f : αβ} (h : AlgebraInLean.Bijective f) :
        ∃ (g : βα), g f = id f g = id

        Bijective functions are invertible

        theorem AlgebraInLean.bijective_from_inv {α : Type u_1} {β : Type u_2} {f : αβ} (h : ∃ (g : βα), g f = id f g = id) :

        Invertible functions are bijective

        theorem AlgebraInLean.bijective_iff_inv {α : Type u_1} {β : Type u_2} {f : αβ} :
        AlgebraInLean.Bijective f ∃ (g : βα), g f = id f g = id

        A function is bijective iff it is invertible

        noncomputable def AlgebraInLean.inv_of_bijective {α : Type u_1} {β : Type u_2} {f : αβ} (h : AlgebraInLean.Bijective f) :
        βα

        The inverse of a bijective function

        Equations
        Instances For

          Show that inv_of_bijective actually produces an inverse

          Equations
          • =
          Instances For

            The inverse of a bijective function is a bijection

            The inverse map of a group is bijective