eytans / thesy Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Types with only one constructor (such as tuples) are just wrappers for other data therefore they should always be expanded by the constructor.
This requires a few technical details to work:
See the example victor provided (there should be a branch for it) to start
Update the parsing of terms in thesy_parser.rs at fn collect_rule(l: &mut Vec) to parse relevant searchers.
Look at searchers in eggstentions
Currently, the runtime is greatly affected by get_conjectures, which might take more than half the runtime.
It seems that using Extractor
from egg is inefficient for our case.
Implementation of get_conjectures should have iterations to the depth of known terms (no need to find terms deeper than those generated in the enumeration), although deeper terms exist.
Consider a term of addition, 2 + 2
. the depth of the term is 3, 1 for the + and 2 for the number (i.e. S (S 0)
).
After rewriting, we get a depth 4 term, 4
.
We can ignore most of the graph and focus only on Eclasse
s that exist inside the id_examples
data structure.
This way we can prevent unnecessary computations.
The algorithm should iterate through the nodes in the EGraph
building terms:
Create a vector for each EClass
, for each node, with its dependencies (i.e. other EClass
es).
Remember all edges without dependencies.
For each class remember nodes depending on it.
Iteratively go through all edges with no remaining dependencies:
EClass
to the next iterationAlso verify that other searchers are fixed
We want to be able to participate in first order solver competitions.
Some of the features might not be supported in TheSy, we should open issues on each and see which are technical limitations and which require further research.
FilteringSearcher
is filtering cases where with the addition of a color the predicate will pass. We should fix this with either a new colored_filter
, or with changing the existing filter 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.