• FauxLiving@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    4 hours ago

    Essentially yes.

    The GPL license is a way to take things that can be copyrighted and grant those rights to others with limitations (the limitations being the terms of the license).

    However, the AI generated portions of the code are not copyrightable and so they’re considered public domain and remain so no matter what. Once something is public domain it is always public domain, no matter where it is used.

    In practice, if someone wrote a function by hand and then the AI added some error handling code, then that person has a copyright to the lines that they wrote while the lines that the AI wrote are public domain. The entire function can still be licensed under the GPL but the copyright owner would not be able to pursue you for violation of the license if you used the error handling code in another non-GPL work as that portion is public domain.

    From a legal standpoint, since the code isn’t annotated as to which parts were human written (protected by copyright/GPL) and which parts were not (and fall under public domain), it would be unwise to attempt to violate the GPL license terms by taking arbitrary parts of the code and releasing them without a GPL license.

    The Free Software Foundation, the creators of the GNU GPL, has an FAQ that covers a lot of the details: https://www.gnu.org/licenses/gpl-faq.en.html#CombinePublicDomainWithGPL