The eventbmethod provides a general framework for modelling both data structures and algorithms. b models are validated by discharging proof obligations ensuring safety properties. We address the problem of developm...
详细信息
The eventbmethod provides a general framework for modelling both data structures and algorithms. b models are validated by discharging proof obligations ensuring safety properties. We address the problem of development of greedy algorithms using the seminal work of S. Curtis;she has formalised greedy algorithms in a relational calculus and has provided a list of results ensuring optimality results. Our first contribution is a re-modelling of Curtis's results in the eventb framework and a mechanical checking of theorems on greedy algorithms The second contribution is the reuse of the mathematical framework for developing greedy algorithms from eventb models;since the resulting eventb models are generic, we show how to instantiate generic eventb models to derive specific greedy algorithms;generic eventb developments help in managing proofs complexity. Consequently, we contribute to the design of a library of proof-based developed algorithms.
The paper reports on practical experience with the eventbmethod, when developing case studies, especially distributed algorithms, which are very complex to verify in practice. Using the eventbmethod, we develop a ...
详细信息
ISBN:
(纸本)9783642114465
The paper reports on practical experience with the eventbmethod, when developing case studies, especially distributed algorithms, which are very complex to verify in practice. Using the eventbmethod, we develop a famous distributed algorithm, namely the leader election protocol for an acyclic network, generally known as the IEEE 1394. The algorithm exists and the refinement helps us to model it entirely in an elegant way. The final model is very close to the real algorithm. Only the termination proof is missing, since it is a probabilistic algorithm, as well as the contention resolution, which is solved at a global abstract level. Modelling is clearly fundamental and complex;it should be carried out by persons able to use refinement and to manage abstractions or more precisely abstract models and proofs. Advantages of such an incremental development are multiple what we quote here and that will be explained in detail. We replay the development to improve the proof process and we obtain new distributed algorithms solving the leader election protocol problem. Two strategies are used to build the new algorithms;a first strategy is called the contention resolution;a second strategy is called the contention prevention and is based on a priority among possible nodes of the network. The two resulting algorithms are cheaper than the original IEEE 1394 protocol and neither acknowledgement, nor confirmation is required. We show how the techniques of localisation help in deriving the final distributed algorithm. The paper is an extended version of the complete development of the two new algorithms and it aims to emphasize methodological aspects related to the event 13 development.
暂无评论