Comments (9)
I think the actual question here is: do we support using expression in projection.
Currently our parser supports that, and the rosette backend supports that. The coq backend can treat "+" in the projection as an uninterpreted function, but we need to add some extra transformation in the parser to make the compilation to coq (expression in projection) work.
@xuruiyang can you provide an example of queries that you want to prove?
from cosette.
I don't have two queries for comparison for the time being. But I'm actually considering on something like the following query:
SELECT Product.unit_price * Product.num WHERE Product.unit_price > 10.
And I'm interested in writing down this in form of HoTTSQL ( more specifically, something like in your racket test files) and running it with (run query).
I guess that I need to write my own Aggregation functions to implement this projection in VALS clause, right?
from cosette.
@xuruiyang this does not looks like an aggregation function to me. you just need to define a uninterpreted function takes the type unit_price
and num
in coq.
from cosette.
To my understanding, only the interactive proof part (Coq) of your system can handle this kind of queries. But the automatic proof part (Rosette) can't handle such kind of queries. Am I right?
from cosette.
@xuruiyang I think both parts can handle that. Compiling cosette DSL to coq need some extra work, but not much.
from cosette.
Would you mind to give me an example of how to use the CosetteParser as well as the ToRosette parser? Since I didn't see any further instructions on how to use them (except the ones on how to run test cases), are you still developing them?
from cosette.
@xuruiyang we will update the instruction soon. Also the initial release is on the way. Stay tuned!
from cosette.
@xuruiyang I invited you to the gitter chatroom of cosette. Feel free to ask us anything on gitter, too.
from cosette.
@xuruiyang we fully support expressions in frontend and all backends now (both Coq and Rosette). We are going to release the first beta version of Cosette soon!
from cosette.
Related Issues (20)
- Do you have document on how to use Cosette with Calcite RelNode in Java? HOT 1
- Broken FrontendDockerfile HOT 1
- Cosette freezes (different from #63) HOT 1
- Help, throw an exception when parsing HOT 1
- Feature request: Avoid useless repetition in counter examples
- Feature request: result of counter examples
- Equivalent queries with conditions on a date column generate invalid Coq code
- Equivalence check for DISTINCT UNION ALL of disjoint sets yields invalid Coq code
- Invalid Cosette program yields invalid Coq code
- Basic `select distinct` program - Coq and Rosette executions don't agree
- Simple WHERE test not possible HOT 1
- Can not successfully run Cosette tests HOT 3
- Test on demo website runs into out of time HOT 2
- Strings with dots result in "Invalid generated Coq file"
- COUNT usage leads to error: Invalid generated Coq code HOT 1
- EXISTS with subquery runs into out of time HOT 1
- Multiple INNER JOIN clauses: runs into out of time
- count(*) should be different from count(column)
- Update docs to include how to set up Cosette locally HOT 1
- What's the status of the project? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosette.