-
Notifications
You must be signed in to change notification settings - Fork 5
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
Graphical scheduling of rewrite rules #15
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basic interpret working now need to do visuals
rename Multiarity constraints, Schedules take AbsRule
Since the computer running github actions doesn't have graphviz
This was referenced Jun 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements a traced monoidal category which formalizes schedules of rewrite rules as wiring diagrams. The semantics is that, at any point in time, the world state lives on a wire in the diagram. Boxes have a general form, but for scheduling we consider a handful of primitive boxes, such as the application of a rewrite rule, a control flow function (e.g. flip a coin to go down one path vs another), a query box (for each match in the query, run a schedule focused on the result).
Not only does this let us construct large schedules compositionally and implement the scheduler in a modular manner, but we also visualize where we are in the schedule in lockstep with the trajectory of world states that results from a simulation, which adds helpful context.
This PR also adapts to the incorporations of variables into ACSet attributes.