\usepackage{mathrsfs}

\newcommand{\abs}[1]{\bigl| {#1} \bigr|}

\newcommand{\length}{\mathrm{length}}
\newcommand{\area}{\mathrm{area}}
\newcommand{\volume}{\mathrm{volume}}
\newcommand{\mass}{\mathrm{mass}}

\newcommand{\grad}{\mathrm{grad}}
\newcommand{\curl}{\mathrm{curl}}
\renewcommand{\div}{\mathrm{div}}

\newcommand{\RP}{\bR{P}}
\newcommand{\CP}{\bC{P}}

\newcommand{\by}{\mathbf{y}}
\newcommand{\bz}{\mathbf{z}}
\newcommand{\tX}{\widetilde{X}}
\newcommand{\sP}{\mathscr{P}}
\newcommand{\bN}{\mathbf{N}}
\newcommand{\cU}{\mathcal{U}}
\newcommand{\sC}{\mathscr{C}}
\newcommand{\bR}{\mathbf{R}}
\newcommand{\bx}{\mathbf{x}}
\newcommand{\oX}{\overline{X}}
\newcommand{\oS}{\overline{S}}
\newcommand{\bZ}{\mathbf{Z}}
\newcommand{\bQ}{\mathbf{Q}}
\newcommand{\of}{\overline{f}}
\newcommand{\oU}{\overline{U}}
\newcommand{\sU}{\mathscr{U}}

\newcommand{\rest}[1]{\big|_{#1}}

\newtheorem{proposition}{Proposition}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}

\DeclareMathOperator{\Spec}{Spec}
\DeclareMathOperator{\Hom}{Hom}

\newcommand{\set}[1]{\bigl\{ {#1} \bigr\}}
