I'm writing an essay in Latex and I want to do the following thing, which I'll explain with an example. Suppose that I have a theorem 1.1 and inside it I have to specify an equation. Is there a way in which I can label automatically the equation as 1.2 and such that the subsequent theorem is labelled 1.3? Furthermore, is it possible to do this with any kind of proposition (like examples, lemmata etc.)?
Thank you very much!!