Information about Idempotent

Idempotence IPA: /ˌaɪdɨmˈpoʊtənts/ describes the property of operations in mathematics and computer science that yield the same result after the operation is applied multiple times. The concept of idempotence arises in a number of places in abstract algebra (in particular, in the theory of projectors, closure operators and functional programming, in which it is connected to the property of referential transparency).

There are two main definitions of idempotence in use:
  • Given a binary operation, an idempotent element (or simply an idempotent) is something that when multiplied by (or for a function, composed with) itself, gives itself as a result. For example, the only two real numbers which are idempotent under multiplication are 0 and 1.
  • A unary operation is idempotent if, whenever it is applied twice to any element, it gives the same result as if it were applied once. For example, the greatest integer function is idempotent as a function from the set of real numbers to the set of integers. This "unary operation definition" is in fact a special case of the "binary operation definition", see below.

Formal definitions

Binary operation

If S is a set with a binary operation * on it, then an element s of S is said to be idempotent (with respect to *) if

s * s = s.


In particular, any identity element is idempotent. If every element of S is idempotent, then the binary operation * is said to be idempotent. For example, the operations of set union and set intersection are both idempotent.

Unary operation

If f is a unary operation, i.e. a map f from some set X into itself, then f is idempotent if, for all x in X,

f(f(x)) = f(x).


This is equivalent to say that f o f = f, using function composition denoted by "o". Thus an idempotent unary operation on X is an idempotent element of the set XX of all functions from X into itself, with respect to the binary operation "o", in the sense of the previous definition.

In particular, the identity function f(x) = x is idempotent, and any constant function f(x) = c is idempotent as well.

Common examples

Computer Science

In computer science, the term idempotent is used to describe method or subroutine calls which can safely be called multiple times, as invoking the procedure a single time or multiple times results in the system maintaining the same state i.e. after the method call all variables have the same value as they did before.

Example: Looking up some customer's name and address are typically idempotent, since the system will not change state based on this. However, placing an order for a car for the customer is not, since running the method/call several times will lead to several orders being placed, and therefore the state of the system being changed to reflect this.

Functions

As mentioned above, the identity map and the constant maps are always idempotent maps. Less trivial examples are the absolute value function of a real or complex argument, and the floor function of a real argument.

The function which assigns to every subset U of some topological space X the closure of U is idempotent on the power set of X. It is an example of a closure operator; all closure operators are idempotent functions.

Idempotent ring elements

An idempotent element of a ring is by definition an element that's idempotent with respect to the ring's multiplication. One may define a partial order on the idempotents of a ring as follows: if e and f are idempotents, we write ef iff ef = fe = e. With respect to this order, 0 is the smallest and 1 the largest idempotent.

Two idempotents e and f are called orthogonal if ef = fe = 0. In this case, e + f is also idempotent, and we have ee + f and fe + f.

If e is idempotent in the ring R, then so is f = 1 − e; e and f are orthogonal.

If e is idempotent in the ring R, then eRe is again a ring, with multiplicative identity e.

An idempotent e in R is called central if ex = xe for all x in R. In this case, Re is a ring with multiplicative identity e. The central idempotents of R are closely related to the decompositions of R as a direct sum of rings. If R is the direct sum of the rings R1,...,Rn, then the identity elements of the rings Ri are central idempotents in R, pairwise orthogonal, and their sum is 1. Conversely, given central idempotents e1,...,en in R which are pairwise orthogonal and have sum 1, then R is the direct sum of the rings Re1,...,Ren. So in particular, every central idempotent e in R gives rise to a decomposition of R as a direct sum of Re and R(1 − e).

Any idempotent e which is different from 0 and 1 is a zero divisor (because e(1 − e) = 0). This shows that integral domains and division rings don't have such idempotents. Local rings also don't have such idempotents, but for a different reason. The only idempotent that's contained in the Jacobson radical of a ring is 0. There is a catenoid of idempotents in the coquaternion ring.

A ring in which all elements are idempotent is called a boolean ring. It can be shown that in every such ring, multiplication is commutative, and every element is its own additive inverse.

Relation with involutions

If e is an idempotent, then is an involution.

If T is an involution, then is an idempotent, and these are inverse: thus if 2 is invertible in a ring, idempotents and involutions are equivalent.

Further, if T is an involution, then and are orthogonal idempotents, corresponding to e and .

Numerical examples

One may consider the ring of integers mod n, where n is squarefree. By the Chinese Remainder Theorem, this ring factors into the direct product of rings of integers mod p. Now each of these factors is a division ring, so it's clear that the only idempotents will be 0 and 1. That is, each factor has 2 idempotents. So if there are m factors, there will be idempotents.

We can check this for the integers mod 6. Since 6 has 2 factors (2 and 3) it should have idempotents.

0 = 0^2 = 0^3 = etc (mod 6) 1 = 1^2 = 1^3 = etc (mod 6) 3 = 3^2 = 3^3 = etc (mod 6) 4 = 4^2 = 4^3 = etc (mod 6)

Evidently it works.

Other examples

Idempotent operations can be found in Boolean algebra as well.

In linear algebra, projections are idempotent. In fact, they are defined as idempotent linear maps.

An idempotent semiring is a semiring whose addition (not multiplication) is idempotent.

There are idempotent matrices.

Physics

One of the most important concepts in quantum mechanics is that of an eigenstate. From these states, the set of all possible states can be constructed. But the probability distributions associated with eigenstates are idempotents. To see this we might consider a given eigenstate. Now as time progresses, only the phase changes. So the absolute square yields a probability distribution P which is a constant with respect to time. In this case the function f simply allows a random amount of time to pass, so that P=f(P)=f(f(P)), etc.

See also

This chart shows concisely the most common way in which the International Phonetic Alphabet (IPA) is applied to represent the English language.

See International Phonetic Alphabet for English for a more complete version and Pronunciation respelling for English for phonetic
..... Click the link for more information.
Mathematics (colloquially, maths or math) is the body of knowledge centered on such concepts as quantity, structure, space, and change, and also the academic discipline that studies them. Benjamin Peirce called it "the science that draws necessary conclusions".
..... Click the link for more information.
Computer science, or computing science, is the study of the theoretical foundations of information and computation and their implementation and application in computer systems.
..... Click the link for more information.
Abstract algebra is the subject area of mathematics that studies algebraic structures, such as groups, rings, fields, modules, vector spaces, and algebras. Most authors nowadays simply write algebra instead of abstract algebra.
..... Click the link for more information.
projection is a linear transformation P from a vector space to itself such that P2 = P. Projections map the whole vector space to a subspace and leave the points in that subspace unchanged.
..... Click the link for more information.
In mathematics, given a partially ordered set (P, ≤), a closure operator on P is a function C : PP with the following properties:
  • xC(x) for all x, i.e.

..... Click the link for more information.
Functional programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids state and mutable data. It emphasizes the application of functions, in contrast with the imperative programming style that emphasizes changes in state.
..... Click the link for more information.
Referential transparency is a property of parts of computer programs. An expression is said to be referentially transparent if it can be replaced with its value without changing the program (in other words, yielding a program that has the same effects and output on the same input).
..... Click the link for more information.
In mathematics, a binary operation is a calculation involving two input quantities, in other words, an operation whose arity is two. Binary operations can be accomplished using either a binary function or binary operator.
..... Click the link for more information.
function expresses dependence between two quantities, one of which is given (the independent variable, argument of the function, or its "input") and the other produced (the dependent variable, value of the function, or "output").
..... Click the link for more information.
In mathematics, the real numbers may be described informally as numbers that can be given by an infinite decimal representation, such as 2.4871773339…. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as π and
..... Click the link for more information.
In mathematics, a unary operation is an operation with only one operand, i.e. an operation with a single input, or in other words, a function of one variable (for the terminology see also operators versus functions).
..... Click the link for more information.
floor and the ceiling functions are two functions which convert arbitrary real numbers to close integers.[1]

The floor function of a real number x, denoted or floor(x
..... Click the link for more information.
The integers (from the Latin integer, which means with untouched integrity, whole, entire) are the set of numbers including the whole numbers (0, 1, 2, 3, …) and their negatives (0, −1, −2, −3, …).
..... Click the link for more information.
In mathematics, a binary operation is a calculation involving two input quantities, in other words, an operation whose arity is two. Binary operations can be accomplished using either a binary function or binary operator.
..... Click the link for more information.
identity element (or neutral element) is a special type of element of a set with respect to a binary operation on that set. It leaves other elements unchanged when combined with them. This is used for groups and related concepts.
..... Click the link for more information.
In set theory and other branches of mathematics, the union of a collection of sets is the set that contains everything that belongs to any of the sets, but nothing else.

Basic definition

If A and B are sets, then the union of A and B
..... Click the link for more information.
In mathematics, the intersection of two sets A and B is the set that contains all elements of A that also belong to B (or equivalently, all elements of B that also belong to A), but no other elements.
..... Click the link for more information.
In mathematics, a unary operation is an operation with only one operand, i.e. an operation with a single input, or in other words, a function of one variable (for the terminology see also operators versus functions).
..... Click the link for more information.
composite function, formed by the composition of one function on another, represents the application of the former to the result of the application of the latter to the argument of the composite.
..... Click the link for more information.
In mathematics, an identity function, also called identity map or identity transformation, is a function that always returns the same value that was used as its argument.
..... Click the link for more information.
In mathematics a constant function is a function whose values do not vary and thus are constant. For example, if we have the function f(x) = 4, then f is constant since f maps any value to 4.
..... Click the link for more information.
Computer science, or computing science, is the study of the theoretical foundations of information and computation and their implementation and application in computer systems.
..... Click the link for more information.
confusing or unclear for some readers.

Please help [ improve the article] or discuss these issues on the talk page. In object-oriented programming, the term method refers to a subroutine that is exclusively associated either with a class (called class methods
..... Click the link for more information.
In computer science, a subroutine (function, method, procedure, or subprogram) is a portion of code within a larger program, which performs a specific task and can be relatively independent of the remaining code.
..... Click the link for more information.
In mathematics, the absolute value (or modulus[1]) of a real number is its numerical value without regard to its sign. So, for example, 3 is the absolute value of both 3 and −3.
..... Click the link for more information.
In mathematics, the real numbers may be described informally as numbers that can be given by an infinite decimal representation, such as 2.4871773339…. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as π and
..... Click the link for more information.
In mathematics, a complex number is a number of the form


where a and b are real numbers, and i is the imaginary unit, with the property i ² = −1.
..... Click the link for more information.
floor and the ceiling functions are two functions which convert arbitrary real numbers to close integers.[1]

The floor function of a real number x, denoted or floor(x
..... Click the link for more information.


Topological spaces are mathematical structures that allow the formalization of concepts such as convergence, connectedness and continuity.
..... Click the link for more information.


This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus


page counter