ArticleslgStudy

science

Log semiring

Log semiring is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Log semiring rather than just read about it. In short: In mathematics, in the field of tropical analysis, the log-semiring is the semiring structure on the logarithmic scale, obtained by considering the extended real numbers as logarithms. That is, the operations of addition and multiplication are defined by conjugation: exponentiate the real numbers, obtaining a positive (or zero) number, add or multiply these numbers with the ordinary algebraic operations on real numb…

Key takeaways

  • Log semiring belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Log semiring to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Log semiring from memory before moving on to harder problems.

Reference excerpt

In mathematics, in the field of tropical analysis, the log-semiring is the semiring structure on the logarithmic scale, obtained by considering the extended real numbers as logarithms. That is, the operations of addition and multiplication are defined by conjugation: exponentiate the real numbers, obtaining a positive (or zero) number, add or multiply these numbers with the ordinary algebraic operations on real numbers, and then take the logarithm 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 b for the exponent and logarithm (b 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 b < 1 is equivalent to using a negative sign and using the inverse 1/b > 1. If not qualified, the base is conventionally taken to be e or 1/e, which corresponds to e with a negative. The log-semiring has the tropical semiring as limit ("tropicalization", "dequantization") as the base goes to infinity ⁠b→∞⁠ (max-plus semiring) or to zero ⁠b→0⁠ (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 or minimum. The log-semiring has applications in mathematical 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 a logarithmic scale), such as decibels (see Decibel § Addition), 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 (there are no negatives), known as the probability semiring, so the log-semiring operations can be viewed as pullbacks of the operations on the probability semiring, and these are isomorphic as rings. Formally, given the extended real numbers R ∪ {–∞, +∞} and a positive base b ≠ 1, one defines:

x⊕by=logb(bx+by)x⊗by=logb(bx×by)=logb(bx+y)=x+y. Regardless of base, log-multiplication is the same as usual addition, x⊗by=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 is logb0=−∞ for b>1 and logb0=−log1/b0=+∞ for b<1, and the unit for log-multiplication is log⁡1=0, regardless of base. More concisely, the unit log-semiring can be defined with the base e as:

x⊕y=log⁡(ex+ey)x⊗y=x+y. with additive unit −∞ and multiplicative unit 0; this corresponds to the max convention. The opposite convention is also common, and corresponds to the base 1/e, the minimum convention:

x⊕y=−log⁡(e−x+e−y)x⊗y=x+y. 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 +∞) have a multiplicative inverse, given by −x, since x⊗−x=logb(bx⋅b−x)=logb(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 the quasi-arithmetic mean corresponding to the exponent), as

Mlm(x,y):=(x⊕y)⊘2=logb((bx+by)/2)=logb(bx+by)−logb2=(x⊕y)−logb2. This is just addition shifted by −logb2, since log-division corresponds to linear subtraction. A log-semiring has the usual Euclidean metric, which corresponds to the logarithmic scale on the positive real numbers. Similarly, a log-semiring has the usual Lebesgue measure, which is an invariant measure with respect to log-multiplication (usual addition, geometrically translation) which corresponds to the logarithmic measure on the probability semiring.

See also Logarithmic mean LogSumExp Softmax

Notes

References

Worked examples

Example 1 — a first encounter with Log semiring

Start with the simplest possible case. Write down what Log semiring claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Log semiring before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Log semiring ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Log semiring

In research
Log semiring appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Log semiring in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Log semiring is common in secondary-school and first-year university syllabi. It links to neighbouring topics Logarithms, Tropical analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Log semiring outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Log semiring” →

How to study Log semiring in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Log semiring means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Log semiring out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Log semiring in simple terms?

In mathematics, in the field of tropical analysis, the log-semiring is the semiring structure on the logarithmic scale, obtained by considering the extended real numbers as logarithms. That is, the operations of addition and multiplication are defined by conjugation: exponentiate the real numbers…

Why does Log semiring matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Log semiring?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Log semiring.

Tags

  • Logarithms
  • Tropical analysis

Keep exploring