Theorems · Definition · logic and foundations
Equiv.toEmbedding
{α : 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:
``lean
-- 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
``
- Defined in
- Mathlib.Logic.Embedding.Basic
- Cited by
- 254 results in Mathlib
- Foundations
- Depth 15 from the axioms, rests on 60 definitions · uses Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites4
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- DFunLike.coeproof · cited by 62,936
- Equivstatement and proof · cited by 8,337
- Function.Embeddingstatement · cited by 988
- Equiv.injectiveproof · cited by 464
Cited by285
Results whose statement or proof uses this declaration.
- Finsupp.equivMapDomainproof · cited by 35
- RelIso.toRelEmbeddingproof · cited by 34
- finsum_eq_sum_of_support_subsetproof · cited by 28
- Finset.eraseNoneproof · cited by 21
- finprod_eq_prod_of_mulSupport_subsetproof · cited by 21
- Int.divisorsAntidiagproof · cited by 17
- LinearIndependent.cardinal_lift_le_rankproof · cited by 16
- Int.divisorsproof · cited by 14
- Nat.finMulAntidiagproof · cited by 13
- Finset.map_univ_equivstatement · cited by 12
- Fin.natAdd_castLEEmbproof · cited by 11
- Polynomial.resultant_commproof · cited by 11
Showing the 200 most cited of 285.