If you're using one of the standard document classes, your current preamble code likely contains an instruction similar to
\newtheorem{theorem}{Theorem}[chapter]
I suggest you change it to
\newtheorem{theorem}{Theorem}[section]
If that doesn't work for you (possibly because you use an uncommon document class), I suggest you execute
\counterwithin{theorem}{section}
after setting up the theorem-like environments.

\documentclass{report} % or some other suitable document class
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition} % optional
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
%\counterwithin{theorem}{section} % alternate solution
\begin{document}
\stepcounter{chapter} % just for this example
\stepcounter{section}
\begin{theorem} aaa aaa \end{theorem}
\begin{lemma} bbb bbb \end{lemma}
\begin{definition} ccc ccc \end{definition}
\begin{example} ddd ddd \end{example}
\end{document}
amsthmorntheoremto help manage the appearance of theorem-like environments, including an environment nameddefinition? If so, how do you define thedefinitionenvironment, and is its definition (pun intended) tied to the definition of another theorem-like environment? Finally, is section "1.1" contained in chapter numbered "1"? – Mico Nov 23 '23 at 04:53