prove termsem_equation, and more fiddling with the setup