1. A hypothetical employer asks an employee to find a really fast algorithm to find an inverse square root. The employee has a perfect memory and can regurgitate fast inverse square root from Quake 2.
2. A hypothetical employer asks an employee to find a really fast algorithm to find an inverse square root. The employee uses this ML algorithm to generate the code which essentially regurgitates the only previously seen inverse square root function it was trained on.
At some point in time in the future id Software sees this is happening at our hypothetical company and sues. In neither situation is the "actor" held accountable since the "actor" was employed by the company which allowed for practices that enabled this infringement to take place.
I think an important legal question is: Do we consider a ML algorithm being trained on data the same as a human reading prior art for an innovation?