

\addtolength{\topmargin}{-23mm}
\addtolength{\textheight}{60mm}
\addtolength{\oddsidemargin}{-20mm}
\addtolength{\textwidth}{40mm}

\def\eqref#1{(\ref{#1})}
\newcommand{\goth}{\mathfrak}
\newcommand{\arrow}{{\:\longrightarrow\:}}
\def\1{\sqrt{-1}\:}
\newcommand{\restrict}[1]{{\left|_{{\phantom{|}\!\!}_{#1}}\right.}}

\renewcommand{\bar}{\overline}
\renewcommand{\phi}{\varphi}
\renewcommand{\epsilon}{\varepsilon}
\renewcommand{\geq}{\geqslant}
\renewcommand{\leq}{\leqslant}

\def\rad{\operatorname{\sf rad}}
\def\tr{\operatorname{\sf tr}}
\def\rk{\operatorname{\sf rk}}
\def\Alt{\operatorname{\sf Alt}}
\def\Sym{\operatorname{\sf Sym}}
\def\Id{\operatorname{\sf Id}}
\def\Hom{\operatorname{Hom}}
\def\Map{\operatorname{Map}}
\def\Gal{\operatorname{Gal}}
\def\Aut{\operatorname{Aut}}
\newcommand{\End}{\operatorname{End}}
\newcommand{\Mat}{\operatorname{Mat}}

\newcommand{\coker}{\operatorname{Coker}}

\def\chpoly{\operatorname{\sf Chpoly}}
\def\minpoly{\operatorname{\sf Minpoly}}

\def\cchar{\operatorname{\sf char}}

\def\Z{{\mathbb Z}}
\def\R{{\mathbb R}}
\def\C{{\mathbb C}}
\def\Q{{\mathbb Q}}
\def\N{{\mathbb N}}
\def\F{{\mathbb F}}

\def\Re{\operatorname{Re}}
\def\Im{\operatorname{Im}}

\makeatletter
\begingroup
\gdef\th@upshape{\normalfont
  \def\@begintheorem##1##2{%
        \item[\hskip\labelsep \theorem@headerfont ##1\ ##2.]}%
\def\@opargbegintheorem##1##2##3{%
   \item[\hskip\labelsep \theorem@headerfont ##1\ ##2\ (##3).]}}
\endgroup

\theoremstyle{upshape}

\newtheorem{zadacha}{Exercise}[section]
\newtheorem{opredelenie}{Definition}[section]

\begingroup
\gdef\th@upshapenonumber{\normalfont
  \def\@begintheorem##1##2{%
        \item[\hskip\labelsep \theorem@headerfont ##1.]}%
\def\@opargbegintheorem##1##2##3{%
   \item[\hskip\labelsep \theorem@headerfont ##1\ (##3).]}}
\endgroup

\theoremstyle{upshapenonumber}

\newtheorem{ukazanie}{Hint}[section]
\newtheorem{zamechanie}{Remark}[section]

\renewcommand{\labelenumi}{\alph{enumi}.}
\newcommand{\subs}[1]{{\bigskip\centerline{\bf\large #1}\bigskip}}
\newcommand{\sttr}{{\bf(*)}}
\newcommand{\shrk}{{\bf(!)}}
\newcommand{\doublesttr}{{\bf(**)}}

\newcommand{\listok}[2]{%
\setcounter{page}{1}
\renewcommand{\@oddhead}{\hfil #2 \hfil}
\renewcommand{\@evenhead}{\hfil #2 \hfil}
\section*{#2}
\refstepcounter{section}
\setcounter{section}{#1}
}

\@addtoreset{equation}{section}
\renewcommand{\theequation}{\thesection.\arabic{equation}}

\let\oldllim=\lim
\def\lim{\oldllim\limits}
\makeatother

