copyright software derivative-work
Is a program capable of creating a derivative work itself a derivative work?
<p>Github copilot is an AI application developed by Microsoft, trained on code available online including that within the github code repository.  It outputs code that may solve problems presented as a function header.</p>
<p>There is at least one instance of Github copilot reproducing code that is a verbatim copy of GPL'ed code, see the image below, <a href="https://twitter.com/mitsuhiko/status/1410886329924194309" rel="nofollow noreferrer">this twitter thread</a> and the <a href="https://github.com/id-Software/Quake-III-Arena/blob/dbe4ddb10315479fc00086f08e25d968b4b43c49/code/game/q_math.c#L552" rel="nofollow noreferrer">original source</a>.  <a href="https://law.stackexchange.com/questions/74137/who-owns-the-right-to-the-code-generated-by-github-copilot">There has been a question about the ownership of the generated code</a> but what about the copilot application itself?  From the point of view of a informatician, it would seem that to be able to replicate this code the copilot program must have the information within it, and therefore be a derivative work of the code replicated, but I do not know how that relates to the legal definition of a derivative work.</p>
<p>The code represented here is licensed under the GPL v2, which I think would not require Microsoft to release the source of a derivative work if they are not releasing the binary.  If an owner of the copyright of code that did not allow this (for example Affero GPL) was to identify their work being reproduced by Github copilot are they likely to be able to successfully argue that copilot is a derivative work, and so should be made available under the Affero GPL?</p>
<p><a href="https://i.stack.imgur.com/CS2mC.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CS2mC.gif" alt="Github copilot generating Quake III code" /></a></p>

<p>Something used to create a derivative work is not itself a derivative work by virtue of that fact, any more than a copying machine is a derivative work of a book it is used to copy.</p>
<p>Derivative means &quot;based upon&quot;. If the software used to make a derivative work itself was not based upon the work that it was used to make a derivative work of, then it isn't a derivative work.</p>
<p>Furthermore, since software programs lack legal personality, the software program itself can't infringe on the copyright of another. Only a person utilizing the software program can infringe on someone else's copyright.</p>
