Skip to content

AI-generated extensions to gr_ore_poly: action on the base ring, conversions#2769

Draft
mezzarobba wants to merge 7 commits into
flintlib:mainfrom
mezzarobba:gr_ore_poly
Draft

AI-generated extensions to gr_ore_poly: action on the base ring, conversions#2769
mezzarobba wants to merge 7 commits into
flintlib:mainfrom
mezzarobba:gr_ore_poly

Conversation

@mezzarobba

Copy link
Copy Markdown
Contributor

My turn to play with LLMs ;-)

This PR adds gr_ore_poly functions for applying an operator to an element of its base ring and for converting between representations of a same operator in different Ore polynomial rings of the same family (differential or difference) as well as between differential and difference operators.

The code is almost entirely LLM-generated, though with multiple rounds of review and revisions. (The changes I made myself appear as separate commits, intermediate LLM-generated versions do not.)

Marc Mezzarobba (AI) and others added 7 commits July 5, 2026 20:31
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit contains both AI-generated code and human changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The just-added implementation was incorrect for Ore polynomial rings of
the same algebra type but with unequal parameters.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Comment on lines +1 to +3
/*
This file is part of FLINT.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Surely this should be attributed to you? (At least my view is that the copyright also indicates who is "responsible" for the code.)

@mezzarobba

mezzarobba commented Jul 6, 2026 via email

Copy link
Copy Markdown
Contributor Author

@albinahlback

albinahlback commented Jul 6, 2026 via email

Copy link
Copy Markdown
Collaborator

@fredrik-johansson

Copy link
Copy Markdown
Collaborator

No strong opinion.

When you contribute to FLINT, you remain the copyright holder but agree to license your work under the LGPL. "Transfer the copyright to FLINT as a project" is meaningless since FLINT isn't a legal entity. (Some other projects have such a setup though.)

The boilerplate at the top of each file just serves to inform the user that the LGPL applies. It doesn't really matter legally (as I far as I understand) whether it actually names the year and author, and if it names the author but the contents aren't actually copyrightable then the copyright notice is just vacuous (and the license still applies, vacuously). On the other hand, it's nice for documentation purposes to have the original year and author up front...

@fredrik-johansson

Copy link
Copy Markdown
Collaborator

The code looks fine, by the way.

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