Specifying with syntactic theory functors
Autor: | Magne Haveraaen, Markus Roggenbach |
---|---|
Jazyk: | angličtina |
Rok vydání: | 2020 |
Předmět: |
Structure (mathematical logic)
Logic Programming language Computer science Separation of concerns Boilerplate code Algebraic specification Context (language use) 0102 computer and information sciences computer.software_genre 01 natural sciences Structuring Theoretical Computer Science Computational Theory and Mathematics 010201 computation theory & mathematics Formal specification Institution (computer science) computer Software |
Zdroj: | Journal of Logical and Algebraic Methods in Programming |
Popis: | We propose a framework, syntactic theory functors (STFs), for creating syntactic structuring mechanisms for specification languages. Good support for common reuse patterns is important for systematically developing specifications for large systems. Though immaterial to foundational theory, lack of support otherwise causes lengthy writing of boilerplate code or repeated adaptation from one context to another. We present STFs in the context of the Goguen & Burstall institution theory. This theory captures the essential structure of ontologies, modelling and formal specifications (OMS). In particular it provides powerful structuring mechanisms that are independent of the specification formalism, i.e., they are institution-independent. The presented STF framework is institution-independent as well. As such it encompasses many approaches to software and information systems. STFs subsume the standard institution-independent structuring mechanisms, and open up new ways of reusing existing and structuring new specifications. In this, STFs subsume and enrich the tool-set of ‘good practices’, which includes separation of concerns, ease of reuse of specification-text, and improved theorem proving support. STFs are aimed at structuring and reuse beyond the classical mechanisms. However, most STFs are institution-specific and support specific reuse patterns in that institution. With such institution-specific STFs it is possible to incrementally grow more complex institutions from simpler ones. This is very much needed when developing ontologies or specification languages for a new domain. In this paper, we motivate STFs with examples in Casl , the common standard algebraic specification language. We further demonstrate how STFs can ease specification through capturing repeated constructions once and for all as patterns formulated as STFs. |
Databáze: | OpenAIRE |
Externí odkaz: |