Giter Site home page Giter Site logo

hol's Introduction

This is a proof assistant for intuitionistic higher order logic.

Core logic

Types and Terms

A signature, Sigma, is on the form:

Sigma ::= . | Sigma, a type | Sigma, c : A

where a is a type constant, c a term constant, and A a type. Types are defined as:

A, B ::= a | A -> B

A type is well-formed if all then type constants that occur in it is declared in the signature. Terms are defined as

M, N ::= \x.M | H S
H ::= x | c
S ::= . | M S

The judgments Sigma; Gamma |- M : A and Sigma; Gamma [A] |- S : B defines the typing relation of terms. Gamma is a context, defined as:

Gamma ::= . | Gamma, x : A

And the rules for typing is:

  Sigma; Gamma, x:A |- M : B
-------------------------------
  Sigma; Gamma |-\x.M : A -> B
 
  x:A in Gamma     Sigma; Gamma [A] |- S : B
-----------------------------------------------
      Sigma; Gamma |- x S : B
      
  c:A in Sigma     Sigma; Gamma [A] |- S : B
-----------------------------------------------
      Sigma; Gamma |- c S : B
      
----------------------------
  Sigma; Gamma [A]|- . : A
  
  Sigma; Gamma |- M : A     Sigma; Gamma [B] |- S : C
------------------------------------------------------------
         Sigma; Gamma [A -> B] |- M S : C

Propositions and Proofs

We make the initial signature contain the following type and term constants:

  • o type
  • true, false : o
  • and, or, iml : o -> o -> o
  • all_A, ex_A : (A -> o) -> o

Notice that there is strictly speaking an "infinite number" of constants in the initial signature, as we have all_A and ex_A for each type A.

We have a single judgment Sigma; Gamma; Delta |- M. Here it is assumed that Sigma; Gamma |- M : o. Furthermore, Delta is on the form h_0:M_0, ..., h_n:M_n where h_i a name for an assumption and Sigma; Gamma |- M_i : o. The assumptions Delta is unordered, and a name occures only once.

--------------------------- assumption h
  Gamma; Delta, h:M |- M
  
    Gamma; Delta |- M    Gamma; h:M, Delta |- N
  ------------------------------------------------- cut M h
         Gamma; Delta |- N

hol's People

Contributors

peterbb avatar

Watchers

 avatar  avatar  avatar

hol's Issues

Lambda-terms not in eta-long form.

Currently terms are in beta-normal forms, but they are not required to be in eta-long form. This means the system is too conservative. The easy fix would be to simply not accept terms that are not eta-normal.

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.