The logarithm function for $\mathbb{R}$ satisfies $\log xy = \log x + \log y$ whenever both $\log x$ and $\log y$ are defined.
Are their conditions for a ring $R$ which guarantee the existence of a reasonably large $D \subseteq R$ together with a function $L \colon D \rightarrow D$ that satisfies: if $d_{0}, d_{1} \in D$ then $d_{0}d_{1} \in D$ and $L(d_{0}d_{1}) = L(d_{0}) + L(d_{1})$?
If $0 \in D$ then $L$ is the zero function. I am looking for something not quite so trivial. Since the elements of $D$ are closed under multiplication this might have something to do with rings of fractions. Since ring addition is abelian the elements of $D$ will commute.
In this paper Baez, Fritz, and Leinster use convexity and logarithm functions. If $R$ is an arbitrary ring we can replace $[0, 1] \subseteq \mathbb{R}$ with a subset $C \subseteq R$ that satisfies
- We have $0, 1 \in C$.
- For all $c, c_{0}, c_{1} \in C$ we have $c c_{0} + (1 - c) c_{1} \in C$.
The set $C$ will work for the convexity parts of the proofs. There are parts, see corollary 4, where the nonnegative reals are used. We can use $C^{*}$ where $C^{*}$ is the smallest set satisfying
- We have $C \subseteq C^{*}$.
- If $c \in C$ and $c^{*}_{0}, c^{*}_{1} \in C^{*}$ then $cc^{*}_{0} +(1 - c)c^{*}_{1} \in C^{*}$.
- For all $r \in R$; if there exists a $c \in C \smallsetminus \{ 0 \} $ with $cr \in C^{*}$ then $r \in C^{*}$.
With a logarithm function we could create a notion of entropy for a ring where the value of the entropy is an element of the ring.
You can define the logarithm on Banach algebras using the Taylor series whenever it converges, and more generally in any topological ring where the Taylor series makes sense and converges. This is already useful for e.g. finite-dimensional real matrices. But IIRC the correct statement is that $\log(ab) = \log(a) + \log(b)$ if everything is defined and $a, b$ commute.
There are some obstructions for more general rings, e.g. if $R$ is a commutative ring then a logarithm function needs to give a homomorphism from some subgroup of $R^{\times}$ to some subgroup of $R$ and there may not be a nonzero such homomorphism (consider $R = \mathbb{F}_p$ for $p$ prime).
It's far from clear to me that it's meaningful to generalize entropy much beyond $\mathbb{R}$. All of the motivations I know for defining entropy are pretty specific to the real numbers, and in particular order structure is very important.