# Equivalent definitions of mathematical structures

In mathematics, equivalent definitions are used in two somewhat different ways. First, within a particular mathematical theory (for example, Euclidean geometry), a notion (for example, ellipse or minimal surface) may have more than one definition. These definitions are equivalent in the context of a given mathematical structure (Euclidean space, in this case). Second, a mathematical structure may have more than one definition (for example, topological space has at least seven definitions; ordered field has at least two definitions).
In the former case, equivalence of two definitions means that a mathematical object (for example, geometric body) satisfies one definition if and only if it satisfies the other definition.
In the latter case, the meaning of equivalence (between two definitions of a structure) is more complicated, since a structure is more abstract than an object. Many different objects may implement the same structure.

## Isomorphic implementations

Natural numbers may be implemented as 0 = { }, 1 = {0} = {{ }}, 2 = {0, 1} = {{ }, {{ }}}, 3 = {0, 1, 2} = {{ }, {{ }}, {{ }, {{ }}}} and so on; or alternatively as 0 = { }, 1 = {0} ={{ }}, 2 = {1} = {{{ }}} and so on. These are two different but isomorphic implementations of natural numbers in set theory. They are isomorphic as models of Peano axioms, that is, triples (N,0,S) where N is a set, 0 an element of N, and S (called the successor function) a map of N to itself (satisfying appropriate conditions). In the first implementation S(n) = n ∪ {n}; in the second implementation S(n) = {n}. As emphasized in Benacerraf's identification problem, the two implementations differ in their answer to the question whether 0 ∈ 2; however, this is not a legitimate question about natural numbers (since the relation ∈ is not stipulated by the relevant signature(s), see the next section). Similarly, different but isomorphic implementations are used for complex numbers.

## Deduced structures and cryptomorphisms

The successor function S on natural numbers leads to arithmetic operations, addition and multiplication, and the total order, thus endowing N with an ordered semiring structure. This is an example of a deduced structure. The ordered semiring structure (N, +, ·, ≤) is deduced from the Peano structure (N, 0, S) by the following procedure: n + 0 = n, m + S (n) = S (m + n), m · 0 = 0, m · S (n) = m + (m · n), and m ≤ n if and only if there exists k ∈ N such that m + k = n. And conversely, the Peano structure is deduced from the ordered semiring structure as follows: S (n) = n + 1, and 0 is defined by 0 + 0 = 0. It means that the two structures on N are equivalent by means of the two procedures.
The two isomorphic implementations of natural numbers mentioned in the previous section are isomorphic as triples (N,0,S), that is, structures of the same signature (0,S) consisting of a constant symbol 0 and a unary function S. An ordered semiring structure (N, +, ·, ≤) has another signature (+, ·, ≤) consisting of two binary functions and one binary relation. The notion of isomorphism does not apply to structures of different signatures. In particular, a Peano structure cannot be isomorphic to an ordered semiring. However, an ordered semiring deduced from a Peano structure may be isomorphic to another ordered semiring. Such relation between structures of different signatures is sometimes called a cryptomorphism.

## Ambient frameworks

A structure may be implemented within a set theory ZFC, or another set theory such as NBG, NFU, ETCS. Alternatively, a structure may be treated in the framework of first-order logic, second-order logic, higher-order logic, a type theory, homotopy type theory etc.

## Structures according to Bourbaki

    "Mathematics [...] cannot be explained completely by a single concept such as the mathematical structure. Nevertheless, Bourbaki's structuralist approach is the best that we have." (Pudlák 2013, page 3)
    "Evident as the notion of mathematical structure may seem these days, it was at least not made explicit until the middle of the 20th century. Then it was the influence of the Bourbaki-project and then later the development of category theory which made the notion explicit" (nLab).
According to Bourbaki, the scale of sets on a given set X consists of all sets arising from X by taking Cartesian products and power sets, in any combination, a finite number of times. Examples: X; X × X; P(X); P(P(X × X) × X × P(P(X))) × X. (Here A × B is the product of A and B, and P(A) is the powerset of A.) In particular, a pair (0,S) consisting of an element 0 ∈ N and a unary function S : N → N belongs to N × P(N × N) (since a function is a subset of the Cartesian product). A triple (+, ·, ≤) consisting of two binary functions N × N → N and one binary relation on N belongs to P(N × N × N) × P(N × N × N) × P(N × N). Similarly, every algebraic structure on a set belongs to the corresponding set in the scale of sets on X.
Non-algebraic structures on a set X often involve sets of subsets of X (that is, subsets of P(X), in other words, elements of P(P(X))). For example, the structure of a topological space, called a topology on X, treated as the set of "open" sets; or the structure of a measurable space, treated as the σ-algebra of "measurable" sets; both are elements of P(P(X)). These are second-order structures.
More complicated non-algebraic structures combine an algebraic component and a non-algebraic component. For example, the structure of a topological group consists of a topology and the structure of a group. Thus it belongs to the product of P(P(X)) and another ("algebraic") set in the scale; this product is again a set in the scale.

### Transport of structures; isomorphism

Given two sets X, Y and a bijection f : X → Y, one constructs the corresponding bijections between scale sets. Namely, the bijection X × X → Y × Y sends (x$_1$,x$_2$) to (f(x$_1$),f(x$_2$)); the bijection P(X) → P(Y) sends a subset A of X into its image f(A) in Y; and so on, recursively: a scale set being either product of scale sets or power set of a scale set, one of the two constructions applies.
Let (X,U) and (Y,V) be two structures of the same signature. Then U belongs to a scale set S$_X$, and V belongs to the corresponding scale set S$_Y$. Using the bijection F : S$_X$ → S$_Y$ constructed from a bijection f : X → Y, one defines:
    f is an isomorphism between (X,U) and (Y,V) if F(U) = V.
This general notion of isomorphism generalizes many less general notions listed below.
* For algebraic structures: isomorphism is a bijective homomorphism.
* In particular, for vector spaces: linear bijection.
* For partially ordered sets: order isomorphism.
* For graphs: graph isomorphism.
* More generally, for sets endowed with a binary relation: relation-preserving isomorphism.
* For topological spaces: homeomorphism or topological isomorphism or bi continuous function.
* For uniform spaces: uniform isomorphism.
* For metric spaces: bijective isometry.
* For topological groups: group isomorphism which is also a homeomorphism of the underlying topological spaces.
* For topological vector spaces: isomorphism of vector spaces which is also a homeomorphism of the underlying topological spaces.
* For Banach spaces: bijective linear isometry.
* For Hilbert spaces: unitary transformation.
* For Lie groups: a bijective smooth group homomorphism whose inverse is also a smooth group homomorphism.
* For smooth manifolds: diffeomorphism.
* For symplectic manifolds: symplectomorphism.
* For Riemannian manifolds: isometric diffeomorphism.
* For conformal spaces: conformal diffeomorphism.
* For probability spaces: a bijective measurable and measure preserving map whose inverse is also measurable and measure preserving.
* For affine spaces: bijective affine transformation.
* For projective spaces: homography.
In fact, Bourbaki stipulates two additional features. First, several sets X$_1$, ..., X$_n$ (so-called principal base sets) may be used, rather than a single set X. However, this feature is of little use. All the items listed above use a single principal base set. Second, so-called auxiliary base sets E$_1$, ..., E$_m$ may be used. This feature is widely used. Indeed, the structure of a vector space stipulates not only addition X × X → X but also scalar multiplication R × X → X (if R is the field of scalars). Thus, R is an auxiliary base set (called also "external"). The scale of sets consists of all sets arising from all base sets (both principal and auxiliary) by taking Cartesian products and power sets. Still, the map f (possibly an isomorphism) acts on X only; auxiliary sets are endowed by identity maps. (However, the case of n principal sets leads to n maps.)

### Functoriality

Several statements formulated by Bourbaki without mentioning categories can be reformulated readily in the language of category theory. First, some terminology.
* The scale of sets is indexed by "echelon construction schemes", called also "types". One may think of, say, the set P(P(X × X) × X × P(P(X))) × X as a set X substituted into the formula "P(P(a × a) × a × P(P(a))) × a" for the variable a; this formula is the corresponding echelon construction scheme. (This notion, defined for all structures, may be thought of as a generalization of the signature defined only for algebraic structures.)
* Let Set* denote the groupoid of sets and bijections. That is, the category whose objects are (all) sets, and morphisms are (all) bijections.
Proposition. Each echelon construction scheme leads to a functor from Set* to itself.
In particular, the permutation group of a set X acts on every scale set S$_X$.
In order to formulate one more proposition, the notion "species of structures" is needed, since echelon construction scheme gives only preliminary information on a structure. For example, commutative groups and (arbitrary) groups are two different species of the same echelon construction scheme. Another example: topological spaces and measurable spaces. They differ in the so-called axiom of the species. This axiom is the conjunction of all required properties, such as "multiplication is associative" for groups, or "the union of open sets is an open set" for topological spaces.
* A species of structures consists of an echelon construction scheme and an axiom of the species.
Proposition. Each species of structures leads to a functor from Set* to itself.
Example. For the species of groups, the functor F maps a set X to the set F(X) of all group structures on X. For the species of topological spaces, the functor F maps a set X to the set F(X) of all topologies on X. The morphism F(f) : F(X) → F(Y) corresponding to a bijection f : X → Y is the transport of structures. Topologies on Y correspond bijectively to topologies on X. The same holds for group structures, etc.
In particular, the set of all structures of a given species on a given set is invariant under the action of the permutation group on the corresponding scale set S$_X$, and is a fixed point of the action of the group on another scale set P(S$_X$). However, not all fixed points of this action correspond to species of structures.
Given two species, Bourbaki defines the notion "procedure of deduction" (of a structure of the second species from a structure of the first species). A pair of mutually inverse procedures of deduction leads to the notion "equivalent species".
Example. The structure of a topological space may be defined as an open set topology or alternatively, a closed set topology. The two corresponding procedures of deduction coincide; each one replaces all given subsets of X with their complements. In this sense, these are two equivalent species.
In the general definition of Bourbaki, deduction procedure may include a change of the principal base set(s), but this case is not treated here. In the language of category theory one have the following result.
Proposition. Equivalence between two species of structures leads to a natural isomorphism between the corresponding functors.
However, in general, not all natural isomorphisms between these functors correspond to equivalences between the species.

## Mathematical practice

    "We often do not distinguish structures that are isomorphic and often say that 'two structures are the same, up to isomorphism'."
    "When studying structures we are interested only in their form, but when we prove their existence we need to construct them."
    'Mathematicians are of course used to identifying isomorphic structures in practice, but they generally do so by "abuse of notation", or some other informal device, knowing that the objects involved are not "really" identical.' (A radically better approach is expected; but for now, Summer 2014, the definitive book quoted above does not elaborate on structures.)
In practice, one makes no distinction between equivalent species of structures.
Usually, a text based on natural numbers (for example, the article "prime number") does not specify the used definition of natural numbers. Likewise, a text based on topological spaces (for example, the article "homotopy", or "inductive dimension") does not specify the used definition of a topological space. Thus, it is possible (and rather probable) that the reader and the author interpret the text differently, according to different definitions. Nevertheless, the communication is successful, which means that such different definitions may be thought of as equivalent.
A person acquainted with topological spaces knows basic relations between neighborhoods, convergence, continuity, boundary, closure, interior, open sets, closed sets, and does not need to know that some of these notions are "primary", stipulated in the definition of a topological space, while others are "secondary", characterized in terms of "primary" notions. Moreover, knowing that subsets of a topological space are themselves topological spaces, as well as products of topological spaces, the person is able to construct some new topological spaces irrespective of the definition.
Thus, in practice a topology on a set is treated like an abstract data type that provides all needed notions (and constructors) but hides the distinction between "primary" and "secondary" notions. The same applies to other kinds of mathematical structures. "Interestingly, the formalization of structures in set theory is a similar task as the formalization of structures for computers."

## Canonical, not just natural

As was mentioned, equivalence between two species of structures leads to a natural isomorphism between the corresponding functors. However, "natural" does not mean "canonical". A natural transformation is generally non-unique.
Example. Consider again the two equivalent structures for natural numbers. One is the "Peano structure" (0,S), the other is the structure (+, ·, ≤) of ordered semiring. If a set X is endowed by both structures then, on one hand, X = { a$_0$, a$_1$, a$_2$, ... } where S(a$_n$) = a$_{n+1}$ for all n and 0 = a$_0$; and on the other hand, X = { b$_0$, b$_1$, b$_2$, ... } where b$_{m+n}$ = b$_m$ + b$_n$, b$_{m·n}$ = b$_m$ · b$_n$, and b$_m$ ≤b$_n$ if and only if m ≤ n. Requiring that a$_n$ = b$_n$ for all n one gets the canonical equivalence between the two structures. However, one may also require a$_0$ = b$_1$, a$_1$ = b$_0$, and a$_n$ = b$_n$ for all n > 1, thus getting another, non-canonical, natural isomorphism. Moreover, every permutation of the index set { 0, 1, 2, ... } leads to a natural isomorphism; they are uncountably many.
Another example. A structure of a (simple) graph on a set V = { 1, 2, ..., n } of vertices may be described by means of its adjacency matrix, a (0,1)-matrix of size n×n (with zeros on the diagonal). More generally, for arbitrary V an adjacency function on V × V may be used. The canonical equivalence is given by the rule: "1" means "connected" (with an edge), "0" means "not connected". However, another rule, "0" means "connected", "1" means "not", may be used, and leads to another, natural but not canonical, equivalence. In this example, canonicity is rather a matter of convention. But here is a worse case. Instead of "0" and "1" one may use, say, the two possible orientations of the plane R$^2$ ("clockwise" and "counterclockwise"). It is difficult to choose a canonical rule in this case.
"Natural" is a well-defined mathematical notion, but it does not ensure uniqueness. "Canonical" does, but generally is more or less conventional. A consistent choice of canonical equivalences is an inevitable component of equivalent definitions of mathematical structures.