Restriction (mathematics) explained

f

is a new function, denoted

f\vertA

or

f{\restrictionA},

obtained by choosing a smaller domain

A

for the original function

f.

The function

f

is then said to extend

f\vertA.

Formal definition

Let

f:E\toF

be a function from a set

E

to a set

F.

If a set

A

is a subset of

E,

then the restriction of

f

to

A

is the function[1] _A : A \to Fgiven by

{f|}A(x)=f(x)

for

x\inA.

Informally, the restriction of

f

to

A

is the same function as

f,

but is only defined on

A

.

If the function

f

is thought of as a relation

(x,f(x))

on the Cartesian product

E x F,

then the restriction of

f

to

A

can be represented by its graph,

G({f|}A)=\{(x,f(x))\inG(f):x\inA\}=G(f)\cap(A x F),

where the pairs

(x,f(x))

represent ordered pairs in the graph

G.

Extensions

A function

F

is said to be an of another function

f

if whenever

x

is in the domain of

f

then

x

is also in the domain of

F

and

f(x)=F(x).

That is, if

\operatorname{domain}f\subseteq\operatorname{domain}F

and

F\vert\operatorname{domainf}=f.

A (respectively, , etc.) of a function

f

is an extension of

f

that is also a linear map (respectively, a continuous map, etc.).

Examples

  1. The restriction of the non-injective function

f:R\toR,x\mapstox2

to the domain

R+=[0,infty)

is the injection

f:R+\toR,x\mapstox2.

  1. The factorial function is the restriction of the gamma function to the positive integers, with the argument shifted by one:
{\Gamma|}
Z+

(n)=(n-1)!

Properties of restrictions

f:XY

to its entire domain

X

gives back the original function, that is,

f|X=f.

A\subseteqB\subseteq\operatorname{dom}f,

then

\left(f|B\right)|A=f|A.

X

to a subset

A

of

X

is just the inclusion map from

A

into

X.

[2]

Applications

Inverse functions

See main article: Inverse function. For a function to have an inverse, it must be one-to-one. If a function

f

is not one-to-one, it may be possible to define a partial inverse of

f

by restricting the domain. For example, the functionf(x) = x^2defined on the whole of

\R

is not one-to-one since

x2=(-x)2

for any

x\in\R.

However, the function becomes one-to-one if we restrict to the domain

\R\geq=[0,infty),

in which casef^(y) = \sqrt .

(If we instead restrict to the domain

(-infty,0],

then the inverse is the negative of the square root of

y.

) Alternatively, there is no need to restrict the domain if we allow the inverse to be a multivalued function.

Selection operators

See main article: Selection (relational algebra).

In relational algebra, a selection (sometimes called a restriction to avoid confusion with SQL's use of SELECT) is a unary operation written as

\sigmaa(R)

or

\sigmaa(R)

where:

a

and

b

are attribute names,

\theta

is a binary operation in the set

\{<,\leq,=,,\geq,>\},

v

is a value constant,

R

is a relation.

The selection

\sigmaa(R)

selects all those tuples in

R

for which

\theta

holds between the

a

and the

b

attribute.

The selection

\sigmaa(R)

selects all those tuples in

R

for which

\theta

holds between the

a

attribute and the value

v.

Thus, the selection operator restricts to a subset of the entire database.

The pasting lemma

See main article: Pasting lemma.

The pasting lemma is a result in topology that relates the continuity of a function with the continuity of its restrictions to subsets.

Let

X,Y

be two closed subsets (or two open subsets) of a topological space

A

such that

A=X\cupY,

and let

B

also be a topological space. If

f:A\toB

is continuous when restricted to both

X

and

Y,

then

f

is continuous.

This result allows one to take two continuous functions defined on closed (or open) subsets of a topological space and create a new one.

Sheaves

See main article: Sheaf theory.

Sheaves provide a way of generalizing restrictions to objects besides functions.

In sheaf theory, one assigns an object

F(U)

in a category to each open set

U

of a topological space, and requires that the objects satisfy certain conditions. The most important condition is that there are restriction morphisms between every pair of objects associated to nested open sets; that is, if

V\subseteqU,

then there is a morphism

\operatorname{res}V,U:F(U)\toF(V)

satisfying the following properties, which are designed to mimic the restriction of a function:

U

of

X,

the restriction morphism

\operatorname{res}U,U:F(U)\toF(U)

is the identity morphism on

F(U).

W\subseteqV\subseteqU,

then the composite

\operatorname{res}W,V\circ\operatorname{res}V,U=\operatorname{res}W,U.

\left(Ui\right)

is an open covering of an open set

U,

and if

s,t\inF(U)

are such that
s\vert
Ui

=

t\vert
Ui
for each set

Ui

of the covering, then

s=t

; and

\left(Ui\right)

is an open covering of an open set

U,

and if for each

i

a section

xi\inF\left(Ui\right)

is given such that for each pair

Ui,Uj

of the covering sets the restrictions of

si

and

sj

agree on the overlaps:

si\vert

Ui\capUj

=sj\vert

Ui\capUj

,

then there is a section

s\inF(U)

such that
s\vert
Ui

=si

for each

i.

The collection of all such objects is called a sheaf. If only the first two properties are satisfied, it is a pre-sheaf.

Left- and right-restriction

More generally, the restriction (or domain restriction or left-restriction)

A\triangleleftR

of a binary relation

R

between

E

and

F

may be defined as a relation having domain

A,

codomain

F

and graph

G(A\triangleleftR)=\{(x,y)\inF(R):x\inA\}.

Similarly, one can define a right-restriction or range restriction

R\trianglerightB.

Indeed, one could define a restriction to

n

-ary
relations, as well as to subsets understood as relations, such as ones of the Cartesian product

E x F

for binary relations.These cases do not fit into the scheme of sheaves.

Anti-restriction

The domain anti-restriction (or domain subtraction) of a function or binary relation

R

(with domain

E

and codomain

F

) by a set

A

may be defined as

(E\setminusA)\triangleleftR

; it removes all elements of

A

from the domain

E.

It is sometimes denoted

A

 ⩤ 

R.

[5] Similarly, the range anti-restriction (or range subtraction) of a function or binary relation

R

by a set

B

is defined as

R\triangleright(F\setminusB)

; it removes all elements of

B

from the codomain

F.

It is sometimes denoted

R

 ⩥ 

B.

Notes and References

  1. Book: Stoll, Robert. Sets, Logic and Axiomatic Theories. W. H. Freeman and Company. 1974. San Francisco. [36]. 2nd. 0-7167-0457-9.
  2. Book: Halmos, Paul. Paul Halmos. Naive Set Theory. Princeton, NJ. D. Van Nostrand. 1960. Reprinted by Springer-Verlag, New York, 1974. (Springer-Verlag edition). Reprinted by Martino Fine Books, 2011. (Paperback edition).
  3. Book: Munkres, James R.. Topology. 2nd. Upper Saddle River. Prentice Hall. 2000. 0-13-181629-2.
  4. Book: Adams, Colin Conrad. Robert David. Franzosa. Introduction to Topology: Pure and Applied. Pearson Prentice Hall. 2008. 978-0-13-184869-6.
  5. Dunne, S. and Stoddart, Bill Unifying Theories of Programming: First International Symposium, UTP 2006, Walworth Castle, County Durham, UK, February 5–7, 2006, Revised Selected ... Computer Science and General Issues). Springer (2006)