Skip to main content

frame_preserving_update_nondeterministic

Function frame_preserving_update_nondeterministic 

Source
pub open spec fn frame_preserving_update_nondeterministic<P: RA>(
    a: P,
    bs: ISet<P>,
    f: FnSpec<(P,), P>,
) -> bool
Expand description
{ forall |c| P::op(a, c).valid() ==> bs.contains(f(c)) && P::op(f(c), c).valid() }

A nondeterministic version of a frame_preserving_update.

Rather than quantifying existentially over the new value, the caller provides a witness function f that maps each valid frame c to a new value f(c) in bs that is still compatible with c.