%% LyX 2.5.0~RC1 created this file.  For more info, see https://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[american]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{zref-clever}
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{thm}{\protect\theoremname}
\theoremstyle{definition}
\newtheorem{example}[thm]{\protect\examplename}
\usepackage{babel}
\zcsetup{countertype={thm=theorem}}
\AddToHook{env/example/begin}{\zcsetup{countertype={thm=definition}}}
\providecommand{\examplename}{Example}
\providecommand{\theoremname}{Theorem}

\begin{document}
\begin{example}
\label{exa:First-Example}First Example
\end{example}
Reference to First Example: \zcref{exa:First-Example}
\end{document}
