For that matter, software or algorithms can be under copyright (may not publish), patent (must publish as part of the patent), and trade secret (may publish only if already public knowledge) at the same time.