# Computations and Relational Bundles

## Abstract

We explore the view of a computation as a relational section of a (trivial) fibre bundle: initial states lie in the base of the bundle and final states lie in the fibres located at their initial states. This leads us to represent a computation in ‘fibre-form’ as the angelic choice of its behaviours from each initial state. That view is shown to have the advantage also of permitting final states to be of different types, as might be used for example in a semantics of probabilistic computations, and of providing a natural setting for refinement of computations.

However we apply that view in a different direction. On computations more general than code the two standard models, the relational and the predicate-transformer models, obey different laws. One way to understand that difference is to study the laws of more refined models, like the semantics of probabilistic computations. Another is to characterise each model by its laws. In spite of their differences, the relational model is embedded in the transformer model by a Galois connection which can be used to transfer much of the structure on transformers to the relational model. We investigate the extent to which the conjugate on predicate transformers translates to relations and use the result to motivate a characterisation of relational computations, achieved by using fibre-forms.

## Keywords

State Space Normal Form Transformer Model Relational Model Relational Semantic## Preview

Unable to display preview. Download preview PDF.

## References

- BvW98.Back, R.-J., von Wright, J.: Refinement Calculus: A Systematic Introduction. Graduate Texts in Computer Science. Springer, Heidelberg (1998)MATHGoogle Scholar
- D76.Dijsktra, E.W.: A Discipline of Programming. Prentice-Hall International, Englewood Cliffs (1976)Google Scholar
- HSM97.Jifeng, H., Seidel, K., McIver, A.K.: Probabilistic models for the guarded command language. Science of Computer Programming 28, 171–192 (1997)CrossRefMathSciNetMATHGoogle Scholar
- H92.Hesselink, W.H.: Programs, Recursion and Unbounded Choice. Cambridge University Press, Cambridge (1992)CrossRefMATHGoogle Scholar
- H87.Hoare, C.A.R., et al.: The laws of programming. Communications of the ACM 30, 672–686 (1987)CrossRefMathSciNetMATHGoogle Scholar
- HH98.Hoare, C.A.R., Jifeng, H.: Unifying Theories of Programming. Prentice Hall, Englewood Cliffs (1998)Google Scholar
- MM05.McIver, A.K., Morgan, C.C.: Abstraction, Refinement and Proof for Probabilistic Systems. Springer Monographs in Computer Science (2005)Google Scholar
- N89.Nelson, G.: A generalisation of Dijkstra’s calculus. ACM ToPLAS 11(4), 517–561 (1989)CrossRefGoogle Scholar
- O44.Ore, O.: Galois connexions. Transactions of the American Mathematical Society 55, 494–513 (1944)CrossRefMathSciNetGoogle Scholar
- R06.Rewitzky, I.M.: Monotone predicate transformers as up-closed multirelations. In: Schmidt, R.A. (ed.) RelMiCS/AKA 2006. LNCS, vol. 4136, Springer, Heidelberg (2006)CrossRefGoogle Scholar
- dRE98.de Roever, W.-P., Engelhardt, K.: Data Refinement: Model-Oriented Proof Methods and their Comparison. Cambridge Tracts in Theoretical Computer Science. Cambridge University Press, Cambridge (1998)CrossRefMATHGoogle Scholar
- SZ00.Sanders, J.W., Zuliani, P.: Quantum Programming. In: Backhouse, R., Oliveira, J.N. (eds.) MPC 2000. LNCS, vol. 1837, pp. 80–99. Springer, Heidelberg (2000)CrossRefGoogle Scholar
- S51.Steenrod, N.: The Topology of Fibre Bundles. Princeton University Press, Princeton (1951)MATHGoogle Scholar
- vW04.von Wright, J.: Towards a refinement algebra. Science of Computer Programming 51, 23–45 (2004)CrossRefMathSciNetMATHGoogle Scholar