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

Generalize incremental hom search to work for nonmonic matches and rules #72

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kris-brown
Copy link
Collaborator

The key computational challenge here is enumerating all epimorphisms.

The gist of this idea is that you work in an arrow schema, where the codom copy of the schema represents a set of equivalence classes for each part (but there are also morphisms between these sets equivalence classes - this is important for naturality!). We want to work up to isomorphism of the codomain but not the domain, so we add an attribute _Fix :: Int that bakes in the id of everything in the domain as real data.

We initialize the tree search with the most refined partition, where the data in codom portion is identical to the data in the dom portion. The data in the domain portion never changes throughout the search, but we iteratively take pairs of equivalence classes and quotient them until we arrive at the terminal object.

Important for this complexity to not blow up is using the nauty hash, as pushouts are unique only up to isomorphism.

@kris-brown kris-brown self-assigned this Jun 25, 2024
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

Successfully merging this pull request may close these issues.

1 participant