Git Product home page Git Product logo

hsubst's Introduction

This is a copy of the Agda hereditary-substitution-based STLC beta-eta normalizer by Keller and Altenkirch [1], modified to no longer perform eta expansion. I.e., whereas the original normalizer produced beta-short eta-long terms, this one only performs beta-reductions, producing beta-normal results. Obviously, this means it no longer decides beta-eta-equivalence: those theorems have been commented out, but the correctness of normalization theorem (called 'completeness') has been updated.

The necessary changes were trivial; the point was to better understand what role eta-longness played in the termination argument for hereditary substitution. Answer: none! The key here is the spine representation of iterated application, which reifies in structural recursion on types the meta-argument for the termination of hereditary substitution found in some paper proofs. E.g., the Lemma 2.2 in Harper and Licata's /Mechanizing Metatheory in a Logical Framework/, which says:

If

hereditary substitution of a normal (n:T) for x in a neutral e = a normal (n':T')

then type T' is structural sub term of T.

[1] I copied the source code from: http://www.lix.polytechnique.fr/~keller/Recherche/hsubst.html; Keller and Altenkirch's paper explaining the code, /Hereditary Substitutions for Simple Types, Formalized/, is available here: http://hal.inria.fr/docs/00/52/06/06/PDF/msfp10.pdf

hsubst's People

Contributors

ntc2 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.