Contextual Modal Type Theory with Polymorphic Contexts

被引:1
|
作者
Murase, Yuito [1 ]
Nishiwaki, Yuichi
Igarashi, Atsushi [1 ]
机构
[1] Kyoto Univ, Kyoto, Japan
关键词
Contextual modal types; Fitch-style modal lambda-calculi; Metaprogramming; Polymorphic contexts; SYSTEM;
D O I
10.1007/978-3-031-30044-8_11
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Modal types-types that are derived from proof systems of modal logic-have been studied as theoretical foundations of metaprogramming, where program code is manipulated as first-class values. In modal type systems, modality corresponds to a type constructor for code types and controls free variables and their types in code values. Nanevski et al. have proposed contextual modal type theory, which has modal types with fine-grained information on free variables: modal types are explicitly indexed by contexts-the types of all free variables in code values. This paper presents lambda(for all(sic)), a novel extension of contextual modal type theory with parametric polymorphism over contexts. Such an extension has been studied in the literature but, unlike earlier proposals, lambda(for all(sic)) is more general in that it allows multiple occurrence of context variables in a single context. We formalize lambda(for all(sic)) with its type system and operational semantics given by beta-reduction and prove its basic properties including subject reduction, strong normalization, and confluence. Moreover, to demonstrate the expressive power of polymorphic contexts, we show a type-preserving embedding from a two-level fragment of Davies' lambda((sic)), which is based on linear-time temporal logic, to lambda(for all(sic)).
引用
收藏
页码:281 / 308
页数:28
相关论文
共 50 条
  • [31] Contextual Modal Types for Algebraic Effects and Handlers
    Zyuzin, Nikita
    Nanevski, Aleksandar
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5
  • [32] Contextual Inter-modal Attention for Multi-modal Sentiment Analysis
    Ghosal, Deepanway
    Akhtar, Md Shad
    Chauhan, Dushyant
    Poria, Soujanya
    Ekbalt, Asif
    Bhattacharyyat, Pushpak
    2018 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP 2018), 2018, : 3454 - 3466
  • [33] Factorization of Formal Contexts from Modal Operators
    Aragon, Roberto G.
    Medina, Jesus
    Ramirez-Poussa, Eloisa
    GRAPH-BASED REPRESENTATION AND REASONING, ICCS 2023, 2023, 14133 : 189 - 192
  • [34] Reasoning about object-based calculi in (co)inductive type theory and the theory of contexts
    Ciaffaglione, Alberto
    Liquori, Luigi
    Miculan, Marino
    JOURNAL OF AUTOMATED REASONING, 2007, 39 (01) : 1 - 47
  • [35] INTENTIONALITY AND INTENSIONALITY, QUOTATION CONTEXTS AND THE MODAL WEDGE
    JACQUETTE, D
    MONIST, 1986, 69 (04): : 598 - 608
  • [36] Modal logic for evaluating formulas in incomplete contexts
    Obiedkov, S
    CONCEPTUAL STRUCTURES: INTEGRATION AND INTERFACES, PROCEEDINGS, 2002, 2393 : 314 - 325
  • [37] Reasoning about object-based calculi in (Co)inductive type theory and the theory of contexts
    Ciaffaglione, Alberto
    Liquori, Luigi
    Miculan, Marino
    Journal of Automated Reasoning, 2007, 39 (01): : 1 - 47
  • [38] Reasoning about Object-based Calculi in (Co)Inductive Type Theory and the Theory of Contexts
    Alberto Ciaffaglione
    Luigi Liquori
    Marino Miculan
    Journal of Automated Reasoning, 2007, 39 : 1 - 47
  • [39] Contextual deontic logic: Violation contexts and factual defeasibility
    van der Torre, LWN
    Tan, YH
    FORMAL ASPECTS OF CONTEXT, 2000, 20 : 143 - 160
  • [40] Contextual cueing in naturalistic scenes: Global and local contexts
    Brockmole, James R.
    Castelhano, Monica S.
    Henderson, John M.
    JOURNAL OF EXPERIMENTAL PSYCHOLOGY-LEARNING MEMORY AND COGNITION, 2006, 32 (04) : 699 - 706