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.Defs

269 declarations and 1 deprecated aliases. Mathlib docs · Source

Equivalence between types

In this file we define two types:

  • Equiv α β a.k.a. α ≃ β: a bijective map α → β bundled with its inverse map; we use this (and not equality!) to express that various Types or Sorts are equivalent.

  • Equiv.Perm α: the group of permutations α ≃ α. More lemmas about Equiv.Perm can be found in Mathlib/GroupTheory/Perm/.

Then we define

  • canonical isomorphisms between various types: e.g.,

    • Equiv.refl α is the identity map interpreted as α ≃ α;
  • operations on equivalences: e.g.,

    • Equiv.symm e : β ≃ α is the inverse of e : α ≃ β;

    • Equiv.trans e₁ e₂ : α ≃ γ is the composition of e₁ : α ≃ β and e₂ : β ≃ γ (note the order of the arguments!);

  • definitions that transfer some instances along an equivalence. By convention, we transfer instances from right to left.

    • Equiv.inhabited takes e : α ≃ β and [Inhabited β] and returns Inhabited α;
    • Equiv.unique takes e : α ≃ β and [Unique β] and returns Unique α;
    • Equiv.decidableEq takes e : α ≃ β and [DecidableEq β] and returns DecidableEq α.

    More definitions of this kind can be found in other files. E.g., Mathlib/Algebra/Group/TransferInstance.lean does it for Group, Mathlib/Algebra/Module/TransferInstance.lean does it for Module, and similar files exist for other algebraic type classes.

Many more such isomorphisms and operations are defined in Mathlib/Logic/Equiv/Basic.lean.

Tags

equivalence, congruence, bijective map

theorem Equiv.mk.inj E1 #

∀ {α : Sort u_1} {β : Sort u_2} {toFun : α → β} {invFun : β → α}
  {left_inv : autoParam (Function.LeftInverse invFun toFun) Equiv.left_inv._autoParam}
  {right_inv : autoParam (Function.RightInverse invFun toFun) Equiv.right_inv._autoParam} {toFun_1 : α → β}
  {invFun_1 : β → α} {left_inv_1 : autoParam (Function.LeftInverse invFun_1 toFun_1) Equiv.left_inv._autoParam}
  {right_inv_1 : autoParam (Function.RightInverse invFun_1 toFun_1) Equiv.right_inv._autoParam},
  { toFun := toFun, invFun := invFun, left_inv := left_inv, right_inv := right_inv } =
      { toFun := toFun_1, invFun := invFun_1, left_inv := left_inv_1, right_inv := right_inv_1 } →
    toFun = toFun_1 ∧ invFun = invFun_1

def Equiv.ctorIdx E1 #

{α : Sort u_1} → {β : Sort u_2} → α ≃ β → ℕ

theorem Equiv.cast.congr_simp E1 #

∀ {α β : Sort u_1} (h : α = β), Equiv.cast h = Equiv.cast h

theorem DFunLike.coe.hcongr_6 E1 #

∀ (F F' : Sort u_1),
  F = F' →
    ∀ (α α' : Sort u_2),
      α = α' →
        ∀ (β : α → Sort u_3) (β' : α' → Sort u_3),
          β ≍ β' →
            ∀ (self : DFunLike F α β) (self' : DFunLike F' α' β'),
              self ≍ self' → ∀ (a : F) (a' : F'), a ≍ a' → ∀ (a_1 : α) (a'_1 : α'), a_1 ≍ a'_1 → a a_1 ≍ a' a'_1

theorem Equiv.ofBijective.congr_simp E1 #

∀ {α : Sort u} {β : Sort v} (f f_1 : α → β) (e_f : f = f_1) (hf : Function.Bijective f),
  Equiv.ofBijective f hf = Equiv.ofBijective f_1 ⋯

theorem Equiv.mk.congr_simp E1 #

∀ {α : Sort u_1} {β : Sort u_2} (toFun toFun_1 : α → β) (e_toFun : toFun = toFun_1) (invFun invFun_1 : β → α)
  (e_invFun : invFun = invFun_1) (left_inv : Function.LeftInverse invFun toFun)
  (right_inv : Function.RightInverse invFun toFun),
  { toFun := toFun, invFun := invFun, left_inv := left_inv, right_inv := right_inv } =
    { toFun := toFun_1, invFun := invFun_1, left_inv := ⋯, right_inv := ⋯ }

theorem Equiv.mk.injEq E0 #

∀ {α : Sort u_1} {β : Sort u_2} (toFun : α → β) (invFun : β → α)
  (left_inv : autoParam (Function.LeftInverse invFun toFun) Equiv.left_inv._autoParam)
  (right_inv : autoParam (Function.RightInverse invFun toFun) Equiv.right_inv._autoParam) (toFun_1 : α → β)
  (invFun_1 : β → α) (left_inv_1 : autoParam (Function.LeftInverse invFun_1 toFun_1) Equiv.left_inv._autoParam)
  (right_inv_1 : autoParam (Function.RightInverse invFun_1 toFun_1) Equiv.right_inv._autoParam),
  ({ toFun := toFun, invFun := invFun, left_inv := left_inv, right_inv := right_inv } =
      { toFun := toFun_1, invFun := invFun_1, left_inv := left_inv_1, right_inv := right_inv_1 }) =
    (toFun = toFun_1 ∧ invFun = invFun_1)

structure Equiv E3 #

Sort u_1 → Sort u_2 → Sort (max (max 1 u_1) u_2)

α ≃ β is the type of functions from α → β with a two-sided inverse.

ctor Equiv.mk E0 #

{α : Sort u_1} →
  {β : Sort u_2} →
    (toFun : α → β) →
      (invFun : β → α) →
        autoParam (Function.LeftInverse invFun toFun) Equiv.left_inv._autoParam →
          autoParam (Function.RightInverse invFun toFun) Equiv.right_inv._autoParam → α ≃ β

abbrev Equiv.toFun E1 #

{α : Sort u_1} → {β : Sort u_2} → α ≃ β → α → β

The forward map of an equivalence.

Do NOT use directly. Use the coercion instead.

abbrev Equiv.invFun E1 #

{α : Sort u_1} → {β : Sort u_2} → α ≃ β → β → α

The backward map of an equivalence.

Do NOT use e.invFun directly. Use the coercion of e.symm instead.

theorem Equiv.left_inv E2 #

∀ {α : Sort u_1} {β : Sort u_2} (self : α ≃ β), Function.LeftInverse self.invFun self.toFun

theorem Equiv.right_inv E2 #

∀ {α : Sort u_1} {β : Sort u_2} (self : α ≃ β), Function.RightInverse self.invFun self.toFun

def «term_≃_» E1 #

Lean.TrailingParserDescr

α ≃ β is the type of functions from α → β with a two-sided inverse.

def EquivLike.toEquiv E1 #

{α : Sort u} → {β : Sort v} → {F : Sort u_1} → [EquivLike F α β] → F → α ≃ β

Turn an element of a type F satisfying EquivLike F α β into an actual Equiv. This is declared as the default coercion from F to α ≃ β.

instance instCoeTCEquivOfEquivLike E0 #

{α : Sort u} → {β : Sort v} → {F : Sort u_1} → [EquivLike F α β] → CoeTC F (α ≃ β)

Any type satisfying EquivLike can be cast into Equiv via EquivLike.toEquiv.

abbrev Equiv.Perm E3 #

Sort u_1 → Sort (max 1 u_1)

Perm α is the type of bijections from α to itself.

instance Equiv.instEquivLike E0 #

{α : Sort u} → {β : Sort v} → EquivLike (α ≃ β) α β

theorem EquivLike.coe_coe E0 #

∀ {α : Sort u} {β : Sort v} {F : Sort u_1} [inst : EquivLike F α β] (e : F), ⇑↑e = ⇑e

theorem Equiv.coe_fn_mk E0 #

∀ {α : Sort u} {β : Sort v} (f : α → β) (g : β → α) (l : Function.LeftInverse g f) (r : Function.RightInverse g f),
  ⇑{ toFun := f, invFun := g, left_inv := l, right_inv := r } = f

theorem Equiv.coe_fn_injective E0 #

∀ {α : Sort u} {β : Sort v}, Function.Injective fun e ↦ ⇑e

The map (r ≃ s) → (r → s) is injective.

theorem Equiv.coe_inj E0 #

∀ {α : Sort u} {β : Sort v} {e₁ e₂ : α ≃ β}, ⇑e₁ = ⇑e₂ ↔ e₁ = e₂

theorem Equiv.ext E1 #

∀ {α : Sort u} {β : Sort v} {f g : α ≃ β}, (∀ (x : α), f x = g x) → f = g

theorem Equiv.ext_iff E0 #

∀ {α : Sort u} {β : Sort v} {f g : α ≃ β}, f = g ↔ ∀ (x : α), f x = g x

theorem Equiv.congr_arg E1 #

∀ {α : Sort u} {β : Sort v} {f : α ≃ β} {x x' : α}, x = x' → f x = f x'

theorem Equiv.congr_fun E1 #

∀ {α : Sort u} {β : Sort v} {f g : α ≃ β}, f = g → ∀ (x : α), f x = g x

theorem Equiv.Perm.ext_iff E0 #

∀ {α : Sort u} {σ τ : Equiv.Perm α}, σ = τ ↔ ∀ (x : α), σ x = τ x

theorem Equiv.Perm.ext E1 #

∀ {α : Sort u} {σ τ : Equiv.Perm α}, (∀ (x : α), σ x = τ x) → σ = τ

theorem Equiv.Perm.congr_arg E1 #

∀ {α : Sort u} {f : Equiv.Perm α} {x x' : α}, x = x' → f x = f x'

theorem Equiv.Perm.congr_fun E1 #

∀ {α : Sort u} {f g : Equiv.Perm α}, f = g → ∀ (x : α), f x = g x

def Equiv.refl E1 #

(α : Sort u_1) → α ≃ α

Any type is equivalent to itself.

instance Equiv.inhabited' E0 #

{α : Sort u} → Inhabited (α ≃ α)

def Equiv.symm E3 #

{α : Sort u} → {β : Sort v} → α ≃ β → β ≃ α

Inverse of an equivalence e : α ≃ β.

def Equiv.Simps.symm_apply E0 #

{α : Sort u} → {β : Sort v} → α ≃ β → β → α

See Note [custom simps projection]

theorem Equiv.left_inv' E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), Function.LeftInverse ⇑e.symm ⇑e

Restatement of Equiv.left_inv in terms of Function.LeftInverse.

theorem Equiv.right_inv' E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), Function.RightInverse ⇑e.symm ⇑e

Restatement of Equiv.right_inv in terms of Function.RightInverse.

theorem Equiv.symm_mk E0 #

∀ {α : Sort u} {β : Sort v} (f : α → β) (g : β → α) (hl : Function.LeftInverse g f) (hr : Function.RightInverse g f),
  { toFun := f, invFun := g, left_inv := hl, right_inv := hr }.symm =
    { toFun := g, invFun := f, left_inv := hr, right_inv := hl }

def Equiv.trans E1 #

{α : Sort u} → {β : Sort v} → {γ : Sort w} → α ≃ β → β ≃ γ → α ≃ γ

Composition of equivalences e₁ : α ≃ β and e₂ : β ≃ γ.

theorem Equiv.trans_def E0 #

∀ {a : Sort u_2} {b : Sort u_1} {c : Sort u_3} (e₁ : a ≃ b) (e₂ : b ≃ c), Trans.trans e₁ e₂ = e₁.trans e₂

instance Equiv.instTrans E0 #

Trans Equiv Equiv Equiv

def Equiv.symmEquiv E1 #

(α : Sort u_1) → (β : Sort u_2) → α ≃ β ≃ (β ≃ α)

Equiv.symm defines an equivalence between α ≃ β and β ≃ α.

theorem Equiv.symmEquiv_apply_apply E0 #

∀ (α : Sort u_1) (β : Sort u_2) (e : α ≃ β) (a : β), ((Equiv.symmEquiv α β) e) a = e.invFun a

theorem Equiv.symmEquiv_symm_apply_apply E0 #

∀ (α : Sort u_1) (β : Sort u_2) (e : β ≃ α) (a : α), ((Equiv.symmEquiv α β).symm e) a = e.invFun a

theorem Equiv.symmEquiv_apply_symm_apply E0 #

∀ (α : Sort u_1) (β : Sort u_2) (e : α ≃ β) (a : α), ((Equiv.symmEquiv α β) e).symm a = e.toFun a

theorem Equiv.symmEquiv_symm_apply_symm_apply E0 #

∀ (α : Sort u_1) (β : Sort u_2) (e : β ≃ α) (a : β), ((Equiv.symmEquiv α β).symm e).symm a = e.toFun a

theorem Equiv.toFun_as_coe E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), e.toFun = ⇑e

theorem Equiv.invFun_as_coe E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), e.invFun = ⇑e.symm

theorem Equiv.injective E2 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), Function.Injective ⇑e

theorem Equiv.surjective E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), Function.Surjective ⇑e

theorem Equiv.bijective E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), Function.Bijective ⇑e

theorem Equiv.subsingleton E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β) [Subsingleton β], Subsingleton α

theorem Equiv.subsingleton.symm E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β) [Subsingleton α], Subsingleton β

theorem Equiv.subsingleton_congr E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), Subsingleton α ↔ Subsingleton β

instance Equiv.equiv_subsingleton_cod E0 #

∀ {α : Sort u} {β : Sort v} [Subsingleton β], Subsingleton (α ≃ β)

instance Equiv.equiv_subsingleton_dom E0 #

∀ {α : Sort u} {β : Sort v} [Subsingleton α], Subsingleton (α ≃ β)

instance Equiv.permUnique E0 #

{α : Sort u} → [Subsingleton α] → Unique (Equiv.Perm α)

theorem Equiv.Perm.subsingleton_eq_refl E1 #

∀ {α : Sort u} [Subsingleton α] (e : Equiv.Perm α), e = Equiv.refl α

theorem Equiv.nontrivial E1 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) [Nontrivial β], Nontrivial α

theorem Equiv.nontrivial_congr E1 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β), Nontrivial α ↔ Nontrivial β

abbrev Equiv.decidableEq E1 #

{α : Sort u} → {β : Sort v} → α ≃ β → [DecidableEq β] → DecidableEq α

Transfer DecidableEq across an equivalence.

theorem Equiv.nonempty_congr E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), Nonempty α ↔ Nonempty β

theorem Equiv.nonempty E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β) [Nonempty β], Nonempty α

abbrev Equiv.inhabited E1 #

{α : Sort u} → {β : Sort v} → [Inhabited β] → α ≃ β → Inhabited α

If α ≃ β and β is inhabited, then so is α.

abbrev Equiv.unique E1 #

{α : Sort u} → {β : Sort v} → [Unique β] → α ≃ β → Unique α

If α ≃ β and β is a singleton type, then so is α.

def Equiv.cast E1 #

{α β : Sort u_1} → α = β → α ≃ β

Equivalence between equal types.

theorem Equiv.coe_fn_symm_mk E0 #

∀ {α : Sort u} {β : Sort v} (f : α → β) (g : β → α) (l : Function.LeftInverse g f) (r : Function.RightInverse g f),
  ⇑{ toFun := f, invFun := g, left_inv := l, right_inv := r }.symm = g

theorem Equiv.coe_refl E0 #

∀ {α : Sort u}, ⇑(Equiv.refl α) = id

theorem Equiv.Perm.coe_subsingleton E0 #

∀ {α : Type u_1} [Subsingleton α] (e : Equiv.Perm α), ⇑e = id

This cannot be a simp lemmas as it incorrectly matches against e : α ≃ synonym α, when synonym α is semireducible. This makes a mess of Multiplicative.ofAdd etc.

theorem Equiv.refl_apply E0 #

∀ {α : Sort u} (x : α), (Equiv.refl α) x = x

theorem Equiv.coe_trans E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (f : α ≃ β) (g : β ≃ γ), ⇑(f.trans g) = ⇑g ∘ ⇑f

theorem Equiv.trans_apply E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (f : α ≃ β) (g : β ≃ γ) (a : α), (f.trans g) a = g (f a)

theorem Equiv.apply_symm_apply E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β) (x : β), e (e.symm x) = x

theorem Equiv.symm_apply_apply E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β) (x : α), e.symm (e x) = x

theorem Equiv.symm_comp_self E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), ⇑e.symm ∘ ⇑e = id

theorem Equiv.self_comp_symm E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), ⇑e ∘ ⇑e.symm = id

theorem EquivLike.apply_coe_symm_apply E0 #

∀ {α : Sort u} {β : Sort v} {F : Sort u_1} [inst : EquivLike F α β] (e : F) (x : β), e ((↑e).symm x) = x

theorem EquivLike.coe_symm_apply_apply E0 #

∀ {α : Sort u} {β : Sort v} {F : Sort u_1} [inst : EquivLike F α β] (e : F) (x : α), (↑e).symm (e x) = x

theorem EquivLike.coe_symm_comp_self E0 #

∀ {α : Sort u} {β : Sort v} {F : Sort u_1} [inst : EquivLike F α β] (e : F), ⇑(↑e).symm ∘ ⇑e = id

theorem EquivLike.self_comp_coe_symm E0 #

∀ {α : Sort u} {β : Sort v} {F : Sort u_1} [inst : EquivLike F α β] (e : F), ⇑e ∘ ⇑(↑e).symm = id

theorem Equiv.symm_trans_apply E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (f : α ≃ β) (g : β ≃ γ) (a : γ), (f.trans g).symm a = f.symm (g.symm a)

theorem Equiv.symm_trans E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (f : α ≃ β) (g : β ≃ γ), (f.trans g).symm = g.symm.trans f.symm

theorem Equiv.symm_symm_apply E0 #

∀ {α : Sort u} {β : Sort v} (f : α ≃ β) (b : α), f.symm.symm b = f b

theorem Equiv.apply_eq_iff_eq E0 #

∀ {α : Sort u} {β : Sort v} (f : α ≃ β) {x y : α}, f x = f y ↔ x = y

theorem Equiv.cast_apply E0 #

∀ {α β : Sort u_1} (h : α = β) (x : α), (Equiv.cast h) x = cast h x

theorem Equiv.cast_symm E1 #

∀ {α β : Sort u_1} (h : α = β), Equiv.cast ⋯ = (Equiv.cast h).symm

theorem Equiv.cast_refl E0 #

∀ {α : Sort u_1} (h : optParam (α = α) ⋯), Equiv.cast h = Equiv.refl α

theorem Equiv.cast_trans E1 #

∀ {α β γ : Sort u_1} (h : α = β) (h2 : β = γ), Equiv.cast ⋯ = (Equiv.cast h).trans (Equiv.cast h2)

theorem Equiv.cast_eq_iff_heq E1 #

∀ {α β : Sort u_1} (h : α = β) {a : α} {b : β}, (Equiv.cast h) a = b ↔ a ≍ b

theorem Equiv.symm_apply_eq E0 #

∀ {α : Sort u_1} {β : Sort u_2} (e : α ≃ β) {x : β} {y : α}, e.symm x = y ↔ x = e y

theorem Equiv.symm_symm E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), e.symm.symm = e

theorem Equiv.symm_bijective E1 #

∀ {α : Sort u} {β : Sort v}, Function.Bijective Equiv.symm

theorem Equiv.trans_refl E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), e.trans (Equiv.refl β) = e

theorem Equiv.refl_symm E0 #

∀ {α : Sort u}, (Equiv.refl α).symm = Equiv.refl α

theorem Equiv.refl_trans E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), (Equiv.refl α).trans e = e

theorem Equiv.symm_trans_self E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), e.symm.trans e = Equiv.refl β

theorem Equiv.self_trans_symm E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), e.trans e.symm = Equiv.refl α

theorem Equiv.trans_assoc E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} {δ : Sort u_1} (ab : α ≃ β) (bc : β ≃ γ) (cd : γ ≃ δ),
  (ab.trans bc).trans cd = ab.trans (bc.trans cd)

theorem Equiv.trans_cancel_left E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (e : α ≃ β) (f : β ≃ γ) (g : α ≃ γ), e.trans f = g ↔ f = e.symm.trans g

theorem Equiv.trans_cancel_right E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (e : α ≃ β) (f : β ≃ γ) (g : α ≃ γ), e.trans f = g ↔ e = g.trans f.symm

theorem Equiv.leftInverse_symm E1 #

∀ {α : Sort u} {β : Sort v} (f : α ≃ β), Function.LeftInverse ⇑f.symm ⇑f

theorem Equiv.rightInverse_symm E1 #

∀ {α : Sort u} {β : Sort v} (f : α ≃ β), Function.RightInverse ⇑f.symm ⇑f

theorem Equiv.injective_comp E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (e : α ≃ β) (f : β → γ), Function.Injective (f ∘ ⇑e) ↔ Function.Injective f

theorem Equiv.comp_injective E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (f : α → β) (e : β ≃ γ), Function.Injective (⇑e ∘ f) ↔ Function.Injective f

theorem Equiv.surjective_comp E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (e : α ≃ β) (f : β → γ), Function.Surjective (f ∘ ⇑e) ↔ Function.Surjective f

theorem Equiv.comp_surjective E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (f : α → β) (e : β ≃ γ), Function.Surjective (⇑e ∘ f) ↔ Function.Surjective f

theorem Equiv.bijective_comp E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (e : α ≃ β) (f : β → γ), Function.Bijective (f ∘ ⇑e) ↔ Function.Bijective f

theorem Equiv.comp_bijective E1 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (f : α → β) (e : β ≃ γ), Function.Bijective (⇑e ∘ f) ↔ Function.Bijective f

theorem Equiv.extend_apply E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} {f : α ≃ β} (g : α → γ) (e' : β → γ) (b : β),
  Function.extend (⇑f) g e' b = g (f.symm b)

def Equiv.equivCongr E1 #

{α : Sort u} → {β : Sort v} → {γ : Sort w} → {δ : Sort u_1} → α ≃ β → γ ≃ δ → α ≃ γ ≃ (β ≃ δ)

If α is equivalent to β and γ is equivalent to δ, then the type of equivalences α ≃ γ is equivalent to the type of equivalences β ≃ δ.

theorem Equiv.equivCongr_apply_apply E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} {δ : Sort u_1} (ab : α ≃ β) (cd : γ ≃ δ) (e : α ≃ γ) (x : β),
  ((ab.equivCongr cd) e) x = cd (e (ab.symm x))

theorem Equiv.equivCongr_symm E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} {δ : Sort u_1} (ab : α ≃ β) (cd : γ ≃ δ),
  (ab.equivCongr cd).symm = ab.symm.equivCongr cd.symm

theorem Equiv.equivCongr_refl E0 #

∀ {α : Sort u_1} {β : Sort u_2}, (Equiv.refl α).equivCongr (Equiv.refl β) = Equiv.refl (α ≃ β)

theorem Equiv.equivCongr_trans E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} {δ : Sort u_1} {ε : Sort u_2} {ζ : Sort u_3} (ab : α ≃ β) (de : δ ≃ ε)
  (bc : β ≃ γ) (ef : ε ≃ ζ), (ab.equivCongr de).trans (bc.equivCongr ef) = (ab.trans bc).equivCongr (de.trans ef)

theorem Equiv.equivCongr_refl_left E0 #

∀ {α : Sort u_1} {β : Sort u_2} {γ : Sort u_3} (bg : β ≃ γ) (e : α ≃ β), ((Equiv.refl α).equivCongr bg) e = e.trans bg

theorem Equiv.equivCongr_refl_right E0 #

∀ {α : Sort u_1} {β : Sort u_2} (ab e : α ≃ β), (ab.equivCongr (Equiv.refl β)) e = ab.symm.trans e

def Equiv.permCongr E1 #

{α' : Type u_1} → {β' : Type u_2} → α' ≃ β' → Equiv.Perm α' ≃ Equiv.Perm β'

If α is equivalent to β, then Perm α is equivalent to Perm β.

theorem Equiv.permCongr_def E0 #

∀ {α' : Type u_1} {β' : Type u_2} (e : α' ≃ β') (p : Equiv.Perm α'), e.permCongr p = (e.symm.trans p).trans e

theorem Equiv.permCongr_refl E0 #

∀ {α' : Type u_1} {β' : Type u_2} (e : α' ≃ β'), e.permCongr (Equiv.refl α') = Equiv.refl β'

theorem Equiv.permCongr_symm E0 #

∀ {α' : Type u_1} {β' : Type u_2} (e : α' ≃ β'), e.permCongr.symm = e.symm.permCongr

theorem Equiv.permCongr_apply E0 #

∀ {α' : Type u_1} {β' : Type u_2} (e : α' ≃ β') (p : Equiv.Perm α') (x : β'), (e.permCongr p) x = e (p (e.symm x))

theorem Equiv.permCongr_symm_apply E0 #

∀ {α' : Type u_1} {β' : Type u_2} (e : α' ≃ β') (p : Equiv.Perm β') (x : α'), (e.permCongr.symm p) x = e.symm (p (e x))

theorem Equiv.permCongr_trans E1 #

∀ {α' : Type u_1} {β' : Type u_2} (e : α' ≃ β') (p p' : Equiv.Perm α'),
  Equiv.trans (e.permCongr p) (e.permCongr p') = e.permCongr (Equiv.trans p p')

def Equiv.equivOfIsEmpty E1 #

(α : Sort u_1) → (β : Sort u_2) → [IsEmpty α] → [IsEmpty β] → α ≃ β

Two empty types are equivalent.

def Equiv.equivEmpty E1 #

(α : Sort u) → [IsEmpty α] → α ≃ Empty

If α is an empty type, then it is equivalent to the Empty type.

def Equiv.equivPEmpty E1 #

(α : Sort v) → [IsEmpty α] → α ≃ PEmpty.{u}

If α is an empty type, then it is equivalent to the PEmpty type in any universe.

def Equiv.equivEmptyEquiv E1 #

(α : Sort u) → α ≃ Empty ≃ IsEmpty α

α is equivalent to an empty type iff α is empty.

def Equiv.propEquivPEmpty E1 #

{p : Prop} → ¬p → p ≃ PEmpty.{u_1}

The Sort of proofs of a false proposition is equivalent to PEmpty.

def Equiv.ofUnique E1 #

(α : Sort u) → (β : Sort v) → [Unique α] → [Unique β] → α ≃ β

If both α and β have a unique element, then α ≃ β.

theorem Equiv.ofUnique_apply E0 #

∀ (α : Sort u) (β : Sort v) [inst : Unique α] [inst_1 : Unique β] (a : α), (Equiv.ofUnique α β) a = default a

theorem Equiv.ofUnique_symm_apply E0 #

∀ (α : Sort u) (β : Sort v) [inst : Unique α] [inst_1 : Unique β] (a : β), (Equiv.ofUnique α β).symm a = default a

def Equiv.equivPUnit E1 #

(α : Sort u) → [Unique α] → α ≃ PUnit.{v}

If α has a unique element, then it is equivalent to any PUnit.

theorem Equiv.equivPUnit_symm_apply E0 #

∀ (α : Sort u) [inst : Unique α] (a : PUnit.{v}), (Equiv.equivPUnit α).symm a = default

theorem Equiv.equivPUnit_apply E0 #

∀ (α : Sort u) [inst : Unique α] (a : α), (Equiv.equivPUnit α) a = PUnit.unit

def Equiv.propEquivPUnit E1 #

{p : Prop} → p → p ≃ PUnit.{0}

The Sort of proofs of a true proposition is equivalent to PUnit.

def Equiv.ulift E1 #

{α : Type v} → ULift.{u, v} α ≃ α

ULift α is equivalent to α.

theorem Equiv.ulift_apply E0 #

∀ {α : Type v}, ⇑Equiv.ulift = ULift.down

theorem Equiv.ulift_symm_apply E0 #

∀ {α : Type v}, ⇑Equiv.ulift.symm = ULift.up

def Equiv.plift E1 #

{α : Sort u} → PLift α ≃ α

PLift α is equivalent to α.

theorem Equiv.plift_apply E0 #

∀ {α : Sort u}, ⇑Equiv.plift = PLift.down

theorem Equiv.plift_symm_apply E0 #

∀ {α : Sort u}, ⇑Equiv.plift.symm = PLift.up

def Equiv.ofIff E1 #

{P Q : Prop} → (P ↔ Q) → P ≃ Q

equivalence of propositions is the same as iff

def Equiv.arrowCongr E1 #

{α₁ : Sort u_1} → {β₁ : Sort u_2} → {α₂ : Sort u_3} → {β₂ : Sort u_4} → α₁ ≃ α₂ → β₁ ≃ β₂ → (α₁ → β₁) ≃ (α₂ → β₂)

If α₁ is equivalent to α₂ and β₁ is equivalent to β₂, then the type of maps α₁ → β₁ is equivalent to the type of maps α₂ → β₂.

theorem Equiv.arrowCongr_apply E0 #

∀ {α₁ : Sort u_1} {β₁ : Sort u_2} {α₂ : Sort u_3} {β₂ : Sort u_4} (e₁ : α₁ ≃ α₂) (e₂ : β₁ ≃ β₂) (f : α₁ → β₁) (a : α₂),
  (e₁.arrowCongr e₂) f a = (⇑e₂ ∘ f ∘ ⇑e₁.symm) a

theorem Equiv.arrowCongr_comp E1 #

∀ {α₁ : Sort u_1} {β₁ : Sort u_2} {γ₁ : Sort u_3} {α₂ : Sort u_4} {β₂ : Sort u_5} {γ₂ : Sort u_6} (ea : α₁ ≃ α₂)
  (eb : β₁ ≃ β₂) (ec : γ₁ ≃ γ₂) (f : α₁ → β₁) (g : β₁ → γ₁),
  (ea.arrowCongr ec) (g ∘ f) = (eb.arrowCongr ec) g ∘ (ea.arrowCongr eb) f

theorem Equiv.arrowCongr_refl E0 #

∀ {α : Sort u_1} {β : Sort u_2}, (Equiv.refl α).arrowCongr (Equiv.refl β) = Equiv.refl (α → β)

theorem Equiv.arrowCongr_trans E0 #

∀ {α₁ : Sort u_1} {α₂ : Sort u_2} {α₃ : Sort u_3} {β₁ : Sort u_4} {β₂ : Sort u_5} {β₃ : Sort u_6} (e₁ : α₁ ≃ α₂)
  (e₁' : β₁ ≃ β₂) (e₂ : α₂ ≃ α₃) (e₂' : β₂ ≃ β₃),
  (e₁.trans e₂).arrowCongr (e₁'.trans e₂') = (e₁.arrowCongr e₁').trans (e₂.arrowCongr e₂')

theorem Equiv.arrowCongr_symm E0 #

∀ {α₁ : Sort u_1} {α₂ : Sort u_2} {β₁ : Sort u_3} {β₂ : Sort u_4} (e₁ : α₁ ≃ α₂) (e₂ : β₁ ≃ β₂),
  (e₁.arrowCongr e₂).symm = e₁.symm.arrowCongr e₂.symm

def Equiv.arrowCongr' E1 #

{α₁ : Type u_1} → {β₁ : Type u_2} → {α₂ : Type u_3} → {β₂ : Type u_4} → α₁ ≃ α₂ → β₁ ≃ β₂ → (α₁ → β₁) ≃ (α₂ → β₂)

A version of Equiv.arrowCongr in Type, rather than Sort.

The equiv_rw tactic is not able to use the default Sort level Equiv.arrowCongr, because Lean's universe rules will not unify ?l_1 with imax (1 ?m_1).

theorem Equiv.arrowCongr'_apply E0 #

∀ {α₁ : Type u_1} {β₁ : Type u_2} {α₂ : Type u_3} {β₂ : Type u_4} (hα : α₁ ≃ α₂) (hβ : β₁ ≃ β₂) (f : α₁ → β₁) (a : α₂),
  (hα.arrowCongr' hβ) f a = hβ (f (hα.symm a))

theorem Equiv.arrowCongr'_refl E0 #

∀ {α : Type u_1} {β : Type u_2}, (Equiv.refl α).arrowCongr' (Equiv.refl β) = Equiv.refl (α → β)

theorem Equiv.arrowCongr'_trans E0 #

∀ {α₁ : Type u_1} {α₂ : Type u_2} {β₁ : Type u_3} {β₂ : Type u_4} {α₃ : Type u_5} {β₃ : Type u_6} (e₁ : α₁ ≃ α₂)
  (e₁' : β₁ ≃ β₂) (e₂ : α₂ ≃ α₃) (e₂' : β₂ ≃ β₃),
  (e₁.trans e₂).arrowCongr' (e₁'.trans e₂') = (e₁.arrowCongr' e₁').trans (e₂.arrowCongr' e₂')

theorem Equiv.arrowCongr'_symm E0 #

∀ {α₁ : Type u_1} {α₂ : Type u_2} {β₁ : Type u_3} {β₂ : Type u_4} (e₁ : α₁ ≃ α₂) (e₂ : β₁ ≃ β₂),
  (e₁.arrowCongr' e₂).symm = e₁.symm.arrowCongr' e₂.symm

def Equiv.conj E1 #

{α : Sort u} → {β : Sort v} → α ≃ β → (α → α) ≃ (β → β)

Conjugate a map f : α → α by an equivalence α ≃ β.

theorem Equiv.conj_apply E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β) (f : α → α) (a : β), e.conj f a = e (f (e.symm a))

theorem Equiv.conj_refl E0 #

∀ {α : Sort u}, (Equiv.refl α).conj = Equiv.refl (α → α)

theorem Equiv.conj_symm E0 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β), e.conj.symm = e.symm.conj

theorem Equiv.conj_trans E0 #

∀ {α : Sort u} {β : Sort v} {γ : Sort w} (e₁ : α ≃ β) (e₂ : β ≃ γ), (e₁.trans e₂).conj = e₁.conj.trans e₂.conj

theorem Equiv.conj_comp E1 #

∀ {α : Sort u} {β : Sort v} (e : α ≃ β) (f₁ f₂ : α → α), e.conj (f₁ ∘ f₂) = e.conj f₁ ∘ e.conj f₂

theorem Equiv.comp_symm_eq E0 #

∀ {α : Sort u_1} {β : Sort u_2} {γ : Sort u_3} (e : α ≃ β) (f : β → γ) (g : α → γ), g ∘ ⇑e.symm = f ↔ g = f ∘ ⇑e

theorem Equiv.symm_comp_eq E0 #

∀ {α : Sort u_1} {β : Sort u_2} {γ : Sort u_3} (e : α ≃ β) (f : γ → α) (g : γ → β), ⇑e.symm ∘ g = f ↔ g = ⇑e ∘ f

theorem Equiv.trans_eq_refl_iff_eq_symm E1 #

∀ {α : Sort u} {β : Sort v} {f : α ≃ β} {g : β ≃ α}, f.trans g = Equiv.refl α ↔ f = g.symm

theorem Equiv.trans_eq_refl_iff_symm_eq E0 #

∀ {α : Sort u} {β : Sort v} {f : α ≃ β} {g : β ≃ α}, f.trans g = Equiv.refl α ↔ f.symm = g

theorem Equiv.symm_eq_iff_trans_eq_refl E1 #

∀ {α : Sort u} {β : Sort v} {f : α ≃ β} {g : β ≃ α}, f.symm = g ↔ f.trans g = Equiv.refl α

def Equiv.punitEquivPUnit E1 #

PUnit.{v} ≃ PUnit.{w}

PUnit sorts in any two universes are equivalent.

def Equiv.propEquivBool E1 #

Prop ≃ Bool

Prop is noncomputably equivalent to Bool.

def Equiv.arrowPUnitEquivPUnit E1 #

(α : Sort u_1) → (α → PUnit.{v}) ≃ PUnit.{w}

The sort of maps to PUnit.{v} is equivalent to PUnit.{w}.

def Equiv.piUnique E3 #

{α : Sort u} → [inst : Unique α] → (β : α → Sort u_1) → ((i : α) → β i) ≃ β default

The equivalence (∀ i, β i) ≃ β ⋆ when the domain of β only contains ⋆

theorem Equiv.piUnique_symm_apply E0 #

∀ {α : Sort u} [inst : Unique α] (β : α → Sort u_1), ⇑(Equiv.piUnique β).symm = uniqueElim

theorem Equiv.piUnique_apply E0 #

∀ {α : Sort u} [inst : Unique α] (β : α → Sort u_1), ⇑(Equiv.piUnique β) = fun f ↦ f default

def Equiv.funUnique E1 #

(α : Sort u) → (β : Sort u_1) → [Unique α] → (α → β) ≃ β

If α has a unique term, then the type of function α → β is equivalent to β.

theorem Equiv.funUnique_apply E0 #

∀ (α : Sort u) (β : Sort u_1) [inst : Unique α], ⇑(Equiv.funUnique α β) = fun f ↦ f default

theorem Equiv.funUnique_symm_apply E0 #

∀ (α : Sort u) (β : Sort u_1) [inst : Unique α], ⇑(Equiv.funUnique α β).symm = uniqueElim

def Equiv.punitArrowEquiv E1 #

(α : Sort u_1) → (PUnit.{u} → α) ≃ α

The sort of maps from PUnit is equivalent to the codomain.

def Equiv.trueArrowEquiv E1 #

(α : Sort u_1) → (True → α) ≃ α

The sort of maps from True is equivalent to the codomain.

def Equiv.arrowPUnitOfIsEmpty E1 #

(α : Sort u_1) → (β : Sort u_2) → [IsEmpty α] → (α → β) ≃ PUnit.{u}

The sort of maps from a type that IsEmpty is equivalent to PUnit.

def Equiv.emptyArrowEquivPUnit E1 #

(α : Sort u_1) → (Empty → α) ≃ PUnit.{u}

The sort of maps from Empty is equivalent to PUnit.

def Equiv.pemptyArrowEquivPUnit E1 #

(α : Sort u_1) → (PEmpty.{u_2} → α) ≃ PUnit.{u}

The sort of maps from PEmpty is equivalent to PUnit.

def Equiv.falseArrowEquivPUnit E1 #

(α : Sort u_1) → (False → α) ≃ PUnit.{u}

The sort of maps from False is equivalent to PUnit.

def Equiv.psigmaEquivSigma E1 #

{α : Type u_2} → (β : α → Type u_1) → (i : α) ×' β i ≃ (i : α) × β i

A PSigma-type is equivalent to the corresponding Sigma-type.

theorem Equiv.psigmaEquivSigma_apply E0 #

∀ {α : Type u_2} (β : α → Type u_1) (a : (i : α) ×' β i), (Equiv.psigmaEquivSigma β) a = ⟨a.fst, a.snd⟩

theorem Equiv.psigmaEquivSigma_symm_apply E0 #

∀ {α : Type u_2} (β : α → Type u_1) (a : (i : α) × β i), (Equiv.psigmaEquivSigma β).symm a = ⟨a.fst, a.snd⟩

def Equiv.psigmaEquivSigmaPLift E1 #

{α : Sort u_2} → (β : α → Sort u_1) → (i : α) ×' β i ≃ (i : PLift α) × PLift (β i.down)

A PSigma-type is equivalent to the corresponding Sigma-type.

theorem Equiv.psigmaEquivSigmaPLift_apply E0 #

∀ {α : Sort u_2} (β : α → Sort u_1) (a : (i : α) ×' β i),
  (Equiv.psigmaEquivSigmaPLift β) a = ⟨{ down := a.fst }, { down := a.snd }⟩

theorem Equiv.psigmaEquivSigmaPLift_symm_apply E0 #

∀ {α : Sort u_2} (β : α → Sort u_1) (a : (i : PLift α) × PLift (β i.down)),
  (Equiv.psigmaEquivSigmaPLift β).symm a = ⟨a.fst.down, a.snd.down⟩

def Equiv.psigmaCongrRight E1 #

{α : Sort u} → {β₁ : α → Sort u_1} → {β₂ : α → Sort u_2} → ((a : α) → β₁ a ≃ β₂ a) → (a : α) ×' β₁ a ≃ (a : α) ×' β₂ a

A family of equivalences Π a, β₁ a ≃ β₂ a generates an equivalence between Σ' a, β₁ a and Σ' a, β₂ a.

theorem Equiv.psigmaCongrRight_apply E0 #

∀ {α : Sort u} {β₁ : α → Sort u_1} {β₂ : α → Sort u_2} (F : (a : α) → β₁ a ≃ β₂ a) (a : (a : α) ×' β₁ a),
  (Equiv.psigmaCongrRight F) a = ⟨a.fst, (F a.fst) a.snd⟩

theorem Equiv.psigmaCongrRight_trans E1 #

∀ {α : Sort u_4} {β₁ : α → Sort u_1} {β₂ : α → Sort u_2} {β₃ : α → Sort u_3} (F : (a : α) → β₁ a ≃ β₂ a)
  (G : (a : α) → β₂ a ≃ β₃ a),
  (Equiv.psigmaCongrRight F).trans (Equiv.psigmaCongrRight G) = Equiv.psigmaCongrRight fun a ↦ (F a).trans (G a)

theorem Equiv.psigmaCongrRight_symm E1 #

∀ {α : Sort u_3} {β₁ : α → Sort u_1} {β₂ : α → Sort u_2} (F : (a : α) → β₁ a ≃ β₂ a),
  (Equiv.psigmaCongrRight F).symm = Equiv.psigmaCongrRight fun a ↦ (F a).symm

theorem Equiv.psigmaCongrRight_refl E0 #

∀ {α : Sort u_2} {β : α → Sort u_1}, (Equiv.psigmaCongrRight fun a ↦ Equiv.refl (β a)) = Equiv.refl ((a : α) ×' β a)

def Equiv.sigmaCongrRight E1 #

{α : Type u_3} → {β₁ : α → Type u_1} → {β₂ : α → Type u_2} → ((a : α) → β₁ a ≃ β₂ a) → (a : α) × β₁ a ≃ (a : α) × β₂ a

A family of equivalences Π a, β₁ a ≃ β₂ a generates an equivalence between Σ a, β₁ a and Σ a, β₂ a.

theorem Equiv.sigmaCongrRight_apply E0 #

∀ {α : Type u_3} {β₁ : α → Type u_1} {β₂ : α → Type u_2} (F : (a : α) → β₁ a ≃ β₂ a) (a : (a : α) × β₁ a),
  (Equiv.sigmaCongrRight F) a = ⟨a.fst, (F a.fst) a.snd⟩

theorem Equiv.sigmaCongrRight_trans E1 #

∀ {α : Type u_4} {β₁ : α → Type u_1} {β₂ : α → Type u_2} {β₃ : α → Type u_3} (F : (a : α) → β₁ a ≃ β₂ a)
  (G : (a : α) → β₂ a ≃ β₃ a),
  (Equiv.sigmaCongrRight F).trans (Equiv.sigmaCongrRight G) = Equiv.sigmaCongrRight fun a ↦ (F a).trans (G a)

theorem Equiv.sigmaCongrRight_symm E1 #

∀ {α : Type u_3} {β₁ : α → Type u_1} {β₂ : α → Type u_2} (F : (a : α) → β₁ a ≃ β₂ a),
  (Equiv.sigmaCongrRight F).symm = Equiv.sigmaCongrRight fun a ↦ (F a).symm

theorem Equiv.sigmaCongrRight_refl E0 #

∀ {α : Type u_2} {β : α → Type u_1}, (Equiv.sigmaCongrRight fun a ↦ Equiv.refl (β a)) = Equiv.refl ((a : α) × β a)

def Equiv.psigmaEquivSubtype E1 #

{α : Type v} → (P : α → Prop) → (i : α) ×' P i ≃ Subtype P

A PSigma with Prop fibers is equivalent to the subtype.

def Equiv.sigmaPLiftEquivSubtype E1 #

{α : Type v} → (P : α → Prop) → (i : α) × PLift (P i) ≃ Subtype P

A Sigma with PLift fibers is equivalent to the subtype.

def Equiv.sigmaULiftPLiftEquivSubtype E1 #

{α : Type v} → (P : α → Prop) → (i : α) × ULift.{u_1, 0} (PLift (P i)) ≃ Subtype P

A Sigma with fun i ↦ ULift (PLift (P i)) fibers is equivalent to { x // P x }. Variant of sigmaPLiftEquivSubtype.

abbrev Equiv.Perm.sigmaCongrRight E1 #

{α : Type u_1} → {β : α → Type u_2} → ((a : α) → Equiv.Perm (β a)) → Equiv.Perm ((a : α) × β a)

A family of permutations Π a, Perm (β a) generates a permutation Perm (Σ a, β₁ a).

theorem Equiv.Perm.sigmaCongrRight_trans E0 #

∀ {α : Type u_1} {β : α → Type u_2} (F G : (a : α) → Equiv.Perm (β a)),
  Equiv.trans (Equiv.Perm.sigmaCongrRight F) (Equiv.Perm.sigmaCongrRight G) =
    Equiv.Perm.sigmaCongrRight fun a ↦ Equiv.trans (F a) (G a)

theorem Equiv.Perm.sigmaCongrRight_symm E0 #

∀ {α : Type u_1} {β : α → Type u_2} (F : (a : α) → Equiv.Perm (β a)),
  Equiv.symm (Equiv.Perm.sigmaCongrRight F) = Equiv.Perm.sigmaCongrRight fun a ↦ Equiv.symm (F a)

theorem Equiv.Perm.sigmaCongrRight_refl E0 #

∀ {α : Type u_1} {β : α → Type u_2}, (Equiv.Perm.sigmaCongrRight fun a ↦ Equiv.refl (β a)) = Equiv.refl ((a : α) × β a)

def Equiv.functionSwap E1 #

(α : Sort u_1) → (β : Sort u_2) → (γ : α → β → Sort u_3) → ((a : α) → (b : β) → γ a b) ≃ ((b : β) → (a : α) → γ a b)

Function.swap as an equivalence.

theorem Equiv.functionSwap_apply E0 #

∀ (α : Sort u_1) (β : Sort u_2) (γ : α → β → Sort u_3), ⇑(Equiv.functionSwap α β γ) = Function.swap

theorem Equiv.functionSwap_symm_apply E0 #

∀ (α : Sort u_1) (β : Sort u_2) (γ : α → β → Sort u_3), ⇑(Equiv.functionSwap α β γ).symm = Function.swap

theorem Function.swap_bijective E1 #

∀ {α : Sort u_1} {β : Sort u_2} {γ : α → β → Sort u_3}, Function.Bijective Function.swap

def Equiv.sigmaCongrLeft E1 #

{α₁ : Type u_1} → {α₂ : Type u_2} → {β : α₂ → Type u_3} → (e : α₁ ≃ α₂) → (a : α₁) × β (e a) ≃ (a : α₂) × β a

An equivalence f : α₁ ≃ α₂ generates an equivalence between Σ a, β (f a) and Σ a, β a.

theorem Equiv.sigmaCongrLeft_apply E0 #

∀ {α₁ : Type u_1} {α₂ : Type u_2} {β : α₂ → Type u_3} (e : α₁ ≃ α₂) (a : (a : α₁) × β (e a)),
  e.sigmaCongrLeft a = ⟨e a.fst, a.snd⟩

def Equiv.sigmaCongrLeft' E1 #

{α₁ : Type u_1} → {α₂ : Type u_2} → {β : α₁ → Type u_3} → (f : α₁ ≃ α₂) → (a : α₁) × β a ≃ (a : α₂) × β (f.symm a)

Transporting a sigma type through an equivalence of the base

def Equiv.sigmaCongr E1 #

{α₁ : Type u_1} →
  {α₂ : Type u_2} →
    {β₁ : α₁ → Type u_3} → {β₂ : α₂ → Type u_4} → (f : α₁ ≃ α₂) → ((a : α₁) → β₁ a ≃ β₂ (f a)) → Sigma β₁ ≃ Sigma β₂

Transporting a sigma type through an equivalence of the base and a family of equivalences of matching fibers

def Equiv.sigmaEquivProd E1 #

(α : Type u_1) → (β : Type u_2) → (_ : α) × β ≃ α × β

Sigma type with a constant fiber is equivalent to the product.

theorem Equiv.sigmaEquivProd_symm_apply E0 #

∀ (α : Type u_1) (β : Type u_2) (a : α × β), (Equiv.sigmaEquivProd α β).symm a = ⟨a.1, a.2⟩

theorem Equiv.sigmaEquivProd_apply E0 #

∀ (α : Type u_1) (β : Type u_2) (a : (_ : α) × β), (Equiv.sigmaEquivProd α β) a = (a.fst, a.snd)

def Equiv.sigmaEquivProdOfEquiv E1 #

{α : Type u_1} → {β : Type u_2} → {β₁ : α → Type u_3} → ((a : α) → β₁ a ≃ β) → Sigma β₁ ≃ α × β

If each fiber of a Sigma type is equivalent to a fixed type, then the sigma type is equivalent to the product.

def Equiv.sigmaAssoc E1 #

{α : Type u_1} →
  {β : α → Type u_2} →
    (γ : (a : α) → β a → Type u_3) → (ab : (a : α) × β a) × γ ab.fst ab.snd ≃ (a : α) × (b : β a) × γ a b

The dependent product of types is associative up to an equivalence.

def Equiv.pSigmaAssoc E1 #

{α : Sort u_1} →
  {β : α → Sort u_2} →
    (γ : (a : α) → β a → Sort u_3) → (ab : (a : α) ×' β a) ×' γ ab.fst ab.snd ≃ (a : α) ×' (b : β a) ×' γ a b

The dependent product of sorts is associative up to an equivalence.

theorem Equiv.forall_congr_right E1 #

∀ {α : Sort u} {β : Sort v} {q : β → Prop} (e : α ≃ β), (∀ (a : α), q (e a)) ↔ ∀ (b : β), q b

theorem Equiv.forall_congr_left E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} (e : α ≃ β), (∀ (a : α), p a) ↔ ∀ (b : β), p (e.symm b)

theorem Equiv.forall_congr E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} {q : β → Prop} (e : α ≃ β),
  (∀ (a : α), p a ↔ q (e a)) → ((∀ (a : α), p a) ↔ ∀ (b : β), q b)

theorem Equiv.forall_congr' E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} {q : β → Prop} (e : α ≃ β),
  (∀ (b : β), p (e.symm b) ↔ q b) → ((∀ (a : α), p a) ↔ ∀ (b : β), q b)

theorem Equiv.exists_congr_right E1 #

∀ {α : Sort u} {β : Sort v} {q : β → Prop} (e : α ≃ β), (∃ a, q (e a)) ↔ ∃ b, q b

theorem Equiv.exists_congr_left E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} (e : α ≃ β), (∃ a, p a) ↔ ∃ b, p (e.symm b)

theorem Equiv.exists_congr E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} {q : β → Prop} (e : α ≃ β),
  (∀ (a : α), p a ↔ q (e a)) → ((∃ a, p a) ↔ ∃ b, q b)

theorem Equiv.exists_congr' E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} {q : β → Prop} (e : α ≃ β),
  (∀ (b : β), p (e.symm b) ↔ q b) → ((∃ a, p a) ↔ ∃ b, q b)

theorem Equiv.exists_subtype_congr E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} {q : β → Prop} (e : { a // p a } ≃ { b // q b }), (∃ a, p a) ↔ ∃ b, q b

theorem Equiv.existsUnique_congr_right E1 #

∀ {α : Sort u} {β : Sort v} {q : β → Prop} (e : α ≃ β), (∃! a, q (e a)) ↔ ∃! b, q b

theorem Equiv.existsUnique_congr_left E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} (e : α ≃ β), (∃! a, p a) ↔ ∃! b, p (e.symm b)

theorem Equiv.existsUnique_congr E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} {q : β → Prop} (e : α ≃ β),
  (∀ (a : α), p a ↔ q (e a)) → ((∃! a, p a) ↔ ∃! b, q b)

theorem Equiv.existsUnique_congr' E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} {q : β → Prop} (e : α ≃ β),
  (∀ (b : β), p (e.symm b) ↔ q b) → ((∃! a, p a) ↔ ∃! b, q b)

theorem Equiv.existsUnique_subtype_congr E1 #

∀ {α : Sort u} {β : Sort v} {p : α → Prop} {q : β → Prop} (e : { a // p a } ≃ { b // q b }), (∃! a, p a) ↔ ∃! b, q b

theorem Equiv.forall₂_congr E1 #

∀ {α₁ : Sort u_1} {α₂ : Sort u_2} {β₁ : Sort u_3} {β₂ : Sort u_4} {p : α₁ → β₁ → Prop} {q : α₂ → β₂ → Prop}
  (eα : α₁ ≃ α₂) (eβ : β₁ ≃ β₂),
  (∀ {x : α₁} {y : β₁}, p x y ↔ q (eα x) (eβ y)) → ((∀ (x : α₁) (y : β₁), p x y) ↔ ∀ (x : α₂) (y : β₂), q x y)

theorem Equiv.forall₂_congr' E1 #

∀ {α₁ : Sort u_1} {α₂ : Sort u_2} {β₁ : Sort u_3} {β₂ : Sort u_4} {p : α₁ → β₁ → Prop} {q : α₂ → β₂ → Prop}
  (eα : α₁ ≃ α₂) (eβ : β₁ ≃ β₂),
  (∀ {x : α₂} {y : β₂}, p (eα.symm x) (eβ.symm y) ↔ q x y) → ((∀ (x : α₁) (y : β₁), p x y) ↔ ∀ (x : α₂) (y : β₂), q x y)

theorem Equiv.forall₃_congr E1 #

∀ {α₁ : Sort u_1} {α₂ : Sort u_2} {β₁ : Sort u_3} {β₂ : Sort u_4} {γ₁ : Sort u_5} {γ₂ : Sort u_6}
  {p : α₁ → β₁ → γ₁ → Prop} {q : α₂ → β₂ → γ₂ → Prop} (eα : α₁ ≃ α₂) (eβ : β₁ ≃ β₂) (eγ : γ₁ ≃ γ₂),
  (∀ {x : α₁} {y : β₁} {z : γ₁}, p x y z ↔ q (eα x) (eβ y) (eγ z)) →
    ((∀ (x : α₁) (y : β₁) (z : γ₁), p x y z) ↔ ∀ (x : α₂) (y : β₂) (z : γ₂), q x y z)

theorem Equiv.forall₃_congr' E1 #

∀ {α₁ : Sort u_1} {α₂ : Sort u_2} {β₁ : Sort u_3} {β₂ : Sort u_4} {γ₁ : Sort u_5} {γ₂ : Sort u_6}
  {p : α₁ → β₁ → γ₁ → Prop} {q : α₂ → β₂ → γ₂ → Prop} (eα : α₁ ≃ α₂) (eβ : β₁ ≃ β₂) (eγ : γ₁ ≃ γ₂),
  (∀ {x : α₂} {y : β₂} {z : γ₂}, p (eα.symm x) (eβ.symm y) (eγ.symm z) ↔ q x y z) →
    ((∀ (x : α₁) (y : β₁) (z : γ₁), p x y z) ↔ ∀ (x : α₂) (y : β₂) (z : γ₂), q x y z)

def Equiv.ofBijective E1 #

{α : Sort u} → {β : Sort v} → (f : α → β) → Function.Bijective f → α ≃ β

If f is a bijective function, then its domain is equivalent to its codomain.

theorem Equiv.ofBijective_apply E0 #

∀ {α : Sort u} {β : Sort v} (f : α → β) (hf : Function.Bijective f) (a : α), (Equiv.ofBijective f hf) a = f a

theorem Equiv.coe_ofBijective E0 #

∀ {α : Sort u} {β : Sort v} (f : α → β) (hf : Function.Bijective f), ⇑(Equiv.ofBijective f hf) = f

theorem Equiv.ofBijective_coe E0 #

∀ {α : Sort u} {β : Sort v} {f : α ≃ β}, Equiv.ofBijective ⇑f ⋯ = f

theorem Equiv.ofBijective_apply_symm_apply E0 #

∀ {α : Sort u} {β : Sort v} (f : α → β) (hf : Function.Bijective f) (x : β), f ((Equiv.ofBijective f hf).symm x) = x

theorem Equiv.ofBijective_symm_apply_apply E0 #

∀ {α : Sort u} {β : Sort v} (f : α → β) (hf : Function.Bijective f) (x : α), (Equiv.ofBijective f hf).symm (f x) = x

def Equiv.bijectiveEquiv E1 #

{α : Sort u} → {β : Sort v} → { f // Function.Bijective f } ≃ (α ≃ β)

Bijective functions are equivalent to equivalences.

theorem Equiv.bijectiveEquiv_symm_apply_coe E0 #

∀ {α : Sort u} {β : Sort v} (f : α ≃ β) (a : α), ↑(Equiv.bijectiveEquiv.symm f) a = f a

theorem Equiv.bijectiveEquiv_apply E0 #

∀ {α : Sort u} {β : Sort v} (f : { f // Function.Bijective f }), Equiv.bijectiveEquiv f = Equiv.ofBijective ↑f ⋯

def Quot.congr E1 #

{α : Sort u} →
  {β : Sort v} →
    {ra : α → α → Prop} →
      {rb : β → β → Prop} → (e : α ≃ β) → (∀ (a₁ a₂ : α), ra a₁ a₂ ↔ rb (e a₁) (e a₂)) → Quot ra ≃ Quot rb

An equivalence e : α ≃ β generates an equivalence between quotient spaces, if ra a₁ a₂ ↔ rb (e a₁) (e a₂).

theorem Quot.congr_mk E0 #

∀ {α : Sort u} {β : Sort v} {ra : α → α → Prop} {rb : β → β → Prop} (e : α ≃ β)
  (eq : ∀ (a₁ a₂ : α), ra a₁ a₂ ↔ rb (e a₁) (e a₂)) (a : α), (Quot.congr e eq) (Quot.mk ra a) = Quot.mk rb (e a)

def Quot.congrRight E1 #

{α : Sort u} → {r r' : α → α → Prop} → (∀ (a₁ a₂ : α), r a₁ a₂ ↔ r' a₁ a₂) → Quot r ≃ Quot r'

Quotients are congruent on equivalences under equality of their relation. An alternative is just to use rewriting with eq, but then computational proofs get stuck.

def Quot.congrLeft E1 #

{α : Sort u} → {β : Sort v} → {r : α → α → Prop} → (e : α ≃ β) → Quot r ≃ Quot fun b b' ↦ r (e.symm b) (e.symm b')

An equivalence e : α ≃ β generates an equivalence between the quotient space of α by a relation ra and the quotient space of β by the image of this relation under e.

def Quotient.congr E1 #

{α : Sort u} →
  {β : Sort v} →
    {ra : Setoid α} →
      {rb : Setoid β} → (e : α ≃ β) → (∀ (a₁ a₂ : α), ra a₁ a₂ ↔ rb (e a₁) (e a₂)) → Quotient ra ≃ Quotient rb

An equivalence e : α ≃ β generates an equivalence between quotient spaces, if ra a₁ a₂ ↔ rb (e a₁) (e a₂).

theorem Quotient.congr_mk E0 #

∀ {α : Sort u} {β : Sort v} {ra : Setoid α} {rb : Setoid β} (e : α ≃ β)
  (eq : ∀ (a₁ a₂ : α), ra a₁ a₂ ↔ rb (e a₁) (e a₂)) (a : α), (Quotient.congr e eq) ⟦a⟧ = ⟦e a⟧

def Quotient.congrRight E1 #

{α : Sort u} → {r r' : Setoid α} → (∀ (a₁ a₂ : α), r a₁ a₂ ↔ r' a₁ a₂) → Quotient r ≃ Quotient r'

Quotients are congruent on equivalences under equality of their relation. An alternative is just to use rewriting with eq, but then computational proofs get stuck.

def finZeroEquiv E1 #

Fin 0 ≃ Empty

Equivalence between Fin 0 and Empty.

def finZeroEquiv' E1 #

Fin 0 ≃ PEmpty.{u}

Equivalence between Fin 0 and PEmpty.

def finOneEquiv E1 #

Fin 1 ≃ Unit

Equivalence between Fin 1 and Unit.

def finTwoEquiv E1 #

Fin 2 ≃ Bool

Equivalence between Fin 2 and Bool.

def Equiv.sumIsLeft E1 #

{α : Type u_1} → {β : Type u_2} → { x // x.isLeft = true } ≃ α

The left summand of α ⊕ β is equivalent to α.

theorem Equiv.sumIsLeft_symm_apply_coe E0 #

∀ {α : Type u_1} {β : Type u_2} (a : α), ↑(Equiv.sumIsLeft.symm a) = Sum.inl a

theorem Equiv.sumIsLeft_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (x : { x // x.isLeft = true }), Equiv.sumIsLeft x = (↑x).getLeft ⋯

def Equiv.sumIsRight E1 #

{α : Type u_1} → {β : Type u_2} → { x // x.isRight = true } ≃ β

The right summand of α ⊕ β is equivalent to β.

theorem Equiv.sumIsRight_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (x : { x // x.isRight = true }), Equiv.sumIsRight x = (↑x).getRight ⋯

theorem Equiv.sumIsRight_symm_apply_coe E0 #

∀ {α : Type u_1} {β : Type u_2} (b : β), ↑(Equiv.sumIsRight.symm b) = Sum.inr b

abbrev Equiv.le E1 #

{α : Type u_1} → {β : Type u_2} → α ≃ β → [LE β] → LE α

Transfer LE across an Equiv.

theorem Equiv.le_def E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) [inst : LE β] (a b : α), e a ≤ e b ↔ a ≤ b

abbrev Equiv.lt E1 #

{α : Type u_1} → {β : Type u_2} → α ≃ β → [LT β] → LT α

Transfer LT across an Equiv.

theorem Equiv.lt_def E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) [inst : LT β] (a b : α), e a < e b ↔ a < b

abbrev Equiv.max E1 #

{α : Type u_1} → {β : Type u_2} → α ≃ β → [Max β] → Max α

Transfer Max across an Equiv.

theorem Equiv.max_def E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) [inst : Max β] (a b : α), a ⊔ b = e.symm (e a ⊔ e b)

abbrev Equiv.min E1 #

{α : Type u_1} → {β : Type u_2} → α ≃ β → [Min β] → Min α

Transfer Min across an Equiv.

theorem Equiv.min_def E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) [inst : Min β] (a b : α), a ⊓ b = e.symm (e a ⊓ e b)

abbrev Equiv.ord E1 #

{α : Type u_1} → {β : Type u_2} → α ≃ β → [Ord β] → Ord α

Transfer Ord across an Equiv.

theorem Equiv.ord_def E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) [inst : Ord β] (a b : α), compare a b = compare (e a) (e b)

Deprecated aliases

NameNew nameSince
Equiv.apply_eq_iff_eq_symm_applyEquiv.eq_symm_apply2026-07-26