Abstract
Type-based reasoning is popular in functional programming. In particular, parametric polymorphism constrains functions in such a way that statements about their behavior can be derived without consulting function definitions. Is the same possible in a strongly, and polymorphically, typed functional logic language? This is the question we study in this paper. Logical features like nondeterminism and free variables cause interesting effects, which we examine based on examples and address by identifying appropriate conditions that guarantee standard free theorems or inequational versions thereof to hold. We see this case study as a stepping stone for a general theory, not provided here, involving the definition of a logical relation and other machinery required for parametricity arguments appropriate to functional logic languages.
Index Terms
(auto-classified)Free theorems for functional logic programs: (abstract only)
Recommendations
Free theorems for functional logic programs
PLPV '10: Proceedings of the 4th ACM SIGPLAN workshop on Programming languages meets program verificationType-based reasoning is popular in functional programming. In particular, parametric polymorphism constrains functions in such a way that statements about their behavior can be derived without consulting function definitions. Is the same possible in a ...
Implementing a Program Logic of Objects in a Higher-Order Logic Theorem Prover
TPHOLs '00: Proceedings of the 13th International Conference on Theorem Proving in Higher Order LogicsWe present an implementation of a program logic of objects, extending that (AL) of Abadi and Leino. In particular, the implementation uses higher-order abstract syntax (HOAS) and--unlike previous approaches using HOAS--at the same time uses the built-in ...
Lindstrom theorems for fragments of first-order logic
LICS '07: Proceedings of the 22nd Annual IEEE Symposium on Logic in Computer ScienceLindstrom theorems characterize logics in terms of model-theoretic conditions such as Compactness and the Lowenheim-Skolem property. Most existing Lindstrom theorems concern extensions of first-order logic. On the other hand, many logics relevant to ...






Comments