%--------------
%% preamble.tex
%% this should be included with a command like
%%
%% \documentclass[12pt]{article}
%% \input{preamble.tex}
%%
%% followed by 
%% 
%% \lecture{4}{Oct. 26, 2004 }{John Lecturer}{name of scribe}
%%

\setlength{\oddsidemargin}{.25in}
\setlength{\evensidemargin}{.25in}
\setlength{\textwidth}{6in}
\setlength{\topmargin}{-0.4in}
\setlength{\textheight}{8.5in}

\newcommand{\handout}[5]{
   \renewcommand{\thepage}{}
   \noindent
   \begin{center}
   \framebox{
      \vbox{
    \hbox to 5.78in { {\bf CC5310: Fundamentos de la Criptograf\'{\i}a}
         \hfill #2 }
       \vspace{4mm}
       \hbox to 5.78in { {\Large \hfill #5  \hfill} }
       \vspace{2mm}
       \hbox to 5.78in { {\it #3 \hfill #4} }
      }
   }
   \end{center}
   \vspace*{4mm}
}

\newcommand{\lecture}[4]{\handout{#1}{#2}{Instructor:
#3}{Transcriptor: #4}{C\'atedra #1}}

\newtheorem{problem}{Problema}
\newtheorem{theorem}{Teorema}
\newtheorem{corollary}[theorem]{Corolario}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{observation}[theorem]{Observaci\'on}
\newtheorem{proposition}[theorem]{Proposici\'on}
\newtheorem{definition}[theorem]{Definici\'on}
\newtheorem{claim}[theorem]{Aseveraci\'on}
\newtheorem{fact}[theorem]{Dato}
\newtheorem{assumption}[theorem]{Supuesto}

\newcommand{\qed}{\rule{7pt}{7pt}}

\newenvironment{proof}{\noindent{\bf Demostraci\'on:}\hspace*{1em}}{\qed\bigskip}
\newenvironment{remark}{\noindent{\bf Nota:}\hspace*{1em}}{\bigskip}


\newcommand{\paren}[1]{\left(#1\right)}
\newcommand{\setof}[1]{\{#1\}}
\newcommand{\set}[2]{\{\,#1\,:\,#2\,\}}
\newcommand{\bool}{\{0,1\}}                          %{0,1}
\newcommand{\vset}[2]{\left\{\,#1 \mbox{ : } #2\,\right\}}
\newcommand{\tupleof}[1]{(\,#1\,)}
\newcommand{\eqdef}{\stackrel{{\rm def}}{=}}
\newcommand{\expt}[2]{\mbox{\sf {\large $\mathbb{E}$}}_{#1}\left[\,#2\,\right]}
\newcommand{\var}[2]{\mbox{\sf {\large $\mathbb{V}$}}_{#1}\left[\,#2\,\right]}
\newcommand{\prob}[2]{\mbox{\sf {\large $\mathbb{P}$}}_{#1}\left[\,#2\,\right]}
\newcommand{\scrypprob}[2]{\mbox{\sf {$\mathbb{P}$}}_{#1}\left[\,#2\,\right]}

\newcommand{\heading}[1]{\protect\vspace{7pt}\noindent{\textsc{#1}}}

\newcommand{\propref}[1]{\mbox{Proposici\'on~\ref{#1}}}
\newcommand{\lemref}[1]{\mbox{Lema~\ref{#1}}}
\newcommand{\theoref}[1]{\mbox{Teorema~\ref{#1}}}
\newcommand{\corref}[1]{\mbox{Corolario~\ref{#1}}}
\newcommand{\eqnref}[1]{\mbox{~(\ref{#1}})}
\newcommand{\figref}[1]{\mbox{Fig.~\ref{#1}}}
\newcommand{\figreflong}[1]{\mbox{Figura~\ref{#1}}}
\newcommand{\remref}[1]{\mbox{Observaci\'on~\ref{#1}}}
\newcommand{\secref}[1]{\mbox{Sec.~\ref{#1}}}
\newcommand{\apref}[1]{\mbox{Ap\'endice~\ref{#1}}}

\newcommand{\intfield}[1]{\ensuremath{\mathbb{Z}^{*}_{#1}}}
\newcommand{\zz}{\mathbb{Z}}
\newcommand{\nn}{\mathbb{N}}
\newcommand{\rin}{\in_{R}}

% Las sgtes estan definidas en amssymb
%\newcommand{\gets}{\leftarrow}
%\newcommand{\eqdef}{\stackrel{\rm def}{=}}
\newcommand{\getsr}{\stackrel{{\scriptscriptstyle R}}{\leftarrow}}
\newcommand{\bits}{\{0,1\}}

\newcommand{\calA}{{\cal A}}
\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}}

\newcommand{\abs}[1]{{\displaystyle \left| {#1} \right| }}
\newcommand{\Max}[2]{{\displaystyle {\mathop{\mathrm{max}}_{#1}}\{ #2 \}}}




