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 ...
, in the field of
tropical analysis, the log semiring is the
semiring
In abstract algebra, a semiring is an algebraic structure. Semirings are a generalization of rings, dropping the requirement that each element must have an additive inverse. At the same time, semirings are a generalization of bounded distribu ...
structure on the
logarithmic scale
A logarithmic scale (or log scale) is a method used to display numerical data that spans a broad range of values, especially when there are significant differences among the magnitudes of the numbers involved.
Unlike a linear Scale (measurement) ...
, obtained by considering the
extended real numbers
In mathematics, the extended real number system is obtained from the real number system \R by adding two elements denoted +\infty and -\infty that are respectively greater and lower than every real number. This allows for treating the potential ...
as
logarithm
In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
s. That is, the operations of addition and multiplication are defined by
conjugation
Conjugation or conjugate may refer to:
Linguistics
*Grammatical conjugation, the modification of a verb from its basic form
*Emotive conjugation or Russell's conjugation, the use of loaded language
Mathematics
*Complex conjugation, the change o ...
:
exponentiate the real numbers, obtaining a positive (or zero) number, add or multiply these numbers with the ordinary
algebraic operation
In mathematics, a basic algebraic operation is any one of the common operations of elementary algebra, which include addition, subtraction, multiplication, division, raising to a whole number power, and taking roots (fractional power). These o ...
s on real numbers, and then take the
logarithm
In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
to reverse the initial exponentiation. Such operations are also known as, e.g., logarithmic addition, etc. As usual in tropical analysis, the operations are denoted by ⊕ and ⊗ to distinguish them from the usual addition + and multiplication × (or ⋅). These operations depend on the choice of base for the exponent and logarithm ( is a choice of
logarithmic unit), which corresponds to a scale factor, and are well-defined for any positive base other than 1; using a base is equivalent to using a negative sign and using the inverse . If not qualified, the base is conventionally taken to be or , which corresponds to with a negative.
The log semiring has the
tropical semiring
In idempotent analysis, the tropical semiring is a semiring of extended real numbers with the operations of minimum (or maximum) and addition replacing the usual ("classical") operations of addition and multiplication, respectively.
The tropical s ...
as limit ("
tropicalization", "dequantization") as the base goes to infinity (
max-plus semiring) or to zero (
min-plus semiring), and thus can be viewed as a
deformation ("quantization") of the tropical semiring. Notably, the addition operation, ''logadd'' (for multiple terms,
LogSumExp) can be viewed as a deformation of
maximum
In mathematical analysis, the maximum and minimum of a function (mathematics), function are, respectively, the greatest and least value taken by the function. Known generically as extremum, they may be defined either within a given Interval (ma ...
or
minimum. The log semiring has applications in
mathematical optimization
Mathematical optimization (alternatively spelled ''optimisation'') or mathematical programming is the selection of a best element, with regard to some criteria, from some set of available alternatives. It is generally divided into two subfiel ...
, since it replaces the non-smooth maximum and minimum by a smooth operation. The log semiring also arises when working with numbers that are logarithms (measured on a
logarithmic scale
A logarithmic scale (or log scale) is a method used to display numerical data that spans a broad range of values, especially when there are significant differences among the magnitudes of the numbers involved.
Unlike a linear Scale (measurement) ...
), such as
decibel
The decibel (symbol: dB) is a relative unit of measurement equal to one tenth of a bel (B). It expresses the ratio of two values of a Power, root-power, and field quantities, power or root-power quantity on a logarithmic scale. Two signals whos ...
s (see ),
log probability, or
log-likelihoods.
Definition
The operations on the log semiring can be defined extrinsically by mapping them to the non-negative real numbers, doing the operations there, and mapping them back. The non-negative real numbers with the usual operations of addition and multiplication form a
semiring
In abstract algebra, a semiring is an algebraic structure. Semirings are a generalization of rings, dropping the requirement that each element must have an additive inverse. At the same time, semirings are a generalization of bounded distribu ...
(there are no negatives), known as the
probability semiring, so the log semiring operations can be viewed as
pullback
In mathematics, a pullback is either of two different, but related processes: precomposition and fiber-product. Its dual is a pushforward.
Precomposition
Precomposition with a function probably provides the most elementary notion of pullback: ...
s of the operations on the probability semiring, and these are
isomorphic
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
as rings.
Formally, given the extended real numbers and a base , one defines:
:
Regardless of base, log multiplication is the same as usual addition,
, since logarithms take multiplication to addition; however, log addition depends on base. The units for usual addition and multiplication are 0 and 1; accordingly, the unit for log addition is
for
and
for
, and the unit for log multiplication is
, regardless of base.
More concisely, the unit log semiring can be defined for base as:
:
with additive unit and multiplicative unit 0; this corresponds to the max convention.
The opposite convention is also common, and corresponds to the base , the minimum convention:
:
with additive unit and multiplicative unit 0.
Properties
A log semiring is in fact a
semifield, since all numbers other than the additive unit (or ) has a multiplicative inverse, given by
since
Thus log division ⊘ is well-defined, though log subtraction ⊖ is not always defined.
A mean can be defined by log addition and log division (as the
quasi-arithmetic mean corresponding to the exponent), as
:
This is just addition shifted by
since logarithmic division corresponds to linear subtraction.
A log semiring has the usual Euclidean metric, which corresponds to the
logarithmic scale
A logarithmic scale (or log scale) is a method used to display numerical data that spans a broad range of values, especially when there are significant differences among the magnitudes of the numbers involved.
Unlike a linear Scale (measurement) ...
on the
positive real numbers
In mathematics, the set of positive real numbers, \R_ = \left\, is the subset of those real numbers that are greater than zero. The non-negative real numbers, \R_ = \left\, also include zero. Although the symbols \R_ and \R^ are ambiguously used fo ...
.
Similarly, a log semiring has the usual
Lebesgue measure
In measure theory, a branch of mathematics, the Lebesgue measure, named after French mathematician Henri Lebesgue, is the standard way of assigning a measure to subsets of higher dimensional Euclidean '-spaces. For lower dimensions or , it c ...
, which is an
invariant measure
In mathematics, an invariant measure is a measure that is preserved by some function. The function may be a geometric transformation. For examples, circular angle is invariant under rotation, hyperbolic angle is invariant under squeeze mappin ...
with respect to log multiplication (usual addition, geometrically translation) with corresponds to the
logarithmic measure on the
probability semiring.
See also
*
Logarithmic mean
*
LogSumExp
*
Softmax
Notes
References
*
{{refend
Semiring
In abstract algebra, a semiring is an algebraic structure. Semirings are a generalization of rings, dropping the requirement that each element must have an additive inverse. At the same time, semirings are a generalization of bounded distribu ...
Tropical analysis