In the attached picture you can see that boxed theorem has the same numaration as the theorem which follows it. Also Corollary have a numeration. I am wondering how to give a proper numeration to all theorems? I mean the boxed theorem should be 1 and the next one is 2 and so on. I'd like to have Corollary without any numeration.
Thank you so much!
Please see my code
\documentclass{article}
%\documentclass[16pt]{report}
\usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{hyperref}
\usepackage{amssymb}
\usepackage{mdframed}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{nccmath}
\usepackage{dsfont}
\usepackage{cancel}
\usepackage{mathtools}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\onehalfspacing
%\doublespacing
\usepackage{mathtools}
\makeatletter
\newcommand{\xMapsto}[2][]{\ext@arrow 0599{\Mapstofill@}{#1}{#2}}
\def\Mapstofill@{\arrowfill@{\Mapstochar\Relbar}\Relbar\Rightarrow}
\makeatother
\newcommand{\RN}[1]{%
\textup{\uppercase\expandafter{\romannumeral#1}}%
}
\newmdtheoremenv{theo}{Theorem}
\newenvironment{claim}[1]{\par\noindent\underline{Claim:}\space#1}{}
\newenvironment{claimproof}[1]{\par\noindent\underline{Proof:}\space#1}{\hfill $\blacksquare$}
\newtheorem*{remark}{Remark}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}
\usepackage{graphicx}
\newcommand\smallO{
\mathchoice
{{\scriptstyle\mathcal{O}}}% \displaystyle
{{\scriptstyle\mathcal{O}}}% \textstyle
{{\scriptscriptstyle\mathcal{O}}}% \scriptstyle
{\scalebox{.7}{$\scriptscriptstyle\mathcal{O}$}}%\scriptscriptstyle
}
\usepackage{stackengine}
\parskip 1em
\newcommand\stackequal[2]{%
\mathrel{\stackunder[2pt]{\stackon[4pt]{=}{$\scriptscriptstyle#1$}}{%
$\scriptscriptstyle#2$}}}
\title{\textbf{Inverse function theorem}}
\author{}
\date{}
\begin{document}
\end{document}

