I was reading up on this Quora answer on memory space required by segment trees. In the second paragraph, the author assumes that the height of a segment tree is ceil(log(n)), where n is the size of the array from which the tree is being formed.
After going through a few examples, I noticed that whenever n is a power of 2, the last level of the segment tree contains segments of size 1. Whenever n exceeds this power of 2, some segments of size 1 on this level become segments of size 2, increasing the height of the tree by 1, in accordance with the above formula for height.
But I can't seem to figure out a strict proof that the height of a segment tree is ceil(log(n)). Any help would be appreciated.