Injective function

A function that never takes the same value on two different inputs
Injective function

An injective function is a f:ABf:A\to B such that whenever f(a1)=f(a2)f(a_1)=f(a_2), it follows that a1=a2a_1=a_2.

Injectivity means distinct elements of the remain distinct after applying ff. In terms of , an injective function from AA to BB is evidence that AA is “no larger than” BB.

Examples:

  • The inclusion map i:SAi:S\to A of a is injective, since i(s)=i(s)i(s)=i(s') implies s=ss=s'.
  • The function f:ZZf:\mathbb{Z}\to\mathbb{Z} given by f(n)=2nf(n)=2n is injective, but it is not surjective onto Z\mathbb{Z}.