Skip to content

Updates to the theory of tables #28

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

ajreynol
Copy link
Contributor

@ajreynol ajreynol commented Oct 5, 2021

Adds support for symbolic indices to all indexed operators.
Changes some tokens.
Adds the beginning of the discussion of abstract sorts.
Adds 2 simple examples.

@github-actions
Copy link

github-actions bot commented Nov 1, 2021

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

@github-actions
Copy link

github-actions bot commented Apr 5, 2022

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

is the bag containing exactly
the elements $\syntax{(f\ u)}$
for each $\syntax{u}$ that occurs in $\syntax{t}$.
The multiplicity of $\syntax{(f\ u)}$
in $\syntax{(map\ f\ t)}$
in $\syntax{(bag.map\ f\ t)}$

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The multiplicity here is at least, not the the same

@github-actions
Copy link

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

@github-actions
Copy link

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

@@ -309,17 +349,17 @@ \subsubsection{Bag Count}
\begin{itemize}
\item
We do not include an explicit membership predicate for bags, although note that
the formula $\syntax{(>\ (count\ u\ t)\ 0)}$ holds exactly when $\syntax{u}$
the formula $\syntax{(>\ (bag.count\ u\ t)\ 0)}$ holds exactly when $\syntax{u}$

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cvc5 now reads (bag.member u t) as a syntax sugar for (> (bag.count u t) 0)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add this and other syntax sugar later.

@github-actions
Copy link

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

@mudathirmahgoub
Copy link

This line mentions 3 function symbols denoting table operations, but we have 5 operations mentioned in the document (bag.union_max, bag.union_disjoint, bag.intersect_min , bag.difference_subtract , bag.difference_remove). cvc5 supports additional 3 (bag.duplicate_removal, bag.subbag, bag.member).
https://cvc5.github.io/docs/cvc5-1.0.0/theories/bags.html

$\syntax{intersect\_min}$, $\syntax{difference\_subtract}$ and
$\syntax{difference\_remove}$.
$\syntax{bag.union\_max}$, $\syntax{bag.union\_disjoint}$,
$\syntax{bag.intersect\_min}$, $\syntax{bag.difference\_subtract}$ and

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unfortunate, but in cvc5, we have bag.inter_min, not bag.intersect_min.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big deal, we can change this now.

@mudathirmahgoub
Copy link

Type in line
for table.join operator signature.
It should be (Table Y_1 ... Y_l) instead of (Table Y_1 ... Y_j)

@github-actions
Copy link

PDF compilation was successful.
sygus.pdf
(link to a compiled PDF with proposed changes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants