Beijing has threatened to use military force if Taiwan attempts to claim formal independence .