From my (unconfirmed, I haven't really played around with it) observations, it's even more than that. If I get a Lost Library that adds 60 research but i only need 20 to complete my current research path, I'll only get 20. The other 40 won't apply to my next tech. If I have a long path set up though, it will apply to the next tech on the path.