-
Notifications
You must be signed in to change notification settings - Fork 26
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
Redesign ExprRelat (Theoretical Models and Instance Models) #387
Comments
I think the basic issue is that |
This needs to be looked at again, however, the instances of ExprRelat will very shortly ( once #104 and its related issues are done) be solely in the codegen domain (ie. none of the documentation generation will care about it once I fix a few issues and change a combinator or two). I'll update once that's complete. |
@JacquesCarette should this be assigned to you? It feels like this is something that will be fixed with the Expr refactor you're working on? |
Yep. Done. |
@szymczdm it looks like it makes sense for me to tackle this one. But I'm a little fuzzy as to what needs done. I'm not even quite sure what I get this idea that the codegen really wants to get |
I believe ExprRelat was created for something like that, essentially any time we needed an expr from a chunk where we were guaranteed it would have one, but it wasn't known whether it would be a QDefn (ie. Symbol = Expr) or a relation (self-contained Expr). |
I think we need to revisit that. I think this might pre-date some of the refactors to theories, and that's really where we should be pulling from. This may require us to deal with #473 (Teach Drasil about ODEs) first though. |
Half of this has now been done - instance models now have a wider range of 'models' which are tagged. Code generation only looks at the 'equational' models and ignores the rest. |
This looks like it's still an issue, and I think it should be addressed alongside the division of the expression language. |
Agreed. The only uses of So it would be interesting to start a new |
The underlying infrastructure of
ExprRelat
needs revision with respect to the needs of code generation. Currently relations are just unrestrictedExpr
s which requires pattern matching hacks which may fail in order to get the information needed to generate code.The text was updated successfully, but these errors were encountered: