The areas / V01. The language of Mathlib
Mathlib.Logic.Embedding.Basic
112 declarations and 1 deprecated aliases. Mathlib docs · Source
Injective functions
theorem Function.Embedding.mk.congr_simp E1 #
∀ {α : Sort u_1} {β : Sort u_2} (toFun toFun_1 : α → β) (e_toFun : toFun = toFun_1) (inj' : Function.Injective toFun),
{ toFun := toFun, inj' := inj' } = { toFun := toFun_1, inj' := ⋯ }
theorem Function.Embedding.mk.injEq E0 #
∀ {α : Sort u_1} {β : Sort u_2} (toFun : α → β) (inj' : Function.Injective toFun) (toFun_1 : α → β)
(inj'_1 : Function.Injective toFun_1),
({ toFun := toFun, inj' := inj' } = { toFun := toFun_1, inj' := inj'_1 }) = (toFun = toFun_1)
theorem Subtype.impEmbedding.congr_simp E1 #
∀ {α : Type u_1} (p q : α → Prop) (h : ∀ (x : α), p x → q x), Subtype.impEmbedding p q h = Subtype.impEmbedding p q h
def Function.Embedding.ctorIdx E1 #
{α : Sort u_1} → {β : Sort u_2} → (α ↪ β) → ℕ
theorem Function.Embedding.mk.inj E1 #
∀ {α : Sort u_1} {β : Sort u_2} {toFun : α → β} {inj' : Function.Injective toFun} {toFun_1 : α → β}
{inj'_1 : Function.Injective toFun_1},
{ toFun := toFun, inj' := inj' } = { toFun := toFun_1, inj' := inj'_1 } → toFun = toFun_1
structure Function.Embedding E1 #
Sort u_1 → Sort u_2 → Sort (max (max 1 u_1) u_2)
α ↪ β is a bundled injective function.
ctor Function.Embedding.mk E0 #
{α : Sort u_1} → {β : Sort u_2} → (toFun : α → β) → Function.Injective toFun → α ↪ β
abbrev Function.Embedding.toFun E1 #
{α : Sort u_1} → {β : Sort u_2} → (α ↪ β) → α → β
An embedding as a function. Use coercion instead.
theorem Function.Embedding.inj' E1 #
∀ {α : Sort u_1} {β : Sort u_2} (self : α ↪ β), Function.Injective self.toFun
An embedding is an injective function. Use Function.Embedding.injective instead.
def Function.«term_↪_» E1 #
Lean.TrailingParserDescr
An embedding, a.k.a. a bundled injective function.
instance Function.instFunLikeEmbedding E0 #
{α : Sort u} → {β : Sort v} → FunLike (α ↪ β) α β
instance Function.instEmbeddingLikeEmbedding E0 #
∀ {α : Sort u} {β : Sort v}, EmbeddingLike (α ↪ β) α β
instance Function.instCanLiftForallEmbeddingCoeInjective E0 #
∀ {α : Sort u_1} {β : Sort u_2}, CanLift (α → β) (α ↪ β) DFunLike.coe Function.Injective
theorem Function.exists_surjective_iff E0 #
∀ {α : Sort u_1} {β : Sort u_2}, (∃ f, Function.Surjective f) ↔ Nonempty (α → β) ∧ Nonempty (β ↪ α)
def Equiv.toEmbedding E1 #
{α : Sort u} → {β : Sort v} → α ≃ β → α ↪ β
Convert an α ≃ β to α ↪ β.
This is also available as a coercion Equiv.coeEmbedding.
The explicit Equiv.toEmbedding version is preferred though, since the coercion can have issues
inferring the type of the resulting embedding. For example:
-- Works:
example (s : Finset (Fin 3)) (f : Equiv.Perm (Fin 3)) : s.map f.toEmbedding = s.map f := by simp
-- Error, `f` has type `Fin 3 ≃ Fin 3` but is expected to have type `Fin 3 ↪ ?m_1 : Type ?`
example (s : Finset (Fin 3)) (f : Equiv.Perm (Fin 3)) : s.map f = s.map f.toEmbedding := by simp
theorem Equiv.coe_toEmbedding E0 #
∀ {α : Sort u} {β : Sort v} (f : α ≃ β), ⇑f.toEmbedding = ⇑f
theorem Equiv.toEmbedding_apply E0 #
∀ {α : Sort u} {β : Sort v} (f : α ≃ β) (a : α), f.toEmbedding a = f a
theorem Equiv.toEmbedding_injective E1 #
∀ {α : Sort u} {β : Sort v}, Function.Injective Equiv.toEmbedding
instance Equiv.coeEmbedding E0 #
{α : Sort u} → {β : Sort v} → Coe (α ≃ β) (α ↪ β)
theorem Function.Embedding.coe_injective E0 #
∀ {α : Sort u_1} {β : Sort u_2}, Function.Injective fun f ↦ ⇑f
theorem Function.Embedding.ext E1 #
∀ {α : Sort u_1} {β : Sort u_2} {f g : α ↪ β}, (∀ (x : α), f x = g x) → f = g
theorem Function.Embedding.ext_iff E0 #
∀ {α : Sort u_1} {β : Sort u_2} {f g : α ↪ β}, f = g ↔ ∀ (x : α), f x = g x
instance Function.Embedding.instUniqueOfIsEmpty E0 #
{α : Sort u_1} → {β : Sort u_2} → [IsEmpty α] → Unique (α ↪ β)
theorem Function.Embedding.toFun_eq_coe E0 #
∀ {α : Sort u_1} {β : Sort u_2} (f : α ↪ β), f.toFun = ⇑f
theorem Function.Embedding.coeFn_mk E0 #
∀ {α : Sort u_1} {β : Sort u_2} (f : α → β) (i : Function.Injective f), ⇑{ toFun := f, inj' := i } = f
theorem Function.Embedding.mk_coe E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α ↪ β) (inj : Function.Injective ⇑f), { toFun := ⇑f, inj' := inj } = f
theorem Function.Embedding.injective E2 #
∀ {α : Sort u_1} {β : Sort u_2} (f : α ↪ β), Function.Injective ⇑f
theorem Function.Embedding.apply_eq_iff_eq E0 #
∀ {α : Sort u_1} {β : Sort u_2} (f : α ↪ β) (x y : α), f x = f y ↔ x = y
def Function.Embedding.refl E1 #
(α : Sort u_1) → α ↪ α
The identity map as a Function.Embedding.
theorem Function.Embedding.refl_apply E0 #
∀ (α : Sort u_1) (a : α), (Function.Embedding.refl α) a = a
theorem Function.Embedding.coe_refl E0 #
∀ (α : Sort u_1), ⇑(Function.Embedding.refl α) = id
def Function.Embedding.trans E1 #
{α : Sort u_1} → {β : Sort u_2} → {γ : Sort u_3} → (α ↪ β) → (β ↪ γ) → α ↪ γ
Composition of f : α ↪ β and g : β ↪ γ.
theorem Function.Embedding.trans_apply E0 #
∀ {α : Sort u_1} {β : Sort u_2} {γ : Sort u_3} (f : α ↪ β) (g : β ↪ γ) (a : α), (f.trans g) a = g (f a)
theorem Function.Embedding.coe_trans E0 #
∀ {α : Sort u_1} {β : Sort u_2} {γ : Sort u_3} (f : α ↪ β) (g : β ↪ γ), ⇑(f.trans g) = ⇑g ∘ ⇑f
theorem Function.Embedding.refl_trans E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α ↪ β), (Function.Embedding.refl α).trans f = f
theorem Function.Embedding.trans_refl E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α ↪ β), f.trans (Function.Embedding.refl β) = f
theorem Function.Embedding.trans_assoc E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (f : α ↪ β) (g : β ↪ γ) (h : γ ↪ δ),
(f.trans g).trans h = f.trans (g.trans h)
instance Function.Embedding.instTrans E0 #
Trans Function.Embedding Function.Embedding Function.Embedding
theorem Function.Embedding.mk_id E0 #
∀ {α : Sort u_1}, { toFun := id, inj' := ⋯ } = Function.Embedding.refl α
theorem Function.Embedding.mk_trans_mk E0 #
∀ {α : Sort u_1} {β : Sort u_2} {γ : Sort u_3} (f : α → β) (g : β → γ) (hf : Function.Injective f)
(hg : Function.Injective g),
{ toFun := f, inj' := hf }.trans { toFun := g, inj' := hg } = { toFun := g ∘ f, inj' := ⋯ }
theorem Function.Embedding.equiv_toEmbedding_trans_symm_toEmbedding E1 #
∀ {α : Sort u_1} {β : Sort u_2} (e : α ≃ β), e.toEmbedding.trans e.symm.toEmbedding = Function.Embedding.refl α
theorem Function.Embedding.equiv_symm_toEmbedding_trans_toEmbedding E1 #
∀ {α : Sort u_1} {β : Sort u_2} (e : α ≃ β), e.symm.toEmbedding.trans e.toEmbedding = Function.Embedding.refl β
def Function.Embedding.congr E1 #
{α : Sort u} → {β : Sort v} → {γ : Sort w} → {δ : Sort x} → α ≃ β → γ ≃ δ → (α ↪ γ) → β ↪ δ
Transfer an embedding along a pair of equivalences.
theorem Function.Embedding.congr_apply E0 #
∀ {α : Sort u} {β : Sort v} {γ : Sort w} {δ : Sort x} (e₁ : α ≃ β) (e₂ : γ ≃ δ) (f : α ↪ γ),
⇑(Function.Embedding.congr e₁ e₂ f) = (⇑e₂ ∘ ⇑f) ∘ ⇑e₁.symm
def Function.Embedding.ofSurjective E1 #
{α : Sort u_1} → {β : Sort u_2} → (f : β → α) → Function.Surjective f → α ↪ β
A right inverse surjInv of a surjective function as an Embedding.
def Function.Embedding.equivOfSurjective E1 #
{α : Sort u_1} → {β : Sort u_2} → (f : α ↪ β) → Function.Surjective ⇑f → α ≃ β
Convert a surjective Embedding to an Equiv
def Equiv.embeddingSurjectiveEquiv E1 #
{α : Sort u_1} → {β : Type u_2} → { f // Function.Surjective ⇑f } ≃ (α ≃ β)
Surjective embeddings are equivalent to equivalences.
theorem Equiv.embeddingSurjectiveEquiv_apply E0 #
∀ {α : Sort u_1} {β : Type u_2} (f : { f // Function.Surjective ⇑f }),
Equiv.embeddingSurjectiveEquiv f = (↑f).equivOfSurjective ⋯
theorem Equiv.embeddingSurjectiveEquiv_symm_apply_coe_apply E0 #
∀ {α : Sort u_1} {β : Type u_2} (f : α ≃ β) (a : α), ↑(Equiv.embeddingSurjectiveEquiv.symm f) a = f a
def Function.Embedding.ofIsEmpty E1 #
{α : Sort u_1} → {β : Sort u_2} → [IsEmpty α] → α ↪ β
There is always an embedding from an empty type.
def Function.Embedding.setValue E1 #
{α : Sort u_1} →
{β : Sort u_2} →
(f : α ↪ β) → (a : α) → (b : β) → [(a' : α) → Decidable (a' = a)] → [(a' : α) → Decidable (f a' = b)] → α ↪ β
Change the value of an embedding f at one point. If the prescribed image
is already occupied by some f a', then swap the values at these two points.
theorem Function.Embedding.setValue_eq E0 #
∀ {α : Sort u_1} {β : Sort u_2} (f : α ↪ β) (a : α) (b : β) [inst : (a' : α) → Decidable (a' = a)]
[inst_1 : (a' : α) → Decidable (f a' = b)], (f.setValue a b) a = b
theorem Function.Embedding.setValue_eq_iff E0 #
∀ {α : Sort u_1} {β : Sort u_2} (f : α ↪ β) {a a' : α} {b : β} [inst : (a' : α) → Decidable (a' = a)]
[inst_1 : (a' : α) → Decidable (f a' = b)], (f.setValue a b) a' = b ↔ a' = a
theorem Function.Embedding.setValue_eq_of_ne E1 #
∀ {α : Sort u_1} {β : Sort u_2} {f : α ↪ β} {a : α} {b : β} {c : α} [inst : (a' : α) → Decidable (a' = a)]
[inst_1 : (a' : α) → Decidable (f a' = b)], c ≠ a → f c ≠ b → (f.setValue a b) c = f c
theorem Function.Embedding.setValue_right_apply_eq E0 #
∀ {α : Sort u_1} {β : Sort u_2} (f : α ↪ β) (a c : α) [inst : (a' : α) → Decidable (a' = a)]
[inst_1 : (a' : α) → Decidable (f a' = f c)], (f.setValue a (f c)) c = f a
def Function.Embedding.some E1 #
{α : Type u_1} → α ↪ Option α
Embedding into Option α using some.
theorem Function.Embedding.some_apply E0 #
∀ {α : Type u_1}, ⇑Function.Embedding.some = some
def Function.Embedding.optionMap E1 #
{α : Type u_1} → {β : Type u_2} → (α ↪ β) → Option α ↪ Option β
A version of Option.map for Function.Embeddings.
theorem Function.Embedding.optionMap_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α ↪ β), ⇑f.optionMap = Option.map ⇑f
def Function.Embedding.subtype E1 #
{α : Sort u_1} → (p : α → Prop) → Subtype p ↪ α
Embedding of a Subtype.
theorem Function.Embedding.subtype_apply E0 #
∀ {α : Sort u_1} {p : α → Prop} (x : Subtype p), (Function.Embedding.subtype p) x = ↑x
theorem Function.Embedding.subtype_injective E1 #
∀ {α : Sort u_1} (p : α → Prop), Function.Injective ⇑(Function.Embedding.subtype p)
theorem Function.Embedding.coe_subtype E0 #
∀ {α : Sort u_1} (p : α → Prop), ⇑(Function.Embedding.subtype p) = Subtype.val
def Function.Embedding.quotientOut E1 #
(α : Sort u_1) → [s : Setoid α] → Quotient s ↪ α
Quotient.out as an embedding.
theorem Function.Embedding.coe_quotientOut E0 #
∀ (α : Sort u_1) [inst : Setoid α], ⇑(Function.Embedding.quotientOut α) = Quotient.out
def Function.Embedding.punit E1 #
{β : Sort u_1} → β → PUnit.{u_2} ↪ β
Choosing an element b : β gives an embedding of PUnit into β.
def Equiv.embeddingUnique E1 #
{α : Type u_1} → {β : Type u_2} → [Unique α] → (α ↪ β) ≃ β
The equivalence α ↪ β with β, for Unique α.
def Function.Embedding.sectL E1 #
(α : Type u_1) → {β : Type u_2} → β → α ↪ α × β
Fixing an element b : β gives an embedding α ↪ α × β.
theorem Function.Embedding.sectL_apply E0 #
∀ (α : Type u_1) {β : Type u_2} (b : β) (a : α), (Function.Embedding.sectL α b) a = (a, b)
def Function.Embedding.sectR E1 #
{α : Type u_1} → α → (β : Type u_2) → β ↪ α × β
Fixing an element a : α gives an embedding β ↪ α × β.
theorem Function.Embedding.sectR_apply E0 #
∀ {α : Type u_1} (a : α) (β : Type u_2) (b : β), (Function.Embedding.sectR a β) b = (a, b)
def Function.Embedding.prodMap E1 #
{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → {δ : Type u_4} → (α ↪ β) → (γ ↪ δ) → α × γ ↪ β × δ
If e₁ and e₂ are embeddings, then so is Prod.map e₁ e₂ : (a, b) ↦ (e₁ a, e₂ b).
theorem Function.Embedding.coe_prodMap E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e₁ : α ↪ β) (e₂ : γ ↪ δ),
⇑(e₁.prodMap e₂) = Prod.map ⇑e₁ ⇑e₂
def Function.Embedding.pprodMap E1 #
{α : Sort u_1} → {β : Sort u_2} → {γ : Sort u_3} → {δ : Sort u_4} → (α ↪ β) → (γ ↪ δ) → α ×' γ ↪ β ×' δ
If e₁ and e₂ are embeddings,
then so is fun ⟨a, b⟩ ↦ ⟨e₁ a, e₂ b⟩ : PProd α γ → PProd β δ.
def Function.Embedding.sumMap E1 #
{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → {δ : Type u_4} → (α ↪ β) → (γ ↪ δ) → α ⊕ γ ↪ β ⊕ δ
If e₁ and e₂ are embeddings, then so is Sum.map e₁ e₂.
theorem Function.Embedding.coe_sumMap E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (e₁ : α ↪ β) (e₂ : γ ↪ δ),
⇑(e₁.sumMap e₂) = Sum.map ⇑e₁ ⇑e₂
def Function.Embedding.inl E1 #
{α : Type u_1} → {β : Type u_2} → α ↪ α ⊕ β
The embedding of α into the sum α ⊕ β.
theorem Function.Embedding.inl_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (val : α), Function.Embedding.inl val = Sum.inl val
def Function.Embedding.inr E1 #
{α : Type u_1} → {β : Type u_2} → β ↪ α ⊕ β
The embedding of β into the sum α ⊕ β.
theorem Function.Embedding.inr_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (val : β), Function.Embedding.inr val = Sum.inr val
def Function.Embedding.sigmaMk E1 #
{α : Type u_1} → {β : α → Type u_3} → (a : α) → β a ↪ (x : α) × β x
Sigma.mk as a Function.Embedding.
theorem Function.Embedding.sigmaMk_apply E0 #
∀ {α : Type u_1} {β : α → Type u_3} (a : α) (snd : β a), (Function.Embedding.sigmaMk a) snd = ⟨a, snd⟩
def Function.Embedding.sigmaMap E1 #
{α : Type u_1} →
{α' : Type u_2} →
{β : α → Type u_3} →
{β' : α' → Type u_4} → (f : α ↪ α') → ((a : α) → β a ↪ β' (f a)) → (a : α) × β a ↪ (a' : α') × β' a'
If f : α ↪ α' is an embedding and g : Π a, β α ↪ β' (f α) is a family
of embeddings, then Sigma.map f g is an embedding.
theorem Function.Embedding.sigmaMap_apply E0 #
∀ {α : Type u_1} {α' : Type u_2} {β : α → Type u_3} {β' : α' → Type u_4} (f : α ↪ α') (g : (a : α) → β a ↪ β' (f a))
(x : (a : α) × β a), (f.sigmaMap g) x = Sigma.map (⇑f) (fun a ↦ ⇑(g a)) x
def Function.Embedding.piCongrRight E1 #
{α : Sort u_1} → {β : α → Sort u_2} → {γ : α → Sort u_3} → ((a : α) → β a ↪ γ a) → ((a : α) → β a) ↪ (a : α) → γ a
Define an embedding (Π a : α, β a) ↪ (Π a : α, γ a) from a family of embeddings
e : Π a, (β a ↪ γ a). This embedding sends f to fun a ↦ e a (f a).
theorem Function.Embedding.piCongrRight_apply E0 #
∀ {α : Sort u_1} {β : α → Sort u_2} {γ : α → Sort u_3} (e : (a : α) → β a ↪ γ a) (f : (a : α) → β a) (a : α),
(Function.Embedding.piCongrRight e) f a = (e a) (f a)
def Function.Embedding.arrowCongrRight E1 #
{α : Sort u} → {β : Sort v} → {γ : Sort w} → (α ↪ β) → (γ → α) ↪ γ → β
An embedding e : α ↪ β defines an embedding (γ → α) ↪ (γ → β) that sends each f
to e ∘ f.
theorem Function.Embedding.arrowCongrRight_apply E0 #
∀ {α : Sort u} {β : Sort v} {γ : Sort w} (e : α ↪ β) (f : γ → α), e.arrowCongrRight f = ⇑e ∘ f
def Function.Embedding.arrowCongrLeft E1 #
{α : Sort u} → {β : Sort v} → {γ : Sort w} → [Inhabited γ] → (α ↪ β) → (α → γ) ↪ β → γ
An embedding e : α ↪ β defines an embedding (α → γ) ↪ (β → γ) for any inhabited type γ.
This embedding sends each f : α → γ to a function g : β → γ such that g ∘ e = f and
g y = default whenever y ∉ range e.
theorem Function.Embedding.arrowCongrLeft_apply E0 #
∀ {α : Sort u} {β : Sort v} {γ : Sort w} [inst : Inhabited γ] (e : α ↪ β) (f : α → γ),
e.arrowCongrLeft f = Function.extend (⇑e) f default
theorem Function.Embedding.arrowCongrLeft_refl E0 #
∀ {α : Sort u} {γ : Sort w} [inst : Inhabited γ],
(Function.Embedding.refl α).arrowCongrLeft = Function.Embedding.refl (α → γ)
theorem Function.Embedding.trans_arrowCongrLeft E0 #
∀ {α₁ : Sort u} {α₂ : Sort v} {α₃ : Sort x} {γ : Sort w} [inst : Inhabited γ] (e₁₂ : α₁ ↪ α₂) (e₂₃ : α₂ ↪ α₃),
e₁₂.arrowCongrLeft.trans e₂₃.arrowCongrLeft = (e₁₂.trans e₂₃).arrowCongrLeft
def Function.Embedding.subtypeMap E1 #
{α : Sort u_1} →
{β : Sort u_2} →
{p : α → Prop} → {q : β → Prop} → (f : α ↪ β) → (∀ ⦃x : α⦄, p x → q (f x)) → { x // p x } ↪ { y // q y }
Restrict both domain and codomain of an embedding.
theorem Function.Embedding.swap_apply E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq α] [inst_1 : DecidableEq β] (f : α ↪ β) (x y z : α),
(Equiv.swap (f x) (f y)) (f z) = f ((Equiv.swap x y) z)
theorem Function.Embedding.swap_comp E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq α] [inst_1 : DecidableEq β] (f : α ↪ β) (x y : α),
⇑(Equiv.swap (f x) (f y)) ∘ ⇑f = ⇑f ∘ ⇑(Equiv.swap x y)
def Equiv.asEmbedding E1 #
{β : Sort u_1} → {α : Sort u_2} → {p : β → Prop} → α ≃ Subtype p → α ↪ β
Given an equivalence to a subtype, produce an embedding to the elements of the corresponding set.
theorem Equiv.asEmbedding_apply E0 #
∀ {β : Sort u_1} {α : Sort u_2} {p : β → Prop} (e : α ≃ Subtype p) (a : α), e.asEmbedding a = ↑(e a)
def Equiv.subtypeInjectiveEquivEmbedding E1 #
(α : Sort u_1) → (β : Sort u_2) → { f // Function.Injective f } ≃ (α ↪ β)
The type of embeddings α ↪ β is equivalent to
the subtype of all injective functions α → β.
def Equiv.embeddingCongr E1 #
{α : Sort u_1} → {β : Sort u_2} → {γ : Sort u_3} → {δ : Sort u_4} → α ≃ β → γ ≃ δ → (α ↪ γ) ≃ (β ↪ δ)
If α₁ ≃ α₂ and β₁ ≃ β₂, then the type of embeddings α₁ ↪ β₁
is equivalent to the type of embeddings α₂ ↪ β₂.
theorem Equiv.embeddingCongr_apply E0 #
∀ {α : Sort u_1} {β : Sort u_2} {γ : Sort u_3} {δ : Sort u_4} (h : α ≃ β) (h' : γ ≃ δ) (f : α ↪ γ),
(h.embeddingCongr h') f = Function.Embedding.congr h h' f
theorem Equiv.embeddingCongr_refl E0 #
∀ {α : Sort u_1} {β : Sort u_2}, (Equiv.refl α).embeddingCongr (Equiv.refl β) = Equiv.refl (α ↪ β)
theorem Equiv.embeddingCongr_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₂).embeddingCongr (e₁'.trans e₂') = (e₁.embeddingCongr e₁').trans (e₂.embeddingCongr e₂')
theorem Equiv.embeddingCongr_symm E0 #
∀ {α₁ : Sort u_1} {β₁ : Sort u_2} {α₂ : Sort u_3} {β₂ : Sort u_4} (e₁ : α₁ ≃ α₂) (e₂ : β₁ ≃ β₂),
(e₁.embeddingCongr e₂).symm = e₁.symm.embeddingCongr e₂.symm
theorem Equiv.embeddingCongr_apply_trans 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.embeddingCongr ec) (f.trans g) = ((ea.embeddingCongr eb) f).trans ((eb.embeddingCongr ec) g)
theorem Equiv.refl_toEmbedding E0 #
∀ {α : Type u_1}, (Equiv.refl α).toEmbedding = Function.Embedding.refl α
theorem Equiv.trans_toEmbedding E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (e : α ≃ β) (f : β ≃ γ),
(e.trans f).toEmbedding = e.toEmbedding.trans f.toEmbedding
def subtypeOrLeftEmbedding E1 #
{α : Type u_1} → (p q : α → Prop) → [DecidablePred p] → { x // p x ∨ q x } ↪ { x // p x } ⊕ { x // q x }
A subtype {x // p x ∨ q x} over a disjunction of p q : α → Prop can be injectively split
into a sum of subtypes {x // p x} ⊕ {x // q x} such that ¬ p x is sent to the right.
theorem subtypeOrLeftEmbedding_apply_left E0 #
∀ {α : Type u_1} {p q : α → Prop} [inst : DecidablePred p] (x : { x // p x ∨ q x }) (hx : p ↑x),
(subtypeOrLeftEmbedding p q) x = Sum.inl ⟨↑x, hx⟩
theorem subtypeOrLeftEmbedding_apply_right E0 #
∀ {α : Type u_1} {p q : α → Prop} [inst : DecidablePred p] (x : { x // p x ∨ q x }) (hx : ¬p ↑x),
(subtypeOrLeftEmbedding p q) x = Sum.inr ⟨↑x, ⋯⟩
theorem subtypeOrLeftEmbedding_apply E0 #
∀ {α : Type u_1} {p q : α → Prop} [inst : DecidablePred p] (x : { x // p x ∨ q x }),
(subtypeOrLeftEmbedding p q) x = if h : p ↑x then Sum.inl ⟨↑x, h⟩ else Sum.inr ⟨↑x, ⋯⟩
def Subtype.impEmbedding E1 #
{α : Type u_1} → (p q : α → Prop) → (∀ (x : α), p x → q x) → { x // p x } ↪ { x // q x }
A subtype {x // p x} can be injectively sent to into a subtype {x // q x},
if p x → q x for all x : α.
theorem Subtype.impEmbedding_apply_coe E0 #
∀ {α : Type u_1} (p q : α → Prop) (h : ∀ (x : α), p x → q x) (x : { x // p x }), ↑((Subtype.impEmbedding p q h) x) = ↑x
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Function.Embedding.oneEmbeddingEquiv | Equiv.embeddingUnique | 2026-11-02 |