Skip to content

Investigate generation of functions which have outputs that depend on their inputs #3

@LightAndLight

Description

@LightAndLight

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions