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 a logical interpretation of a core of two-sided typing rules in the sense of the propositions-as-types paradigm. A key step is to strengthen the meaning of a distinguished left-side typing $M:A$ from ``$M$ is not a proof of $A$'' to ``$M$ constructs a refutation of $A$''. Building on the core two-sided rules for pure \(λ\)-terms, we introduce new two-sided type systems 2\(λ\)Int and 2\(λ\)Int$^c$, and establish a correspondence of derivability/type inhabitation 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 a two-sided extension of Geuvers' \(λ\)HOL, and we show its expressive adequacy, its consistency and that it satisfies both the existence property and its dual.
翻译:暂无翻译