Skip to content

fix lift from fraction field to base/coefficient ring (#3896)#4270

Open
pzinn wants to merge 1 commit into
Macaulay2:developmentfrom
pzinn:main
Open

fix lift from fraction field to base/coefficient ring (#3896)#4270
pzinn wants to merge 1 commit into
Macaulay2:developmentfrom
pzinn:main

Conversation

@pzinn
Copy link
Copy Markdown
Contributor

@pzinn pzinn commented May 8, 2026

FractionField::lift was gated on R_->is_field(), which is always false for the polynomial ring underlying a fraction field. Replace the guard with R_->is_unit(h->denom), and chain through R_->lift so e.g. lift(1/123_(frac QQ[x]), QQ) also works.

AI Disclosure

Claude Code helped me write this.

@pzinn
Copy link
Copy Markdown
Contributor Author

pzinn commented May 24, 2026

this is ready to be merged

@mahrud
Copy link
Copy Markdown
Member

mahrud commented May 24, 2026

Will it conflict with the monster engine PR?

@pzinn
Copy link
Copy Markdown
Contributor Author

pzinn commented May 24, 2026

how would I know? I submitted this before any of this

@mahrud
Copy link
Copy Markdown
Member

mahrud commented May 24, 2026

I just meant is it changing the same files as that PR? It's okay if you don't know, it's a reminder for whoever is going to merge to check first.

@d-torrance
Copy link
Copy Markdown
Member

Pretty much every file in the engine is getting moved :) I think the plan is to merge the "great sort" PR first (#4347) and then rebase the others (including this one) after that.

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.

3 participants