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

Model-parameterized equality #183

Open
kris-brown opened this issue Dec 18, 2024 · 0 comments
Open

Model-parameterized equality #183

kris-brown opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kris-brown
Copy link
Collaborator

If we have two FinFunctions (f and g) they may be different f != g but may be equivalent in a model-specific, idiosyncratic way (e.g. have the same input-output behavior, which is sufficient for equality in FinSet).

For any theory and any type constructor this is a common problem. A general solution would be to allow adding a method to Base.:(==) in the @instance macro. This would allow one to still have f != g while having a uniform way to check (e.g. within a @withmodel block) whether or not they are equal from the model's perspective.

@kris-brown kris-brown self-assigned this Dec 18, 2024
@kris-brown kris-brown added the enhancement New feature or request label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant