Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Log semiring

From Wikipedia, the free encyclopedia
Semiring arising in tropical analysis

Inmathematics, in the field oftropical analysis, thelog semiring is thesemiring structure on thelogarithmic scale, obtained by considering theextended real numbers aslogarithms. That is, the operations of addition and multiplication are defined byconjugation:exponentiate the real numbers, obtaining a positive (or zero) number, add or multiply these numbers with the ordinaryalgebraic operations on real numbers, and then take thelogarithm 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 baseb for the exponent and logarithm (b is a choice oflogarithmic unit), which corresponds to a scale factor, and are well-defined for any positive base other than 1; using a baseb < 1 is equivalent to using a negative sign and using the inverse1/b > 1.[a] If not qualified, the base is conventionally taken to bee or1/e, which corresponds toe with a negative.

The log semiring has thetropical semiring as limit ("tropicalization", "dequantization") as the base goes to infinityb{\displaystyle b\to \infty } (max-plus semiring) or to zerob0{\displaystyle b\to 0} (min-plus semiring), and thus can be viewed as adeformation ("quantization") of the tropical semiring. Notably, the addition operation,logadd (for multiple terms,LogSumExp) can be viewed as a deformation ofmaximum orminimum. The log semiring has applications inmathematical optimization, 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 alogarithmic scale), such asdecibels (seeDecibel § Addition),log probability, orlog-likelihoods.

Definition

[edit]

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 asemiring (there are no negatives), known as theprobability semiring, so the log semiring operations can be viewed aspullbacks of the operations on the probability semiring, and these areisomorphic as rings.

Formally, given the extended real numbersR ∪ {–∞, +∞}[b] and a baseb ≠ 1, one defines:

xby=logb(bx+by)xby=logb(bx×by)=logb(bx+y)=x+y.{\displaystyle {\begin{aligned}x\oplus _{b}y&=\log _{b}\left(b^{x}+b^{y}\right)\\x\otimes _{b}y&=\log _{b}\left(b^{x}\times b^{y}\right)=\log _{b}\left(b^{x+y}\right)=x+y.\end{aligned}}}

Regardless of base, log multiplication is the same as usual addition,xby=x+y{\displaystyle x\otimes _{b}y=x+y}, 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 islogb0={\displaystyle \log _{b}0=-\infty } forb>1{\displaystyle b>1} andlogb0=log1/b0=+{\displaystyle \log _{b}0=-\log _{1/b}0=+\infty } forb<1{\displaystyle b<1}, and the unit for log multiplication islog1=0{\displaystyle \log 1=0}, regardless of base.

More concisely, the unit log semiring can be defined for basee as:

xy=log(ex+ey)xy=x+y.{\displaystyle {\begin{aligned}x\oplus y&=\log \left(e^{x}+e^{y}\right)\\x\otimes y&=x+y.\end{aligned}}}

with additive unit−∞ and multiplicative unit 0; this corresponds to the max convention.

The opposite convention is also common, and corresponds to the base1/e, the minimum convention:[1]

xy=log(ex+ey)xby=x+y.{\displaystyle {\begin{aligned}x\oplus y&=-\log \left(e^{-x}+e^{-y}\right)\\x\otimes _{b}y&=x+y.\end{aligned}}}

with additive unit+∞ and multiplicative unit 0.

Properties

[edit]

A log semiring is in fact asemifield, since all numbers other than the additive unit−∞ (or+∞) has a multiplicative inverse, given byx,{\displaystyle -x,} sincexx=logb(bxbx)=logb(1)=0.{\displaystyle x\otimes -x=\log _{b}(b^{x}\cdot b^{-x})=\log _{b}(1)=0.} 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 thequasi-arithmetic mean corresponding to the exponent), as

Mlm(x,y):=(xy)2=logb((bx+by)/2)=logb(bx+by)logb2=(xy)logb2.{\displaystyle M_{\mathrm {lm} }(x,y):=(x\oplus y)\oslash 2=\log _{b}{\bigl (}(b^{x}+b^{y})/2{\bigr )}=\log _{b}(b^{x}+b^{y})-\log _{b}2=(x\oplus y)-\log _{b}2.}

This is just addition shifted bylogb2,{\displaystyle -\log _{b}2,} since logarithmic division corresponds to linear subtraction.

A log semiring has the usual Euclidean metric, which corresponds to thelogarithmic scale on thepositive real numbers.

Similarly, a log semiring has the usualLebesgue measure, which is aninvariant measure with respect to log multiplication (usual addition, geometrically translation) with corresponds to thelogarithmic measure on theprobability semiring.

See also

[edit]

Notes

[edit]
  1. ^Sincebx=(b1)x=(1/b)x{\displaystyle b^{-x}=\left(b^{-1}\right)^{x}=(1/b)^{x}}
  2. ^Usually only one infinity is included, not both, since=+(){\displaystyle \infty \otimes -\infty =\infty +(-\infty )} is ambiguous, and is best left undefined, as is 0/0 in real numbers.

References

[edit]
  1. ^Lothaire 2005, p. 211.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Log_semiring&oldid=1147108248"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp