-
Notifications
You must be signed in to change notification settings - Fork 4
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
Investigate generation of functions which have outputs that depend on their inputs #3
Comments
lol, I just ran into this problem. any idea how this may be accomplished? |
The monotonic example, or something else? I haven't thought about it for a while. What are you trying to do? |
I wanted to generate a function isomorphic to |
In the meantime, I circumvented the issue by generating |
Do you mean you generated an |
no, no, you are right, it would be for some unknown, but specific implementing the following is not possible with what
|
There were a couple of questions in the reddit thread about this kind of idea.
I think it's cool but I don't know if it's possible. The main example of monotonicity requires knowledge of the entire domain and codomain, which isn't captured by
a -> Gen b
anyway. At the very least we need to be aware of the history of inputs to the function.The memo-trie approach works by lazily enumerating all the possible inputs to the function, so if we wanted to generate a monotonic function then somehow each input would have to have a knot that knows about all the other inputs. I don't know that it works.
The text was updated successfully, but these errors were encountered: