Inserting the following in math mode [A|-B] the minus appears as an binary operator rather than a unary operator on B, so the minus is too big and the space to B is too large.
Using tex code: [A|{-B}] looks better, although I thing the minus is still too large. What is the best lyx approach?