ComputingComputer ScienceFormal MethodsLogicProgramming LanguagesDeductive ReasoningFormal SemanticsLogic ProgrammingProgramming Language DesignType CheckingType SystemsConstraintsLogical Framework ApproachPolymorphism StudiesSemantic Properties Of LogicType InferenceType TheoryType-logical Semantics
The paper investigates a hybrid formal reasoning system that blends programming language features with logical frameworks. It implements this by extending a type system with equality constraints, witness objects, rank‑N polymorphism, and extensible kinds to enforce semantic properties at compile time. The resulting system demonstrates that combining a practical language with logic provides a foundation for future language design.
This paper explores a new point in the design space of formal reasoning systems - part programming language, part logical framework. The system is built on a programming language where the user expresses equality constraints between types and the type checker then enforces these constraints. This simple extension to the type system allows the programmer to describe properties of his program in the types of witness objects which can be thought of as concrete evidence that the program has the property desired. These techniques and two other rich typing mechanisms, rank-N polymorphism and extensible kinds, create a powerful new programming idiom for writing programs whose types enforce semantic properties. This kind of synthesis between a practical programming language <i>and</i> a logic creates a foundation for the design of languages of the future.
41
George C. Necula · 1997 · 1.8K citations
A Syntactic Approach to Type Soundness
Andy Wright, Matthias Felleisen · Information and Computation · 1994 · 1.1K citations