%%%%%%%%%%%%%% preambleHm %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%% margincomments %%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\wolfcomment}[1]%
    {{%
      \marginpar{{\tiny\begin{minipage}{0.5in}
                       \begin{flushleft}
                          {#1 {\wolf}. ---------}
                       \end{flushleft}
                       \end{minipage}
                }}
    }}

\newcommand{\larrycomment}[1]%
    {{%
      \marginpar{{\tiny\begin{minipage}{0.5in}
                       \begin{flushleft}
                          {#1 {\larry}. ---------}
                       \end{flushleft}
                       \end{minipage}
                }}
    }}

\newcommand{\margincomment}[1]%
{{%
      \marginpar{{\tiny\begin{minipage}{0.5in}
                       \begin{flushleft}
                          {#1}
                       \end{flushleft}
                       \end{minipage}
                }}
    }}

%\renewcommand{\cite}[1]{{[{\sf #1}]}}  % temporary, to avoid latex complaints
%\renewcommand{\ref}[1]{{[{\sf #1}]}}  % temporary, to avoid latex complaints

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% useful editing macros %%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\adjust}{{\mbox{\it adjust}}}
\newcommand{\etal}{{\em et al.~\/}}
\newcommand{\tH}{{\rm th}}
\newcommand{\st}{{\rm st}}
\newcommand{\nd}{{\rm nd}}
\newcommand{\rd}{{\rm rd}}
\newcommand{\etc}{{\em etc.\/}}
\newcommand{\ie}{{\em i.e.\/}}
\newcommand{\eg} {{\em e.g.\/}}
\newcommand{\larry}{$\calL^3$}
\newcommand{\wolf}{$\calW^2 \calB$}
\newcommand{\myparagraph}[1]{{\medskip\noindent{\bf #1}}}
\newcommand{\mch}{\mbox{${\cal MC}h$}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% lengths and sizes %%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\setlength{\evensidemargin}{0.1in}
%\setlength{\oddsidemargin}{0.1in}
%\setlength{\textwidth}{6.4in}
%\setlength{\topmargin}{0.1in}
%\setlength{\textheight}{8.85in}
%\setlength{\headheight}{0in}
%\setlength{\headsep}{0in}
%\setlength{\topsep}{0in}
%\setlength{\itemsep}{0in}

% \pagestyle{plain}  % From an old header
% \addtolength{\textheight}{1.0in}  % From an old header
% \addtolength{\topmargin}{-0.6in}  % From an old header
% \addtolength{\textwidth}{1.0in}  % From an old header
% \addtolength{\oddsidemargin}{-0.5in}  % From an old header
% \addtolength{\evensidemargin}{-0.5in}  % From an old header

%\setlength{\evensidemargin}{0.in}
%setlength{\oddsidemargin}{0.0in}
%setlength{\textwidth}{6.0in}
%setlength{\topmargin}{0.0in}
%setlength{\textheight}{8.0in}
%setlength{\headheight}{0in}
%setlength{\footskip}{0.0in}
%setlength{\headsep}{0in}
%setlength{\topsep}{0in}
%setlength{\itemsep}{0in}


%\addtolength{\textheight}{0.8in}
%\addtolength{\textwidth}{0.8in}
%\addtolength{\oddsidemargin}{-0.4in}
%\addtolength{\evensidemargin}{-0.4in}
\renewcommand{\baselinestretch}{1.1}


%\setlength{\evensidemargin}{0.1in}
%\setlength{\oddsidemargin}{0.1in}
%\setlength{\textwidth}{6.5in}
%\setlength{\topmargin}{0.0in}
%\setlength{\textheight}{8.8in}
%\setlength{\headheight}{0in}
%\setlength{\headsep}{0in}
%\setlength{\topsep}{0in}
%\setlength{\itemsep}{0in}
                                                                                
\setlength{\evensidemargin}{0.1in}
\setlength{\oddsidemargin}{0.1in}
\setlength{\textwidth}{6.4in}
\setlength{\topmargin}{0.1in}
\setlength{\textheight}{8.8in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\topsep}{0in}
\setlength{\itemsep}{0in}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% all sorts of letters %%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\bookmark}{\mbox{{\sc \small bookmarked}}}
\newcommand{\sat}{\mbox{{\sc \small satisfied}}}
\newcommand{\unsat}{\mbox{{\sc \small unsatisfied}}}
\newcommand{\bfa}{{\bf a}}
\newcommand{\bfb}{{\bf b}}
\newcommand{\bfc}{{\bf c}}
\newcommand{\bfd}{{\bf d}}
\newcommand{\bfe}{{\bf e}}
\newcommand{\bff}{{\bf f}}
\newcommand{\bfg}{{\bf g}}
\newcommand{\bfh}{{\bf h}}
\newcommand{\bfi}{{\bf i}}
\newcommand{\bfj}{{\bf j}}
\newcommand{\bfk}{{\bf k}}
\newcommand{\bfl}{{\bf l}}
\newcommand{\bfm}{{\bf m}}
\newcommand{\bfn}{{\bf n}}
\newcommand{\bfo}{{\bf o}}
\newcommand{\bfp}{{\bf p}}
\newcommand{\bfq}{{\bf q}}
\newcommand{\bfr}{{\bf r}}
\newcommand{\bfs}{{\bf s}}
\newcommand{\bft}{{\bf t}}
\newcommand{\bfu}{{\bf u}}
\newcommand{\bfv}{{\bf v}}
\newcommand{\bfw}{{\bf w}}
\newcommand{\bfx}{{\bf x}}
\newcommand{\bfy}{{\bf y}}
\newcommand{\bfz}{{\bf z}}

\newcommand{\bfA}{{\bf A}}
\newcommand{\bfB}{{\bf B}}
\newcommand{\bfC}{{\bf C}}
\newcommand{\bfD}{{\bf D}}
\newcommand{\bfE}{{\bf E}}
\newcommand{\bfF}{{\bf F}}
\newcommand{\bfG}{{\bf G}}
\newcommand{\bfH}{{\bf H}}
\newcommand{\bfI}{{\bf I}}
\newcommand{\bfJ}{{\bf J}}
\newcommand{\bfK}{{\bf K}}
\newcommand{\bfL}{{\bf L}}
\newcommand{\bfM}{{\bf M}}
\newcommand{\bfN}{{\bf N}}
\newcommand{\bfO}{{\bf O}}
\newcommand{\bfP}{{\bf P}}
\newcommand{\bfQ}{{\bf Q}}
\newcommand{\bfR}{{\bf R}}
\newcommand{\bfS}{{\bf S}}
\newcommand{\bfT}{{\bf T}}
\newcommand{\bfU}{{\bf U}}
\newcommand{\bfV}{{\bf V}}
\newcommand{\bfW}{{\bf W}}
\newcommand{\bfX}{{\bf X}}
\newcommand{\bfY}{{\bf Y}}
\newcommand{\bfZ}{{\bf Z}}

\newcommand{\bara}{{\bar a}}
\newcommand{\barm}{{\bar m}}
\newcommand{\barA}{{\bar A}}

\newcommand{\barx}{{\bar x}}
\newcommand{\bary}{{\bar y}}
\newcommand{\barz}{{\bar z}}
\newcommand{\barr}{{\bar r}}

\newcommand{\vardelta}{{\partial}}

\newcommand{\calA}{{\cal A}}
\newcommand{\calB}{{\cal B}}
\newcommand{\calC}{{\cal C}}
\newcommand{\calD}{{\cal D}}
\newcommand{\calE}{{\cal E}}
\newcommand{\calF}{{\cal F}}
\newcommand{\calG}{{\cal G}}
\newcommand{\calH}{{\cal H}}
\newcommand{\calI}{{\cal I}}
\newcommand{\calJ}{{\cal J}}
\newcommand{\calK}{{\cal K}}
\newcommand{\calL}{{\cal L}}
\newcommand{\calM}{{\cal M}}
\newcommand{\calN}{{\cal N}}
\newcommand{\calO}{{\cal O}}
\newcommand{\calP}{{\cal P}}
\newcommand{\calQ}{{\cal Q}}
\newcommand{\calR}{{\cal R}}
\newcommand{\calS}{{\cal S}}
\newcommand{\calT}{{\cal T}}
\newcommand{\calU}{{\cal U}}
\newcommand{\calV}{{\cal V}}
\newcommand{\calW}{{\cal W}}
\newcommand{\calX}{{\cal X}}
\newcommand{\calY}{{\cal Y}}
\newcommand{\calZ}{{\cal Z}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% struts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\lowstrut}{\rule[-0.06in]{0in}{0in}}
\newcommand{\fullstrut}{\rule[-0.06in]{0in}{.21in}}
\newcommand{\bigstrut}{\rule[-0.1in]{0in}{.25in}}
\newcommand{\horizontalstrut}{\rule[0in]{0.2in}{0in}}
% \newcommand{\kleinfracstrut}{\rule[-0.07in]{0in}{.22in}}
\newcommand{\kleinfracstrut}{\rule[-0.07in]{0in}{.24in}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% maly %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\klein}[1]{{\scriptstyle#1}}
\newcommand{\maly}[1]{{\scriptscriptstyle#1}}
\newcommand{\malyzero}{{\maly{0}}}
\newcommand{\malyone}{{\maly{1}}}
\newcommand{\malytwo}{{\maly{2}}}
\newcommand{\malythree}{{\maly{3}}}
\newcommand{\malyfour}{{\maly{4}}}
\newcommand{\malyfive}{{\maly{5}}}
\newcommand{\malysix}{{\maly{6}}}
\newcommand{\malyseven}{{\maly{7}}}
\newcommand{\malyeight}{{\maly{8}}}
\newcommand{\malynine}{{\maly{9}}}
\newcommand{\malyten}{{\maly{10}}}
\newcommand{\malyeleven}{{\maly{11}}}
\newcommand{\malytwelve}{{\maly{12}}}
\newcommand{\malythirteen}{{\maly{13}}}
\newcommand{\malyfourteen}{{\maly{14}}}
\newcommand{\malya}{{\scriptscriptstyle a}}
\newcommand{\malyb}{{\scriptscriptstyle b}}
\newcommand{\malyc}{{\scriptscriptstyle c}}
\newcommand{\malyd}{{\scriptscriptstyle d}}
\newcommand{\malye}{{\scriptscriptstyle e}}
\newcommand{\malyf}{{\scriptscriptstyle f}}
\newcommand{\malyg}{{\scriptscriptstyle g}}
\newcommand{\malyh}{{\scriptscriptstyle h}}
\newcommand{\malyi}{{\scriptscriptstyle i}}
\newcommand{\malyj}{{\scriptscriptstyle j}}
\newcommand{\malyk}{{\scriptscriptstyle k}}
\newcommand{\malyl}{{\scriptscriptstyle l}}
\newcommand{\malym}{{\scriptscriptstyle m}}
\newcommand{\malyn}{{\scriptscriptstyle n}}
\newcommand{\malyo}{{\scriptscriptstyle o}}
\newcommand{\malyp}{{\scriptscriptstyle p}}
\newcommand{\malyq}{{\scriptscriptstyle q}}
\newcommand{\malyr}{{\scriptscriptstyle r}}
\newcommand{\malys}{{\scriptscriptstyle s}}
\newcommand{\malyt}{{\scriptscriptstyle t}}
\newcommand{\malyu}{{\scriptscriptstyle u}}
\newcommand{\malyv}{{\scriptscriptstyle v}}
\newcommand{\malyw}{{\scriptscriptstyle w}}
\newcommand{\malyx}{{\scriptscriptstyle x}}
\newcommand{\malyy}{{\scriptscriptstyle y}}
\newcommand{\malyz}{{\scriptscriptstyle z}}
\newcommand{\malyA}{{\scriptscriptstyle A}}
\newcommand{\malyB}{{\scriptscriptstyle B}}
\newcommand{\malyC}{{\scriptscriptstyle C}}
\newcommand{\malyD}{{\scriptscriptstyle D}}
\newcommand{\malyE}{{\scriptscriptstyle E}}
\newcommand{\malyF}{{\scriptscriptstyle F}}
\newcommand{\malyG}{{\scriptscriptstyle G}}
\newcommand{\malyH}{{\scriptscriptstyle H}}
\newcommand{\malyI}{{\scriptscriptstyle I}}
\newcommand{\malyJ}{{\scriptscriptstyle J}}
\newcommand{\malyK}{{\scriptscriptstyle K}}
\newcommand{\malyL}{{\scriptscriptstyle L}}
\newcommand{\malyM}{{\scriptscriptstyle M}}
\newcommand{\malyN}{{\scriptscriptstyle N}}
\newcommand{\malyO}{{\scriptscriptstyle O}}
\newcommand{\malyP}{{\scriptscriptstyle P}}
\newcommand{\malyQ}{{\scriptscriptstyle Q}}
\newcommand{\malyR}{{\scriptscriptstyle R}}
\newcommand{\malyS}{{\scriptscriptstyle S}}
\newcommand{\malyT}{{\scriptscriptstyle T}}
\newcommand{\malyU}{{\scriptscriptstyle U}}
\newcommand{\malyV}{{\scriptscriptstyle V}}
\newcommand{\malyW}{{\scriptscriptstyle W}}
\newcommand{\malyX}{{\scriptscriptstyle X}}
\newcommand{\malyY}{{\scriptscriptstyle Y}}
\newcommand{\malyZ}{{\scriptscriptstyle Z}}
\newcommand{\kleinA}{{\scriptstyle A}}
\newcommand{\kleinB}{{\scriptstyle B}}
\newcommand{\kleinC}{{\scriptstyle C}}
\newcommand{\kleinD}{{\scriptstyle D}}
\newcommand{\kleinE}{{\scriptstyle E}}
\newcommand{\kleinF}{{\scriptstyle F}}
\newcommand{\kleinG}{{\scriptstyle G}}
\newcommand{\kleinH}{{\scriptstyle H}}
\newcommand{\kleinI}{{\scriptstyle I}}
\newcommand{\kleinJ}{{\scriptstyle J}}
\newcommand{\kleinK}{{\scriptstyle K}}
\newcommand{\kleinL}{{\scriptstyle L}}
\newcommand{\kleinM}{{\scriptstyle M}}
\newcommand{\kleinN}{{\scriptstyle N}}
\newcommand{\kleinO}{{\scriptstyle O}}
\newcommand{\kleinP}{{\scriptstyle P}}
\newcommand{\kleinQ}{{\scriptstyle Q}}
\newcommand{\kleinR}{{\scriptstyle R}}
\newcommand{\kleinS}{{\scriptstyle S}}
\newcommand{\kleinT}{{\scriptstyle T}}
\newcommand{\kleinU}{{\scriptstyle U}}
\newcommand{\kleinV}{{\scriptstyle V}}
\newcommand{\kleinW}{{\scriptstyle W}}
\newcommand{\kleinX}{{\scriptstyle X}}
\newcommand{\kleinY}{{\scriptstyle Y}}
\newcommand{\kleinZ}{{\scriptstyle Z}}
\newcommand{\kleina}{{\scriptstyle a}}
\newcommand{\kleinb}{{\scriptstyle b}}
\newcommand{\kleinc}{{\scriptstyle c}}
\newcommand{\kleind}{{\scriptstyle d}}
\newcommand{\kleine}{{\scriptstyle e}}
\newcommand{\kleinf}{{\scriptstyle f}}
\newcommand{\kleing}{{\scriptstyle g}}
\newcommand{\kleinh}{{\scriptstyle h}}
\newcommand{\kleini}{{\scriptstyle i}}
\newcommand{\kleinj}{{\scriptstyle j}}
\newcommand{\kleink}{{\scriptstyle k}}
\newcommand{\kleinl}{{\scriptstyle l}}
\newcommand{\kleinm}{{\scriptstyle m}}
\newcommand{\kleinn}{{\scriptstyle n}}
\newcommand{\kleino}{{\scriptstyle o}}
\newcommand{\kleinp}{{\scriptstyle p}}
\newcommand{\kleinq}{{\scriptstyle q}}
\newcommand{\kleinr}{{\scriptstyle r}}
\newcommand{\kleins}{{\scriptstyle s}}
\newcommand{\kleint}{{\scriptstyle t}}
\newcommand{\kleinu}{{\scriptstyle u}}
\newcommand{\kleinv}{{\scriptstyle v}}
\newcommand{\kleinw}{{\scriptstyle w}}
\newcommand{\kleinx}{{\scriptstyle x}}
\newcommand{\kleiny}{{\scriptstyle y}}
\newcommand{\kleinz}{{\scriptstyle z}}
\newcommand{\smallworkfs}{{\scriptstyle\workfs{}}}
\newcommand{\smalld}{{b}}
\newcommand{\smallrm}{{\rm\small}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% maly fractions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\kleinfrac}[2]{{\mbox{$\kleinfracstrut\frac{#1}{#2}$}}}
\newcommand{\malyfrac}[2]{{\mbox{$\maly{\frac{#1}{#2}}$}}}
\newcommand{\malyhalf}{{\mbox{$\maly{\frac{1}{2}}$}}}
\newcommand{\malylambdahalves}{{\mbox{$\maly{\frac{\lambda}{2}}$}}}
\newcommand{\malythreehalves}{{\mbox{$\maly{\frac{3}{2}}$}}}
\newcommand{\malyonethird}{{\mbox{$\maly{\frac{1}{3}}$}}}
\newcommand{\malytwothirds}{{\mbox{$\maly{\frac{2}{3}}$}}}
\newcommand{\malyfourthirds}{{\mbox{$\maly{\frac{4}{3}}$}}}
\newcommand{\malyfivethirds}{{\mbox{$\maly{\frac{5}{3}}$}}}
\newcommand{\malyseventhirds}{{\mbox{$\maly{\frac{7}{3}}$}}}
\newcommand{\malyonefourth}{{\mbox{$\maly{\frac{1}{4}}$}}}
\newcommand{\malyfivefourths}{{\mbox{$\maly{\frac{5}{4}}$}}}
\newcommand{\malyonesixth}{{\mbox{$\maly{\frac{1}{6}}$}}}
\newcommand{\malyfivesixths}{{\mbox{$\maly{\frac{5}{6}}$}}}
\newcommand{\malysevensixths}{{\mbox{$\maly{\frac{7}{6}}$}}}
\newcommand{\malyonetwelfth}{{\mbox{$\maly{\frac{1}{12}}$}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%% delimiters %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\parend}[1]{{\left( #1  \right) }}
\newcommand{\spparend}[1]{{\left(\, #1  \,\right) }}
\newcommand{\angled}[1]{{\left\langle #1  \right\rangle }}
\newcommand{\brackd}[1]{{\left[ #1  \right] }}
\newcommand{\spbrackd}[1]{{\left[\, #1  \,\right] }}
\newcommand{\braced}[1]{{\left\{ #1  \right\} }}
\newcommand{\leftbraced}[1]{{\left\{ #1  \right. }}
\newcommand{\floor}[1]{{\left\lfloor #1\right\rfloor}}
\newcommand{\ceiling}[1]{{\left\lceil #1\right\rceil}}
\newcommand{\barred}[1]{{\left|#1\right|}}
\newcommand{\doublebarred}[1]{{\left|\left|#1\right|\right|}}
\newcommand{\spaced}[1]{{\ #1\ }}
\newcommand{\romn}[1]{{\mbox{\rm #1}}}
\newcommand{\spacedromn}[1]{\spaced{\romn{#1}}}
\newcommand{\italicized}[1]{{\mbox{\it #1}}}
\newcommand{\just}[1]{{\brackd{#1}}}
\newcommand{\suchthat}{{\spaced{:}}}
\newcommand{\plusminus}{\pm}

\newcommand{\bracedtwo}[2]{\braced{\begin{array}{c}
                                        #1 \\ #2
                                    \end{array}
                                  }
                           }
\newcommand{\leftbracedtwo}[2]{\left\{\begin{array}{l}
                                        #1 \\ #2
                                    \end{array}\right.
                           }
\newcommand{\bracedthree}[3]{\braced{\begin{array}{c}
                                        #1 \\ #2 \\ #3
                                    \end{array}
                                  }
                           }
\newcommand{\leftbracedthree}[3]{\left\{\begin{array}{l}
                                        #1 \\ #2 \\ #3
                                    \end{array}\right.
                           }
\newcommand{\bracedfour}[4]{\braced{\begin{array}{c}
                                        #1 \\ #2 \\ #3 \\ #4
                                    \end{array}
                                  }
                           }
\newcommand{\leftbracedfour}[4]{\left\{\begin{array}{l}
                                        #1 \\ #2 \\ #3 \\ #4
                                    \end{array}\right.
                           }
\newcommand{\bracedfive}[5]{\braced{\begin{array}{c}
                                        #1 \\ #2 \\ #3 \\ #4 \\ #5
                                    \end{array}
                                  }
                           }
\newcommand{\leftbracedfive}[5]{\left\{\begin{array}{l}
                                        #1 \\ #2 \\ #3 \\ #4 \\ #5
                                    \end{array}\right.
                           }

\newcommand{\mycase}[1]{\smallskip\noindent \mbox{Case #1:}}

\newcommand{\ignore}[1]{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% environments %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newtheorem{theorem}{Theorem}
\newtheorem{exercise}{Exercise}
\newtheorem{observation}{Observation}
\newtheorem{corollary}{Corollary}
\newtheorem{statement}{Proposition}
\newtheorem{definition}{Definition}
\newtheorem{lemma}{Lemma}
\newtheorem{claim}{Claim}
\newtheorem{conjecture}{Conjecture}
\newtheorem{technicallemma}{Technical Lemma}
\newtheorem{inequality}{Inequality}
\newtheorem{sublemma}{Sublemma}
\newenvironment{proof}{{\noindent \it Proof:\/}}{$\square$}
\newenvironment{example}{\medskip\noindent{\it Example:\/}}
{$\Box$\vskip 0.1in}
\newenvironment{problem}{\medskip\noindent{\it Problem:\/}}
{$\Box$\vskip 0.1in}
\newenvironment{autoproof}{{\noindent \it Automatic Proof\/}}
{\rule{0.05in}{0.14in}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% fractions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\half}{{\mbox{$\frac{1}{2}$}}}
\newcommand{\onehalf}{{\half}}
\newcommand{\onethird}{{\mbox{$\frac{1}{3}$}}}
\newcommand{\twothirds}{{\mbox{$\frac{2}{3}$}}}
\newcommand{\fourthirds}{{\mbox{$\frac{4}{3}$}}}
\newcommand{\onefourth}{{\mbox{$\frac{1}{4}$}}}
\newcommand{\onefifth}{{\mbox{$\frac{1}{5}$}}}
\newcommand{\twofifths}{{\mbox{$\frac{2}{5}$}}}

\newcommand{\threefourths}{{\mbox{$\frac{3}{4}$}}}
\newcommand{\fivefourths}{{\mbox{$\frac{5}{4}$}}}
\newcommand{\sevenfourths}{{\mbox{$\frac{7}{4}$}}}
\newcommand{\onesixth}{{\mbox{$\frac{1}{6}$}}}
\newcommand{\oneeighth}{{\mbox{$\frac{1}{8}$}}}
\newcommand{\threeeighths}{{\mbox{$\frac{3}{8}$}}}
\newcommand{\fiveeighths}{{\mbox{$\frac{5}{8}$}}}
\newcommand{\seveneighths}{{\mbox{$\frac{7}{8}$}}}
\newcommand{\fivesixths}{{\mbox{$\frac{5}{6}$}}}
\newcommand{\fivethirds}{{\mbox{$\frac{5}{3}$}}}
\newcommand{\sevensixths}{{\mbox{$\frac{7}{6}$}}}

\newcommand{\threehalves}{{\mbox{$\frac{3}{2}$}}}
\newcommand{\fivehalves}{{\mbox{$\frac{5}{2}$}}}
\newcommand{\sevenhalves}{{\mbox{$\frac{7}{2}$}}}
\newcommand{\onetenth}{{\mbox{$\frac{1}{10}$}}}
\newcommand{\onetwelfth}{{\mbox{$\frac{1}{12}$}}}
\newcommand{\seventhirds}{{\mbox{$\frac{7}{3}$}}}

\newcommand{\mboxfrac[2]}{{\mbox{$\frac{#1}{#2}$}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% some general mathematical symbols %%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\pseudo}{{\mbox{\small \sc Pseudobatch}}}
\newcommand{\threshold}{{\mbox{\small \sc Threshold}}}
\newcommand{\random}{{\mbox{\small \sc Randombatch}}}

\newcommand{\Comp}{{\parend{1+e^{-\malyhalf}}}}
\newcommand{\Off}{{\mbox{\rm Off}}}


\newcommand{\update}{{\wedge}}
%\newcommand{\opt}{{\mbox{{\small \sc opt}}}}
\newcommand{\opt}{{\mbox{\scriptsize \sc opt}}}
\newcommand{\optcost}{{\mbox{{\it optcost\/}}}}
\newcommand{\firstbatch}{{\mbox{{\it firstbatch\/}}}}
\newcommand{\numbatch}{{\mbox{{\it numbatch\/}}}}
\newcommand{\virtual}{{\mbox{{\it virtual}}}}
\newcommand{\Reduce}{{\mbox{{\sc reduce}}}}
\newcommand{\adv}{{\mbox{\it adv}}}
\newcommand{\cost}{{\mbox{\it cost\/}}}
\newcommand{\boost}{{\mbox{\it boost\/}}}
\newcommand{\slack}{{\mbox{\it slack}}}
\newcommand{\supp}{{\mbox{\it supp}}}
\newcommand{\junior}{{\mbox{\it junior}}}
\newcommand{\senior}{{\mbox{\it senior}}}
\newcommand{\book}{{\mbox{\it book}}}
\newcommand{\malyopt}{{\mbox{\tiny\sc opt}}}
\newcommand{\popt}{{\mbox{\it adv}}}
\newcommand{\malyadv}{{\mbox{\tiny\it adv}}}
\newcommand{\Opt}{{\mbox{{\sc opt}}}}
\newcommand{\OPT}{{\mbox{{\rm OPT}}}}

% \newcommand{\opt}{{\mbox{\it opt}}}
\newcommand{\est}{{\mbox{\it est}}}
\newcommand{\dist}{{\mbox{\it dist}}}
\newcommand{\taskcost}{{\mbox{\it taskCost}}}
\newcommand{\lazycost}{{\mbox{\it lazyCost}}}
\newcommand{\subsequents}{{\mbox{\it Subsq\/}}}
\newcommand{\move}{{\mbox{\it move}}}
\newcommand{\offset}{{\mbox{\it offset}}}
\newcommand{\excess}{{\mbox{\it excess}}}
\newcommand{\back}{{\mbox{\it back}}}
\newcommand{\load}{{\mbox{\it load}}}
\newcommand{\congestion}{{\mbox{\it congestion}}}
\newcommand{\pairs}{{\mbox{\it Pairs}}}
\newcommand{\pos}{{\mbox{\it pos}}}
\newcommand{\XYZ}{{\mbox{\sc xyz}}}
\newcommand{\XZY}{{\mbox{\sc xzy}}}
\newcommand{\BC}{{\mbox{\sc bc}}}
\newcommand{\standard}{{\mbox{\sc standard}}}
\newcommand{\pscnvx}{{\mbox{pseudoconvex}}}
\newcommand{\Pscnvx}{{\mbox{Pseudoconvex}}}

\newcommand{\eps}{\epsilon}
\newcommand{\adversary}{{\mbox{\it R}}}
\newcommand{\Exp}{{\mbox{\it Exp}}}
\newcommand{\reals}{{\bf R}}
\newcommand{\tendsto}{{\rightarrow}}
\newcommand{\caseI}{{\rm I}}
\newcommand{\caseII}{{\rm II}}
\newcommand{\parity}{\mbox{\sc parity}}
\newcommand{\forgive}{\mbox{\sc forgive}}
\newcommand{\overarrow}[1]{{\ \stackrel{#1}{\longrightarrow}\ }}

% \renewcommand{\thesubsection}{\thesection}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% Needed inside braces %%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\rmif}{{\mbox{\rm{\ if\ }}}}
\newcommand{\rmand}{{\mbox{\rm{\ and\ }}}}
\newcommand{\rmor}{{\mbox{\rm{\ or\ }}}}
\newcommand{\rmfor}{{\mbox{\rm{\ for\ }}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% temporary macros %%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \newcommand{\Ref}[1]{\ref{#1}\mbox{\rm\{#1\}}}
  \newcommand{\Cite}[1]{\cite{#1}\mbox{\rm\{#1\}}}
  \newcommand{\Label}[1]{\label{#1}\mbox{$\backslash${\rm label\{#1\}}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
