A call of LoopSnoc.sample is a sampling of dlist #
EasyCrypt's Sample_LoopSnoc_eq (DList.ec's Program theory), at the level of statements: the
call x <@ LoopSnoc.sample(n) has the runs of the sampling x <$ dlist d n
(LoopSnoc.call_denotation). prhlStmt_seq_dlist_left is EasyCrypt's
transitivity{1} { x <@ LoopSnoc.sample(n); } (true ==> ={x}) (…) on a leading sampling: it
replaces it by the call, whose loop can then be inlined and related to another loop. Kept apart
from DList.lean so that its importers need not be rebuilt.
The call x <@ LoopSnoc.sample(n) runs as the sampling x <$ dlist d n.
EC's transitivity{1} { x <@ LoopSnoc.sample(n); } (true ==> ={x}) (…): a leading sampling of
dlist d n on the left is replaced by the call of LoopSnoc.sample(n) (Sample_LoopSnoc_eq).
prhlStmt_seq_dlist_left for a left statement that is the sampling alone.