Walks realizing substochastic matrices #
A substochastic matrix A over states ι whose entries are multiples of 1 / |X|, for a finite
alphabet X, is the transition matrix of a deterministic walk driven by uniformly random letters
of X. The walk lives on Option ι, where none is an absorbing sink collecting the missing
mass of each row. From state some i, the letters are split into disjoint parts, A i j |X|
letters moving to some j for each j, and the remaining letters move to none. The supplied
order of the columns and numbering of the alphabet assign consecutive intervals of letters to the
columns (walkStep_eq_some_iff).
Reading m uniform letters then moves some i to some j with probability (A ^ m) i j
(dens_foldl_walkStep_eq). This is how a matrix produced by rounding, such as the dyadic
substochastic matrices of the Saks–Zhou rounding operator, is turned back into a read-once
branching program over random letters.
Main definitions #
Cslib.Probability.SaksZhou.walkStep: one step of the walk of a matrix on a letter.
Main results #
Cslib.Probability.SaksZhou.dens_walkStep_eq: one uniform letter movessome itosome jwith probabilityA i j.Cslib.Probability.SaksZhou.dens_foldl_walkStep_eq:muniform letters movesome itosome jwith probability(A ^ m) i j.
Allocate exactly counts i j letters of row i to each column j, consecutively in the
supplied order. Unallocated letters, oversized rows and the sink all move to the sink.
Replace the real matrix in an ordered walk by its integer multiplicities.
In a row whose weights fit, a letter moves to column order j exactly when its index lies
between the sum of the preceding column weights and that sum plus the current weight. This lets
an evaluator find the destination by scanning the columns in order.
The destination interval for the integer weights induced by a real matrix.
One uniform letter moves some i to some j with probability A i j.
The walk realizes the matrix powers: m uniform letters move some i to some j with
probability (A ^ m) i j.