| ID | 89f3744d-a08e-4b99-b4ed-7e70f78c69a9 |
|---|---|
| DeertopiaVisibility | public |
Inclusion (mathematics)
Definition
In mathematics, an inclusion, inclusion map, or a canonical injection is a colloquial term for the "canonical" injective mapping from to , where .
The concept of an inclusion is particularly useful communication device in non–set-theoretic contexts where sub-collections are more difficult to define. One such setting is a type theoretic one such as Haskell: consider the inclusion . In Haskell, two objects of different types are fundamentally different objects; to say is equal to is nonsense in Haskell land. It is up to us to somewhat-arbitrarily agree that is a "sub-type" of , a statement that is justified by the injectivity of .