The halving of bitcoin is indeed a dirty little trick hiding in the source code.
The bitcoin white paper misleads:
"The steady addition of a constant of amount of new coins..."
Point being:
White paper does not mention halving !
The code is open source, if you want technical details on how Bitcoin works at the development level.