> If I read the code for, I don't know, some GPL-3 library and then write my own MIT-licensed version--that's totally fine.
There's a reason people sometimes clean room document some code, then have a different set of people who never read the source re-implement it with out ever having seen the source. To avoid these kinds of issues.
I don't think that's always fine.