Using Modes to Ensure Subject Reduction for Typed Logic Programs with Subtyping
Jan-Georg Smaus, Francois Fages, Pierre Deransart
Abstract
We consider a general prescriptive type system with parametric polymorphism and subtyping for logic programs. The property of subject reduction expresses the consistency of the type system w.r.t. the execution model: if a program is "well-typed", then all derivations starting in a "well-typed" goal are again "well-typed". It is well-established that without subtyping, this property is readily obtained for logic programs w.r.t. their standard (untyped) execution model. Here we give syntactic conditions that ensure subject reduction also in the presence of general subtyping relations between type constructors. The idea is to consider logic programs with a fixed dataflow, given by modes.
Create a lesson
Related papers
Some complete ω-powers of a one-counter language in the difference hierarchy
Jacques Duparc, Olivier Finkel, Dominique Lecomte
Towards Finite Satisfiability of PDL with Loops
Bartosz Jan Bednarczyk, Mikołaj Swoboda
Vision-Predictor-Action: Towards Efficient Embodied AI via Neuro-Symbolic JEPA Predictors
Yeonseok Lee
Representation Theorems for Actual Powers over Two-Agent General Concurrent Game Frames
Zixuan Chen, Fengkui Ju, Thomas Ågotnes
Capturing Bisimulation-Invariant Exponential-Space Complexity Classes
Florian Bruse, David Kronenberger, Martin Lange
StructHCP: Structure-Aware SAT--CEGAR for the Hamiltonian Cycle Problem
Quan Van Vi, Tuyen Van Kieu, Khanh Van To