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

is_monic for free simple model morphisms, initializing hom search, monic search constraint #204

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

Conversation

kris-brown
Copy link
Collaborator

This adds some related features which combine in a test which states (informally) simple_paths(G, x, y) is equal to homomorphisms(walking_edge, G; initial=(walking_src -> x, walking_tgt -> y)) (in the case of all the object/morphism types being the same). This is done for an arbitrary model with lots of loops, but in general could be a nice thing to property-based-test in the future.

Now, a path is simple if it has no repeated generating morphisms (before it couldn't repeat objects except for beginning and end). A model morphism is simple if all generators are sent to simple paths.

This PR additionally adds a check for whether a morphism is monic (conditional on it being free and simple).

Initializing hom search merely adds some clauses to the search function which check, before looping through possible ob/mor assignments, if the ob/mor has already been preassigned. Future work will go into making this more efficient by playing with the order which the algorithm attempts assignments to improve performance.

@kris-brown kris-brown added the enhancement New feature or request label Oct 2, 2024
@kris-brown kris-brown self-assigned this Oct 2, 2024
Copy link

github-actions bot commented Oct 2, 2024

@kris-brown kris-brown added the core Rust core for categorical logic and general computation label Oct 2, 2024
@kris-brown kris-brown changed the title Redefinition of simple path, is_monic for free simple model morphisms, initializing hom search is_monic for free simple model morphisms, initializing hom search, monic search constraint Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Rust core for categorical logic and general computation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant