{"title":"Type Inference of Linear Lambda Calculus with First-Class Continuations","authors":"Nishizaki Shin-Ya","doi":"10.1109/ICCTEC.2017.00040","DOIUrl":null,"url":null,"abstract":"Previous work proposed the linear lambda calculus with non-linear first-class continuations. In the linear lambda calculus with non-linear first-class continuations, a value is handled linearly, meaning it can be used once and only once; however, a continuation can be duplicated many times. From the viewpoint of the CurryHoward isomorphism, the calculus is considered as dual of the usual lambda calculus without first-class continuation. And this paper proposes an inference algorithm and a system for the type inference. The linear lambda calculus with non-linear first-class continuations is more limited than the linear lambda calculus without first-class continuations. Therefore, the paper manages both of the two calculis using the type inference. It introduces a modal variable in the types to substitute the linear modality. During type inference, modal variables are instantiated.","PeriodicalId":267944,"journal":{"name":"2017 International Conference on Computer Technology, Electronics and Communication (ICCTEC)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 International Conference on Computer Technology, Electronics and Communication (ICCTEC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCTEC.2017.00040","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Previous work proposed the linear lambda calculus with non-linear first-class continuations. In the linear lambda calculus with non-linear first-class continuations, a value is handled linearly, meaning it can be used once and only once; however, a continuation can be duplicated many times. From the viewpoint of the CurryHoward isomorphism, the calculus is considered as dual of the usual lambda calculus without first-class continuation. And this paper proposes an inference algorithm and a system for the type inference. The linear lambda calculus with non-linear first-class continuations is more limited than the linear lambda calculus without first-class continuations. Therefore, the paper manages both of the two calculis using the type inference. It introduces a modal variable in the types to substitute the linear modality. During type inference, modal variables are instantiated.