deepdream of
          a sidewalk
Show Question
Math and science::Algebra::Aluffi

Identity, inclusion and restriction

This note describes 3 concepts: identity functions, inclusion functions and function restriction.

Identity function

Every set A has a function whose graph is the subset of A×A consisting of the elements on the diagonal. This function is called the identity function on A, denoted as idA.

idA:AA,aA,idA(a)=a

The identity function can be generalized slightly to arrive at the inclusion function.

Inclusion function

Let S be a subset of A. The inclusion function i:SA maps an element in S to the same elements in A.

i:SA,sS,i(s)=s

For a given function f, the inclusion function composes with f to create a restriction.

Restriction

Let f:AX be a function, and let SA be a subset of A. The restriction of f to S, denoted as f|S is defined as:

f|S:SX,sS,f|S=f(s)

The restriction f|S can be viewed as the composition fi, where i:SA is the inclusion function.


Identity function and composition

The identity function is very special with respect to composition: for any function f, both idBf=f and fidA=f. As a graphical representation, these two statements correspond to stating that the following two diagrams compute.


Source

Aluffi
p9