Viterbi m-semiring #
This file defines the Viterbi semiring over non-negative reals in [0,1].
Addition is max, multiplication is the usual product, zero is 0, and one is 1.
The Viterbi semiring is absorptive and idempotent, and satisfies left-distributivity of multiplication over monus.
This semiring is discussed in Green & Tannen, The Semiring Framework for Database Provenance.
References #
@[implicit_reducible]
Equations
- Viterbi.instCoeNNReal = { coe := Subtype.val }
@[implicit_reducible]
Equations
- Viterbi.instZero = { zero := ⟨0, Viterbi.instZero._proof_1⟩ }
@[implicit_reducible]
Equations
- Viterbi.instOne = { one := ⟨1, Viterbi.instOne._proof_1⟩ }
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Viterbi is a commutative m-semiring. The natural order is the usual order on
[0,1], and the monus is a if a > b, 0 if a ≤ b.
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
- Viterbi.instCommSemiringWithMonus = { toSemiringWithMonus := Viterbi.instSemiringWithMonus, mul_comm := Viterbi.instCommSemiringWithMonus._proof_1 }