mathlib documentation

data.equiv.local_equiv

Local equivalences #

This files defines equivalences between subsets of given types. An element e of local_equiv α β is made of two maps e.to_fun and e.inv_fun 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 local 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.to_fun x and e.inv_fun y.

Main definitions #

equiv.to_local_equiv: associating a local equiv to an equiv, with source = target = univ local_equiv.symm : the inverse of a local equiv local_equiv.trans : the composition of two local equivs local_equiv.refl : the identity local equiv local_equiv.of_set : the identity on a set s eq_on_source : equivalence relation describing the "right" notion of equality for local equivs (see below in implementation notes)

Implementation notes #

There are at least three possible implementations of local equivalences:

Each of these implementations has pros and cons.

Local coding conventions #

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

The simpset mfld_simps records several simp lemmas that are especially useful in manifolds. It is a subset of the whole set of simp lemmas, but it makes it possible to have quicker proofs (when used with squeeze_simp or simp only) while retaining readability.

The typical use case is the following, in a file on manifolds: If simp [foo, bar] is slow, replace it with squeeze_simp [foo, bar] with mfld_simps and paste its output. The list of lemmas should be reasonable (contrary to the output of squeeze_simp [foo, bar] which might contain tens of lemmas), and the outcome should be quick enough.

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

@[nolint]
structure local_equiv (α : 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 to_fun : α → β and inv_fun : β → α map source to target and conversely, and are inverse to each other there. The values of to_fun outside of source and of inv_fun outside of target are irrelevant.

def equiv.to_local_equiv {α : Type u_1} {β : Type u_2} (e : α β) :

Associating a local_equiv to an equiv

Equations
def local_equiv.symm {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :

The inverse of a local equiv

Equations
@[instance]
def local_equiv.has_coe_to_fun {α : Type u_1} {β : Type u_2} :
Equations
def local_equiv.simps.symm_apply {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
β → α

See Note [custom simps projection]

Equations
@[simp]
theorem local_equiv.coe_mk {α : Type u_1} {β : Type u_2} (f : α → β) (g : β → α) (s : set α) (t : set β) (ml : ∀ {x : α}, x sf x t) (mr : ∀ {x : β}, x tg x s) (il : ∀ {x : α}, x sg (f x) = x) (ir : ∀ {x : β}, x tf (g x) = x) :
{to_fun := f, inv_fun := g, source := s, target := t, map_source' := ml, map_target' := mr, left_inv' := il, right_inv' := ir} = f
@[simp]
theorem local_equiv.coe_symm_mk {α : Type u_1} {β : Type u_2} (f : α → β) (g : β → α) (s : set α) (t : set β) (ml : ∀ {x : α}, x sf x t) (mr : ∀ {x : β}, x tg x s) (il : ∀ {x : α}, x sg (f x) = x) (ir : ∀ {x : β}, x tf (g x) = x) :
({to_fun := f, inv_fun := g, source := s, target := t, map_source' := ml, map_target' := mr, left_inv' := il, right_inv' := ir}.symm) = g
@[simp]
theorem local_equiv.to_fun_as_coe {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
@[simp]
theorem local_equiv.inv_fun_as_coe {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
@[simp]
theorem local_equiv.map_source {α : Type u_1} {β : Type u_2} (e : local_equiv α β) {x : α} (h : x e.source) :
@[simp]
theorem local_equiv.map_target {α : Type u_1} {β : Type u_2} (e : local_equiv α β) {x : β} (h : x e.target) :
@[simp]
theorem local_equiv.left_inv {α : Type u_1} {β : Type u_2} (e : local_equiv α β) {x : α} (h : x e.source) :
(e.symm) (e x) = x
@[simp]
theorem local_equiv.right_inv {α : Type u_1} {β : Type u_2} (e : local_equiv α β) {x : β} (h : x e.target) :
e ((e.symm) x) = x
theorem local_equiv.maps_to {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.symm_maps_to {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.left_inv_on {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.right_inv_on {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.inv_on {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.inj_on {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.bij_on {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.surj_on {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
@[simp]
theorem local_equiv.copy_apply {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (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 ᾰ
@[simp]
theorem local_equiv.copy_target {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (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
@[simp]
theorem local_equiv.copy_symm_apply {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (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 ᾰ
@[simp]
theorem local_equiv.copy_source {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (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
def local_equiv.copy {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (f : α → β) (hf : e = f) (g : β → α) (hg : (e.symm) = g) (s : set α) (hs : e.source = s) (t : set β) (ht : e.target = t) :

Create a copy of a local_equiv providing better definitional equalities.

Equations
theorem local_equiv.copy_eq_self {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (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 local_equiv.to_equiv {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :

Associating to a local_equiv an equiv between the source and the target

Equations
@[simp]
theorem local_equiv.symm_source {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
@[simp]
theorem local_equiv.symm_target {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
@[simp]
theorem local_equiv.symm_symm {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
e.symm.symm = e
theorem local_equiv.image_source_eq_target {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
def local_equiv.is_image {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) (t : set β) :
Prop

We say that t : set β is an image of s : set α under a local 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).
Equations
theorem local_equiv.is_image.apply_mem_iff {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} {x : α} (h : e.is_image s t) (hx : x e.source) :
e x t x s
theorem local_equiv.is_image.symm_apply_mem_iff {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) ⦃y : β⦄ :
y e.target((e.symm) y s y t)
theorem local_equiv.is_image.symm {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :
@[simp]
theorem local_equiv.is_image.symm_iff {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} :
theorem local_equiv.is_image.maps_to {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :
theorem local_equiv.is_image.symm_maps_to {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :
@[simp]
theorem local_equiv.is_image.restr_source {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :
@[simp]
theorem local_equiv.is_image.restr_target {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :
@[simp]
theorem local_equiv.is_image.restr_symm_apply {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) (ᾰ : β) :
(h.restr.symm) ᾰ = (e.symm) ᾰ
def local_equiv.is_image.restr {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :

Restrict a local_equiv to a pair of corresponding sets.

Equations
@[simp]
theorem local_equiv.is_image.restr_apply {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) (ᾰ : α) :
(h.restr) ᾰ = e ᾰ
theorem local_equiv.is_image.image_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :
e '' (e.source s) = e.target t
theorem local_equiv.is_image.symm_image_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :
(e.symm) '' (e.target t) = e.source s
theorem local_equiv.is_image.iff_preimage_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} :
theorem local_equiv.is_image.preimage_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} :
e.is_image s te.source e ⁻¹' t = e.source s

Alias of iff_preimage_eq.

theorem local_equiv.is_image.of_preimage_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} :
e.source e ⁻¹' t = e.source se.is_image s t

Alias of iff_preimage_eq.

theorem local_equiv.is_image.iff_symm_preimage_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} :
theorem local_equiv.is_image.symm_preimage_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} :
e.is_image s te.target (e.symm) ⁻¹' s = e.target t

Alias of iff_symm_preimage_eq.

theorem local_equiv.is_image.of_symm_preimage_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} :
e.target (e.symm) ⁻¹' s = e.target te.is_image s t

Alias of iff_symm_preimage_eq.

theorem local_equiv.is_image.of_image_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e '' (e.source s) = e.target t) :
e.is_image s t
theorem local_equiv.is_image.of_symm_image_eq {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : (e.symm) '' (e.target t) = e.source s) :
e.is_image s t
theorem local_equiv.is_image.compl {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} (h : e.is_image s t) :
theorem local_equiv.is_image.inter {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} {s' : set α} {t' : set β} (h : e.is_image s t) (h' : e.is_image s' t') :
e.is_image (s s') (t t')
theorem local_equiv.is_image.union {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} {s' : set α} {t' : set β} (h : e.is_image s t) (h' : e.is_image s' t') :
e.is_image (s s') (t t')
theorem local_equiv.is_image.diff {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} {s' : set α} {t' : set β} (h : e.is_image s t) (h' : e.is_image s' t') :
e.is_image (s \ s') (t \ t')
theorem local_equiv.is_image.left_inv_on_piecewise {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} {e' : local_equiv α β} [Π (i : α), decidable (i s)] [Π (i : β), decidable (i t)] (h : e.is_image s t) (h' : e'.is_image s t) :
theorem local_equiv.is_image.inter_eq_of_inter_eq_of_eq_on {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} {e' : local_equiv α β} (h : e.is_image s t) (h' : e'.is_image s t) (hs : e.source s = e'.source s) (Heq : set.eq_on e e' (e.source s)) :
e.target t = e'.target t
theorem local_equiv.is_image.symm_eq_on_of_inter_eq_of_eq_on {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} {t : set β} {e' : local_equiv α β} (h : e.is_image s t) (hs : e.source s = e'.source s) (Heq : set.eq_on e e' (e.source s)) :
theorem local_equiv.is_image_source_target {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.is_image_source_target_of_disjoint {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (hs : disjoint e.source e'.source) (ht : disjoint e.target e'.target) :
theorem local_equiv.image_source_inter_eq' {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) :
theorem local_equiv.image_source_inter_eq {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) :
theorem local_equiv.image_eq_target_inter_inv_preimage {α : Type u_1} {β : Type u_2} (e : local_equiv α β) {s : set α} (h : s e.source) :
theorem local_equiv.symm_image_eq_source_inter_preimage {α : Type u_1} {β : Type u_2} (e : local_equiv α β) {s : set β} (h : s e.target) :
theorem local_equiv.symm_image_target_inter_eq {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set β) :
theorem local_equiv.symm_image_target_inter_eq' {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set β) :
theorem local_equiv.source_inter_preimage_inv_preimage {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) :
theorem local_equiv.target_inter_inv_preimage_preimage {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set β) :
theorem local_equiv.source_subset_preimage_target {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.symm_image_target_eq_source {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.target_subset_preimage_source {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
@[ext]
theorem local_equiv.ext {α : Type u_1} {β : Type u_2} {e e' : local_equiv α β} (h : ∀ (x : α), e x = e' x) (hsymm : ∀ (x : β), (e.symm) x = (e'.symm) x) (hs : e.source = e'.source) :
e = e'

Two local equivs that have the same source, same to_fun and same inv_fun, coincide.

def local_equiv.restr {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) :

Restricting a local equivalence to e.source ∩ s

Equations
@[simp]
theorem local_equiv.restr_coe {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) :
(e.restr s) = e
@[simp]
theorem local_equiv.restr_coe_symm {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) :
((e.restr s).symm) = (e.symm)
@[simp]
theorem local_equiv.restr_source {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) :
(e.restr s).source = e.source s
@[simp]
theorem local_equiv.restr_target {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set α) :
theorem local_equiv.restr_eq_of_source_subset {α : Type u_1} {β : Type u_2} {e : local_equiv α β} {s : set α} (h : e.source s) :
e.restr s = e
@[simp]
theorem local_equiv.restr_univ {α : Type u_1} {β : Type u_2} {e : local_equiv α β} :
def local_equiv.refl (α : Type u_1) :

The identity local equiv

Equations
@[simp]
theorem local_equiv.refl_source {α : Type u_1} :
@[simp]
theorem local_equiv.refl_target {α : Type u_1} :
@[simp]
theorem local_equiv.refl_coe {α : Type u_1} :
@[simp]
theorem local_equiv.refl_symm {α : Type u_1} :
@[simp]
theorem local_equiv.refl_restr_source {α : Type u_1} (s : set α) :
@[simp]
theorem local_equiv.refl_restr_target {α : Type u_1} (s : set α) :
def local_equiv.of_set {α : Type u_1} (s : set α) :

The identity local equiv on a set s

Equations
@[simp]
theorem local_equiv.of_set_source {α : Type u_1} (s : set α) :
@[simp]
theorem local_equiv.of_set_target {α : Type u_1} (s : set α) :
@[simp]
theorem local_equiv.of_set_coe {α : Type u_1} (s : set α) :
@[simp]
theorem local_equiv.of_set_symm {α : Type u_1} (s : set α) :
def local_equiv.trans' {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) (h : e.target = e'.source) :

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

Equations
def local_equiv.trans {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :

Composing two local equivs, by restricting to the maximal domain where their composition is well defined.

Equations
@[simp]
theorem local_equiv.coe_trans {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
(e e') = e' e
@[simp]
theorem local_equiv.coe_trans_symm {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
((e e').symm) = (e.symm) (e'.symm)
theorem local_equiv.trans_symm_eq_symm_trans_symm {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
(e e').symm = e'.symm e.symm
@[simp]
theorem local_equiv.trans_source {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
theorem local_equiv.trans_source' {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
theorem local_equiv.trans_source'' {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
(e e').source = (e.symm) '' (e.target e'.source)
theorem local_equiv.image_trans_source {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
e '' (e e').source = e.target e'.source
@[simp]
theorem local_equiv.trans_target {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
theorem local_equiv.trans_target' {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
theorem local_equiv.trans_target'' {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
(e e').target = e' '' (e'.source e.target)
theorem local_equiv.inv_image_trans_target {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) :
(e'.symm) '' (e e').target = e'.source e.target
theorem local_equiv.trans_assoc {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : local_equiv α β) (e' : local_equiv β γ) (e'' : local_equiv γ δ) :
(e e') e'' = e e' e''
@[simp]
theorem local_equiv.trans_refl {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
@[simp]
theorem local_equiv.refl_trans {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
theorem local_equiv.trans_refl_restr {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set β) :
theorem local_equiv.trans_refl_restr' {α : Type u_1} {β : Type u_2} (e : local_equiv α β) (s : set β) :
theorem local_equiv.restr_trans {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : local_equiv α β) (e' : local_equiv β γ) (s : set α) :
e.restr s e' = (e e').restr s
def local_equiv.eq_on_source {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) :
Prop

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

Equations
@[instance]
def local_equiv.eq_on_source_setoid {α : Type u_1} {β : Type u_2} :

eq_on_source is an equivalence relation

Equations
theorem local_equiv.eq_on_source_refl {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :
e e
theorem local_equiv.eq_on_source.source_eq {α : Type u_1} {β : Type u_2} {e e' : local_equiv α β} (h : e e') :

Two equivalent local equivs have the same source

theorem local_equiv.eq_on_source.eq_on {α : Type u_1} {β : Type u_2} {e e' : local_equiv α β} (h : e e') :

Two equivalent local equivs coincide on the source

theorem local_equiv.eq_on_source.target_eq {α : Type u_1} {β : Type u_2} {e e' : local_equiv α β} (h : e e') :

Two equivalent local equivs have the same target

theorem local_equiv.eq_on_source.symm' {α : Type u_1} {β : Type u_2} {e e' : local_equiv α β} (h : e e') :

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

theorem local_equiv.eq_on_source.symm_eq_on {α : Type u_1} {β : Type u_2} {e e' : local_equiv α β} (h : e e') :

Two equivalent local equivs have coinciding inverses on the target

theorem local_equiv.eq_on_source.trans' {α : Type u_1} {β : Type u_2} {γ : Type u_3} {e e' : local_equiv α β} {f f' : local_equiv β γ} (he : e e') (hf : f f') :
e f e' f'

Composition of local equivs respects equivalence

theorem local_equiv.eq_on_source.restr {α : Type u_1} {β : Type u_2} {e e' : local_equiv α β} (he : e e') (s : set α) :
e.restr s e'.restr s

Restriction of local equivs respects equivalence

theorem local_equiv.eq_on_source.source_inter_preimage_eq {α : Type u_1} {β : Type u_2} {e e' : local_equiv α β} (he : e e') (s : set β) :

Preimages are respected by equivalence

theorem local_equiv.trans_self_symm {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :

Composition of a local equiv and its inverse is equivalent to the restriction of the identity to the source

theorem local_equiv.trans_symm_self {α : Type u_1} {β : Type u_2} (e : local_equiv α β) :

Composition of the inverse of a local equiv and this local equiv is equivalent to the restriction of the identity to the target

theorem local_equiv.eq_of_eq_on_source_univ {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (h : e e') (s : e.source = set.univ) (t : e.target = set.univ) :
e = e'

Two equivalent local equivs are equal when the source and target are univ

def local_equiv.prod {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : local_equiv α β) (e' : local_equiv γ δ) :
local_equiv × γ) × δ)

The product of two local equivs, as a local equiv on the product.

Equations
@[simp]
theorem local_equiv.prod_source {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : local_equiv α β) (e' : local_equiv γ δ) :
@[simp]
theorem local_equiv.prod_target {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : local_equiv α β) (e' : local_equiv γ δ) :
@[simp]
theorem local_equiv.prod_coe {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : local_equiv α β) (e' : local_equiv γ δ) :
(e.prod e') = λ (p : α × γ), (e p.fst, e' p.snd)
theorem local_equiv.prod_coe_symm {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : local_equiv α β) (e' : local_equiv γ δ) :
((e.prod e').symm) = λ (p : β × δ), ((e.symm) p.fst, (e'.symm) p.snd)
@[simp]
theorem local_equiv.prod_symm {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e : local_equiv α β) (e' : local_equiv γ δ) :
(e.prod e').symm = e.symm.prod e'.symm
@[simp]
theorem local_equiv.prod_trans {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {η : Type u_5} {ε : Type u_6} (e : local_equiv α β) (f : local_equiv β γ) (e' : local_equiv δ η) (f' : local_equiv η ε) :
e.prod e' f.prod f' = (e f).prod (e' f')
def local_equiv.piecewise {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (s : set α) (t : set β) [Π (x : α), decidable (x s)] [Π (y : β), decidable (y t)] (H : e.is_image s t) (H' : e'.is_image s t) :

Combine two local_equivs using set.piecewise. The source of the new local_equiv 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.is_image s t and e'.is_image s t.

Equations
@[simp]
theorem local_equiv.piecewise_source {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (s : set α) (t : set β) [Π (x : α), decidable (x s)] [Π (y : β), decidable (y t)] (H : e.is_image s t) (H' : e'.is_image s t) :
(e.piecewise e' s t H H').source = s.ite e.source e'.source
@[simp]
theorem local_equiv.piecewise_symm_apply {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (s : set α) (t : set β) [Π (x : α), decidable (x s)] [Π (y : β), decidable (y t)] (H : e.is_image s t) (H' : e'.is_image s t) (i : β) :
((e.piecewise e' s t H H').symm) i = t.piecewise (e.symm) (e'.symm) i
@[simp]
theorem local_equiv.piecewise_apply {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (s : set α) (t : set β) [Π (x : α), decidable (x s)] [Π (y : β), decidable (y t)] (H : e.is_image s t) (H' : e'.is_image s t) (i : α) :
(e.piecewise e' s t H H') i = s.piecewise e e' i
@[simp]
theorem local_equiv.piecewise_target {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (s : set α) (t : set β) [Π (x : α), decidable (x s)] [Π (y : β), decidable (y t)] (H : e.is_image s t) (H' : e'.is_image s t) :
(e.piecewise e' s t H H').target = t.ite e.target e'.target
theorem local_equiv.symm_piecewise {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) {s : set α} {t : set β} [Π (x : α), decidable (x s)] [Π (y : β), decidable (y t)] (H : e.is_image s t) (H' : e'.is_image s t) :
(e.piecewise e' s t H H').symm = e.symm.piecewise e'.symm t s _ _
@[simp]
theorem local_equiv.disjoint_union_source {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (hs : disjoint e.source e'.source) (ht : disjoint e.target e'.target) [Π (x : α), decidable (x e.source)] [Π (y : β), decidable (y e.target)] :
def local_equiv.disjoint_union {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (hs : disjoint e.source e'.source) (ht : disjoint e.target e'.target) [Π (x : α), decidable (x e.source)] [Π (y : β), decidable (y e.target)] :

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

Equations
@[simp]
theorem local_equiv.disjoint_union_symm_apply {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (hs : disjoint e.source e'.source) (ht : disjoint e.target e'.target) [Π (x : α), decidable (x e.source)] [Π (y : β), decidable (y e.target)] (ᾰ : β) :
((e.disjoint_union e' hs ht).symm) = e.target.piecewise (e.symm) (e'.symm)
@[simp]
theorem local_equiv.disjoint_union_target {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (hs : disjoint e.source e'.source) (ht : disjoint e.target e'.target) [Π (x : α), decidable (x e.source)] [Π (y : β), decidable (y e.target)] :
@[simp]
theorem local_equiv.disjoint_union_apply {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (hs : disjoint e.source e'.source) (ht : disjoint e.target e'.target) [Π (x : α), decidable (x e.source)] [Π (y : β), decidable (y e.target)] (ᾰ : α) :
(e.disjoint_union e' hs ht) = e.source.piecewise e e'
theorem local_equiv.disjoint_union_eq_piecewise {α : Type u_1} {β : Type u_2} (e e' : local_equiv α β) (hs : disjoint e.source e'.source) (ht : disjoint e.target e'.target) [Π (x : α), decidable (x e.source)] [Π (y : β), decidable (y e.target)] :
e.disjoint_union e' hs ht = e.piecewise e' e.source e.target _ _
def local_equiv.pi {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : Π (i : ι), local_equiv (αi i) (βi i)) :
local_equiv (Π (i : ι), αi i) (Π (i : ι), βi i)

The product of a family of local equivs, as a local equiv on the pi type.

Equations
@[simp]
theorem local_equiv.pi_source {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : Π (i : ι), local_equiv (αi i) (βi i)) :
(local_equiv.pi ei).source = set.univ.pi (λ (i : ι), (ei i).source)
@[simp]
theorem local_equiv.pi_target {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : Π (i : ι), local_equiv (αi i) (βi i)) :
(local_equiv.pi ei).target = set.univ.pi (λ (i : ι), (ei i).target)
@[simp]
theorem local_equiv.pi_coe {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : Π (i : ι), local_equiv (αi i) (βi i)) :
(local_equiv.pi ei) = λ (f : Π (i : ι), αi i) (i : ι), (ei i) (f i)
@[simp]
theorem local_equiv.pi_symm {ι : Type u_5} {αi : ι → Type u_6} {βi : ι → Type u_7} (ei : Π (i : ι), local_equiv (αi i) (βi i)) :
(local_equiv.pi ei).symm = local_equiv.pi (λ (i : ι), (ei i).symm)
@[simp]
theorem set.bij_on.to_local_equiv_source {α : Type u_1} {β : Type u_2} [nonempty α] (f : α → β) (s : set α) (t : set β) (hf : set.bij_on f s t) :
@[simp]
theorem set.bij_on.to_local_equiv_symm_apply {α : Type u_1} {β : Type u_2} [nonempty α] (f : α → β) (s : set α) (t : set β) (hf : set.bij_on f s t) (b : β) :
@[simp]
theorem set.bij_on.to_local_equiv_target {α : Type u_1} {β : Type u_2} [nonempty α] (f : α → β) (s : set α) (t : set β) (hf : set.bij_on f s t) :
@[simp]
theorem set.bij_on.to_local_equiv_apply {α : Type u_1} {β : Type u_2} [nonempty α] (f : α → β) (s : set α) (t : set β) (hf : set.bij_on f s t) (ᾰ : α) :
(set.bij_on.to_local_equiv f s t hf) = f ᾰ
def set.bij_on.to_local_equiv {α : Type u_1} {β : Type u_2} [nonempty α] (f : α → β) (s : set α) (t : set β) (hf : set.bij_on f s t) :

A bijection between two sets s : set α and t : set β provides a local equivalence between α and β.

Equations
@[simp]
def set.inj_on.to_local_equiv {α : Type u_1} {β : Type u_2} [nonempty α] (f : α → β) (s : set α) (hf : set.inj_on f s) :

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

Equations
@[simp]
theorem equiv.to_local_equiv_coe {α : Type u_1} {β : Type u_2} (e : α β) :
@[simp]
theorem equiv.to_local_equiv_symm_coe {α : Type u_1} {β : Type u_2} (e : α β) :
@[simp]
theorem equiv.to_local_equiv_source {α : Type u_1} {β : Type u_2} (e : α β) :
@[simp]
theorem equiv.to_local_equiv_target {α : Type u_1} {β : Type u_2} (e : α β) :
@[simp]
@[simp]
theorem equiv.symm_to_local_equiv {α : Type u_1} {β : Type u_2} (e : α β) :
@[simp]
theorem equiv.trans_to_local_equiv {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α β) (e' : β γ) :