The MPEG-2 encoding algorithm is a compression tool for moving pictures and associated audio, developed by the Moving Picture Experts Group (MPEG) and is designed to cover a wide range of requirements from "VHS quality" to "HDTV". The compression methods used by MPEG-2 are considered to be asymmetrical in the meaning that the encoder is more complex than the decoder. This approach is new because MPEG does not specify the whole encoding process. In fact, the most important step of the encoding algorithm (namely the algorithms used to produce the motion vector) is not specified. Only some basic steps and the format of the compatible output are explicit specified, so that each encoder provider can create his own interpretation of the algorithm. This technique has the benefit that the decoders will remain compatible even as the encoders evolve. Due to its high acceptance and wide use, it is important to verify that the algorithm works as expected using formal methods, not only testing. To this end, we have used CafeOBJ, an executable algebraic specification language, to specify the algorithm and prove some desirable safety properties. More precisely, we specified the MPEG-2 encoding algorithm, considering the unspecified by MPEG steps as black boxes, as an Observational Transition System in CafeOBJ, and created a formal proof that for any input the output is as expected, thus proving that the algorithm works correctly.
Purpose
Reactive rules are used for programming rule-based Web agents, which have the ability to detect events and respond to them automatically and can have complex structure and unpredictable behavior. The aim of this paper is to provide an appropriate formal framework for analyzing such rules.
Design/methodology/approach
To achieve this goal, the authors give two alternative semantics for the basic reactive rules’ families which allow us to specify reactive rule-based agents and verify their intended behavior. The first approach expresses the functionality of production and event condition action rules in terms of equations, whereas the second methodology is based in the formalism of rewriting logic. Both semantics can be expressed within the framework of CafeOBJ algebraic specification language, which then offers the verification support and have their advantages and downsides.
Findings
The authors report on experiences gained by applying those methodologies in a reactive rule-based system and compare the two methodologies.
Originality/value
Finally, the authors demonstrate a tool that translates a set of reactive rules into CafeOBJ rewrite rules, thus making the verification of reactive rules possible for inexperienced users.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.