In my thesis I'm using the following math related packages:
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
I would like to change the position of the little square at the end of the proofs. More precisely I would like to make it appear right after the last word of the proof.
Any help will be really appreciated!
Thanks!

amsthmshould be loaded aftermathtools(see this question). Also, if you're loadingmathtoolsthere's no need to loadamsmathsince the former loads the latter. – Sandy G Feb 14 '24 at 04:19