Skip to content

Update rpo and rev_rpo - #485

Open
Joseph-Edwards wants to merge 2 commits into
libsemigroups:mainfrom
Joseph-Edwards:consistent-rev-orders
Open

Update rpo and rev_rpo#485
Joseph-Edwards wants to merge 2 commits into
libsemigroups:mainfrom
Joseph-Edwards:consistent-rev-orders

Conversation

@Joseph-Edwards

Copy link
Copy Markdown
Collaborator

This PR updates the Python bindings to reflect the changes in libsemigroups/libsemigroups#1056. It also adds several ...RPO... objects, where previously only ...RevRPO... objects existed.

:returns: An alphabet order orienting every rule, or an empty word if none
exists.
:returns: The ordered alphabet, if such an alphabet exists. Otherwise, the
empty alphabet.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't really a comment about this PR, but maybe this should return None if it can't do it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should change the C++ code to return an optional, or should this be a Python only change?

@james-d-mitchell

Copy link
Copy Markdown
Member

@codex review

@james-d-mitchell james-d-mitchell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, let's see what Codex "thinks"

@james-d-mitchell james-d-mitchell added the libsemigroups-feature-not-yet-supported Label for issues and PRs related to features of libsemigroups not yet supported here label Aug 28, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: baa1b6acb7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/libsemigroups_pybind11/knuth_bendix.py
Comment thread src/libsemigroups_pybind11/knuth_bendix.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libsemigroups-feature-not-yet-supported Label for issues and PRs related to features of libsemigroups not yet supported here

Projects

None yet

2 participants