Skip to content

Refactoring incremental homomorphism search #84

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kris-brown
Copy link
Collaborator

Conceptually cleaner implementation of incremental hom search. Furthermore, this introduces a data structure IHS to manage multiple patterns, multiple rules, and multiple states being tracked. This also generalizes the previous implementation by being able to handle non-monic matches appropriately.

There are two algorithms: one based purely on the structure of an adhesive category and another (more efficient) that presumes one has complements. C-Sets do have complements, so we definitely want to have the latter, but the former is important to support to. In the case of a single rewrite, the relation between these two approaches is clear and we can have just one algorithm (with a special optimization built in). It still remains how to view the batch algorithm with complements as a special case/optimization of the adhesive batch algorithm. The code would become much simpler if we could do this.

TODO

Before merging, it will be useful to support:

  • handle positive/negative application conditions
  • handle attributed C-Sets

working CSet data structure for IHS

New4

cleanup

restructure files

more cleanup

get interactions

cleanup
@kris-brown kris-brown added the enhancement New feature or request label Apr 28, 2025
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

Successfully merging this pull request may close these issues.

1 participant