skip to main content
10.1145/888251.888269acmconferencesArticle/Chapter ViewAbstractPublication PagesppdpConference Proceedingsconference-collections
Article

A framework for typed HOAS and semantics

Published: 27 August 2003 Publication History

Abstract

We investigate a framework for representing and reasoning about syntactic and semantic aspects of typed languages with variable binders.First, we introduce typed binding signatures and develop a theory of typed abstract syntax with binders. Each signature is associated to a category of "presentation" models, where the language of the typed signature is the initial model.At the semantic level, types can be given also a computational meaning in a (possibly different) semantic category. We observe that in general, semantic aspects of terms and variables can be reflected in the presentation category by means of an adjunction. Therefore, the category of presentation models is expressive enough to represent both the syntactic and the semantic aspects of languages.We introduce then a metalogical system, inspired by the internal languages of the presentation category, which can be used for reasoning on both the syntax and the semantics of languages. This system is composed by a core equational logic tailored for reasoning on the syntactic aspects; when a specific semantics is chosen, the system can be modularly extended with further "semantic" notions, as needed.

References

[1]
A. Bucalo, M. Hofmann, F. Honsell, M. Miculan, and I. Scagnetto. Consistency of the theory of contexts. Submitted, 2001.]]
[2]
M. Fiore and D. Turi. Semantics of name and value passing. In H. Mairson, editor, Proc. 16th LICS, pages 93--104, Boston, USA, 2001. IEEE Computer Society Press.]]
[3]
M. P. Fiore. Semantic analysis of normalisation by evaluation for typed lambda calculus. In PPDP'02 - Principles and Practice of Declarative Programming. ACM Press, 2002.]]
[4]
M. P. Fiore, G. D. Plotkin, and D. Turi. Abstract syntax and variable binding. In Longo {12}, pages 193--202.]]
[5]
FreshML: A fresh approach to name binding in metaprogramming languages. http://www.cl.cam.ac.uk/~amp12/research/freshml/, 2002. Research project.]]
[6]
M. J. Gabbay and A. M. Pitts. A new approach to abstract syntax involving binders. In Longo {12}, pages 214--224.]]
[7]
M. Hofmann. Semantical analysis of higher-order abstract syntax. In Longo {12}, pages 204--213.]]
[8]
F. Honsell, M. Miculan, and I. Scagnetto. An axiomatic approach to metareasoning on systems in higher-order abstract syntax. In Proc. ICALP'01, volume 2076 of Lecture Notes in Computer Science, pages 963--978. Springer-Verlag, 2001.]]
[9]
F. Honsell, M. Miculan, and I. Scagnetto. π-calculus in (co)inductive type theory. Theoretical Computer Science, 253(2):239--285, 2001.]]
[10]
INRIA. The Coq Proof Assistant, 2002. http://coq.inria.fr/doc/main.html.]]
[11]
B. Jacobs. Categorical Logic and Type Theory, volume 141 of Studies in Logic and the Foundations of Mathematics. Elsevier, 1999.]]
[12]
G. Longo, editor. Proceedings, Fourteenth Annual IEEE Symposium on Logic in Computer Science, 1999. IEEE Computer Society Press.]]
[13]
S. Mac Lane. Categories for the Working Mathematician. Springer-Verlag, Berlin, 1971.]]
[14]
S. Mac Lane and I. Moerdijk. Sheaves in Geometry and Logic: a First Introduction to Topos Theory. Universitext. Springer-Verlag, 1994.]]
[15]
R. McDowell and D. Miller. A logic for reasoning with higher-order abstract syntax. In Proc. 12th LICS. IEEE, 1997.]]
[16]
E. Moggi. Notions of computation and monads. Information and Computation, 1, 1993.]]
[17]
B. Nordström, K. Petersson, and J. M. Smith. Programming in Martin-Löf's Type Theory: An Introduction, volume 7 of International Series of Monograph on Computer Science. Oxford University Press, 1990.]]
[18]
A. M. Pitts. Categorical logic. In S. Abramsky, D. M. Gabbay, and T. S. E. Maibaum, editors, Handbook of Logic in Computer Science, volume 5. Oxford University Press, 2000.]]
[19]
A. M. Pitts. Nominal logic, a first order theory of names and binding. Information and Computation, 2003. Special issue on TACS2001, to appear.]]
[20]
C. Schürmann. Recursion for higher-order encodings. In Proc. CSL 2001, volume 2142 of Lecture Notes in Computer Science. Springer-Verlag, 2001.]]

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
PPDP '03: Proceedings of the 5th ACM SIGPLAN international conference on Principles and practice of declaritive programming
August 2003
292 pages
ISBN:1581137052
DOI:10.1145/888251
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 27 August 2003

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. categorical metamodels
  2. initial algebra semantics
  3. metalanguages for syntax and semantics of languages
  4. presheaf categories
  5. typed abstract syntax with variable binding

Qualifiers

  • Article

Conference

PPDP03
Sponsor:

Acceptance Rates

PPDP '03 Paper Acceptance Rate 24 of 48 submissions, 50%;
Overall Acceptance Rate 230 of 486 submissions, 47%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)2
  • Downloads (Last 6 weeks)0
Reflects downloads up to 13 Sep 2024

Other Metrics

Citations

Cited By

View all

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media