The setting
In broadcast processes on trees with the three-state symmetric channel, a posterior distribution of the root spin given the boundary spins is a probability vector on three states, represented as a likelihood vector whose three coordinates sum to . The library, abbreviated OAI (OpenAI), has two parts, OAI.ThreeState and OAI.ThreeState.TreeClauses, and both define the entropy functionals, the first on messages, the likelihood vectors of root posteriors, and the second on arbitrary vectors in .
Messages
A three-state spin in OAI.ThreeState is an element , indexing the three states that the preprint labels , , .✦ A vector in OAI.ThreeState.TreeClauses is a triple of real coordinates indexed by .✦ Taking products and powers of vectors coordinatewise, both parts of the library define the coordinate average of a vector by (1) The message space in OAI.ThreeState is the set of vectors with for every spin and , so that the coordinate average in (1) is .✦ Each element of the message space is called a message; it equals for a posterior probability vector on the three spins, and we write , where denotes the vector .
Logarithmic coordinates
Throughout both parts of the library, logarithms are natural with the convention . In OAI.ThreeState.TreeClauses, the average of the log message of a vector is the coordinate average of .✦
Centered log coordinates add under products of likelihood vectors because the common normalizing constant cancels on centering. For a message in OAI.ThreeState, the centered log message is the vector on with coordinates (2)✦ for each . In OAI.ThreeState.TreeClauses, the same expression (2) defines the centered log vector for any vector .✦
The definition
Definition. In OAI.ThreeState, for a message with and centered log message , the entropy term is (3)✦ The quantity (3) is the relative entropy of the posterior with respect to the uniform law on the three spins. The symmetrized entropy satisfies an expected additivity identity across the branches of the tree, giving the symmetric-channel form of the symmetrized-entropy recursion. The symmetrized entropy is (4)✦ The second-order entropy is a centered-log correction whose expected branch recursion combines a linear branch term with a quadratic term in the expectation of . The second-order entropy is (5)✦ At the message of the uniform posterior, , and vanish. Combining (3), (4) and (5), the entropy functional is (6)✦ In OAI.ThreeState.TreeClauses, for any vector with centered log vector , the expressions (3), (4) (with in place of ) and (5) define the entropy term , the symmetrized entropy and the second-order entropy , and, matching (6), the radial functional is (7)✦
What is checked
In OAI.ThreeState, the entropy functionals (3), (4), (5) and (6) are defined over messages on the three spins with nonnegative coordinates summing to and the convention , while in OAI.ThreeState.TreeClauses the radial functional (7) is defined over arbitrary vectors in .