rairlab / lazyslate Goto Github PK
View Code? Open in Web Editor NEWAn open source graphical proof construction assistant for the creation of Natural Deduction proofs.
Home Page: https://rairlab.github.io/lazyslate/
License: MIT License
An open source graphical proof construction assistant for the creation of Natural Deduction proofs.
Home Page: https://rairlab.github.io/lazyslate/
License: MIT License
I am aware this does not work on firefox. It has something to do with the HTML5 canvas drawing differences.
Assumptions with the same name clash, should be based off of proof node IDs which are globally unique.
This should fail but works.
Fails on:
Uncaught TypeError: node.add is not a function
at verifyIfIntro (verify.js:172:18)
at verifyNode (verify.js:22:20)
at verifyNodes (state.js:47:21)
at createLink (state.js:67:5)
at HTMLCanvasElement.onMouseDown (proofCanvas.js:88:17)
Currently verification for rules with multiple parents is done in a hacky way where for each node we do a search over all parent's formula to determine if it is the correct form. For an example see the following code where we need to compute the left and right parents individually.
https://github.com/James-Oswald/lazyslate/blob/master/src/core/Proof/verify.ts#L242C15-L261
This type code is the source of many bugs (including #8). A better way to write this would be to generalize by writing a verification method for each rule that assumes the Premise proof nodes are passed in in a given order, just like how the real inference rules work. With this we can then try to verify all permutations of the premises, if just one of these verifies than the node verifies, otherwise if none of the permutations verify the node does not verify.
Additionally, this method probably does not sacrifice efficiency over the current version. Or Elim, the largest rule, only has 6 permutations of parents, and the code already basically checks these inside of the current verification function.
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.