Type-based analysis of logarithmic amortised complexity. (19th June 2022)