This PR upstreams the definition of Rat from Batteries, for use in our planned interval arithmetic tactic. --------- Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>