> The government hasn't sanctioned the code
The government has explicitly said that all property and interests in property of Tornado Cash, and anybody found to be supporting it it any way, is blocked. This is why GitHub and all hosting services will refuse to allow it on their platforms.
The code is implicitly sanctioned. Any person who posts the code will probably have their repo removed, and maybe their account flagged or deleted. If you continue to try posting the code to many different hosting services you might be seen as supporting Tornado Cash, and could be facing jail time.
The protocol - the math and rules - is also implicitly sanctioned. If you build a new protocol using similar cryptographic tools, you will probably face similar risks.
> only the concrete instance present on a couple wallet addresses.
If you feel this US will stop at only these addresses, you are very naive. Any individual can fork the protocol, and it will be on a new address. Any individual can also build a competitor to Tornado Cash using similar cryptography, and they will probably also be putting themselves and their project at risk of US sanctions.
> When I use the public knowledge of a library book
However, the information is free - you can find it in a public library, and nobody is attempting to censor it.
There are two separate problems here. One is that the US sanctions are leading to censorship of knowledge and cryptographic research, which is concerning. The other is that the US sanctions are targeting an open source protocol enabling E2EE privacy on the blockchain, not that different than if they were to sanction Matrix protocol.