% % \usepackage{mathtools}
% % \usepackage{amsfonts}
\usepackage{amssymb, amsmath}
\usepackage{amsthm}
% % \usepackage{enumitem}
% % %\usepackage[T1]{fontenc}
% % %\usepackage{mathpazo}
\usepackage{bm}
% % %\usepackage{isomath}
% % \usepackage{verbatim}
% % \usepackage[dvipsnames,svgnames,table]{xcolor}
% % %\usepackage [english]{babel}
% % %\usepackage{charter}
% % \usepackage{bm}
% % \usepackage{bbold}
\usepackage{multirow}
% % \usepackage{enumerate}
% % \usepackage{caption}
%\usepackage{subcaption}
%\usepackage{subfigure}
\usepackage{graphicx}
\usepackage{subcaption}
% % \usepackage{mathrsfs}
% % \usepackage{bbm}
% % %\usepackage{mathabx}
% % %\usepackage[utf8]{inputenc}
% % %\usepackage{cite}
% % \usepackage{hyperref}
% % %\usepackage{pslatex}
% % %packaged for figures
% % \usepackage{tikz}
% % %\usetikzlibrary{positioning}
% % \usetikzlibrary{calc}
% % %\usetikzlibrary{decorations.shapes}
% % %\usetikzlibrary{decorations.pathreplacing,angles,quotes}

%\usepackage{algorithmicx,algorithm}
% % % \usepackage{algpseudocode}
% % \usepackage{natbib}
\usepackage{algorithmic, algorithm}
% % \usepackage{cleveref}




% %paragrpah spacing
% %\setlength{\parindent}{2em}
% %\setlength{\parskip}{1em}

% %importing packages
% %\usepackage{fullpage}


% %custom theorem labelling
% \newtheorem{innercustomthm}{Theorem}
% \newenvironment{customthm}[1]
%   {\renewcommand\theinnercustomthm{#1}\innercustomthm}
%   {\endinnercustomthm}

% %for colored links
% \definecolor{blueviolet}{RGB}{60,50,200}
% \definecolor{oliveg}{RGB}{40,200,30}
% \hypersetup{colorlinks=true,       % false: boxed links; true: colored links
%     linkcolor=blueviolet,
%     citecolor=oliveg,
% }


% %\usepackage{algpseudocode}
% % \usepackage[ruled]{algorithm2e}

% %\usepackage{stmaryrd}

% %Suggested by ECCC
% %\usepackage{color}
% %\usepackage[pdfstartview=FitH,pdfpagemode=None,colorlinks=true,citecolor=blue,linkcolor=magenta]{hyperref}
% %END Suggested by ECCC

% %\usepackage{palatino}
% %\usepackage{complexity}
% %\usepackage{todonotes}

% %new counter for theorem
% %\newcounter{counttheorem}

% % defining new environment
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\newtheorem{problem}{Problem}
\theoremstyle{plain}
\newtheorem{lemma}{Lemma}[section]
\newtheorem{theorem}{Theorem}[section]
\newtheorem{fact}{Fact}
\newtheorem{thm}{Theorem}[theorem]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{claim}{Claim}[section]
\newtheorem{subclaim}{Subclaim}[section]
\newtheorem{observation}{Observation}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{assumption}{Assumption}[section]
% %defining new commands
% %\newcommand{\SUM}[2]{\sum_{#1}^{#2}}
% % \newtheorem{theorem}{Theorem}[section] % theorems will be numbered according to section
% % \newtheorem{lemma}[theorem]{Lemma} % lemmas share the counter with theorems
% % \newtheorem{cor}[theorem]{Corollary} % ditto


% \newcommand{\StateGLinCB}{\texttt{StateGLinCB}\xspace}

% %footnotes
% %\renewcommand\thefootnote{\textcolor{red}{\arabic{footnote}}}
% %\makeatletter
% %\newcommand\footnoteref[1]{\protected@xdef\@thefnmark{\ref{#1}}\@footnotemark}
% %\makeatother

% \makeatletter
% \newcommand{\printfnsymbol}[1]{%
%   \textsuperscript{\@fnsymbol{#1}}%
% }
% \makeatother

% %for algorithm removing colon
% %\algsetup{linenodelimiter=.}



% % \newtheorem{example}{Example}[section]

\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}



\newcommand{\slateglincb}{\texttt{Slate-GLM-OFU}}
\newcommand{\slateglincbts}{\texttt{Slate-GLM-TS}}
\newcommand{\slateglincbtsfixed}{\texttt{Slate-GLM-TS-Fixed}}
\newcommand{\adaofuecolog}{\texttt{ada-OFU-ECOLog}}
\newcommand{\tsecolog}{\texttt{TS-ECOLog}}

\def\DEBUG{true} % set this to be false to remove comments
\ifdefined\DEBUG
% 	    \newcommand{\vineet}[1]{\textcolor{Red}{#1}}
% 	    \newcommand{\vishakha}[1]{\textcolor{OliveGreen}{#1}}
\newcommand{\gaurav}[1]{\textcolor{red}{[Gaurav:#1]}}
% 	    \def\rem#1{{\marginpar{\raggedright\scriptsize #1}}}
% 	    \newcommand{\vin}[1]{\rem{\textcolor{Red}{$\bullet$ #1}}}
% 	    \newcommand{\vis}[1]{\rem{\textcolor{OliveGreen}{$\bullet$ #1}}}
% 	    \newcommand{\gau}[1]{\rem{\textcolor{NavyBlue}{$\bullet$ #1}}}
\else
% 	    \newcommand{\vineet}[1]{#1}
% 	    \newcommand{\vishakha}[1]{#1}
 	    \newcommand{\gaurav}[1]{}
%         \newcommand{\vin}[1]{}
% 	    \newcommand{\vis}[1]{}
% 	    \newcommand{\gau}[1]{}
	 
\fi



% % added by Tanmay
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\renewcommand{\P}{\mathbb{P}}
\newcommand{\A}{\mathcal{A}}
\newcommand{\X}{\mathcal{X}}
\newcommand{\ddash}{p}
\newcommand{\E}{\mathbb{E}}
\newcommand{\C}{\mathcal{C}}
\renewcommand{\H}{\mathcal{H}}
\renewcommand{\O}{\mathcal{O}}
\newcommand{\event}{\mathcal{E}}
% \newcommand{\x}{\bm{x}}
% \renewcommand{\theta}{\bm{\theta}}
\newcommand{\eventc}[1]{\overline{#1}}


% % filteration
\newcommand{\filteration}[1]{\mathcal{F}_{#1}}

% % transpose and inverse
\newcommand{\T}{^T}
\newcommand{\inv}{^{-1}}
\newcommand*\diff{\mathop{}\!\mathrm{d}}
\newcommand*\Diff[1]{\mathop{}\!\mathrm{d^#1}}
% % eigenvalues
\newcommand{\eigmax}[1]{\lambda_{max}\left(#1\right)}
\newcommand{\eigmin}[1]{\lambda_{min}\left(#1\right)}

% % singular values
\newcommand{\singmax}[1]{\sigma_{max}\left(#1\right)}
\newcommand{\singmin}[1]{\sigma_{min}\left(#1\right)}

% % inequalities
\newcommand{\mleq}{\preccurlyeq}
\newcommand{\mgeq}{\succcurlyeq}

% % norms
\newcommand{\twonorm}[1]{\left\Vert#1\right\Vert_2}
\newcommand{\norm}[1]{\left\Vert#1\right\Vert}
\newcommand{\matnorm}[2]{\left\Vert#1\right\Vert_{#2}}


% % brackets
\newcommand{\sbrak}[1]{\left[#1\right]}
\newcommand{\pbrak}[1]{\left(#1\right)}
\newcommand{\cbrak}[1]{\left\{#1\right\}}
\newcommand{\modulus}[1]{\left|#1\right|}

% %optimal params
\newcommand{\thetastar}{\bm{\theta}_\star}

% % inner product and expected reward
\newcommand{\inner}[2]{#1^\intercal#2}
\newcommand{\exprew}[2]{\mu\pbrak{\inner{#1}{#2}}}

% % sum
\newcommand{\summation}[2]{\sum\limits_{#1}^{#2}}

% % sigmoid
\newcommand{\sigmoid}[1]{\mu\pbrak{#1}}
\newcommand{\dsigmoid}[1]{\dot{\mu}\pbrak{#1}}
\newcommand{\sens}[2]{\dot{\mu}\pbrak{\inner{#1}{#2}}}


% % diameter
\newcommand{\diam}[2]{\text{diam}_{#1}\pbrak{#2}}