You could directly refer to the number of the theorem in your thesis using the xr
package.
Let's say your thesis looks like this:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\newtheorem{theorem}{Theorem}
\begin{document}
\section{Introduction}
Theorems can easily be defined
\begin{theorem}
Let $f$ be a function whose derivative exists in every point, then $f$
is a continuous function.
\end{theorem}
\begin{theorem}
\label{mytheo}
Let $f$ be a function whose derivative exists in every point, then $f$
is a continuous function.
\end{theorem}
Refering: \ref{mytheo}
\end{document}
Then you can use the labels with in your presentation:
\documentclass{beamer}
\usepackage{xr}
\externaldocument{document2}
\setbeamertemplate{theorems}[numbered]
\usepackage{refcount}
\begin{document}
\begin{frame}
test \ref{mytheo}
\setcounterref{theorem}{mytheo}
\addtocounter{theorem}{-1}
\begin{theorem}
Let $f$ be a function whose derivative exists in every point, then $f$
is a continuous function.
\end{theorem}
\end{frame}
\end{document}

\setcounter{theorem}{yournumber}
before the theorems does not work, whereyournumber
is the the theorem number decreased by one?.aux
file{s} from the main thesis run. you'll have to preserve the\newlabel
lines; put them into a filethesis-labels.tex
and input that file to the beamer run. you'll have to figure out yourself how to format the output, and you need to make sure the number of arguments to\newlabel
agrees with what beamer expects; the number of arguments differs ifhyperref
is or is not used, and there may also be other conditions under which that number differs.