each Contributor hereby grants to You a [forever lasting]
patent license to [do anything with] the Work
The key part being "the Work", which is the code (in source or binary form) that's covered by the Apache licence. A derivative work would be covered by this patent licence, but a clean-room re-implementation of a feature would not because you are no longer dealing with "the Work". - You made a clean room implementation of our patent. You shall pay for that!
- No, I did not! I just copied/translated it!
- Well, then accept our apologies.
AFAIK, both translation and copying do make derivative works. For example, one cannot translate the latest bestseller and start selling it without agreement of the publisher of the original.Suppose that HP holds a patent related to the keyboard layout in webOS, of which the source code of their implementation is released under the Apache licence. If Apple took that code and mashed it into iOS, it would (I believe) clearly be a derivative work and protected by the licence. But suppose they didn't look at the code (or any material released by HP under the Apache licence), they just saw a picture/read a description of it/used it on a device and implemented it based on those experiences; in this case I think it's difficult to say that Apple's implementation is a derivative (and therefore protected) because of the lack of connection to the Apache-licensed work (except that their code produces the same runtime effect that HP's does, which I don't believe is necessarily covered by the Apache licence as they are separable from the original work).