سلام، به عنوان مثال: دستور headpunct={} باعث میشه در آخر هیچی نزاره داخل آکولاد نقطه یا خط تیره و ... بزاری قرار میدهد. موفق باشی
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheoremstyle[
spaceabove=6pt, spacebelow=6pt,
headfont=\normalfont\bfseries,
notefont=\mdseries, notebraces={(}{)},
bodyfont=\normalfont,
postheadspace=1em,
headpunct={},
numberwithin=section
]{solstyle}
\declaretheorem[style=solstyle]{lem}
\declaretheorem[style=solstyle]{theorem}
\begin{document}
\section{Test section}
text text text
\begin{lem}
text text text
\end{lem}
text text text
text text text
\begin{theorem}
text text text
\end{theorem}
text text text
\end{document}
خروجی: که در آخر لم و قضیه نقطه نداره
