Giter Club home page Giter Club logo

f-omega-int-agda's Introduction

f-omega-int-agda – Fω with interval kinds mechanized in Agda

A mechanized type safety proof for Fω extended with interval kinds.

The code in this repository contains an Agda mechanization of the type system Fω extended with interval kinds ("F omega int"). An interval kind A..B represents a type interval bounded by a pair of types A, B. It is inhabited by all proper types C : A..B that are both supertypes of A and subtypes of B. Interval kinds are flexible enough to express various features found in other type systems, such as

  • F-<:-style bounded polymorphism,
  • bounded type operators,
  • singleton kinds and first-class type definitions.

The mechanization includes a small-step operational call-by-value semantics, declarative and canonical presentations of typing and kinding, along with (syntactic) proofs of various meta-theoretic properties, such as

  • weak normalization of types (and kinds) via hereditary substitution,
  • subject reduction for types (w.r.t. full β-reduction),
  • type safety (progress & preservation) w.r.t. to the CBV semantics,
  • undecidability of subtyping.

The metatheory of Fω with interval kinds is described in detail in my PhD thesis Higher-Order Subtyping with Type Intervals.

The Agda mechanization

The file src/README.agda contains a detailed overview of the formalization.

The theory has been mechanized in Agda and makes heavy use of the Agda standard library. The code in this repository has been type-checked using Agda 2.6.1.3 and version 1.6 of the Agda standard library. The latest versions of the Agda distribution and standard library, along with setup instructions, can be found at

The easiest way to check all the code is to compile the README.agda file from the src/ directory. Run

agda src/README.agda

in the console, or simply open the file using the Agda Emacs mode and type C-c C-l.

Source code

The Agda sources are freely available on GitHub:

License and copyright

The source code is released under the MIT License. See the LICENSE file for details.


Sandro Stucki — Copyright (c) 2017–2021 EPFL

f-omega-int-agda's People

Contributors

sstucki avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.