\documentclass{article}
\newtheorem{axiom}{Axiom}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{definition}{Definition}
\newtheorem{example}{Example}
\newtheorem{conjecture}{Conjecture}
\newcommand\unicdcdgdad{\not=}
\newcommand\unicdcdcdbg{\cup}
\newcommand\unicdcdbdgd{\setminus}
\newcommand\unicdcdcdjd{\cap}
\newcommand\unicdcdadad{\forall}
\newcommand\unicdbdjdcd{\Rightarrow}
\newcommand\unicdcdadjd{\notin}
\newcommand\unicdbdjded{\Leftrightarrow}
\newcommand\unicdcdcdid{\lor}
\newcommand\unicdcdcdhd{\land}
\newcommand\uniddcgcg{\lambda}
\newcommand\unicdcdaddd{\exists}
\newcommand\unicdcdidid{\not\subseteq}
\newcommand\preoh[1]{\lnot #1}
\newcommand\mname[1]{{\mathsf{#1}}}
\begin{document}
\title{thm\_2Erich\_\_list\_2EFILTER\_\_FOLDL (TMWnZmjJzhAAWChFgcNs9w4jBHS2BWCQkxV)}
\maketitle
\begin{definition}\label{def:dgpfcdfengjgogpfcdfepfddee}
We define $\mname{c\_2Emin\_2E\_3D}$ to be ${{\uniddcgcg} A .  {{\uniddcgcg} x \in {A} .  {{\uniddcgcg} y \in {A} .  {{inj\_\_o}~{({{x}={y}})}}}}}$ of type ${{\iota}{\unicdbdjdcd}{\iota}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfecgpgpgmgpfcdfeef}
We define $\mname{c\_2Ebool\_2ET}$ to be ${({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{({{2}^{{2}}})}})}}~{({{\uniddcgcg} V0x \in {2} .  {V0x}})}})}}~{({{\uniddcgcg} V1x \in {2} .  {V1x}})}})}$.
\end{definition}
Let $ ty\_2Elist\_2Elist : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
{{\unicdcdadad} A0 .  {{{nonempty}~{A0}}{\unicdbdjdcd}{{nonempty}~{({{ty\_2Elist\_2Elist}~{A0}})}}}}\label{hyp:ogfgpfehjhpfcdfemgjgdhehpfcdfemgjgdheh}
\end{equation}
Let $ c\_2Elist\_2ECONS : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}c\_2Elist\_2ECONS~A\_27a \in (((ty\_2Elist\_2Elist~\\
A\_27a)^{{({{ty\_2Elist\_2Elist}~{A\_27a}})}})^{{A\_27a}})\end{array}
\label{hyp:ngfgngpfdgpfcdfemgjgdhehpfcdfedepeoedf}
\end{equation}
Let $ c\_2Elist\_2ENIL : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}c\_2Elist\_2ENIL~A\_27a \in (ty\_2Elist\_2Elist~\\
A\_27a)\end{array}
\label{hyp:ngfgngpfdgpfcdfemgjgdhehpfcdfeoejeme}
\end{equation}
\begin{definition}\label{def:dgpfcdfengjgogpfcdfepfddeepfddeepfddfe}
We define $\mname{c\_2Emin\_2E\_3D\_3D\_3E}$ to be ${{\uniddcgcg} P \in {2} .  {{\uniddcgcg} Q \in {2} .  {{inj\_\_o}~{({{{p}~{P}}{\unicdbdjdcd}{{p}~{Q}}})}}}}$ of type ${\iota}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfecgpgpgmgpfcdfepfcdbd}
We define $\mname{c\_2Ebool\_2E\_21}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {({{\uniddcgcg} V0P \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{({{2}^{{A\_27a}}})}})}}~{V0P}})}}~{({{\uniddcgcg} V1x \in {A\_27a} .  {\mname{c\_2Ebool\_2ET}}})}})}})}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfecgpgpgmgpfcdfepfcdgepffdde}
We define $\mname{c\_2Ebool\_2E\_2F\_5C}$ to be ${({{\uniddcgcg} V0t1 \in {2} .  {({{\uniddcgcg} V1t2 \in {2} .  {({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{2}})}}~{({{\uniddcgcg} V2t \in {2} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{V0t1}})}}~{({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{V1t2}})}}~{V2t}})}})}})}}~{V2t}})}})}})}})}})}$.
\end{definition}
Let $ c\_2Elist\_2EFOLDL : {{\iota}{\unicdbdjdcd}{{\iota}{\unicdbdjdcd}{\iota}}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}{\unicdcdadad} A\_27b .  nonempty~A\_27b{\unicdbdjdcd}c\_2Elist\_2EFOLDL~\\
A\_27a~A\_27b \in (((A\_27b^{{({{ty\_2Elist\_2Elist}~{A\_27a}})}})^{{A\_27b}})^{{({{({{A\_27b}^{{A\_27a}}})}^{{A\_27b}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfemgjgdhehpfcdfegepemeeeme}
\end{equation}
\begin{definition}\label{def:dgpfcdfecgpgpgmgpfcdfege}
We define $\mname{c\_2Ebool\_2EF}$ to be ${({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{2}})}}~{({{\uniddcgcg} V0t \in {2} .  {V0t}})}})}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfengjgogpfcdfepfedad}
We define $\mname{c\_2Emin\_2E\_40}$ to be ${{\uniddcgcg} A .  {{\uniddcgcg} P \in {{2}^{{A}}} .  {{\mathbf{if}}~{({{\unicdcdaddd} x \in {A} .  {{p}~{({{{ap}~{P}}~{x}})}}})}~{\mathbf{then}}~{({{the}~{({{\uniddcgcg} x .  {{{x} \in {A}}{\unicdcdcdhd}{{p}~{({{{ap}~{P}}~{x}})}}}})}})}~{\mathbf{else}}~{({{the}~{({{\uniddcgcg} x .  {{x} \in {A}}})}})}}}}$ of type ${{\iota}{\unicdbdjdcd}{\iota}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfecgpgpgmgpfcdfedepeoeee}
We define $\mname{c\_2Ebool\_2ECOND}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {({{\uniddcgcg} V0t \in {2} .  {({{\uniddcgcg} V1t1 \in {A\_27a} .  {({{\uniddcgcg} V2t2 \in {A\_27a} .  {({{{ap}~{({{\mname{c\_2Emin\_2E\_40}}~{A\_27a}})}}~{({{\uniddcgcg} V3x \in {A\_27a} .  {({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{2}})}}~{V0t}})}}~{\mname{c\_2Ebool\_2ET}}})}})}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{A\_27a}})}}~{V3x}})}}~{V1t1}})}})}})}}~{({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{2}})}}~{V0t}})}}~{\mname{c\_2Ebool\_2EF}}})}})}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{A\_27a}})}}~{V3x}})}}~{V2t2}})}})}})}})}})}})}})}})}}$.
\end{definition}
Let $ c\_2Elist\_2ESNOC : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}c\_2Elist\_2ESNOC~A\_27a \in (((ty\_2Elist\_2Elist~\\
A\_27a)^{{({{ty\_2Elist\_2Elist}~{A\_27a}})}})^{{A\_27a}})\end{array}
\label{hyp:ngfgngpfdgpfcdfemgjgdhehpfcdfedfoepede}
\end{equation}
Let $ c\_2Elist\_2EFILTER : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}c\_2Elist\_2EFILTER~A\_27a \in (((ty\_2Elist\_2Elist~\\
A\_27a)^{{({{ty\_2Elist\_2Elist}~{A\_27a}})}})^{{({{2}^{{A\_27a}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfemgjgdhehpfcdfegejemeeffecf}
\end{equation}
Assume the following.
\begin{equation}
{True}\label{hyp:ehigngpfcdfecgpgpgmgpfcdfeefcfffefie}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}({\unicdcdadad} V0t \in 2 .  (({\unicdcdadad} V1x \in \\
A\_27a .  (p~V0t)){\unicdbdjded}(p~V0t)))\end{array}
\label{hyp:ehigngpfcdfecgpgpgmgpfcdfegepecfbememepfpfdfjeneaf}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}({\unicdcdadad} V0x \in A\_27a .  ((V0x=V0x){\unicdbdjded}\\
True))\end{array}
\label{hyp:ehigngpfcdfecgpgpgmgpfcdfecffegemepfpfdemebeffdffe}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}(({\unicdcdadad} V0P \in (2^{{A\_27a}}) .  ((ap~(\\
ap~(c\_2Elist\_2EFILTER~A\_27a)~V0P)~(c\_2Elist\_2ENIL~A\_27a))=(c\_2Elist\_2ENIL~\\
A\_27a))){\unicdcdcdhd}({\unicdcdadad} V1P \in (2^{{A\_27a}}) .  ({\unicdcdadad} V2h \in A\_27a .  ({\unicdcdadad} V3t \in \\
(ty\_2Elist\_2Elist~A\_27a) .  ((ap~(ap~(c\_2Elist\_2EFILTER~A\_27a)~\\
V1P)~(ap~(ap~(c\_2Elist\_2ECONS~A\_27a)~V2h)~V3t))=(ap~(ap~(ap~(\mname{c\_2Ebool\_2ECOND}~\\
(ty\_2Elist\_2Elist~A\_27a))~(ap~V1P~V2h))~(ap~(ap~(c\_2Elist\_2ECONS~\\
A\_27a)~V2h)~(ap~(ap~(c\_2Elist\_2EFILTER~A\_27a)~V1P)~V3t)))~(ap~(ap~\\
(c\_2Elist\_2EFILTER~A\_27a)~V1P)~V3t)))))))\end{array}
\label{hyp:ehigngpfcdfemgjgdhehpfcdfegejemeeffecf}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}{\unicdcdadad} A\_27b .  nonempty~A\_27b{\unicdbdjdcd}(\\
({\unicdcdadad} V0f \in ((A\_27b^{{A\_27a}})^{{A\_27b}}) .  ({\unicdcdadad} V1e \in A\_27b .  ((ap~(\\
ap~(ap~(c\_2Elist\_2EFOLDL~A\_27a~A\_27b)~V0f)~V1e)~(c\_2Elist\_2ENIL~\\
A\_27a))=V1e))){\unicdcdcdhd}({\unicdcdadad} V2f \in ((A\_27b^{{A\_27a}})^{{A\_27b}}) .  ({\unicdcdadad} V3e \in \\
A\_27b .  ({\unicdcdadad} V4x \in A\_27a .  ({\unicdcdadad} V5l \in (ty\_2Elist\_2Elist~A\_27a) .  \\
((ap~(ap~(ap~(c\_2Elist\_2EFOLDL~A\_27a~A\_27b)~V2f)~V3e)~(ap~(ap~(c\_2Elist\_2ECONS~\\
A\_27a)~V4x)~V5l))=(ap~(ap~(ap~(c\_2Elist\_2EFOLDL~A\_27a~A\_27b)~V2f)~\\
(ap~(ap~V2f~V3e)~V4x))~V5l)))))))\end{array}
\label{hyp:ehigngpfcdfemgjgdhehpfcdfegepemeeeme}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}({\unicdcdadad} V0P \in (2^{{({{ty\_2Elist\_2Elist}~{A\_27a}})}}) .  \\
(((p~(ap~V0P~(c\_2Elist\_2ENIL~A\_27a))){\unicdcdcdhd}({\unicdcdadad} V1l \in (ty\_2Elist\_2Elist~\\
A\_27a) .  ((p~(ap~V0P~V1l)){\unicdbdjdcd}({\unicdcdadad} V2x \in A\_27a .  (p~(ap~V0P~(ap~(ap~(\\
c\_2Elist\_2ESNOC~A\_27a)~V2x)~V1l))))))){\unicdbdjdcd}({\unicdcdadad} V3l \in (ty\_2Elist\_2Elist~\\
A\_27a) .  (p~(ap~V0P~V3l)))))\end{array}
\label{hyp:ehigngpfcdfemgjgdhehpfcdfedfoepedepfpfjeoeeeffdeef}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}{\unicdcdadad} A\_27b .  nonempty~A\_27b{\unicdbdjdcd}(\\
{\unicdcdadad} V0f \in ((A\_27b^{{A\_27a}})^{{A\_27b}}) .  ({\unicdcdadad} V1e \in A\_27b .  ({\unicdcdadad} V2x \in \\
A\_27a .  ({\unicdcdadad} V3l \in (ty\_2Elist\_2Elist~A\_27a) .  ((ap~(ap~(ap~(c\_2Elist\_2EFOLDL~\\
A\_27a~A\_27b)~V0f)~V1e)~(ap~(ap~(c\_2Elist\_2ESNOC~A\_27a)~V2x)~V3l))=\\
(ap~(ap~V0f~(ap~(ap~(ap~(c\_2Elist\_2EFOLDL~A\_27a~A\_27b)~V0f)~V1e)~V3l))~\\
V2x))))))\end{array}
\label{hyp:ehigngpfcdfemgjgdhehpfcdfegepemeeemepfpfdfoepede}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}({\unicdcdadad} V0P \in (2^{{A\_27a}}) .  ({\unicdcdadad} V1x \in \\
A\_27a .  ({\unicdcdadad} V2l \in (ty\_2Elist\_2Elist~A\_27a) .  ((ap~(ap~(c\_2Elist\_2EFILTER~\\
A\_27a)~V0P)~(ap~(ap~(c\_2Elist\_2ESNOC~A\_27a)~V1x)~V2l))=(ap~(ap~(\\
ap~(\mname{c\_2Ebool\_2ECOND}~(ty\_2Elist\_2Elist~A\_27a))~(ap~V0P~V1x))~(ap~\\
(ap~(c\_2Elist\_2ESNOC~A\_27a)~V1x)~(ap~(ap~(c\_2Elist\_2EFILTER~A\_27a)~\\
V0P)~V2l)))~(ap~(ap~(c\_2Elist\_2EFILTER~A\_27a)~V0P)~V2l))))))\end{array}
\label{hyp:ehigngpfcdfechjgdgigpfpfmgjgdhehpfcdfegejemeeffecfpfpfdfoepede}
\end{equation}
\begin{theorem}\label{thm:ehigngpfcdfechjgdgigpfpfmgjgdhehpfcdfegejemeeffecfpfpfgepemeeeme}
$$\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}({\unicdcdadad} V0P \in (2^{{A\_27a}}) .  ({\unicdcdadad} V1l \in \\
(ty\_2Elist\_2Elist~A\_27a) .  ((ap~(ap~(c\_2Elist\_2EFILTER~A\_27a)~\\
V0P)~V1l)=(ap~(ap~(ap~(c\_2Elist\_2EFOLDL~A\_27a~(ty\_2Elist\_2Elist~\\
A\_27a))~({\uniddcgcg} V2l\_27 \in (ty\_2Elist\_2Elist~A\_27a) .  ({\uniddcgcg} V3x \in A\_27a .  \\
(ap~(ap~(ap~(\mname{c\_2Ebool\_2ECOND}~(ty\_2Elist\_2Elist~A\_27a))~(ap~V0P~\\
V3x))~(ap~(ap~(c\_2Elist\_2ESNOC~A\_27a)~V3x)~V2l\_27))~V2l\_27))))~\\
(c\_2Elist\_2ENIL~A\_27a))~V1l))))\end{array}$$
\end{theorem}
\end{document}
