B:BD[
5.686] → [
3.1572:2194]
IsRotatableRight : {leftTree : AVLTree t leftHeight leftBounds {o}}
-> {pivot : t}
-> {rightTree : AVLTree t rightHeight rightBounds {o}}
-> {auto leftNonEmpty : NonEmpty leftTree}
-> {auto leftBound : (optional leftBounds ((\b => LT @{o} b pivot) . Builtin.snd) Unit)}
-> {auto rightBound : (optional rightBounds ((\b => GT @{o} b pivot) . Builtin.fst) Unit)}
-> {auto height : diff leftHeight rightHeight `LTE` 1}
-> RotatableRight (Node leftTree pivot rightTree {leftHeight} {rightHeight})
IsRotatableRight : {leftHeight, rightHeight : Natural}
-> {leftTree : AVLTree t leftHeight leftBounds {o}}
-> {pivot : t}
-> {rightTree : AVLTree t rightHeight rightBounds {o}}
-> {auto leftNonEmpty : NonEmpty leftTree}
-> {auto balanceFactor : rightHeight `LT` leftHeight}
-> {auto leftBound : (optional leftBounds ((\b => LT @{o} b pivot) . Builtin.snd) Unit)}
-> {auto rightBound : (optional rightBounds ((\b => GT @{o} b pivot) . Builtin.fst) Unit)}
-> {auto height : diff leftHeight rightHeight `LTE` 1}
-> RotatableRight (Node leftTree pivot rightTree {leftHeight=leftHeight} {rightHeight=rightHeight})