Contour bracketing using only a strict height prefix #
A height bound at the right endpoint excludes bracket indices beyond that endpoint. The resulting comparison uses heights and their oscillations only on the larger prefix.
theorem
BGW.PlaneTree.contourLin_two_mul_sub_heightLin_le_prefix
(t : PlaneTree)
{m : ℕ}
{u ω δ : ℝ}
(hu0 : 0 ≤ u)
(hu : u ≤ ↑m + 1)
(hm : m + 1 ≤ t.size)
(hbuffer : 2 * u + ↑(t.heightSeq m) ≤ 2 * ↑m)
(hω1 : 1 ≤ ω)
(hω2 : ∀ j ≤ m, ↑(t.heightSeq j) / 2 ≤ ω)
(hδ : ∀ (x y : ℝ), 0 ≤ x → x ≤ ↑m + 1 → 0 ≤ y → y ≤ ↑m + 1 → |x - y| ≤ ω → |t.heightLin x - t.heightLin y| ≤ δ)
:
Prefix-local contour/height comparison: all height and modulus hypotheses stop at m+1.