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

237 declarations and 2 deprecated aliases. Mathlib docs · Source

Partial equivalences

This file defines equivalences between subsets of given types. An element e of PartialEquiv α β is made of two maps e.toFun and e.invFun respectively from α to β and from β to α (just like equivs), which are inverse to each other on the subsets e.source and e.target of respectively α and β.

They are designed in particular to define charts on manifolds.

The main functionality is e.trans f, which composes the two partial equivalences by restricting the source and target to the maximal set where the composition makes sense.

As for equivs, we register a coercion to functions and use it in our simp normal form: we write e x and e.symm y instead of e.toFun x and e.invFun y.

Main definitions

  • Equiv.toPartialEquiv: associating a partial equiv to an equiv, with source = target = univ
  • PartialEquiv.symm: the inverse of a partial equivalence
  • PartialEquiv.trans: the composition of two partial equivalences
  • PartialEquiv.refl: the identity partial equivalence
  • PartialEquiv.ofSet: the identity on a set s
  • EqOnSource: equivalence relation describing the "right" notion of equality for partial equivalences (see below in implementation notes)

Implementation notes

There are at least three possible implementations of partial equivalences:

  • equivs on subtypes
  • pairs of functions taking values in Option α and Option β, equal to none where the partial equivalence is not defined
  • pairs of functions defined everywhere, keeping the source and target as additional data

Each of these implementations has pros and cons.

  • When dealing with subtypes, one still need to define additional API for composition and restriction of domains. Checking that one always belongs to the right subtype makes things very tedious, and leads quickly to DTT hell (as the subtype u ∩ v is not the "same" as v ∩ u, for instance).
  • With option-valued functions, the composition is very neat (it is just the usual composition, and the domain is restricted automatically). These are implemented in PEquiv.lean. For manifolds, where one wants to discuss thoroughly the smoothness of the maps, this creates however a lot of overhead as one would need to extend all classes of smoothness to option-valued maps.
  • The PartialEquiv version as explained above is easier to use for manifolds. The drawback is that there is extra useless data (the values of toFun and invFun outside of source and target). In particular, the equality notion between partial equivs is not "the right one", i.e., coinciding source and target and equality there. Moreover, there are no partial equivs in this sense between an empty type and a nonempty type. Since empty types are not that useful, and since one almost never needs to talk about equal partial equivs, this is not an issue in practice. Still, we introduce an equivalence relation EqOnSource that captures this right notion of equality, and show that many properties are invariant under this equivalence relation.

Local coding conventions

If a lemma deals with the intersection of a set with either source or target of a PartialEquiv, then it should use e.source ∩ s or e.target ∩ t, not s ∩ e.source or t ∩ e.target.

Implementation of the mfld_set_tac tactic for working with the domains of partially-defined functions (PartialEquiv, OpenPartialHomeomorph, etc).

This is in a separate file from Mathlib/Tactic/Attr/Register.lean because attributes need a new file to become functional.

theorem PartialEquiv.mk.injEq E0 #

∀ {α : Type u_5} {β : Type u_6} (toFun : α → β) (invFun : β → α) (source : Set α) (target : Set β)
  (map_source' : ∀ ⦃x : α⦄, x ∈ source → toFun x ∈ target) (map_target' : ∀ ⦃x : β⦄, x ∈ target → invFun x ∈ source)
  (left_inv' : ∀ ⦃x : α⦄, x ∈ source → invFun (toFun x) = x) (right_inv' : ∀ ⦃x : β⦄, x ∈ target → toFun (invFun x) = x)
  (toFun_1 : α → β) (invFun_1 : β → α) (source_1 : Set α) (target_1 : Set β)
  (map_source'_1 : ∀ ⦃x : α⦄, x ∈ source_1 → toFun_1 x ∈ target_1)
  (map_target'_1 : ∀ ⦃x : β⦄, x ∈ target_1 → invFun_1 x ∈ source_1)
  (left_inv'_1 : ∀ ⦃x : α⦄, x ∈ source_1 → invFun_1 (toFun_1 x) = x)
  (right_inv'_1 : ∀ ⦃x : β⦄, x ∈ target_1 → toFun_1 (invFun_1 x) = x),
  ({ toFun := toFun, invFun := invFun, source := source, target := target, map_source' := map_source',
        map_target' := map_target', left_inv' := left_inv', right_inv' := right_inv' } =
      { toFun := toFun_1, invFun := invFun_1, source := source_1, target := target_1, map_source' := map_source'_1,
        map_target' := map_target'_1, left_inv' := left_inv'_1, right_inv' := right_inv'_1 }) =
    (toFun = toFun_1 ∧ invFun = invFun_1 ∧ source = source_1 ∧ target = target_1)

theorem PartialEquiv.mk.congr_simp E1 #

∀ {α : Type u_5} {β : Type u_6} (toFun toFun_1 : α → β) (e_toFun : toFun = toFun_1) (invFun invFun_1 : β → α)
  (e_invFun : invFun = invFun_1) (source source_1 : Set α) (e_source : source = source_1) (target target_1 : Set β)
  (e_target : target = target_1) (map_source' : ∀ ⦃x : α⦄, x ∈ source → toFun x ∈ target)
  (map_target' : ∀ ⦃x : β⦄, x ∈ target → invFun x ∈ source) (left_inv' : ∀ ⦃x : α⦄, x ∈ source → invFun (toFun x) = x)
  (right_inv' : ∀ ⦃x : β⦄, x ∈ target → toFun (invFun x) = x),
  { toFun := toFun, invFun := invFun, source := source, target := target, map_source' := map_source',
      map_target' := map_target', left_inv' := left_inv', right_inv' := right_inv' } =
    { toFun := toFun_1, invFun := invFun_1, source := source_1, target := target_1, map_source' := ⋯, map_target' := ⋯,
      left_inv' := ⋯, right_inv' := ⋯ }

theorem PartialEquiv.mk.inj E1 #

∀ {α : Type u_5} {β : Type u_6} {toFun : α → β} {invFun : β → α} {source : Set α} {target : Set β}
  {map_source' : ∀ ⦃x : α⦄, x ∈ source → toFun x ∈ target} {map_target' : ∀ ⦃x : β⦄, x ∈ target → invFun x ∈ source}
  {left_inv' : ∀ ⦃x : α⦄, x ∈ source → invFun (toFun x) = x} {right_inv' : ∀ ⦃x : β⦄, x ∈ target → toFun (invFun x) = x}
  {toFun_1 : α → β} {invFun_1 : β → α} {source_1 : Set α} {target_1 : Set β}
  {map_source'_1 : ∀ ⦃x : α⦄, x ∈ source_1 → toFun_1 x ∈ target_1}
  {map_target'_1 : ∀ ⦃x : β⦄, x ∈ target_1 → invFun_1 x ∈ source_1}
  {left_inv'_1 : ∀ ⦃x : α⦄, x ∈ source_1 → invFun_1 (toFun_1 x) = x}
  {right_inv'_1 : ∀ ⦃x : β⦄, x ∈ target_1 → toFun_1 (invFun_1 x) = x},
  { toFun := toFun, invFun := invFun, source := source, target := target, map_source' := map_source',
        map_target' := map_target', left_inv' := left_inv', right_inv' := right_inv' } =
      { toFun := toFun_1, invFun := invFun_1, source := source_1, target := target_1, map_source' := map_source'_1,
        map_target' := map_target'_1, left_inv' := left_inv'_1, right_inv' := right_inv'_1 } →
    toFun = toFun_1 ∧ invFun = invFun_1 ∧ source = source_1 ∧ target = target_1

theorem Equiv.toPartialEquivOfImageEq.congr_simp E1 #

∀ {α : Type u_1} {β : Type u_2} (e e_1 : α ≃ β) (e_e : e = e_1) (s s_1 : Set α) (e_s : s = s_1) (t t_1 : Set β)
  (e_t : t = t_1) (h : ⇑e '' s = t), e.toPartialEquivOfImageEq s t h = e_1.toPartialEquivOfImageEq s_1 t_1 ⋯

def PartialEquiv.ctorIdx E1 #

{α : Type u_5} → {β : Type u_6} → PartialEquiv α β → ℕ

def Mathlib.Tactic.MfldSetTac.mfldSetTac E1 #

Lean.ParserDescr

A very basic tactic to show that sets showing up in manifolds coincide or are included in one another.

structure PartialEquiv E3 #

Type u_5 → Type u_6 → Type (max u_5 u_6)

Local equivalence between subsets source and target of α and β respectively. The (global) maps toFun : α → β and invFun : β → α map source to target and conversely, and are inverse to each other there. The values of toFun outside of source and of invFun outside of target are irrelevant.

ctor PartialEquiv.mk E0 #

{α : Type u_5} →
  {β : Type u_6} →
    (toFun : α → β) →
      (invFun : β → α) →
        (source : Set α) →
          (target : Set β) →
            (∀ ⦃x : α⦄, x ∈ source → toFun x ∈ target) →
              (∀ ⦃x : β⦄, x ∈ target → invFun x ∈ source) →
                (∀ ⦃x : α⦄, x ∈ source → invFun (toFun x) = x) →
                  (∀ ⦃x : β⦄, x ∈ target → toFun (invFun x) = x) → PartialEquiv α β

abbrev PartialEquiv.toFun E1 #

{α : Type u_5} → {β : Type u_6} → PartialEquiv α β → α → β

The global function which has a partial inverse. Its value outside of the source subset is irrelevant.

abbrev PartialEquiv.invFun E1 #

{α : Type u_5} → {β : Type u_6} → PartialEquiv α β → β → α

The partial inverse to toFun. Its value outside of the target subset is irrelevant.

abbrev PartialEquiv.source E1 #

{α : Type u_5} → {β : Type u_6} → PartialEquiv α β → Set α

The domain of the partial equivalence.

abbrev PartialEquiv.target E1 #

{α : Type u_5} → {β : Type u_6} → PartialEquiv α β → Set β

The codomain of the partial equivalence.

theorem PartialEquiv.map_source' E0 #

∀ {α : Type u_5} {β : Type u_6} (self : PartialEquiv α β) ⦃x : α⦄, x ∈ self.source → ↑self x ∈ self.target

The proposition that elements of source are mapped to elements of target.

theorem PartialEquiv.map_target' E0 #

∀ {α : Type u_5} {β : Type u_6} (self : PartialEquiv α β) ⦃x : β⦄, x ∈ self.target → self.invFun x ∈ self.source

The proposition that elements of target are mapped to elements of source.

theorem PartialEquiv.left_inv' E1 #

∀ {α : Type u_5} {β : Type u_6} (self : PartialEquiv α β) ⦃x : α⦄, x ∈ self.source → self.invFun (↑self x) = x

The proposition that invFun is a left-inverse of toFun on source.

theorem PartialEquiv.right_inv' E1 #

∀ {α : Type u_5} {β : Type u_6} (self : PartialEquiv α β) ⦃x : β⦄, x ∈ self.target → ↑self (self.invFun x) = x

The proposition that invFun is a right-inverse of toFun on target.

instance PartialEquiv.instInhabited E0 #

{α : Type u_1} → {β : Type u_2} → [Inhabited α] → [Inhabited β] → Inhabited (PartialEquiv α β)

def PartialEquiv.symm E3 #

{α : Type u_1} → {β : Type u_2} → PartialEquiv α β → PartialEquiv β α

The inverse of a partial equivalence

instance PartialEquiv.instCoeFunForall E0 #

{α : Type u_1} → {β : Type u_2} → CoeFun (PartialEquiv α β) fun x ↦ α → β

def PartialEquiv.Simps.symm_apply E0 #

{α : Type u_1} → {β : Type u_2} → PartialEquiv α β → β → α

See Note [custom simps projection]

theorem PartialEquiv.coe_mk E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (g : β → α) (s : Set α) (t : Set β) (ml : ∀ ⦃x : α⦄, x ∈ s → f x ∈ t)
  (mr : ∀ ⦃x : β⦄, x ∈ t → g x ∈ s) (il : ∀ ⦃x : α⦄, x ∈ s → g (f x) = x) (ir : ∀ ⦃x : β⦄, x ∈ t → f (g x) = x),
  ↑{ toFun := f, invFun := g, source := s, target := t, map_source' := ml, map_target' := mr, left_inv' := il,
        right_inv' := ir } =
    f

theorem PartialEquiv.coe_symm_mk E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (g : β → α) (s : Set α) (t : Set β) (ml : ∀ ⦃x : α⦄, x ∈ s → f x ∈ t)
  (mr : ∀ ⦃x : β⦄, x ∈ t → g x ∈ s) (il : ∀ ⦃x : α⦄, x ∈ s → g (f x) = x) (ir : ∀ ⦃x : β⦄, x ∈ t → f (g x) = x),
  ↑{ toFun := f, invFun := g, source := s, target := t, map_source' := ml, map_target' := mr, left_inv' := il,
          right_inv' := ir }.symm =
    g

theorem PartialEquiv.invFun_as_coe E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.invFun = ↑e.symm

theorem PartialEquiv.map_source E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {x : α}, x ∈ e.source → ↑e x ∈ e.target

theorem PartialEquiv.image_source_subset E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), ↑e '' e.source ⊆ e.target

Variant of e.map_source and map_source', stated for images of subsets of source.

theorem PartialEquiv.map_target E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {x : β}, x ∈ e.target → ↑e.symm x ∈ e.source

theorem PartialEquiv.left_inv E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {x : α}, x ∈ e.source → ↑e.symm (↑e x) = x

theorem PartialEquiv.right_inv E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {x : β}, x ∈ e.target → ↑e (↑e.symm x) = x

theorem PartialEquiv.target_subset_range E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.target ⊆ Set.range ↑e

theorem PartialEquiv.symm_apply_eq E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {x : α} {y : β},
  x ∈ e.source → y ∈ e.target → (↑e.symm y = x ↔ y = ↑e x)

theorem PartialEquiv.mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), Set.MapsTo (↑e) e.source e.target

theorem PartialEquiv.mapsTo_symm E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), Set.MapsTo (↑e.symm) e.target e.source

theorem PartialEquiv.leftInvOn E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), Set.LeftInvOn (↑e.symm) (↑e) e.source

theorem PartialEquiv.rightInvOn E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), Set.RightInvOn (↑e.symm) (↑e) e.target

theorem PartialEquiv.invOn E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), Set.InvOn (↑e.symm) (↑e) e.source e.target

theorem PartialEquiv.injOn E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), Set.InjOn (↑e) e.source

theorem PartialEquiv.bijOn E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), Set.BijOn (↑e) e.source e.target

theorem PartialEquiv.surjOn E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), Set.SurjOn (↑e) e.source e.target

def Equiv.toPartialEquivOfImageEq E1 #

{α : Type u_1} → {β : Type u_2} → (e : α ≃ β) → (s : Set α) → (t : Set β) → ⇑e '' s = t → PartialEquiv α β

Interpret an Equiv as a PartialEquiv by restricting it to s in the domain and to t in the codomain.

theorem Equiv.toPartialEquivOfImageEq_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (s : Set α) (t : Set β) (h : ⇑e '' s = t),
  ↑(e.toPartialEquivOfImageEq s t h).symm = ⇑e.symm

theorem Equiv.toPartialEquivOfImageEq_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (s : Set α) (t : Set β) (h : ⇑e '' s = t),
  ↑(e.toPartialEquivOfImageEq s t h) = ⇑e

theorem Equiv.toPartialEquivOfImageEq_target E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (s : Set α) (t : Set β) (h : ⇑e '' s = t),
  (e.toPartialEquivOfImageEq s t h).target = t

theorem Equiv.toPartialEquivOfImageEq_source E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) (s : Set α) (t : Set β) (h : ⇑e '' s = t),
  (e.toPartialEquivOfImageEq s t h).source = s

def Equiv.toPartialEquiv E3 #

{α : Type u_1} → {β : Type u_2} → α ≃ β → PartialEquiv α β

Associate a PartialEquiv to an Equiv.

theorem Equiv.toPartialEquiv_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β), ↑e.toPartialEquiv = ⇑e

theorem Equiv.toPartialEquiv_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β), ↑e.toPartialEquiv.symm = ⇑e.symm

theorem Equiv.toPartialEquiv_target E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β), e.toPartialEquiv.target = Set.univ

theorem Equiv.toPartialEquiv_source E0 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β), e.toPartialEquiv.source = Set.univ

instance PartialEquiv.inhabitedOfEmpty E0 #

{α : Type u_1} → {β : Type u_2} → [IsEmpty α] → [IsEmpty β] → Inhabited (PartialEquiv α β)

def PartialEquiv.copy E1 #

{α : Type u_1} →
  {β : Type u_2} →
    (e : PartialEquiv α β) →
      (f : α → β) →
        ↑e = f → (g : β → α) → ↑e.symm = g → (s : Set α) → e.source = s → (t : Set β) → e.target = t → PartialEquiv α β

Create a copy of a PartialEquiv providing better definitional equalities.

theorem PartialEquiv.copy_target E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (f : α → β) (hf : ↑e = f) (g : β → α) (hg : ↑e.symm = g)
  (s : Set α) (hs : e.source = s) (t : Set β) (ht : e.target = t), (e.copy f hf g hg s hs t ht).target = t

theorem PartialEquiv.copy_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (f : α → β) (hf : ↑e = f) (g : β → α) (hg : ↑e.symm = g)
  (s : Set α) (hs : e.source = s) (t : Set β) (ht : e.target = t), ↑(e.copy f hf g hg s hs t ht) = f

theorem PartialEquiv.copy_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (f : α → β) (hf : ↑e = f) (g : β → α) (hg : ↑e.symm = g)
  (s : Set α) (hs : e.source = s) (t : Set β) (ht : e.target = t), ↑(e.copy f hf g hg s hs t ht).symm = g

theorem PartialEquiv.copy_source E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (f : α → β) (hf : ↑e = f) (g : β → α) (hg : ↑e.symm = g)
  (s : Set α) (hs : e.source = s) (t : Set β) (ht : e.target = t), (e.copy f hf g hg s hs t ht).source = s

theorem PartialEquiv.copy_eq E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (f : α → β) (hf : ↑e = f) (g : β → α) (hg : ↑e.symm = g)
  (s : Set α) (hs : e.source = s) (t : Set β) (ht : e.target = t), e.copy f hf g hg s hs t ht = e

def PartialEquiv.toEquiv E1 #

{α : Type u_1} → {β : Type u_2} → (e : PartialEquiv α β) → ↑e.source ≃ ↑e.target

Associate to a PartialEquiv an Equiv between the source and the target.

theorem PartialEquiv.toEquiv_eq_codRestrict_restrict E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β),
  ⇑e.toEquiv = Set.codRestrict (e.source.domRestrict ↑e) e.target ⋯

theorem PartialEquiv.toEquiv_symm_eq_codRestrict_restrict E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β),
  ⇑e.toEquiv.symm = Set.codRestrict (e.target.domRestrict e.invFun) e.source ⋯

theorem PartialEquiv.symm_source E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.symm.source = e.target

theorem PartialEquiv.symm_target E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.symm.target = e.source

theorem PartialEquiv.symm_symm E0 #

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

theorem PartialEquiv.symm_bijective E1 #

∀ {α : Type u_1} {β : Type u_2}, Function.Bijective PartialEquiv.symm

theorem PartialEquiv.image_source_eq_target E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), ↑e '' e.source = e.target

theorem PartialEquiv.forall_mem_target E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {p : β → Prop}, (∀ y ∈ e.target, p y) ↔ ∀ x ∈ e.source, p (↑e x)

theorem PartialEquiv.exists_mem_target E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {p : β → Prop}, (∃ y ∈ e.target, p y) ↔ ∃ x ∈ e.source, p (↑e x)

def PartialEquiv.IsImage E1 #

{α : Type u_1} → {β : Type u_2} → PartialEquiv α β → Set α → Set β → Prop

We say that t : Set β is an image of s : Set α under a partial equivalence if any of the following equivalent conditions hold:

  • e '' (e.source ∩ s) = e.target ∩ t;
  • e.source ∩ e ⁻¹ t = e.source ∩ s;
  • ∀ x ∈ e.source, e x ∈ t ↔ x ∈ s (this one is used in the definition).

theorem PartialEquiv.IsImage.apply_mem_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} {x : α},
  e.IsImage s t → x ∈ e.source → (↑e x ∈ t ↔ x ∈ s)

theorem PartialEquiv.IsImage.symm_apply_mem_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t → ∀ ⦃y : β⦄, y ∈ e.target → (↑e.symm y ∈ s ↔ y ∈ t)

theorem PartialEquiv.IsImage.symm E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β}, e.IsImage s t → e.symm.IsImage t s

theorem PartialEquiv.IsImage.symm_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β}, e.symm.IsImage t s ↔ e.IsImage s t

theorem PartialEquiv.IsImage.mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t → Set.MapsTo (↑e) (e.source ∩ s) (e.target ∩ t)

theorem PartialEquiv.IsImage.symm_mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t → Set.MapsTo (↑e.symm) (e.target ∩ t) (e.source ∩ s)

def PartialEquiv.IsImage.restr E1 #

{α : Type u_1} → {β : Type u_2} → {e : PartialEquiv α β} → {s : Set α} → {t : Set β} → e.IsImage s t → PartialEquiv α β

Restrict a PartialEquiv to a pair of corresponding sets.

theorem PartialEquiv.IsImage.restr_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} (h : e.IsImage s t),
  ↑h.restr.symm = ↑e.symm

theorem PartialEquiv.IsImage.restr_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} (h : e.IsImage s t), ↑h.restr = ↑e

theorem PartialEquiv.IsImage.restr_source E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} (h : e.IsImage s t),
  h.restr.source = e.source ∩ s

theorem PartialEquiv.IsImage.restr_target E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} (h : e.IsImage s t),
  h.restr.target = e.target ∩ t

theorem PartialEquiv.IsImage.image_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t → ↑e '' (e.source ∩ s) = e.target ∩ t

theorem PartialEquiv.IsImage.symm_image_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t → ↑e.symm '' (e.target ∩ t) = e.source ∩ s

theorem PartialEquiv.IsImage.iff_preimage_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t ↔ e.source ∩ ↑e ⁻¹' t = e.source ∩ s

theorem PartialEquiv.IsImage.of_preimage_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.source ∩ ↑e ⁻¹' t = e.source ∩ s → e.IsImage s t

Alias of the reverse direction of PartialEquiv.IsImage.iff_preimage_eq.

theorem PartialEquiv.IsImage.preimage_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t → e.source ∩ ↑e ⁻¹' t = e.source ∩ s

Alias of the forward direction of PartialEquiv.IsImage.iff_preimage_eq.

theorem PartialEquiv.IsImage.iff_symm_preimage_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t ↔ e.target ∩ ↑e.symm ⁻¹' s = e.target ∩ t

theorem PartialEquiv.IsImage.symm_preimage_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.IsImage s t → e.target ∩ ↑e.symm ⁻¹' s = e.target ∩ t

Alias of the forward direction of PartialEquiv.IsImage.iff_symm_preimage_eq.

theorem PartialEquiv.IsImage.of_symm_preimage_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  e.target ∩ ↑e.symm ⁻¹' s = e.target ∩ t → e.IsImage s t

Alias of the reverse direction of PartialEquiv.IsImage.iff_symm_preimage_eq.

theorem PartialEquiv.IsImage.of_image_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  ↑e '' (e.source ∩ s) = e.target ∩ t → e.IsImage s t

theorem PartialEquiv.IsImage.of_symm_image_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β},
  ↑e.symm '' (e.target ∩ t) = e.source ∩ s → e.IsImage s t

theorem PartialEquiv.IsImage.compl E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β}, e.IsImage s t → e.IsImage sᶜ tᶜ

theorem PartialEquiv.IsImage.inter E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} {s' : Set α} {t' : Set β},
  e.IsImage s t → e.IsImage s' t' → e.IsImage (s ∩ s') (t ∩ t')

theorem PartialEquiv.IsImage.union E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} {s' : Set α} {t' : Set β},
  e.IsImage s t → e.IsImage s' t' → e.IsImage (s ∪ s') (t ∪ t')

theorem PartialEquiv.IsImage.diff E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} {s' : Set α} {t' : Set β},
  e.IsImage s t → e.IsImage s' t' → e.IsImage (s \ s') (t \ t')

theorem PartialEquiv.IsImage.leftInvOn_piecewise E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} {e' : PartialEquiv α β}
  [inst : (i : α) → Decidable (i ∈ s)] [inst_1 : (i : β) → Decidable (i ∈ t)],
  e.IsImage s t →
    e'.IsImage s t → Set.LeftInvOn (t.piecewise ↑e.symm ↑e'.symm) (s.piecewise ↑e ↑e') (s.ite e.source e'.source)

theorem PartialEquiv.IsImage.inter_eq_of_inter_eq_of_eqOn E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} {e' : PartialEquiv α β},
  e.IsImage s t →
    e'.IsImage s t → e.source ∩ s = e'.source ∩ s → Set.EqOn (↑e) (↑e') (e.source ∩ s) → e.target ∩ t = e'.target ∩ t

theorem PartialEquiv.IsImage.symm_eq_on_of_inter_eq_of_eqOn E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α} {t : Set β} {e' : PartialEquiv α β},
  e.IsImage s t →
    e.source ∩ s = e'.source ∩ s → Set.EqOn (↑e) (↑e') (e.source ∩ s) → Set.EqOn (↑e.symm) (↑e'.symm) (e.target ∩ t)

theorem PartialEquiv.isImage_source_target E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.IsImage e.source e.target

theorem PartialEquiv.isImage_source_target_of_disjoint E1 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β),
  Disjoint e.source e'.source → Disjoint e.target e'.target → e.IsImage e'.source e'.target

theorem PartialEquiv.image_source_inter_eq' E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set α), ↑e '' (e.source ∩ s) = e.target ∩ ↑e.symm ⁻¹' s

theorem PartialEquiv.image_source_inter_eq E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set α),
  ↑e '' (e.source ∩ s) = e.target ∩ ↑e.symm ⁻¹' (e.source ∩ s)

theorem PartialEquiv.image_eq_target_inter_inv_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {s : Set α}, s ⊆ e.source → ↑e '' s = e.target ∩ ↑e.symm ⁻¹' s

theorem PartialEquiv.symm_image_eq_source_inter_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {s : Set β}, s ⊆ e.target → ↑e.symm '' s = e.source ∩ ↑e ⁻¹' s

theorem PartialEquiv.symm_image_target_inter_eq E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set β),
  ↑e.symm '' (e.target ∩ s) = e.source ∩ ↑e ⁻¹' (e.target ∩ s)

theorem PartialEquiv.symm_image_target_inter_eq' E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set β), ↑e.symm '' (e.target ∩ s) = e.source ∩ ↑e ⁻¹' s

theorem PartialEquiv.source_inter_preimage_inv_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set α), e.source ∩ ↑e ⁻¹' ↑e.symm ⁻¹' s = e.source ∩ s

theorem PartialEquiv.source_inter_preimage_target_inter E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set β),
  e.source ∩ ↑e ⁻¹' (e.target ∩ s) = e.source ∩ ↑e ⁻¹' s

theorem PartialEquiv.target_inter_inv_preimage_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set β), e.target ∩ ↑e.symm ⁻¹' ↑e ⁻¹' s = e.target ∩ s

theorem PartialEquiv.symm_image_image_of_subset_source E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {s : Set α}, s ⊆ e.source → ↑e.symm '' ↑e '' s = s

theorem PartialEquiv.image_symm_image_of_subset_target E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) {s : Set β}, s ⊆ e.target → ↑e '' ↑e.symm '' s = s

theorem PartialEquiv.source_subset_preimage_target E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.source ⊆ ↑e ⁻¹' e.target

theorem PartialEquiv.symm_image_target_eq_source E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), ↑e.symm '' e.target = e.source

theorem PartialEquiv.target_subset_preimage_source E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.target ⊆ ↑e.symm ⁻¹' e.source

theorem PartialEquiv.ext E1 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β},
  (∀ (x : α), ↑e x = ↑e' x) → (∀ (x : β), ↑e.symm x = ↑e'.symm x) → e.source = e'.source → e = e'

Two partial equivs that have the same source, same toFun and same invFun, coincide.

theorem PartialEquiv.ext_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β},
  e = e' ↔ (∀ (x : α), ↑e x = ↑e' x) ∧ (∀ (x : β), ↑e.symm x = ↑e'.symm x) ∧ e.source = e'.source

def PartialEquiv.restr E1 #

{α : Type u_1} → {β : Type u_2} → PartialEquiv α β → Set α → PartialEquiv α β

Restricting a partial equivalence to e.source ∩ s

theorem PartialEquiv.restr_coe E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set α), ↑(e.restr s) = ↑e

theorem PartialEquiv.restr_coe_symm E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set α), ↑(e.restr s).symm = ↑e.symm

theorem PartialEquiv.restr_source E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set α), (e.restr s).source = e.source ∩ s

theorem PartialEquiv.source_restr_subset_source E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set α), (e.restr s).source ⊆ e.source

theorem PartialEquiv.restr_target E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set α), (e.restr s).target = e.target ∩ ↑e.symm ⁻¹' s

theorem PartialEquiv.restr_eq_of_source_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β} {s : Set α}, e.source ⊆ s → e.restr s = e

theorem PartialEquiv.restr_univ E0 #

∀ {α : Type u_1} {β : Type u_2} {e : PartialEquiv α β}, e.restr Set.univ = e

def PartialEquiv.refl E3 #

(α : Type u_5) → PartialEquiv α α

The identity partial equiv

theorem PartialEquiv.refl_source E0 #

∀ {α : Type u_1}, (PartialEquiv.refl α).source = Set.univ

theorem PartialEquiv.refl_target E0 #

∀ {α : Type u_1}, (PartialEquiv.refl α).target = Set.univ

theorem PartialEquiv.refl_coe E0 #

∀ {α : Type u_1}, ↑(PartialEquiv.refl α) = id

theorem PartialEquiv.refl_symm E0 #

∀ {α : Type u_1}, (PartialEquiv.refl α).symm = PartialEquiv.refl α

theorem PartialEquiv.refl_restr_source E1 #

∀ {α : Type u_1} (s : Set α), ((PartialEquiv.refl α).restr s).source = s

theorem PartialEquiv.refl_restr_target E1 #

∀ {α : Type u_1} (s : Set α), ((PartialEquiv.refl α).restr s).target = s

def PartialEquiv.ofSet E3 #

{α : Type u_1} → Set α → PartialEquiv α α

The identity partial equivalence on a set s

theorem PartialEquiv.ofSet_source E0 #

∀ {α : Type u_1} (s : Set α), (PartialEquiv.ofSet s).source = s

theorem PartialEquiv.ofSet_target E0 #

∀ {α : Type u_1} (s : Set α), (PartialEquiv.ofSet s).target = s

theorem PartialEquiv.ofSet_coe E0 #

∀ {α : Type u_1} (s : Set α), ↑(PartialEquiv.ofSet s) = id

theorem PartialEquiv.ofSet_symm E0 #

∀ {α : Type u_1} (s : Set α), (PartialEquiv.ofSet s).symm = PartialEquiv.ofSet s

def PartialEquiv.single E1 #

{α : Type u_1} → {β : Type u_2} → α → β → PartialEquiv α β

Function.const as a PartialEquiv. It consists of two constant maps in opposite directions.

theorem PartialEquiv.single_target E0 #

∀ {α : Type u_1} {β : Type u_2} (a : α) (b : β), (PartialEquiv.single a b).target = {b}

theorem PartialEquiv.single_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (a : α) (b : β) (a_1 : α), ↑(PartialEquiv.single a b) a_1 = Function.const α b a_1

theorem PartialEquiv.single_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (a : α) (b a_1 : β), ↑(PartialEquiv.single a b).symm a_1 = Function.const β a a_1

theorem PartialEquiv.single_source E0 #

∀ {α : Type u_1} {β : Type u_2} (a : α) (b : β), (PartialEquiv.single a b).source = {a}

def PartialEquiv.trans' E1 #

{α : Type u_1} →
  {β : Type u_2} →
    {γ : Type u_3} → (e : PartialEquiv α β) → (e' : PartialEquiv β γ) → e.target = e'.source → PartialEquiv α γ

Composing two partial equivs if the target of the first coincides with the source of the second.

theorem PartialEquiv.trans'_target E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ)
  (h : e.target = e'.source), (e.trans' e' h).target = e'.target

theorem PartialEquiv.trans'_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ) (h : e.target = e'.source)
  (a : α), ↑(e.trans' e' h) a = (↑e' ∘ ↑e) a

theorem PartialEquiv.trans'_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ) (h : e.target = e'.source)
  (a : γ), ↑(e.trans' e' h).symm a = (↑e.symm ∘ ↑e'.symm) a

theorem PartialEquiv.trans'_source E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ)
  (h : e.target = e'.source), (e.trans' e' h).source = e.source

def PartialEquiv.trans E3 #

{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → PartialEquiv α β → PartialEquiv β γ → PartialEquiv α γ

Composing two partial equivs, by restricting to the maximal domain where their composition is well defined. Within the Manifold namespace, there is the notation e ≫ f for this.

theorem PartialEquiv.coe_trans E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ), ↑(e.trans e') = ↑e' ∘ ↑e

theorem PartialEquiv.coe_trans_symm E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  ↑(e.trans e').symm = ↑e.symm ∘ ↑e'.symm

theorem PartialEquiv.trans_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ) {x : α},
  ↑(e.trans e') x = ↑e' (↑e x)

theorem PartialEquiv.trans_symm_eq_symm_trans_symm E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  (e.trans e').symm = e'.symm.trans e.symm

theorem PartialEquiv.trans_source E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  (e.trans e').source = e.source ∩ ↑e ⁻¹' e'.source

theorem PartialEquiv.trans_source' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  (e.trans e').source = e.source ∩ ↑e ⁻¹' (e.target ∩ e'.source)

theorem PartialEquiv.trans_source'' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  (e.trans e').source = ↑e.symm '' (e.target ∩ e'.source)

theorem PartialEquiv.image_trans_source E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  ↑e '' (e.trans e').source = e.target ∩ e'.source

theorem PartialEquiv.trans_target E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  (e.trans e').target = e'.target ∩ ↑e'.symm ⁻¹' e.target

theorem PartialEquiv.trans_target' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  (e.trans e').target = e'.target ∩ ↑e'.symm ⁻¹' (e'.source ∩ e.target)

theorem PartialEquiv.trans_target'' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  (e.trans e').target = ↑e' '' (e'.source ∩ e.target)

theorem PartialEquiv.inv_image_trans_target E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ),
  ↑e'.symm '' (e.trans e').target = e'.source ∩ e.target

theorem PartialEquiv.trans_assoc E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : PartialEquiv α β) (e' : PartialEquiv β γ)
  (e'' : PartialEquiv γ δ), (e.trans e').trans e'' = e.trans (e'.trans e'')

theorem PartialEquiv.trans_refl E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.trans (PartialEquiv.refl β) = e

theorem PartialEquiv.refl_trans E0 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), (PartialEquiv.refl α).trans e = e

theorem PartialEquiv.trans_ofSet E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set β), e.trans (PartialEquiv.ofSet s) = e.restr (↑e ⁻¹' s)

theorem PartialEquiv.trans_refl_restr E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set β),
  e.trans ((PartialEquiv.refl β).restr s) = e.restr (↑e ⁻¹' s)

theorem PartialEquiv.trans_refl_restr' E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β) (s : Set β),
  e.trans ((PartialEquiv.refl β).restr s) = e.restr (e.source ∩ ↑e ⁻¹' s)

theorem PartialEquiv.restr_trans E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : PartialEquiv β γ) (s : Set α),
  (e.restr s).trans e' = (e.trans e').restr s

theorem PartialEquiv.mem_symm_trans_source E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) {e' : PartialEquiv α γ} {x : α},
  x ∈ e.source → x ∈ e'.source → ↑e x ∈ (e.symm.trans e').source

A lemma commonly useful when e and e' are charts of a manifold.

def PartialEquiv.EqOnSource E3 #

{α : Type u_1} → {β : Type u_2} → PartialEquiv α β → PartialEquiv α β → Prop

EqOnSource e e' means that e and e' have the same source, and coincide there. Then e and e' should really be considered the same partial equiv.

instance PartialEquiv.eqOnSourceSetoid E0 #

{α : Type u_1} → {β : Type u_2} → Setoid (PartialEquiv α β)

EqOnSource is an equivalence relation. This instance provides the ≈ notation between two PartialEquivs.

theorem PartialEquiv.eqOnSource_refl E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e ≈ e

theorem PartialEquiv.EqOnSource.source_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β}, e ≈ e' → e.source = e'.source

Two equivalent partial equivs have the same source.

theorem PartialEquiv.EqOnSource.eqOn E1 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β}, e ≈ e' → Set.EqOn (↑e) (↑e') e.source

Two equivalent partial equivs coincide on the source.

theorem PartialEquiv.EqOnSource.target_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β}, e ≈ e' → e.target = e'.target

Two equivalent partial equivs have the same target.

theorem PartialEquiv.EqOnSource.symm' E1 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β}, e ≈ e' → e.symm ≈ e'.symm

If two partial equivs are equivalent, so are their inverses.

theorem PartialEquiv.EqOnSource.symm_eqOn E1 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β}, e ≈ e' → Set.EqOn (↑e.symm) (↑e'.symm) e.target

Two equivalent partial equivs have coinciding inverses on the target.

theorem PartialEquiv.EqOnSource.trans' E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {e e' : PartialEquiv α β} {f f' : PartialEquiv β γ},
  e ≈ e' → f ≈ f' → e.trans f ≈ e'.trans f'

Composition of partial equivs respects equivalence.

theorem PartialEquiv.EqOnSource.restr E1 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β}, e ≈ e' → ∀ (s : Set α), e.restr s ≈ e'.restr s

Restriction of partial equivs respects equivalence.

theorem PartialEquiv.EqOnSource.source_inter_preimage_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {e e' : PartialEquiv α β},
  e ≈ e' → ∀ (s : Set β), e.source ∩ ↑e ⁻¹' s = e'.source ∩ ↑e' ⁻¹' s

Preimages are respected by equivalence.

theorem PartialEquiv.self_trans_symm E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.trans e.symm ≈ PartialEquiv.ofSet e.source

Composition of a partial equivalence and its inverse is equivalent to the restriction of the identity to the source.

theorem PartialEquiv.symm_trans_self E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.symm.trans e ≈ PartialEquiv.ofSet e.target

Composition of the inverse of a partial equivalence and this partial equivalence is equivalent to the restriction of the identity to the target.

def PartialEquiv.prod E1 #

{α : Type u_1} →
  {β : Type u_2} → {γ : Type u_3} → {δ : Type u_4} → PartialEquiv α β → PartialEquiv γ δ → PartialEquiv (α × γ) (β × δ)

The product of two partial equivalences, as a partial equivalence on the product.

theorem PartialEquiv.prod_source E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : PartialEquiv α β) (e' : PartialEquiv γ δ),
  (e.prod e').source = e.source ×ˢ e'.source

theorem PartialEquiv.prod_target E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : PartialEquiv α β) (e' : PartialEquiv γ δ),
  (e.prod e').target = e.target ×ˢ e'.target

theorem PartialEquiv.prod_coe E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : PartialEquiv α β) (e' : PartialEquiv γ δ),
  ↑(e.prod e') = fun p ↦ (↑e p.1, ↑e' p.2)

theorem PartialEquiv.prod_coe_symm E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : PartialEquiv α β) (e' : PartialEquiv γ δ),
  ↑(e.prod e').symm = fun p ↦ (↑e.symm p.1, ↑e'.symm p.2)

theorem PartialEquiv.prod_symm E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : PartialEquiv α β) (e' : PartialEquiv γ δ),
  (e.prod e').symm = e.symm.prod e'.symm

theorem PartialEquiv.refl_prod_refl E0 #

∀ {α : Type u_1} {β : Type u_2}, (PartialEquiv.refl α).prod (PartialEquiv.refl β) = PartialEquiv.refl (α × β)

theorem PartialEquiv.prod_trans E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {η : Type u_5} {ε : Type u_6} (e : PartialEquiv α β)
  (f : PartialEquiv β γ) (e' : PartialEquiv δ η) (f' : PartialEquiv η ε),
  (e.prod e').trans (f.prod f') = (e.trans f).prod (e'.trans f')

def PartialEquiv.piecewise E1 #

{α : Type u_1} →
  {β : Type u_2} →
    (e e' : PartialEquiv α β) →
      (s : Set α) →
        (t : Set β) →
          [(x : α) → Decidable (x ∈ s)] →
            [(y : β) → Decidable (y ∈ t)] → e.IsImage s t → e'.IsImage s t → PartialEquiv α β

Combine two PartialEquivs using Set.piecewise. The source of the new PartialEquiv is s.ite e.source e'.source = e.source ∩ s ∪ e'.source \ s, and similarly for target. The function sends e.source ∩ s to e.target ∩ t using e and e'.source \ s to e'.target \ t using e', and similarly for the inverse function. The definition assumes e.isImage s t and e'.isImage s t.

theorem PartialEquiv.piecewise_source E0 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (s : Set α) (t : Set β) [inst : (x : α) → Decidable (x ∈ s)]
  [inst_1 : (y : β) → Decidable (y ∈ t)] (H : e.IsImage s t) (H' : e'.IsImage s t),
  (e.piecewise e' s t H H').source = s.ite e.source e'.source

theorem PartialEquiv.piecewise_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (s : Set α) (t : Set β) [inst : (x : α) → Decidable (x ∈ s)]
  [inst_1 : (y : β) → Decidable (y ∈ t)] (H : e.IsImage s t) (H' : e'.IsImage s t),
  ↑(e.piecewise e' s t H H') = s.piecewise ↑e ↑e'

theorem PartialEquiv.piecewise_target E0 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (s : Set α) (t : Set β) [inst : (x : α) → Decidable (x ∈ s)]
  [inst_1 : (y : β) → Decidable (y ∈ t)] (H : e.IsImage s t) (H' : e'.IsImage s t),
  (e.piecewise e' s t H H').target = t.ite e.target e'.target

theorem PartialEquiv.piecewise_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (s : Set α) (t : Set β) [inst : (x : α) → Decidable (x ∈ s)]
  [inst_1 : (y : β) → Decidable (y ∈ t)] (H : e.IsImage s t) (H' : e'.IsImage s t),
  ↑(e.piecewise e' s t H H').symm = t.piecewise ↑e.symm ↑e'.symm

theorem PartialEquiv.symm_piecewise E1 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) {s : Set α} {t : Set β} [inst : (x : α) → Decidable (x ∈ s)]
  [inst_1 : (y : β) → Decidable (y ∈ t)] (H : e.IsImage s t) (H' : e'.IsImage s t),
  (e.piecewise e' s t H H').symm = e.symm.piecewise e'.symm t s ⋯ ⋯

def PartialEquiv.disjointUnion E1 #

{α : Type u_1} →
  {β : Type u_2} →
    (e e' : PartialEquiv α β) →
      Disjoint e.source e'.source →
        Disjoint e.target e'.target →
          [(x : α) → Decidable (x ∈ e.source)] → [(y : β) → Decidable (y ∈ e.target)] → PartialEquiv α β

Combine two PartialEquivs with disjoint sources and disjoint targets. We reuse PartialEquiv.piecewise, then override source and target to ensure better definitional equalities.

theorem PartialEquiv.disjointUnion_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (hs : Disjoint e.source e'.source)
  (ht : Disjoint e.target e'.target) [inst : (x : α) → Decidable (x ∈ e.source)]
  [inst_1 : (y : β) → Decidable (y ∈ e.target)], ↑(e.disjointUnion e' hs ht) = e.source.piecewise ↑e ↑e'

theorem PartialEquiv.disjointUnion_source E0 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (hs : Disjoint e.source e'.source)
  (ht : Disjoint e.target e'.target) [inst : (x : α) → Decidable (x ∈ e.source)]
  [inst_1 : (y : β) → Decidable (y ∈ e.target)], (e.disjointUnion e' hs ht).source = e.source ∪ e'.source

theorem PartialEquiv.disjointUnion_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (hs : Disjoint e.source e'.source)
  (ht : Disjoint e.target e'.target) [inst : (x : α) → Decidable (x ∈ e.source)]
  [inst_1 : (y : β) → Decidable (y ∈ e.target)], ↑(e.disjointUnion e' hs ht).symm = e.target.piecewise ↑e.symm ↑e'.symm

theorem PartialEquiv.disjointUnion_target E0 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (hs : Disjoint e.source e'.source)
  (ht : Disjoint e.target e'.target) [inst : (x : α) → Decidable (x ∈ e.source)]
  [inst_1 : (y : β) → Decidable (y ∈ e.target)], (e.disjointUnion e' hs ht).target = e.target ∪ e'.target

theorem PartialEquiv.disjointUnion_eq_piecewise E1 #

∀ {α : Type u_1} {β : Type u_2} (e e' : PartialEquiv α β) (hs : Disjoint e.source e'.source)
  (ht : Disjoint e.target e'.target) [inst : (x : α) → Decidable (x ∈ e.source)]
  [inst_1 : (y : β) → Decidable (y ∈ e.target)], e.disjointUnion e' hs ht = e.piecewise e' e.source e.target ⋯ ⋯

def PartialEquiv.pi E1 #

{ι : Type u_5} →
  {αi : ι → Type u_6} →
    {βi : ι → Type u_7} → ((i : ι) → PartialEquiv (αi i) (βi i)) → PartialEquiv ((i : ι) → αi i) ((i : ι) → βi i)

The product of a family of partial equivalences, as a partial equivalence on the pi type.

theorem PartialEquiv.pi_target E0 #

∀ {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : (i : ι) → PartialEquiv (αi i) (βi i)),
  (PartialEquiv.pi ei).target = Set.univ.pi fun i ↦ (ei i).target

theorem PartialEquiv.pi_source E0 #

∀ {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : (i : ι) → PartialEquiv (αi i) (βi i)),
  (PartialEquiv.pi ei).source = Set.univ.pi fun i ↦ (ei i).source

theorem PartialEquiv.pi_apply E0 #

∀ {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : (i : ι) → PartialEquiv (αi i) (βi i)),
  ↑(PartialEquiv.pi ei) = Pi.map fun i ↦ ↑(ei i)

theorem PartialEquiv.pi_symm E0 #

∀ {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : (i : ι) → PartialEquiv (αi i) (βi i)),
  (PartialEquiv.pi ei).symm = PartialEquiv.pi fun i ↦ (ei i).symm

theorem PartialEquiv.pi_symm_apply E0 #

∀ {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : (i : ι) → PartialEquiv (αi i) (βi i)),
  ↑(PartialEquiv.pi ei).symm = fun f i ↦ ↑(ei i).symm (f i)

theorem PartialEquiv.pi_refl E0 #

∀ {ι : Type u_5} {αi : ι → Type u_6},
  (PartialEquiv.pi fun i ↦ PartialEquiv.refl (αi i)) = PartialEquiv.refl ((i : ι) → αi i)

theorem PartialEquiv.pi_trans E0 #

∀ {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} {γi : ι → Type u_8} (ei : (i : ι) → PartialEquiv (αi i) (βi i))
  (ei' : (i : ι) → PartialEquiv (βi i) (γi i)),
  (PartialEquiv.pi ei).trans (PartialEquiv.pi ei') = PartialEquiv.pi fun i ↦ (ei i).trans (ei' i)

theorem PartialEquiv.surjective_of_target_eq_univ E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.target = Set.univ → Function.Surjective ↑e

theorem PartialEquiv.injective_of_source_eq_univ E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.source = Set.univ → Function.Injective ↑e

theorem PartialEquiv.injective_symm_of_target_eq_univ E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.target = Set.univ → Function.Injective ↑e.symm

theorem PartialEquiv.surjective_symm_of_source_eq_univ E1 #

∀ {α : Type u_1} {β : Type u_2} (e : PartialEquiv α β), e.source = Set.univ → Function.Surjective ↑e.symm

def Set.BijOn.toPartialEquiv E1 #

{α : Type u_1} →
  {β : Type u_2} → [Nonempty α] → (f : α → β) → (s : Set α) → (t : Set β) → Set.BijOn f s t → PartialEquiv α β

A bijection between two sets s : Set α and t : Set β provides a partial equivalence between α and β.

theorem Set.BijOn.toPartialEquiv_source E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Nonempty α] (f : α → β) (s : Set α) (t : Set β) (hf : Set.BijOn f s t),
  (Set.BijOn.toPartialEquiv f s t hf).source = s

theorem Set.BijOn.toPartialEquiv_target E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Nonempty α] (f : α → β) (s : Set α) (t : Set β) (hf : Set.BijOn f s t),
  (Set.BijOn.toPartialEquiv f s t hf).target = t

theorem Set.BijOn.toPartialEquiv_apply E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Nonempty α] (f : α → β) (s : Set α) (t : Set β) (hf : Set.BijOn f s t),
  ↑(Set.BijOn.toPartialEquiv f s t hf) = f

theorem Set.BijOn.toPartialEquiv_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Nonempty α] (f : α → β) (s : Set α) (t : Set β) (hf : Set.BijOn f s t),
  ↑(Set.BijOn.toPartialEquiv f s t hf).symm = Function.invFunOn f s

def Set.InjOn.toPartialEquiv E1 #

{α : Type u_1} → {β : Type u_2} → [Nonempty α] → (f : α → β) → (s : Set α) → Set.InjOn f s → PartialEquiv α β

A map injective on a subset of its domain provides a partial equivalence.

theorem Equiv.refl_toPartialEquiv E0 #

∀ {α : Type u_1}, (Equiv.refl α).toPartialEquiv = PartialEquiv.refl α

theorem Equiv.symm_toPartialEquiv E0 #

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

theorem Equiv.trans_toPartialEquiv E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (e' : β ≃ γ),
  (e.trans e').toPartialEquiv = e.toPartialEquiv.trans e'.toPartialEquiv

def Equiv.transPartialEquiv E1 #

{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → α ≃ β → PartialEquiv β γ → PartialEquiv α γ

Precompose a partial equivalence with an equivalence. We modify the source and target to have better definitional behavior.

theorem Equiv.transPartialEquiv_target E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (f' : PartialEquiv β γ),
  (e.transPartialEquiv f').target = f'.target

theorem Equiv.transPartialEquiv_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (f' : PartialEquiv β γ) (a : γ),
  ↑(e.transPartialEquiv f').symm a = e.symm (↑f'.symm a)

theorem Equiv.transPartialEquiv_source E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (f' : PartialEquiv β γ),
  (e.transPartialEquiv f').source = ⇑e ⁻¹' f'.source

theorem Equiv.transPartialEquiv_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (f' : PartialEquiv β γ) (a : α),
  ↑(e.transPartialEquiv f') a = ↑f' (e a)

theorem Equiv.transPartialEquiv_eq_trans E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (f' : PartialEquiv β γ),
  e.transPartialEquiv f' = e.toPartialEquiv.trans f'

theorem Equiv.transPartialEquiv_trans E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : α ≃ β) (f' : PartialEquiv β γ)
  (f'' : PartialEquiv γ δ), (e.transPartialEquiv f').trans f'' = e.transPartialEquiv (f'.trans f'')

theorem Equiv.trans_transPartialEquiv E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : α ≃ β) (e' : β ≃ γ) (f'' : PartialEquiv γ δ),
  (e.trans e').transPartialEquiv f'' = e.transPartialEquiv (e'.transPartialEquiv f'')

theorem Equiv.coe_transPartialEquiv E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α ≃ β} {g : PartialEquiv β γ}, ↑(f.transPartialEquiv g) = ↑g ∘ ⇑f

theorem Equiv.coe_transPartialEquiv_symm E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α ≃ β} {g : PartialEquiv β γ},
  ↑(f.transPartialEquiv g).symm = ⇑f.symm ∘ ↑g.symm

def PartialEquiv.transEquiv E1 #

{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → PartialEquiv α β → β ≃ γ → PartialEquiv α γ

Postcompose a partial equivalence with an equivalence. We modify the source and target to have better definitional behavior.

theorem PartialEquiv.transEquiv_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (f' : β ≃ γ) (a : γ),
  ↑(e.transEquiv f').symm a = ↑e.symm (f'.symm a)

theorem PartialEquiv.transEquiv_target E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (f' : β ≃ γ),
  (e.transEquiv f').target = ⇑f'.symm ⁻¹' e.target

theorem PartialEquiv.transEquiv_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (f' : β ≃ γ) (a : α),
  ↑(e.transEquiv f') a = f' (↑e a)

theorem PartialEquiv.transEquiv_source E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (f' : β ≃ γ), (e.transEquiv f').source = e.source

theorem PartialEquiv.transEquiv_eq_trans E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : PartialEquiv α β) (e' : β ≃ γ),
  e.transEquiv e' = e.trans e'.toPartialEquiv

theorem PartialEquiv.transEquiv_transEquiv E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : PartialEquiv α β) (f' : β ≃ γ) (f'' : γ ≃ δ),
  (e.transEquiv f').transEquiv f'' = e.transEquiv (f'.trans f'')

theorem PartialEquiv.trans_transEquiv E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : PartialEquiv α β) (e' : PartialEquiv β γ)
  (f'' : γ ≃ δ), (e.trans e').transEquiv f'' = e.trans (e'.transEquiv f'')

theorem PartialEquiv.coe_transEquiv E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : PartialEquiv α β} {g : β ≃ γ}, ↑(f.transEquiv g) = ⇑g ∘ ↑f

theorem PartialEquiv.coe_transEquiv_symm E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : PartialEquiv α β} {g : β ≃ γ},
  ↑(f.transEquiv g).symm = ↑f.symm ∘ ⇑g.symm

Deprecated aliases

NameNew nameSince
PartialEquiv.map_source''PartialEquiv.image_source_subset2026-06-17
PartialEquiv.symm_mapsToPartialEquiv.mapsTo_symm2026-05-18