\usepackage[english]{babel}
\usepackage[utf8]{inputenc}

\usepackage{lineno}
%\linenumbers

%%%%%% FIGURES ET DESSINS
%\usepackage[justification = centering]{caption}
%\captionsetup{belowskip=-15pt}
\usepackage{subcaption}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{positioning}
\usepackage{pstricks,pst-plot,pst-text,pst-tree,pst-eps,pst-fill,pst-node,pst-math}
\usepackage{array}
\usepackage{arydshln}

%%%%%% DIAGRAMMES
\usepackage[all]{xy}

%%%%%% ECRIRE DES MATHS
\usepackage{amsmath, amsthm, amssymb, bm}
\usepackage{amsfonts, dsfont}
\usepackage{stmaryrd}
%\usepackage{centernot}
\usepackage{mathtools}
\usepackage{faktor}
%\usepackage{calrsfs}

\usepackage{todonotes}

{\theoremstyle{plain}
	\newtheorem{thm}{Theorem}
	\newtheorem{prop}[thm]{Proposition}
	\newtheorem{cor}[thm]{Corolary}
	\newtheorem{lemme}[thm]{Lemma}
	\newtheorem*{rappel}{Rappel}
	\newtheorem{exo}{Exercice}
}

\theoremstyle{definition}
	\newtheorem{dftn}[thm]{Definition}
	\newtheorem{algo}[thm]{Algorithm}
	\newtheorem*{indic}{Indication(s)}
	\newtheorem*{notation}{Notation}
	\newtheorem*{cex}{Contre-exemple}
	\newtheorem*{app}{Application}
\theoremstyle{remark}
	\newtheorem*{rmk}{Remark}
	\newtheorem{ex}[thm]{Example}


\definecolor{magenta}{rgb}{1.0, 0.0, 1.0}

\DeclareMathOperator{\cone}{cone}
\DeclareMathOperator{\sign}{sign}
\DeclareMathOperator{\arcs}{Arcs}

\newcommand{\inv}{^{-1}}
\newcommand{\sep}{\,\vert\,}

\newcommand{\intint}[1]{\llbracket {#1} \rrbracket}

%%%%%% LETTRES
\newcommand{\symm}{\mathfrak{S}}

\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\NN}{\mathbb{N}}

\newcommand{\ind}{\mathds{1}}

%%%%%% MATHRM COURANTES
\newcommand{\Id}{\mathrm{Id}}
