Hostname: page-component-7b7567c8c-fvjsw Total loading time: 0 Render date: 2026-11-14T03:59:22.344Z Has data issue: false hasContentIssue false

Semantics of templates in a compositional framework for building logics

Published online by Cambridge University Press:  03 September 2015

INGMAR DASSEVILLE
Affiliation:
KU Leuven (e-mail: firstname.lastname@cs.kuleuven.be)
MATTHIAS VAN DER HALLEN
Affiliation:
KU Leuven (e-mail: firstname.lastname@cs.kuleuven.be)
GERDA JANSSENS
Affiliation:
KU Leuven (e-mail: firstname.lastname@cs.kuleuven.be)
MARC DENECKER
Affiliation:
KU Leuven (e-mail: firstname.lastname@cs.kuleuven.be)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

There is a growing need for abstractions in logic specification languages such as FO(·) and ASP. One technique to achieve these abstractions are templates (sometimes called macros). While the semantics of templates are virtually always described through a syntactical rewriting scheme, we present an alternative view on templates as second order definitions. To extend the existing definition construct of FO(·) to second order, we introduce a powerful compositional framework for defining logics by modular integration of logic constructs specified as pairs of one syntactical and one semantical inductive rule. We use the framework to build a logic of nested second order definitions suitable to express templates. We show that under suitable restrictions, the view of templates as macros is semantically correct and that adding them does not extend the descriptive complexity of the base logic, which is in line with results of existing approaches.

Information

Type
Regular Papers
Copyright
Copyright © Cambridge University Press 2015