Languages of the future

Tim Sheard

2004 · 106 citations · 41 references

Concepts

TL;DR

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.

Abstract

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.

References

41