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

Move away from symbols #66

Open
olynch opened this issue Aug 19, 2024 · 0 comments
Open

Move away from symbols #66

olynch opened this issue Aug 19, 2024 · 0 comments

Comments

@olynch
Copy link
Member

olynch commented Aug 19, 2024

Currently, DiagrammaticEquations heavily depends on using symbols for:

  1. Sorts
  2. Functions
  3. Variables

Each of these can be transitioned to a more expressive data structure.

  1. For sorts, we should use elements of an algebraic data type, as in Interop with SymbolicUtils #64. These can be serialized via intertypes.
  2. For functions, we should use real Julia functions, which are overloaded for (Sort...) -> Sort \/ Error for type inference purposes. These can be serialized as fully-qualified module + name.
  3. For variables, we should use Paths from Dtries. These can be serialized as vectors of symbols.

This transition is orthogonal to e-graphs/symbolicutils/decaexprs/decapodeacsets; all of these can transition away from symbols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant