Although there are cases where isomorphic objects can be considered equal, one must distinguish and . Equality is when two objects are the same, and therefore everything that is true about one object is true about the other. On the other hand, isomorphisms are related to some structure, and two isomorphic objects share only the properties that are related to this structure. For example, the sets A = \left\{ x \in \Z \mid x^2 are ; they are merely different representations—the first an
intensional one (in
set builder notation), and the second
extensional (by explicit enumeration)—of the same subset of the integers. By contrast, the sets \{4,5,6\} and \{1, 2, 3\} are not since they do not have the same elements. They are isomorphic as sets, but there are many choices (in fact 6) of an isomorphism between them: one isomorphism is :\text{4} \mapsto 1, \text{5} \mapsto 2, \text{6} \mapsto 3, while another is :\text{4} \mapsto 3, \text{5} \mapsto 2, \text{6} \mapsto 1, and no one isomorphism is intrinsically better than any other. Also,
integers and
even numbers are isomorphic as
ordered sets and
abelian groups (for addition), but cannot be considered equal sets, since one is a
proper subset of the other. On the other hand, when sets (or other
mathematical objects) are specified only by their properties, without considering the nature of their elements, one often considers them to be equal. This is generally the case with solutions of
universal properties. For examples, the polynomial rings , and are considered as equal, since they have the same universal property. For example, the
rational numbers are formally defined as
equivalence classes of pairs of integers. The universal property of the rational numbers is essentially that they form a
field that contains the integers and does not contain any proper subfield. Given two fields with these properties, there is a unique field isomorphism between them. This allows identifying these two fields, since every property of one of them can be transferred to the other through the isomorphism. The
real numbers that can be expressed as a quotient of integers form the smallest subfield of the reals. There is thus a unique isomorphism from this subfield of the reals to the rational numbers defined by equivalence classes. So, the rational numbers may be identified to the elements of a subset of the real numbers. However, in some contexts this identification is not allowed. For example, in
computer languages and
type theory, real numbers and rational numbers have different representations, and the identification must be replaced with a
type conversion. == Notation ==