Baker-Campbell-Hausdorff formula for nilpotency class five

Statement
The Baker-Campbell-Hausdorff formula for nilpotency class four is a special case of the Baker-Campbell-Hausdorff formula that works in the case of groups and Lie rings of nilpotency class (at most) five. In particular, it is a formula that can be used to go back and forth along the class five Lazard correspondence.

The explicit formula for $$\log(\exp(X)\exp(Y))$$ is given in many equivalent forms below: