juxtin / clj-bob Goto Github PK
View Code? Open in Web Editor NEWThe J-Bob proof assistant from The Little Prover in Clojure
License: BSD 2-Clause "Simplified" License
The J-Bob proof assistant from The Little Prover in Clojure
License: BSD 2-Clause "Simplified" License
Hey @holguinj,
I'm working through the appendix in the Little Prover, and the first few examples aren't simplifying for me. It looks like some issue with the paths code. I ran the following snippets in clj-bob.repl
.
This works great:
(J-Bob-step (prelude)
'(car (cons 'ham '(cheese)))
'((() (car-cons 'ham '(cheese)))))
The code returns 'ham
, as expected. Once I add a path in to a new focus, however, the simplification rules stop working:
(J-Bob-step (prelude)
'(equal 'flapjack (atom (cons a b)))
'(((2) (atom-cons a b))
(() (equal 'flapjack 'nil))))
This code just returns the original expression, '(equal 'flapjack (atom (cons a b)))
. If I replace the (2)
with an empty list and un-nest the (atom ,,,)
snippet, that section gets simplified to nil
.
Same problem with the second example:
(J-Bob-step (prelude)
'(atom (cdr (cons (car (cons p q)) '())))
'(((1 1 1) (car-cons p q))
((1) (cdr-cons p '()))
(() (atom '()))))
Even a single step with a path specified seems to fail. Am I missing something obvious here?
Thanks so much for the awesome port!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.