amsthm for my theorems, lemmas etc.
I'd like their numbering to look like that:
Theorem 1.1.1 Lemma 1.1.2 Definition 1.1.3 Theorem 1.2.1 Definition 1.2.2 Corollary 1.2.3 Theorem 2.1.1 etc.
To make the numbering "per-section" I did
But then each theorem type I defined had its own counter. So I tried
But then the numbers are just plain, section part disappears!
So I'd like to write something like
But this doesn't work :(
How can I achieve such effect?