\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{geometry,amsmath,mathtools}
\geometry{letterpaper}

%%%%%%%%%% Start TeXmacs macros
\newcommand{\longrightleftarrows}{\mathrel{\substack{\longrightarrow\\[-0.6ex]\longleftarrow}}}
\newcommand{\longrightrightarrows}{\mathrel{\substack{\longrightarrow\\[-0.6ex]\longrightarrow}}}
%%%%%%%%%% End TeXmacs macros

\begin{document}

$X \underset{\psi \circ \psi \circ \cdots \circ \psi}{\overset{\varphi \circ
\varphi \circ \cdots \circ \varphi}{\longrightrightarrows}} X$

$X \underset{G \circ G \circ \cdots \circ G}{\overset{F \circ F \circ \cdots
\circ F}{\longrightleftarrows}} X$

\end{document}
