Probabilistic block specifications for a family of preconditions
Library · Source module
Probabilistic block specifications for a family of preconditions
A contract of a randomized routine is often a family ∀ x, PWrites … (P x) (Q x) φ: one good set of tapes for each input x (a matrix stored in the memory, say). A caller that runs the routine at a memory whose input is not known in advance needs one good set, measurable in the memory, and a family of good sets chosen independently for each x need not be measurable jointly in x. When the input is determined by the memory and the relation between the memory before and after the run that the family guarantees is contained in a measurable set T, the largest good set "the run ends in T" serves for every input at once (NLAlib.Ops.PWrites.pstep_of_forall).
Also here: consequence through the frame (NLAlib.Ops.PWrites.mono_eqOff), the branch on a size (NLAlib.Ops.PWrites.ifPos), and the measurability of the frame relation and of a stored cell.
Main results
* NLAlib.Ops.PWrites.pstep_of_forall: a family of probabilistic block specifications with a measurable relation is one probabilistic step specification. * NLAlib.Ops.PWrites.mono_eqOff, NLAlib.Ops.PWrites.ifPos. * NLAlib.Ops.Mem.measurableSet_eqOff, NLAlib.Ops.Mem.measurableSet_get_eq, NLAlib.Ops.Mem.measurableSet_get_mem, NLAlib.Ops.Mem.measurableSet_readBlock_eq.