Skip to content

Conversation

@pedritomelenas
Copy link
Contributor

New category PosetNS
MaximalElements, MinimalElements, DownSet, UpSet, Antichain

@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

❌ Patch coverage is 90.52632% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.82%. Comparing base (3d6e368) to head (fd0c04e).

Files with missing lines Patch % Lines
gap/order.gi 88.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #89      +/-   ##
==========================================
+ Coverage   86.80%   86.82%   +0.02%     
==========================================
  Files          52       52              
  Lines       11967    12055      +88     
==========================================
+ Hits        10388    10467      +79     
- Misses       1579     1588       +9     
Files with missing lines Coverage Δ
gap/numset.gi 93.01% <100.00%> (ø)
gap/order.gd 100.00% <100.00%> (ø)
gap/order.gi 87.90% <88.00%> (+0.14%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

gap/order.gi Outdated
[IsList, IsNumericalSemigroup],
function(l,S)
local I;
if not (IsNumericalSemigroup(S)) then
Copy link

@james-d-mitchell james-d-mitchell Feb 3, 2026

Choose a reason for hiding this comment

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

This will always be false, since S must satisfy IsNumericalSemigroup in order for this method to be applied. I think you probably meant to check that l is not empty here, at least that's what the error message indicates.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thanks! It was a function, and then was turned into an operation. I will change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, while transforming it on an operation, I did remove the wrong check! I wanted to check if the list is a list of integers ... Thanks to your comment I realized the mistake.

Comment on lines +42 to +45
[IsNumericalSemigroup, IsList],
function(S,l)
return PosetNS(l,S);
end);

Choose a reason for hiding this comment

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

Suggested change
[IsNumericalSemigroup, IsList],
function(S,l)
return PosetNS(l,S);
end);
[IsNumericalSemigroup, IsList], PosetNS);

Equivalent, but shorter.

Copy link
Contributor Author

@pedritomelenas pedritomelenas Feb 3, 2026

Choose a reason for hiding this comment

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

Really? I think I am changing here the order of the arguments ...

We want to call PosetNS(list, semigroup) and also PosetNS(semigroup, list)

Choose a reason for hiding this comment

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

Ah yes you're right, sorry didn't notice that: could be {S, l} -> PosetNS(l, S) instead :)

Copy link

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

Choose a reason for hiding this comment

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

I know no-one asked, I noticed these things when somehow looking at this PR, and thought I'd comment, feel free to ignore me if my comments are unwelcome.

Co-authored-by: James Mitchell <james-d-mitchell@users.noreply.github.com>
@pedritomelenas
Copy link
Contributor Author

I know no-one asked, I noticed these things when somehow looking at this PR, and thought I'd comment, feel free to ignore me if my comments are unwelcome.

Thanks!

@pedritomelenas
Copy link
Contributor Author

May be we could implement connected components ...

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.

2 participants