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

Express "exactly equal" constraints #1795

Open
bmaclach opened this issue Aug 2, 2019 · 1 comment
Open

Express "exactly equal" constraints #1795

bmaclach opened this issue Aug 2, 2019 · 1 comment
Assignees

Comments

@bmaclach
Copy link
Collaborator

bmaclach commented Aug 2, 2019

Currently in Drasil, constraints can either be expressed as a Range, EnumeratedReal, or EnumeratedStr.

Another type of constraint we need to express are constraints that one thing is exactly equal to another. For example, in SSP we have the constraint that the size of the lists xslope and yslope are equal (and similar for other lists that represent x and y coordinates for different parts of the system).

This could potentially be expressed as a Range where the upper and lower bounds are the same, though that seems like a hack.

@JacquesCarette
Copy link
Owner

In theory, that could be done with dependent types (and should be). Except that Drasil isn't likely to get such a type system anytime soon. In the meantime, extending the kinds of usable constraints to contain an Equality case makes the most sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

3 participants