The point I'm trying to make is if something is under a copyleft license, you can't copy and paste it verbatim to something non-copyleft. It's what the license says.
Also, to be pedantic, the function I'm commenting on is pure maths, and you can't license/patent mathematics.
On the other hand, if there's some magic sauce of doing something, let it be 25 lines, what will you say? It's just 25 lines, so you can't license it? To be more pedantic, I actually have an algorithm, which is around 25 lines and does something novel. I've published a paper on it.
If I license the reference implementation with AGPLv3+, and you use it and close it, and if I can't go after you, what's the purpose of the license?
You can read the paper and try to implement it. It's free in that regard.
Isn’t there already precedent in other forms of IP, such as chord progressions in music, sentence length in literature, etc?
Is it again too trivial?
I don't know. That's my function's length.
> do you count comments?
No comments, no blank lines.
> can I codegolf a few lines to get below the limit?
You bet. But, if you copy my reference implementation, you need to get the license as well.
However, the research is on the open. Read it, implement it. That's no problem.
But, CoPilot is not reading my paper. It's reproducing my function verbatim, which is under a license which has share-alike mechanics.
That's as simple as that.