Skip to content

Fix CRRecordByPcp for non-snf pcp's - #261

Draft
stertooy wants to merge 2 commits into
gap-packages:masterfrom
stertooy:fix-crrecpcp-non-snf
Draft

stertooy wants to merge 2 commits into
gap-packages:masterfrom
stertooy:fix-crrecpcp-non-snf

Conversation

@stertooy

Copy link
Copy Markdown
Collaborator

Closes #260.

Recomputes the pcp, but in snf, if necessary.

AI Disclosure: bug discovered by GPT-6 Astra during a package audit.

@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.00%. Comparing base (8ac6b81) to head (421174f).
⚠️ Report is 24 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #261      +/-   ##
==========================================
+ Coverage   69.45%   74.00%   +4.54%     
==========================================
  Files          88       88              
  Lines       12829    14353    +1524     
==========================================
+ Hits         8911    10622    +1711     
+ Misses       3918     3731     -187     
Files with missing lines Coverage Δ
gap/cohom/cohom.gi 93.07% <100.00%> (+5.37%) ⬆️

... and 27 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread gap/cohom/cohom.gi
# compute snf if needed
if not IsSNFPcp( pcp ) and
Length( Set( RelativeOrdersOfPcp( pcp ) ) ) > 1 then
pcp := Pcp( GroupOfPcp( pcp ),

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 replaces the caller's pcp, so A.normal and the cocycle coordinates refer to a different basis than the input. doc/cohom.xml describes normal as either Pcp(A) or the input pcp. So shouldn't we update it to mention the SNF replacement for mixed relative orders?

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.

I guess so. I'm starting to wonder now whether we should document this, or instead throw an error...

@stertooy stertooy closed this Oct 21, 2026
@stertooy
stertooy deleted the fix-crrecpcp-non-snf branch October 21, 2026 22:42
@stertooy stertooy reopened this Oct 22, 2026
@stertooy
stertooy marked this pull request as draft October 22, 2026 07:45
@stertooy

Copy link
Copy Markdown
Collaborator Author

Accidentally deleted this earlier... But I'll mark this as a draft, since I'm still unsure what the best course of action is.

This branch has not been deployed

No deployments
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.

CRRecordByPcp can fail for non-snf pcp's

2 participants