Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better proof search for query with union #32

Open
stechu opened this issue Jul 23, 2017 · 0 comments
Open

Better proof search for query with union #32

stechu opened this issue Jul 23, 2017 · 0 comments
Assignees

Comments

@stechu
Copy link
Contributor

stechu commented Jul 23, 2017

We should be able to find the Coq proof for the following query. Essentially A UNION ALL EMPTY = A. There are various ways of implementing that, though.

schema s1(x:int);

table a(s1);            -- define table a using schema s1

query q1                -- define query q1 on tables a and b
`select * from a x UNION ALL
 select * from a x where false`;

query q2                -- define query q2 likewise
`select * from a x`;

verify q1 q2;           -- does q1 equal to q2? 
@stechu stechu self-assigned this Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant