A dynamic array
A dynamic array always knows its size: that is an amount, its past, written. Whether it will grow or shrink next, and how far, it cannot know: of its future it is situated. What it holds is its load, size over capacity, a number between 0 and 1. It grows by g when full and shrinks when the load falls far enough. Not knowing which way the future runs, the band rests it at the corner of what it cannot know.
The load on the levels (each line a halving). Shaded: the band between the shrink and the grow; gold: where a resize lands. In the band both land at 1/g, the geometric middle, one level from each edge. The trace is the last 600 operations, each resize a tick.
Copies so far per operation. The band keeps it under the dashed line whatever the future does; shrinking at 1/g, the worst future (a push and a pop at the edge) copies the whole array every time.
Near and far: capacity against size, both on doublings, pushes only. Inside C₀ the capacity stays C₀: no copying, at most C₀ empty, an amount. Past it one reallocation a level of g, and the capacity within a factor g of the size: a ratio. White: where the array is now.
Against the levels of r = 1/(g − 1): copying alone, 1 + r a element (teal), falls without end and has no corner. Times the waste factor 1 + 1/r it is 2 + r + 1/r (gold), the same at r and 1/r, least at the corner, g = 2. Price one side and g is free; price both and the corner fixes it.
Related: online, at the corner, arrays on the sweeps, H is a zoom. All the demos.