Skip to content

Clarify LocalNR manual entries#47

Open
fingolfin wants to merge 1 commit into
masterfrom
codex/issue-26-docs
Open

Clarify LocalNR manual entries#47
fingolfin wants to merge 1 commit into
masterfrom
codex/issue-26-docs

Conversation

@fingolfin
Copy link
Copy Markdown
Member

@fingolfin fingolfin commented May 15, 2026

Improve the manual text for LocalNR by fixing grammar, making library references explicit, and explaining several return values and parameter conventions more precisely.

Clarify that AdditiveGroupsOfLibraryOfLNRsOfOrder returns groups. Fill in or tighten several function descriptions in the manual source and regenerate the extracted example tests accordingly.

Co-authored-by: Codex codex@openai.com

Resolves #26. Resolves #39.


All work in this PR done by Codex. I had a look over it and it seemed sensible, but you should check it carefully yourself.

Improve the manual text for LocalNR by fixing grammar, making
library references explicit, and explaining several return values
and parameter conventions more precisely.

Clarify that AdditiveGroupsOfLibraryOfLNRsOfOrder returns groups.
Fill in or tighten several function descriptions in the manual
source and regenerate the extracted example tests accordingly.

Co-authored-by: Codex <codex@openai.com>
Comment thread lib/lib_local.gd

#! @Description
#! The argument is $n$.
#! The output a list of <C>IdGroup</C> of the additive groups
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was just wrong

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.

@fingolfin but the output is a list of group IDs, not of groups themselves

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.

Maybe

#! The output is a list of group IDs of additive groups of local nearrings in the
#! library of this package of order $n$.

?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, the output is a list of groups, as the new text says, not a list of group ids. Look at the example a bit below, which takes the output of this function, then applies IdGroup to it, to obtain a list of ids.

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.

@fingolfin oops, you're certainly right :)

Comment thread lib/local.gd

#! @Description
#! The argument is a group $G$.
#! The output is
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was incomplete as pointed out in issue #39

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.

Look good - even if this function may disappear later.

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.

@raemarina @IrynaRaievska I know that you intended to eliminate this function, but with Max's fix the documentation is complete. You can keep it, and then optimise the other function (IsEndoCyclicGroup) later to avoid redundant checks.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.98%. Comparing base (2b49346) to head (4f0d17f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #47   +/-   ##
=======================================
  Coverage   96.98%   96.98%           
=======================================
  Files           5        5           
  Lines         664      664           
=======================================
  Hits          644      644           
  Misses         20       20           
Files with missing lines Coverage Δ
lib/lib_local.gd 100.00% <ø> (ø)
lib/local.gd 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread lib/lib_local.gd

#! @Description
#! The argument is $n$.
#! The output a list of <C>IdGroup</C> of the additive groups
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.

@fingolfin but the output is a list of group IDs, not of groups themselves

Comment thread lib/lib_local.gd
#! The output is local nearring from <C>Library</C> without
#! check. The arguments $k$, $l$, $m$, $n$ are from IdGroup of the additive group and the multiplicative group,
#! respectively, $w$ is the position in the list.
#! The output is the $w$-th local nearring from the library of this
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.

A minor nitpick, I'd not usually use w for an integer index :) What about i or j ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That kind of change is out of scope for this PR. The package authors called this w, and I'd rather not mess with it here, that can be done in a follow-up PR

Comment thread lib/local.gd

#! @Description
#! The argument is a group $G$.
#! The output is
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.

Look good - even if this function may disappear later.

Comment thread lib/local.gd

#! @Description
#! The argument is a group $G$.
#! The output is
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.

@raemarina @IrynaRaievska I know that you intended to eliminate this function, but with Max's fix the documentation is complete. You can keep it, and then optimise the other function (IsEndoCyclicGroup) later to avoid redundant checks.

Comment thread lib/lib_local.gd

#! @Description
#! The argument is $n$.
#! The output a list of <C>IdGroup</C> of the additive groups
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.

Maybe

#! The output is a list of group IDs of additive groups of local nearrings in the
#! library of this package of order $n$.

?

Copy link
Copy Markdown
Member

@olexandr-konovalov olexandr-konovalov left a comment

Choose a reason for hiding this comment

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

This looks perfectly fine to me. @IrynaRaievska @raemarina you can do "rebase and merge" and seems like it will be ready for release? You still plan some updates in the README though?

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.

Missing output description in EndoOrbitsOfGroup Language in the manual could be improved

2 participants