Publication type: |
Article in Proceedings |
Author: |
Lutz Schröder, Till Mossakowski, Christoph Lüth |
Editor: |
José Fiadeiro |
Title: |
Type class polymorphism in an institutional framework |
Book / Collection title: |
Recent Trends in Algebraic Development Techniques, 17th International Workshop (WADT 2004) |
Volume: |
3423 |
Page(s): |
234 – 248 |
Series: |
Lecture Notes in Computer Science |
Year published: |
2005 |
Publisher: |
Springer, Berlin |
Abstract: |
Higher-order logic with ML-style type class
polymorphism is widely used as a specification formalism. Its
polymorphic entities (types, operators, axioms) can easily be equipped
with a `naive' semantics defined in terms of collections of
instances. However, this semantics has the unpleasant property that
while model reduction preserves satisfaction of sentences, model
expansion generally does not. In other words, unless further measures
are taken, type class polymorphism fails to constitute a proper
institution, being only a so-called rps preinstitution; this is
unfortunate, as it means that one cannot use institution-independent or
heterogeneous structuring languages, proof calculi, and tools with it.
Here, we suggest to remedy this problem by modifying the notion of model
to include information also about its potential future extensions. Our
construction works at a high level of generality in the sense that it
provides, for any preinstitution, an institution in which the original
preinstitution can be represented. The semantics of polymorphism used in
the specification language HasCASL makes use of this result. In fact,
HasCASL's polymorphism is a special case of a general notion of
polymorphism in institutions introduced here, and our construction
leads to the right notion of semantic consequence when applied to this
generic polymorphism. The appropriateness of the
construction for other frameworks that share the same problem depends on
methodological questions to be decided case by case. In particular, it
turns out that our method is apparently unsuitable for observational
logics, while it works well with abstract state machine formalisms such as
state-based CASL. |
Internet: |
http://www.springerlink.com/openurl.asp?genre=article&issn=0302-9743&volume=3423&spage=234 |
PDF Version: |
http://www.informatik.uni-bremen.de/~lschrode/papers/typeclasses.pdf |
PostScript Version: |
http://www.informatik.uni-bremen.de/~lschrode/papers/typeclasses.ps |
Keywords: |
type class polymorphism institution satisfaction condition preinstitution |
Status: |
Reviewed |
Last updated: |
31. 01. 2006 |
|
|