Giter Site home page Giter Site logo

Unable to replicate the paper Fontana and Buss 1994 (https://link.springer.com/content/pdf/10.1007/BF02458289.pdf) about lambda_calculus HOT 5 CLOSED

julianzxue avatar julianzxue commented on May 29, 2024
Unable to replicate the paper Fontana and Buss 1994 (https://link.springer.com/content/pdf/10.1007/BF02458289.pdf)

from lambda_calculus.

Comments (5)

ljedrz avatar ljedrz commented on May 29, 2024

Thanks for the report! I can't check it out right now, but I'll do so soon 👍.

from lambda_calculus.

julianzxue avatar julianzxue commented on May 29, 2024

from lambda_calculus.

ljedrz avatar ljedrz commented on May 29, 2024

Disclaimer: I haven't played with lambda calculus for a good while now, so please take this with a grain of salt 😃.

I think it's just the fact that you need to add some extra explicit parentheses, otherwise the parser will automatically fold/collapse some of the sub-expressions (as suggested by the results of your parsing); the following seems to do the trick:

let expr_a = parse(r#"\a. (a (\b. (\c. (c (\d. (\e. (e d)))))))"#, Classic).unwrap();
let expr_b = parse(r#"\a. (a (\b. (\c. (c b))))"#, Classic).unwrap();

assert_eq!(beta(app(expr_a.clone(), expr_b.clone()), NOR, 0), expr_b);
assert_eq!(beta(app(expr_b.clone(), expr_a.clone()), NOR, 0), expr_a);

from lambda_calculus.

julianzxue avatar julianzxue commented on May 29, 2024

from lambda_calculus.

ljedrz avatar ljedrz commented on May 29, 2024

Glad to hear it; I'll close the issue then 👍.

from lambda_calculus.

Related Issues (7)

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.