Giter Site home page Giter Site logo

oganyanrv / lambda-calculus-interpreter Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 27.83 MB

CMake 0.03% C++ 6.07% C 0.03% Jupyter Notebook 93.87%
beta-reduction de-bruijn-notation lambda-calculus lambda-calculus-interpreter lambda-terms normal-forms reduction reduction-strategies

lambda-calculus-interpreter's Introduction

Lambda-calculus-interpreter

Thesis work of Oganyan Robert. Fourth (final) year of study, 8th term.

In this project we work with terms with help of an abstract syntax tree.

The lambda calculus interpreter has such functions:

  1. Generating the number of possible terms and generate k-th random term.
  2. Checking the correctness of the beta reductions with tests.
  3. Replacing combinators with their representation in terms.
  4. Doing beta-reduction procedure to the input term in different reduction strategies (normal strategy, call by name, call by value).

Also I did some experiments on all possible closed lambda terms and wrote the papers about that:

  1. "Analysis of normal forms in lambda calculus"
  2. "Comparison of different reduction (evaluation) strategies"

Implemented with C++17, JetBrains Clion.

Work demonstration

Rules of beta-reduction interpreter.

1

Running written tests.

1

Counting all possible terms.

1

Generating k-th random term.

1

Making beta-reduction in different strategies. The interpreter also supports 2 types of input.

1

lambda-calculus-interpreter's People

Contributors

oganyanrv avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.