Coder Social home page Coder Social logo

pi-forall's Introduction

pi-forall language

This language implementation is designed to accompany four lectures at OPLSS during Summer 2023. Notes for these lectures are included in the distribution:

(The documentation README.md includes details about how the notes are typeset.)

These lecture notes correspond to an increasingly expressive demo implementation of a dependently-typed lambda calculus. Each of the following subdirectories is a self-contained implementation and all are generated from the same source, located in the main/ directory.

  • version1/: Basic language implementation
  • version2/: Basic language extended with nontrivial definitional equality
  • version3/: Above, extended with irrelevant arguments
  • full/: Full language with datatypes

The implementation README.md includes instructions about how to compile and work with these implementations. Edits should only be for versions in the main/ directory.

History

This is a revised version of lecture notes originally presented at OPLSS during 2022, 2014, and 2013.

Videos from the 2022 and 2014 lectures are available from the OPLSS website. If you watch these videos, you should look at the corresponding branch of this repository.

An abridged version of these lectures was also given at the Compose Conference, January 2015. Notes from this version are also available.

-- Stephanie Weirich

pi-forall's People

Contributors

agustinmista avatar atsuzaki avatar davidlaewen avatar dunhamsteve avatar jwiegley avatar k4rtik avatar lambdageek avatar ltzone avatar nomeata avatar reuleaux avatar sweirich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pi-forall's Issues

doc: Footnote weirdness

I noticed some footnote weirdness in the rendered .pdf.

The following footnote

\footnote{Note that
  this rule makes our language inconsistent as a logic, as it can encode
  Girard's paradox.}

got cut up and rendered on two different pages:

image image

Broken with parsec 3.1.5

Gives the error

Parser.hs:119:11:
    Could not deduce (MonadTrans (ParsecT s u))
      arising from a use of ‘lift’
    from the context (Monad (ParsecT s u FreshM))
      bound by the instance declaration at Parser.hs:118:10-35
    In the first argument of ‘(.)’, namely ‘lift’
    In the expression: lift . fresh
    In an equation for ‘fresh’: fresh = lift . fresh
Failed, modules loaded: PrettyPrint, Environment, TypeCheck, Syntax, LayoutToken, Equal.

Forcing parsec version 3.1.4 works fine.

Using GHC 7.8.2

Cannot install with Stack with LTS 6.13

$ stack install pi-forall
[...]
--  While building package pi-forall-0.1.1 using:
      /Users/chen/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/chen/.stack/global-project/.stack-work/logs/pi-forall-0.1.1.log

    Configuring pi-forall-0.1.1...
    Building pi-forall-0.1.1...
    Preprocessing library pi-forall-0.1.1...

    /private/var/folders/xz/z3wrll111zn03hdhkd_pxs5w0000gp/T/stack55559/pi-forall-0.1.1/src/Main.hs:10:8:
        Could not find module ‘Modules’
        Perhaps you meant Module (needs flag -package-key ghc-7.10.3)
        Use -v to see a list of the files searched for.
[...]

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.