Searcharxiv⌕ Search

arXiv subjects

Celia Mengyue Li

Publications and source records attributed to Celia Mengyue Li.

2 recordsLinked to original sources

Logical Foundations of Two-Sided Type Theory

Two-sided type systems, introduced in POPL'24, are an extension of the traditional notion of type system that allows for stating and deriving typing judgements in which (a) assumptions can be made about the types of arbitrary terms and not only variables, and (b) conclusions can be made about any number of type assignments, and not exactly one. In this work, we investigate the logical foundations of two-sided type systems in the sense of the propositions-as-types paradigm. We introduce new two-sided type systems 2$λ$Int and 2$λ$Int$^{\sim}$ that correspond with Wansing's bilateral logic 2Int and its extension with Nelson's strong negation respectively. Going beyond the propositional case, we introduce 2$λ$HOL as an extension of Guevers' $λ$HOL, and we show its expressive adequacy, its consistency and that it satisfies both the existence property and its dual.

cs.PL↗

A Complementary Approach to Incorrectness Typing

We introduce a new two-sided type system for verifying the correctness and incorrectness of functional programs with atoms and pattern matching. A key idea in the work is that types should range over sets of normal forms, rather than sets of values, and this allows us to define a complement operator on types that acts as a negation on typing formulas. We show that the complement allows us to derive a wide range of refutation principles within the system, including the type-theoretic analogue of co-implication, and we use them to certify that a number of Erlang-like programs go wrong. An expressive axiomatisation of the complement operator via subtyping is shown decidable, and the type system as a whole is shown to be not only sound, but also complete for normal forms.

cs.PL↗