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 / V01. The language of Mathlib

Mathlib.Logic.Equiv.Functor

10 declarations. Mathlib docs · Source

Functor and bifunctors can be applied to Equivs.

We define

def Functor.mapEquiv (f : Type u → Type v) [Functor f] [LawfulFunctor f] :
    α ≃ β → f α ≃ f β

and

def Bifunctor.mapEquiv (F : Type u → Type v → Type w) [Bifunctor F] [LawfulBifunctor F] :
    α ≃ β → α' ≃ β' → F α α' ≃ F β β'

theorem Functor.mapEquiv.congr_simp E1 #

∀ {α β : Type u} (f : Type u → Type v) [inst : Functor f] [inst_1 : LawfulFunctor f] (h h_1 : α ≃ β),
  h = h_1 → Functor.mapEquiv f h = Functor.mapEquiv f h_1

theorem Bifunctor.mapEquiv.congr_simp E1 #

∀ {α β : Type u} {α' β' : Type v} (F : Type u → Type v → Type w) [inst : Bifunctor F] [inst_1 : LawfulBifunctor F]
  (h h_1 : α ≃ β),
  h = h_1 → ∀ (h' h'_1 : α' ≃ β'), h' = h'_1 → Bifunctor.mapEquiv F h h' = Bifunctor.mapEquiv F h_1 h'_1

def Functor.mapEquiv E1 #

{α β : Type u} → (f : Type u → Type v) → [inst : Functor f] → [LawfulFunctor f] → α ≃ β → f α ≃ f β

Apply a functor to an Equiv.

theorem Functor.mapEquiv_apply E0 #

∀ {α β : Type u} (f : Type u → Type v) [inst : Functor f] [inst_1 : LawfulFunctor f] (h : α ≃ β) (x : f α),
  (Functor.mapEquiv f h) x = ⇑h <$> x

theorem Functor.mapEquiv_symm_apply E0 #

∀ {α β : Type u} (f : Type u → Type v) [inst : Functor f] [inst_1 : LawfulFunctor f] (h : α ≃ β) (y : f β),
  (Functor.mapEquiv f h).symm y = ⇑h.symm <$> y

theorem Functor.mapEquiv_refl E0 #

∀ {α : Type u} (f : Type u → Type v) [inst : Functor f] [inst_1 : LawfulFunctor f],
  Functor.mapEquiv f (Equiv.refl α) = Equiv.refl (f α)

def Bifunctor.mapEquiv E1 #

{α β : Type u} →
  {α' β' : Type v} →
    (F : Type u → Type v → Type w) → [inst : Bifunctor F] → [LawfulBifunctor F] → α ≃ β → α' ≃ β' → F α α' ≃ F β β'

Apply a bifunctor to a pair of Equivs.

theorem Bifunctor.mapEquiv_apply E0 #

∀ {α β : Type u} {α' β' : Type v} (F : Type u → Type v → Type w) [inst : Bifunctor F] [inst_1 : LawfulBifunctor F]
  (h : α ≃ β) (h' : α' ≃ β') (x : F α α'), (Bifunctor.mapEquiv F h h') x = bimap (⇑h) (⇑h') x

theorem Bifunctor.mapEquiv_symm_apply E0 #

∀ {α β : Type u} {α' β' : Type v} (F : Type u → Type v → Type w) [inst : Bifunctor F] [inst_1 : LawfulBifunctor F]
  (h : α ≃ β) (h' : α' ≃ β') (y : F β β'), (Bifunctor.mapEquiv F h h').symm y = bimap (⇑h.symm) (⇑h'.symm) y

theorem Bifunctor.mapEquiv_refl_refl E0 #

∀ {α : Type u} {α' : Type v} (F : Type u → Type v → Type w) [inst : Bifunctor F] [inst_1 : LawfulBifunctor F],
  Bifunctor.mapEquiv F (Equiv.refl α) (Equiv.refl α') = Equiv.refl (F α α')