Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Add other kinds of quantifications? ∃x. p(x)? #8

Open
robotlolita opened this issue Mar 7, 2013 · 0 comments
Open

Add other kinds of quantifications? ∃x. p(x)? #8

robotlolita opened this issue Mar 7, 2013 · 0 comments

Comments

@robotlolita
Copy link
Member

SmallCheck has three different kinds of quantifications for properties: existential, universal and unique existential. Perhaps it would be interesting to support existential quantification alongside the current universal quantification(?)

API would follow naturally from the current Property type:

exists( Type ).given( a  Bool).satisfy( a  Bool )

We'd have to gather use-cases of where existential quantification is desirable, however. While this is rather easy to add, it should be only added if the use-cases justify the increased complexity in the API.

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

No branches or pull requests

1 participant