Explicit entropy for numerical operations #
Stochastic rounding and randomized numerical algorithms must expose their entropy state in the
function type. EntropyResult and EntropyKernel make that state transition explicit without a
global random source or a runtime operation dictionary.
An optimized kernel remains an ordinary monomorphic function. Its proof contract records how the input entropy, result, and output entropy are related.
A numerical result paired with the entropy state available to the next operation.
- result : Result
The operation's ordinary result.
- entropy : Entropy
The explicitly updated entropy state.
Instances For
Instances For
Instances For
Transform only the ordinary result while preserving the updated entropy state.
Instances For
Mapping an entropy result applies the supplied function to its ordinary result.
Mapping an entropy result leaves its updated entropy state unchanged.
Relational correctness of an entropy-threading executable operation.
The relation may express deterministic state evolution, a probabilistic interpretation of the consumed bits, or merely that the selected result belongs to a permitted stochastic support.