\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{omicron/macros}[2025-05-25 omicron/macros package]

\RequirePackage{mathtools}
\RequirePackage{amssymb}
\RequirePackage{amsthm}

% create \set and \smid macro to create sets and scaling bar for set builder notation.
\newcommand{\set}[1]{\left\{ #1 \right\}}
\newcommand{\smid}{\,\middle|\,}

% easier access to blackboard bold
\@ifpackageloaded{dsfont}{%
    \let\bb\mathds
}{%
    \let\bb\mathbb
}

% swap default slanted/curly versions of common relations
\let\leqflat\leq
\let\leq\leqslant
\let\geqflat\geq
\let\geq\geqslant
\let\precflateq\preceq
\let\preceq\preccurlyeq
\let\succflateq\succeq
\let\succeq\succcurlyeq

% swap varepsilon and epsilon
\let\uglyepsilon\epsilon
\let\epsilon\varepsilon
\let\varepsilon\uglyepsilon

% swap varphi and phi
\let\uglyphi\phi
\let\phi\varphi
\let\varphi\uglyphi

% scaling abs value
\newcommand{\abs}[1]{\left|#1\right|}

% scaling parenthesis
\newcommand{\paren}[1]{\left(#1\right)}

% Probability function
\DeclareMathOperator{\probop}{P}
\newcommand{\prob}[1]{\probop\paren{#1}}

% Complement superscript operator
\DeclareMathOperator{\complop}{c}
\newcommand{\mycomplement}{{\complop}}
\let\altcomplement\complement
\let\complement\mycomplement

\endinput
