A game semantics for generic polymorphism
From MaRDI portal
Abstract: Genericity is the idea that the same program can work at many different data types. Longo, Milstead and Soloviev proposed to capture the inability of generic programs to probe the structure of their instances by the following equational principle: if two generic programs, viewed as terms of type , are equal at any given instance , then they are equal at all instances. They proved that this rule is admissible in a certain extension of System F, but finding a semantically motivated model satisfying this principle remained an open problem. In the present paper, we construct a categorical model of polymorphism, based on game semantics, which contains a large collection of generic types. This model builds on two novel constructions: -- A direct interpretation of variable types as games, with a natural notion of substitution of games. This allows moves in games A[T] to be decomposed into the generic part from A, and the part pertaining to the instance T. This leads to a simple and natural notion of generic strategy. -- A "relative polymorphic product" which expresses quantification over the type variable X in the variable type A with respect to a "universe'" which is explicitly given as an additional parameter B. We then solve a recursive equation involving this relative product to obtain a universe in a suitably "absolute" sense. Full Completeness for ML types (universal closures of quantifier-free types) is proved for this model.
Recommendations
Cites work
- scientific article; zbMATH DE number 1670474 (Why is no real title available?)
- scientific article; zbMATH DE number 439891 (Why is no real title available?)
- scientific article; zbMATH DE number 4049849 (Why is no real title available?)
- scientific article; zbMATH DE number 42059 (Why is no real title available?)
- scientific article; zbMATH DE number 1241697 (Why is no real title available?)
- scientific article; zbMATH DE number 512792 (Why is no real title available?)
- scientific article; zbMATH DE number 742721 (Why is no real title available?)
- scientific article; zbMATH DE number 1531624 (Why is no real title available?)
- scientific article; zbMATH DE number 1841836 (Why is no real title available?)
- scientific article; zbMATH DE number 860033 (Why is no real title available?)
- scientific article; zbMATH DE number 3349328 (Why is no real title available?)
- scientific article; zbMATH DE number 3370546 (Why is no real title available?)
- A small complete category
- Categorical semantics for higher order polymorphic lambda calculus
- Categories for Types
- Formal parametric polymorphism
- Full abstraction for PCF
- Games and full completeness for multiplicative linear logic
- Geometry of Interaction and linear combinatory algebras
- The genericity theorem and parametricity in the polymorphic \(\lambda\)- calculus
Cited in
(9)- Game semantics for a polymorphic programming language
- Logic and geometry of agents in agent-based modeling
- Game semantics for bounded polymorphism
- Game semantics for dependent types
- Games for dependent types
- A categorical semantics of higher order store
- Game semantics of Martin-Löf type theory
- Realisability semantics of parametric polymorphism, general references and recursive types
- scientific article; zbMATH DE number 1956502 (Why is no real title available?)
This page was built for publication: A game semantics for generic polymorphism
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q1772770)