A typed context calculus

This paper develops a typed calculus for contexts i.e., lambda terms with “holes”. In addition to ordinary lambda terms, the calculus contains labeled holes, hole abstraction and context application for manipulating first-class contexts. The primary operation for contexts is hole-filling, which capt...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Theoretical computer science 2001-09, Vol.266 (1), p.249-272
Hauptverfasser: Hashimoto, Masatomo, Ohori, Atsushi
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page 272
container_issue 1
container_start_page 249
container_title Theoretical computer science
container_volume 266
creator Hashimoto, Masatomo
Ohori, Atsushi
description This paper develops a typed calculus for contexts i.e., lambda terms with “holes”. In addition to ordinary lambda terms, the calculus contains labeled holes, hole abstraction and context application for manipulating first-class contexts. The primary operation for contexts is hole-filling, which captures free variables. This operation conflicts with substitution of the lambda calculus, and a straightforward mixture of the two results in an inconsistent system. We solve this problem by defining a type system that precisely specifies the variable-capturing nature of contexts and that keeps track of bound variable renaming. These mechanisms enable us to define a reduction system that properly integrates β-reduction and hole-filling. The resulting calculus is Church–Rosser and the type system has the subject reduction property. We believe that the context calculus will serve as a basis for developing a programming language with advanced features that call for manipulation of open terms.
doi_str_mv 10.1016/S0304-3975(00)00174-2
format Article
fullrecord <record><control><sourceid>proquest_cross</sourceid><recordid>TN_cdi_proquest_miscellaneous_27035395</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><els_id>S0304397500001742</els_id><sourcerecordid>27035395</sourcerecordid><originalsourceid>FETCH-LOGICAL-c415t-ed46b1084db19ec1b2fb9f6abdcde47d23b5ba5ceaeabcd90d6bf5a1ab5377a63</originalsourceid><addsrcrecordid>eNqFkDtLA0EUhQdRMEZ7GyGNosXqnddOppIQfEHAQq2HedyFkc1unNkV8-_dJKKlt7nNd87hHELOKFxToOXNC3AQBddKXgJcAVAlCrZHRnSqdMGYFvtk9IsckqOc32E4qcoROZ1NuvUKw8S3TYdf3cTb2vd1n4_JQWXrjCc_f0ze7u9e54_F4vnhaT5bFF5Q2RUYROkoTEVwVKOnjlVOV6V1wQcUKjDupLPSo0XrfNAQSldJS62TXClb8jG52PmuUvvRY-7MMmaPdW0bbPtsmAIuuZYDKHegT23OCSuzSnFp09pQMJsdzHYHsylpAMx2B8MG3flPgM1DuSrZxsf8JxagqJAwcLc7Doe2nxGTyT5i4zHEhL4zoY3_JH0D5ChxhA</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>27035395</pqid></control><display><type>article</type><title>A typed context calculus</title><source>Elektronische Zeitschriftenbibliothek - Frei zugängliche E-Journals</source><source>ScienceDirect Journals (5 years ago - present)</source><creator>Hashimoto, Masatomo ; Ohori, Atsushi</creator><creatorcontrib>Hashimoto, Masatomo ; Ohori, Atsushi</creatorcontrib><description>This paper develops a typed calculus for contexts i.e., lambda terms with “holes”. In addition to ordinary lambda terms, the calculus contains labeled holes, hole abstraction and context application for manipulating first-class contexts. The primary operation for contexts is hole-filling, which captures free variables. This operation conflicts with substitution of the lambda calculus, and a straightforward mixture of the two results in an inconsistent system. We solve this problem by defining a type system that precisely specifies the variable-capturing nature of contexts and that keeps track of bound variable renaming. These mechanisms enable us to define a reduction system that properly integrates β-reduction and hole-filling. The resulting calculus is Church–Rosser and the type system has the subject reduction property. We believe that the context calculus will serve as a basis for developing a programming language with advanced features that call for manipulation of open terms.</description><identifier>ISSN: 0304-3975</identifier><identifier>EISSN: 1879-2294</identifier><identifier>DOI: 10.1016/S0304-3975(00)00174-2</identifier><identifier>CODEN: TCSCDI</identifier><language>eng</language><publisher>Amsterdam: Elsevier B.V</publisher><subject>Alpha-renaming ; Context ; Exact sciences and technology ; General logic ; Lambda-calculus ; Logic and foundations ; Mathematical logic, foundations, set theory ; Mathematics ; Sciences and techniques of general use ; Type system</subject><ispartof>Theoretical computer science, 2001-09, Vol.266 (1), p.249-272</ispartof><rights>2001 Elsevier Science B.V.</rights><rights>2002 INIST-CNRS</rights><lds50>peer_reviewed</lds50><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed><citedby>FETCH-LOGICAL-c415t-ed46b1084db19ec1b2fb9f6abdcde47d23b5ba5ceaeabcd90d6bf5a1ab5377a63</citedby><cites>FETCH-LOGICAL-c415t-ed46b1084db19ec1b2fb9f6abdcde47d23b5ba5ceaeabcd90d6bf5a1ab5377a63</cites></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><linktohtml>$$Uhttps://dx.doi.org/10.1016/S0304-3975(00)00174-2$$EHTML$$P50$$Gelsevier$$Hfree_for_read</linktohtml><link.rule.ids>314,780,784,3548,27923,27924,45994</link.rule.ids><backlink>$$Uhttp://pascal-francis.inist.fr/vibad/index.php?action=getRecordDetail&amp;idt=14071450$$DView record in Pascal Francis$$Hfree_for_read</backlink></links><search><creatorcontrib>Hashimoto, Masatomo</creatorcontrib><creatorcontrib>Ohori, Atsushi</creatorcontrib><title>A typed context calculus</title><title>Theoretical computer science</title><description>This paper develops a typed calculus for contexts i.e., lambda terms with “holes”. In addition to ordinary lambda terms, the calculus contains labeled holes, hole abstraction and context application for manipulating first-class contexts. The primary operation for contexts is hole-filling, which captures free variables. This operation conflicts with substitution of the lambda calculus, and a straightforward mixture of the two results in an inconsistent system. We solve this problem by defining a type system that precisely specifies the variable-capturing nature of contexts and that keeps track of bound variable renaming. These mechanisms enable us to define a reduction system that properly integrates β-reduction and hole-filling. The resulting calculus is Church–Rosser and the type system has the subject reduction property. We believe that the context calculus will serve as a basis for developing a programming language with advanced features that call for manipulation of open terms.</description><subject>Alpha-renaming</subject><subject>Context</subject><subject>Exact sciences and technology</subject><subject>General logic</subject><subject>Lambda-calculus</subject><subject>Logic and foundations</subject><subject>Mathematical logic, foundations, set theory</subject><subject>Mathematics</subject><subject>Sciences and techniques of general use</subject><subject>Type system</subject><issn>0304-3975</issn><issn>1879-2294</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2001</creationdate><recordtype>article</recordtype><recordid>eNqFkDtLA0EUhQdRMEZ7GyGNosXqnddOppIQfEHAQq2HedyFkc1unNkV8-_dJKKlt7nNd87hHELOKFxToOXNC3AQBddKXgJcAVAlCrZHRnSqdMGYFvtk9IsckqOc32E4qcoROZ1NuvUKw8S3TYdf3cTb2vd1n4_JQWXrjCc_f0ze7u9e54_F4vnhaT5bFF5Q2RUYROkoTEVwVKOnjlVOV6V1wQcUKjDupLPSo0XrfNAQSldJS62TXClb8jG52PmuUvvRY-7MMmaPdW0bbPtsmAIuuZYDKHegT23OCSuzSnFp09pQMJsdzHYHsylpAMx2B8MG3flPgM1DuSrZxsf8JxagqJAwcLc7Doe2nxGTyT5i4zHEhL4zoY3_JH0D5ChxhA</recordid><startdate>20010906</startdate><enddate>20010906</enddate><creator>Hashimoto, Masatomo</creator><creator>Ohori, Atsushi</creator><general>Elsevier B.V</general><general>Elsevier</general><scope>6I.</scope><scope>AAFTH</scope><scope>IQODW</scope><scope>AAYXX</scope><scope>CITATION</scope><scope>7SC</scope><scope>8FD</scope><scope>JQ2</scope><scope>L7M</scope><scope>L~C</scope><scope>L~D</scope></search><sort><creationdate>20010906</creationdate><title>A typed context calculus</title><author>Hashimoto, Masatomo ; Ohori, Atsushi</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-c415t-ed46b1084db19ec1b2fb9f6abdcde47d23b5ba5ceaeabcd90d6bf5a1ab5377a63</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2001</creationdate><topic>Alpha-renaming</topic><topic>Context</topic><topic>Exact sciences and technology</topic><topic>General logic</topic><topic>Lambda-calculus</topic><topic>Logic and foundations</topic><topic>Mathematical logic, foundations, set theory</topic><topic>Mathematics</topic><topic>Sciences and techniques of general use</topic><topic>Type system</topic><toplevel>peer_reviewed</toplevel><toplevel>online_resources</toplevel><creatorcontrib>Hashimoto, Masatomo</creatorcontrib><creatorcontrib>Ohori, Atsushi</creatorcontrib><collection>ScienceDirect Open Access Titles</collection><collection>Elsevier:ScienceDirect:Open Access</collection><collection>Pascal-Francis</collection><collection>CrossRef</collection><collection>Computer and Information Systems Abstracts</collection><collection>Technology Research Database</collection><collection>ProQuest Computer Science Collection</collection><collection>Advanced Technologies Database with Aerospace</collection><collection>Computer and Information Systems Abstracts – Academic</collection><collection>Computer and Information Systems Abstracts Professional</collection><jtitle>Theoretical computer science</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Hashimoto, Masatomo</au><au>Ohori, Atsushi</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>A typed context calculus</atitle><jtitle>Theoretical computer science</jtitle><date>2001-09-06</date><risdate>2001</risdate><volume>266</volume><issue>1</issue><spage>249</spage><epage>272</epage><pages>249-272</pages><issn>0304-3975</issn><eissn>1879-2294</eissn><coden>TCSCDI</coden><abstract>This paper develops a typed calculus for contexts i.e., lambda terms with “holes”. In addition to ordinary lambda terms, the calculus contains labeled holes, hole abstraction and context application for manipulating first-class contexts. The primary operation for contexts is hole-filling, which captures free variables. This operation conflicts with substitution of the lambda calculus, and a straightforward mixture of the two results in an inconsistent system. We solve this problem by defining a type system that precisely specifies the variable-capturing nature of contexts and that keeps track of bound variable renaming. These mechanisms enable us to define a reduction system that properly integrates β-reduction and hole-filling. The resulting calculus is Church–Rosser and the type system has the subject reduction property. We believe that the context calculus will serve as a basis for developing a programming language with advanced features that call for manipulation of open terms.</abstract><cop>Amsterdam</cop><pub>Elsevier B.V</pub><doi>10.1016/S0304-3975(00)00174-2</doi><tpages>24</tpages><oa>free_for_read</oa></addata></record>
fulltext fulltext
identifier ISSN: 0304-3975
ispartof Theoretical computer science, 2001-09, Vol.266 (1), p.249-272
issn 0304-3975
1879-2294
language eng
recordid cdi_proquest_miscellaneous_27035395
source Elektronische Zeitschriftenbibliothek - Frei zugängliche E-Journals; ScienceDirect Journals (5 years ago - present)
subjects Alpha-renaming
Context
Exact sciences and technology
General logic
Lambda-calculus
Logic and foundations
Mathematical logic, foundations, set theory
Mathematics
Sciences and techniques of general use
Type system
title A typed context calculus
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-11T02%3A59%3A24IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest_cross&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=A%20typed%20context%20calculus&rft.jtitle=Theoretical%20computer%20science&rft.au=Hashimoto,%20Masatomo&rft.date=2001-09-06&rft.volume=266&rft.issue=1&rft.spage=249&rft.epage=272&rft.pages=249-272&rft.issn=0304-3975&rft.eissn=1879-2294&rft.coden=TCSCDI&rft_id=info:doi/10.1016/S0304-3975(00)00174-2&rft_dat=%3Cproquest_cross%3E27035395%3C/proquest_cross%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=27035395&rft_id=info:pmid/&rft_els_id=S0304397500001742&rfr_iscdi=true