In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, an iterated binary operation is an extension of a
binary operation
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation ...
on a
set ''S'' to a
function on finite
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
s of elements of ''S'' through repeated application.
Common examples include the extension of the
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
operation to the
summation
In mathematics, summation is the addition of a sequence of numbers, called ''addends'' or ''summands''; the result is their ''sum'' or ''total''. Beside numbers, other types of values can be summed as well: functions, vectors, matrices, pol ...
operation, and the extension of the
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
operation to the
product operation. Other operations, e.g., the set-theoretic operations
union and
intersection, are also often
iterated, but the iterations are not given separate names. In print, summation and product are represented by special symbols; but other iterated operators often are denoted by larger variants of the symbol for the ordinary binary operator. Thus, the iterations of the four operations mentioned above are denoted
:
and
, respectively.
More generally, iteration of a binary function is generally denoted by a slash: iteration of
over the sequence
is denoted by
, following the notation for
reduce in
Bird–Meertens formalism.
In general, there is more than one way to extend a binary operation to operate on finite sequences, depending on whether the operator is
associative, and whether the operator has
identity element
In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied. For example, 0 is an identity element of the addition of real numbers. This concept is use ...
s.
Definition
Denote by a
''j'',''k'', with and , the finite sequence of length of elements of ''S'', with members (''a''
i), for . Note that if , the sequence is empty.
For , define a new function ''F''
''l'' on finite nonempty sequences of elements of ''S'', where
Similarly, define
If ''f'' has a unique left identity ''e'', the definition of ''F''
''l'' can be modified to operate on empty sequences by defining the value of ''F''
''l'' on an empty sequence to be ''e'' (the previous base case on sequences of length 1 becomes redundant). Similarly, ''F''
''r'' can be modified to operate on empty sequences if ''f'' has a unique right identity.
If ''f'' is associative, then ''F''
''l'' equals ''F''
''r'', and we can simply write ''F''. Moreover, if an identity element ''e'' exists, then it is unique (see
Monoid).
If ''f'' is
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
and associative, then ''F'' can operate on any non-empty finite
multiset by applying it to an arbitrary enumeration of the multiset. If ''f'' moreover has an identity element ''e'', then this is defined to be the value of ''F'' on an empty multiset. If ''f'' is idempotent, then the above definitions can be extended to
finite sets.
If ''S'' also is equipped with a
metric or more generally with
topology that is
Hausdorff, so that the concept of a
limit of a sequence
As the positive integer n becomes larger and larger, the value n\times \sin\left(\tfrac1\right) becomes arbitrarily close to 1. We say that "the limit of the sequence n \times \sin\left(\tfrac1\right) equals 1."
In mathematics, the li ...
is defined in ''S'', then an ''
infinite iteration'' on a countable sequence in ''S'' is defined exactly when the corresponding sequence of finite iterations converges. Thus, e.g., if ''a''
0, ''a''
1, ''a''
2, ''a''
3, … is an infinite sequence of
real numbers, then the
infinite product is defined, and equal to
if and only if that limit exists.
Non-associative binary operation
The general, non-associative binary operation is given by a
magma
Magma () is the molten or semi-molten natural material from which all igneous rocks are formed. Magma (sometimes colloquially but incorrectly referred to as ''lava'') is found beneath the surface of the Earth, and evidence of magmatism has also ...
. The act of iterating on a non-associative binary operation may be represented as a
binary tree
In computer science, a binary tree is a tree data structure in which each node has at most two children, referred to as the ''left child'' and the ''right child''. That is, it is a ''k''-ary tree with . A recursive definition using set theor ...
.
Notation
Iterated binary operations are used to represent an operation that will be repeated over a set subject to some constraints. Typically the lower bound of a restriction is written under the symbol, and the upper bound over the symbol, though they may also be written as superscripts and subscripts in compact notation. Interpolation is performed over positive
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s from the lower to upper bound, to produce the set which will be substituted into the index (below denoted as ''i'') for the repeated operations.
Common notations include the big Sigma (
repeated sum) and big Pi (
repeated product) notations.
It is possible to specify set membership or other logical constraints in place of explicit indices, in order to implicitly specify which elements of a set shall be used:
Multiple conditions may be written either joined with a
logical and or separately:
Less commonly, any
binary operator such as
exclusive or or
set union
In set theory, the union (denoted by ∪) of a collection of sets is the set of all elements in the collection. It is one of the fundamental operations through which sets can be combined and related to each other.
A refers to a union of ze ...
may also be used.
For example, if ''S'' is a set of logical
propositions:
which is true
iff
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either both ...
all of the elements of ''S'' are true.
See also
*
Unary operation
*
Unary function
*
Binary operation
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation ...
*
Binary function
*
Ternary operation
References
External links
Bulk action
{{Webarchive, url=https://web.archive.org/web/20130603182033/http://wotug.ukc.ac.uk/parallel/acronyms/hpccgloss/P.html#parallel%20prefix , date=2013-06-03
Binary operations