\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\_2Ealist\_2Ealist\_\_to\_\_fmap\_\_FAPPLY\_\_MEM (TMcX1Xd9neubJYSjNHqCuvbsG9koxv4aQBH)}
\maketitle
Let $ ty\_2Eone\_2Eone : {\iota}$ be given.
Assume the following.
\begin{equation}
{{nonempty}~{ty\_2Eone\_2Eone}}\label{hyp:ogfgpfehjhpfcdfepgogfgpfcdfepgogfg}
\end{equation}
Let $ ty\_2Esum\_2Esum : {{\iota}{\unicdbdjdcd}{{\iota}{\unicdbdjdcd}{\iota}}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A0 .  nonempty~A0{\unicdbdjdcd}{\unicdcdadad} A1 .  nonempty~A1{\unicdbdjdcd}nonempty~(ty\_2Esum\_2Esum~\\
A0~A1)\end{array}
\label{hyp:ogfgpfehjhpfcdfedhfhngpfcdfedhfhng}
\end{equation}
Let $ ty\_2Efinite\_\_map\_2Efmap : {{\iota}{\unicdbdjdcd}{{\iota}{\unicdbdjdcd}{\iota}}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A0 .  nonempty~A0{\unicdbdjdcd}{\unicdcdadad} A1 .  nonempty~A1{\unicdbdjdcd}nonempty~(ty\_2Efinite\_\_map\_2Efmap~\\
A0~A1)\end{array}
\label{hyp:ogfgpfehjhpfcdfeggjgogjgehfgpfpfngbgahpfcdfeggngbgah}
\end{equation}
Let $ c\_2Efinite\_\_map\_2Efmap\_\_REP : {{\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\_2Efinite\_\_map\_2Efmap\_\_REP~\\
A\_27a~A\_27b \in (((ty\_2Esum\_2Esum~A\_27b~ty\_2Eone\_2Eone)^{{A\_27a}})^{{({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfeggjgogjgehfgpfpfngbgahpfcdfeggngbgahpfpfcffeaf}
\end{equation}
Let $ c\_2Esum\_2EISL : {{\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\_2Esum\_2EISL~\\
A\_27a~A\_27b \in (2^{{({{{ty\_2Esum\_2Esum}~{A\_27a}}~{A\_27b}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfedhfhngpfcdfejedfme}
\end{equation}
\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}
\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:dgpfcdfeggjgogjgehfgpfpfngbgahpfcdfegeeepene}
We define $\mname{c\_2Efinite\_\_map\_2EFDOM}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0f \in {({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})} .  {{\uniddcgcg} V1x \in {A\_27a} .  {({{{ap}~{({{{c\_2Esum\_2EISL}~{A\_27b}}~{ty\_2Eone\_2Eone}})}}~{({{{ap}~{({{{ap}~{({{{c\_2Efinite\_\_map\_2Efmap\_\_REP}~{A\_27a}}~{A\_27b}})}}~{V0f}})}}~{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\_2Ebool\_2EARB : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
{{\unicdcdadad} A\_27a .  {{{nonempty}~{A\_27a}}{\unicdbdjdcd}{{{c\_2Ebool\_2EARB}~{A\_27a}} \in {A\_27a}}}}\label{hyp:ngfgngpfdgpfcdfecgpgpgmgpfcdfebecfce}
\end{equation}
Let $ c\_2Epred\_\_set\_2ECHOICE : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}c\_2Epred\_\_set\_2ECHOICE~A\_27a \in \\
(A\_27a^{{({{2}^{{A\_27a}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfeahchfgegpfpfdhfgehpfcdfedeiepejedefe}
\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:dgpfcdfeahchfgegpfpfdhfgehpfcdfefeneafefjf}
We define $\mname{c\_2Epred\_\_set\_2EEMPTY}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {({{\uniddcgcg} V0x \in {A\_27a} .  {\mname{c\_2Ebool\_2EF}}})}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfecgpgpgmgpfcdfejeoe}
We define $\mname{c\_2Ebool\_2EIN}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {({{\uniddcgcg} V0x \in {A\_27a} .  {({{\uniddcgcg} V1f \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{V1f}}~{V0x}})}})}})}}$.
\end{definition}
\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:dgpfcdfecgpgpgmgpfcdfepffddepfcdge}
We define $\mname{c\_2Ebool\_2E\_5C\_2F}$ 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}})}}~{V2t}})}})}}~{({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{V1t2}})}}~{V2t}})}})}}~{V2t}})}})}})}})}})}})}$.
\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 $ ty\_2Epair\_2Eprod : {{\iota}{\unicdbdjdcd}{{\iota}{\unicdbdjdcd}{\iota}}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A0 .  nonempty~A0{\unicdbdjdcd}{\unicdcdadad} A1 .  nonempty~A1{\unicdbdjdcd}nonempty~(ty\_2Epair\_2Eprod~\\
A0~A1)\end{array}
\label{hyp:ogfgpfehjhpfcdfeahbgjgchpfcdfeahchpgeg}
\end{equation}
Let $ c\_2Epair\_2EABS\_\_prod : {{\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\_2Epair\_2EABS\_\_prod~\\
A\_27a~A\_27b \in ((ty\_2Epair\_2Eprod~A\_27a~A\_27b)^{{({{({{2}^{{A\_27b}}})}^{{A\_27a}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfeahbgjgchpfcdfebecedfpfpfahchpgeg}
\end{equation}
\begin{definition}\label{def:dgpfcdfeahbgjgchpfcdfepfcdde}
We define $\mname{c\_2Epair\_2E\_2C}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0x \in {A\_27a} .  {{\uniddcgcg} V1y \in {A\_27b} .  {({{{ap}~{({{{c\_2Epair\_2EABS\_\_prod}~{A\_27a}}~{A\_27b}})}}~{({{\uniddcgcg} V2a \in {A\_27a} .  {({{\uniddcgcg} V3b \in {A\_27b} .  {({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{A\_27a}})}}~{V2a}})}}~{V0x}})}})}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{A\_27b}})}}~{V3b}})}}~{V1y}})}})}})}})}})}}}}}$.
\end{definition}
Let $ c\_2Epred\_\_set\_2EGSPEC : {{\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\_2Epred\_\_set\_2EGSPEC~\\
A\_27a~A\_27b \in ((2^{{A\_27a}})^{{({{({{{ty\_2Epair\_2Eprod}~{A\_27a}}~{2}})}^{{A\_27b}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfeahchfgegpfpfdhfgehpfcdfehedfaffede}
\end{equation}
\begin{definition}\label{def:dgpfcdfeahchfgegpfpfdhfgehpfcdfejeoedffecfef}
We define $\mname{c\_2Epred\_\_set\_2EINSERT}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} V0x \in {A\_27a} .  {{\uniddcgcg} V1s \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{{c\_2Epred\_\_set\_2EGSPEC}~{A\_27a}}~{A\_27a}})}}~{({{\uniddcgcg} V2y \in {A\_27a} .  {({{{ap}~{({{{ap}~{({{{\mname{c\_2Epair\_2E\_2C}}~{A\_27a}}~{2}})}}~{V2y}})}}~{({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_5C\_2F}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{A\_27a}})}}~{V2y}})}}~{V0x}})}})}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Ebool\_2EIN}}~{A\_27a}})}}~{V2y}})}}~{V1s}})}})}})}})}})}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfecgpgpgmgpfcdfepfhdfe}
We define $\mname{c\_2Ebool\_2E\_7E}$ to be ${({{\uniddcgcg} V0t \in {2} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{V0t}})}}~{\mname{c\_2Ebool\_2EF}}})}})}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfeahchfgegpfpfdhfgehpfcdfeeejegege}
We define $\mname{c\_2Epred\_\_set\_2EDIFF}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} V0s \in {({{2}^{{A\_27a}}})} .  {{\uniddcgcg} V1t \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{{c\_2Epred\_\_set\_2EGSPEC}~{A\_27a}}~{A\_27a}})}}~{({{\uniddcgcg} V2x \in {A\_27a} .  {({{{ap}~{({{{ap}~{({{{\mname{c\_2Epair\_2E\_2C}}~{A\_27a}}~{2}})}}~{V2x}})}}~{({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Ebool\_2EIN}}~{A\_27a}})}}~{V2x}})}}~{V0s}})}})}}~{({{{ap}~{\mname{c\_2Ebool\_2E\_7E}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Ebool\_2EIN}}~{A\_27a}})}}~{V2x}})}}~{V1t}})}})}})}})}})}})}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfeahchfgegpfpfdhfgehpfcdfeeefemefeeffe}
We define $\mname{c\_2Epred\_\_set\_2EDELETE}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} V0s \in {({{2}^{{A\_27a}}})} .  {{\uniddcgcg} V1x \in {A\_27a} .  {({{{ap}~{({{{ap}~{({{\mname{c\_2Epred\_\_set\_2EDIFF}}~{A\_27a}})}}~{V0s}})}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Epred\_\_set\_2EINSERT}}~{A\_27a}})}}~{V1x}})}}~{({{\mname{c\_2Epred\_\_set\_2EEMPTY}}~{A\_27a}})}})}})}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfeahchfgegpfpfdhfgehpfcdfecffedfef}
We define $\mname{c\_2Epred\_\_set\_2EREST}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} V0s \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{{ap}~{({{\mname{c\_2Epred\_\_set\_2EDELETE}}~{A\_27a}})}}~{V0s}})}}~{({{{ap}~{({{c\_2Epred\_\_set\_2ECHOICE}~{A\_27a}})}}~{V0s}})}})}}}$.
\end{definition}
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: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}
\begin{definition}\label{def:dgpfcdfeahchfgegpfpfdhfgehpfcdfegejeoejeeffe}
We define $\mname{c\_2Epred\_\_set\_2EFINITE}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} V0s \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{({{2}^{{({{2}^{{A\_27a}}})}}})}})}}~{({{\uniddcgcg} V1P \in {({{2}^{{({{2}^{{A\_27a}}})}}})} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{V1P}}~{({{\mname{c\_2Epred\_\_set\_2EEMPTY}}~{A\_27a}})}})}})}}~{({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{({{2}^{{A\_27a}}})}})}}~{({{\uniddcgcg} V2s \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{V1P}}~{V2s}})}})}}~{({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{A\_27a}})}}~{({{\uniddcgcg} V3e \in {A\_27a} .  {({{{ap}~{V1P}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Epred\_\_set\_2EINSERT}}~{A\_27a}})}}~{V3e}})}}~{V2s}})}})}})}})}})}})}})}})}})}}~{({{{ap}~{V1P}}~{V0s}})}})}})}})}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfedgpgngcgjgogpfcdfele}
We define $\mname{c\_2Ecombin\_2EK}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {({{\uniddcgcg} V0x \in {A\_27a} .  {({{\uniddcgcg} V1y \in {A\_27b} .  {V0x}})}})}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfedgpgngcgjgogpfcdfedf}
We define $\mname{c\_2Ecombin\_2ES}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} A\_27c : {\iota} .  {({{\uniddcgcg} V0f \in {({{({{A\_27c}^{{A\_27b}}})}^{{A\_27a}}})} .  {({{\uniddcgcg} V1g \in {({{A\_27b}^{{A\_27a}}})} .  {({{\uniddcgcg} V2x \in {A\_27a} .  {({{{ap}~{({{{ap}~{V0f}}~{V2x}})}}~{({{{ap}~{V1g}}~{V2x}})}})}})}})}})}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfedgpgngcgjgogpfcdfeje}
We define $\mname{c\_2Ecombin\_2EI}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {({{{ap}~{({{{ap}~{({{{{\mname{c\_2Ecombin\_2ES}}~{A\_27a}}~{({{A\_27a}^{{A\_27a}}})}}~{A\_27a}})}}~{({{{\mname{c\_2Ecombin\_2EK}}~{A\_27a}}~{({{A\_27a}^{{A\_27a}}})}})}})}}~{({{{\mname{c\_2Ecombin\_2EK}}~{A\_27a}}~{A\_27a}})}})}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfecgpgpgmgpfcdfepfddge}
We define $\mname{c\_2Ebool\_2E\_3F}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {({{\uniddcgcg} V0P \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{V0P}}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_40}}~{A\_27a}})}}~{V0P}})}})}})}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfechfgmgbgehjgpgogpfcdfehfge}
We define $\mname{c\_2Erelation\_2EWF}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} V0R \in {({{({{2}^{{A\_27a}}})}^{{A\_27a}}})} .  {({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{({{2}^{{A\_27a}}})}})}}~{({{\uniddcgcg} V1B \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{\mname{c\_2Ebool\_2E\_3F}}~{A\_27a}})}}~{({{\uniddcgcg} V2w \in {A\_27a} .  {({{{ap}~{V1B}}~{V2w}})}})}})}})}}~{({{{ap}~{({{\mname{c\_2Ebool\_2E\_3F}}~{A\_27a}})}}~{({{\uniddcgcg} V3min \in {A\_27a} .  {({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{V1B}}~{V3min}})}})}}~{({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{A\_27a}})}}~{({{\uniddcgcg} V4b \in {A\_27a} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{V0R}}~{V4b}})}}~{V3min}})}})}}~{({{{ap}~{\mname{c\_2Ebool\_2E\_7E}}}~{({{{ap}~{V1B}}~{V4b}})}})}})}})}})}})}})}})}})}})}})}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfechfgmgbgehjgpgogpfcdfecffedfefcfjedeef}
We define $\mname{c\_2Erelation\_2ERESTRICT}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0f \in {({{A\_27b}^{{A\_27a}}})} .  {{\uniddcgcg} V1R \in {({{({{2}^{{A\_27a}}})}^{{A\_27a}}})} .  {{\uniddcgcg} V2x \in {A\_27a} .  {({{\uniddcgcg} V3y \in {A\_27a} .  {({{{ap}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Ebool\_2ECOND}}~{A\_27b}})}}~{({{{ap}~{({{{ap}~{V1R}}~{V3y}})}}~{V2x}})}})}}~{({{{ap}~{V0f}}~{V3y}})}})}}~{({{c\_2Ebool\_2EARB}~{A\_27b}})}})}})}}}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfechfgmgbgehjgpgogpfcdfeefde}
We define $\mname{c\_2Erelation\_2ETC}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} V0R \in {({{({{2}^{{A\_27a}}})}^{{A\_27a}}})} .  {{\uniddcgcg} V1a \in {A\_27a} .  {{\uniddcgcg} V2b \in {A\_27a} .  {({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{({{({{2}^{{A\_27a}}})}^{{A\_27a}}})}})}}~{({{\uniddcgcg} V3P \in {({{({{2}^{{A\_27a}}})}^{{A\_27a}}})} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{A\_27a}})}}~{({{\uniddcgcg} V4x \in {A\_27a} .  {({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{A\_27a}})}}~{({{\uniddcgcg} V5y \in {A\_27a} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{V0R}}~{V4x}})}}~{V5y}})}})}}~{({{{ap}~{({{{ap}~{V3P}}~{V4x}})}}~{V5y}})}})}})}})}})}})}})}}~{({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{A\_27a}})}}~{({{\uniddcgcg} V6x \in {A\_27a} .  {({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{A\_27a}})}}~{({{\uniddcgcg} V7y \in {A\_27a} .  {({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{A\_27a}})}}~{({{\uniddcgcg} V8z \in {A\_27a} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{{ap}~{V3P}}~{V6x}})}}~{V7y}})}})}}~{({{{ap}~{({{{ap}~{V3P}}~{V7y}})}}~{V8z}})}})}})}}~{({{{ap}~{({{{ap}~{V3P}}~{V6x}})}}~{V8z}})}})}})}})}})}})}})}})}})}})}}~{({{{ap}~{({{{ap}~{V3P}}~{V1a}})}}~{V2b}})}})}})}})}}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfechfgmgbgehjgpgogpfcdfebgahahchpgih}
We define $\mname{c\_2Erelation\_2Eapprox}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0R \in {({{({{2}^{{A\_27a}}})}^{{A\_27a}}})} .  {{\uniddcgcg} V1M \in {({{({{A\_27b}^{{A\_27a}}})}^{{({{A\_27b}^{{A\_27a}}})}}})} .  {{\uniddcgcg} V2x \in {A\_27a} .  {{\uniddcgcg} V3f \in {({{A\_27b}^{{A\_27a}}})} .  {({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{({{A\_27b}^{{A\_27a}}})}})}}~{V3f}})}}~{({{{ap}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Erelation\_2ERESTRICT}}~{A\_27a}}~{A\_27b}})}}~{({{\uniddcgcg} V4y \in {A\_27a} .  {({{{ap}~{({{{ap}~{V1M}}~{({{{ap}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Erelation\_2ERESTRICT}}~{A\_27a}}~{A\_27b}})}}~{V3f}})}}~{V0R}})}}~{V4y}})}})}}~{V4y}})}})}})}}~{V0R}})}}~{V2x}})}})}}}}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfechfgmgbgehjgpgogpfcdfeehigfgpfpfggfhog}
We define $\mname{c\_2Erelation\_2Ethe\_\_fun}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0R \in {({{({{2}^{{A\_27a}}})}^{{A\_27a}}})} .  {{\uniddcgcg} V1M \in {({{({{A\_27b}^{{A\_27a}}})}^{{({{A\_27b}^{{A\_27a}}})}}})} .  {{\uniddcgcg} V2x \in {A\_27a} .  {({{{ap}~{({{\mname{c\_2Emin\_2E\_40}}~{({{A\_27b}^{{A\_27a}}})}})}}~{({{\uniddcgcg} V3f \in {({{A\_27b}^{{A\_27a}}})} .  {({{{ap}~{({{{ap}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Erelation\_2Eapprox}}~{A\_27a}}~{A\_27b}})}}~{V0R}})}}~{V1M}})}}~{V2x}})}}~{V3f}})}})}})}}}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfechfgmgbgehjgpgogpfcdfehfgecffede}
We define $\mname{c\_2Erelation\_2EWFREC}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0R \in {({{({{2}^{{A\_27a}}})}^{{A\_27a}}})} .  {{\uniddcgcg} V1M \in {({{({{A\_27b}^{{A\_27a}}})}^{{({{A\_27b}^{{A\_27a}}})}}})} .  {({{\uniddcgcg} V2x \in {A\_27a} .  {({{{ap}~{({{{ap}~{V1M}}~{({{{ap}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Erelation\_2ERESTRICT}}~{A\_27a}}~{A\_27b}})}}~{({{{ap}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Erelation\_2Ethe\_\_fun}}~{A\_27a}}~{A\_27b}})}}~{({{{ap}~{({{\mname{c\_2Erelation\_2ETC}}~{A\_27a}})}}~{V0R}})}})}}~{({{\uniddcgcg} V3f \in {({{A\_27b}^{{A\_27a}}})} .  {({{\uniddcgcg} V4v \in {A\_27a} .  {({{{ap}~{({{{ap}~{V1M}}~{({{{ap}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Erelation\_2ERESTRICT}}~{A\_27a}}~{A\_27b}})}}~{V3f}})}}~{V0R}})}}~{V4v}})}})}}~{V4v}})}})}})}})}}~{V2x}})}})}}~{V0R}})}}~{V2x}})}})}}~{V2x}})}})}}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfemgjgdhehpfcdfedffeefpfpfefpepfpfmejedfef}
We define $\mname{c\_2Elist\_2ESET\_\_TO\_\_LIST}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {({{{ap}~{({{{ap}~{({{{\mname{c\_2Erelation\_2EWFREC}}~{({{2}^{{A\_27a}}})}}~{({{ty\_2Elist\_2Elist}~{A\_27a}})}})}}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_40}}~{({{({{2}^{{({{2}^{{A\_27a}}})}}})}^{{({{2}^{{A\_27a}}})}}})}})}}~{({{\uniddcgcg} V0R \in {({{({{2}^{{({{2}^{{A\_27a}}})}}})}^{{({{2}^{{A\_27a}}})}}})} .  {({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{\mname{c\_2Erelation\_2EWF}}~{({{2}^{{A\_27a}}})}})}}~{V0R}})}})}}~{({{{ap}~{({{\mname{c\_2Ebool\_2E\_21}}~{({{2}^{{A\_27a}}})}})}}~{({{\uniddcgcg} V1s \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{{ap}~{\mname{c\_2Emin\_2E\_3D\_3D\_3E}}}~{({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{\mname{c\_2Epred\_\_set\_2EFINITE}}~{A\_27a}})}}~{V1s}})}})}}~{({{{ap}~{\mname{c\_2Ebool\_2E\_7E}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{({{2}^{{A\_27a}}})}})}}~{V1s}})}}~{({{\mname{c\_2Epred\_\_set\_2EEMPTY}}~{A\_27a}})}})}})}})}})}}~{({{{ap}~{({{{ap}~{V0R}}~{({{{ap}~{({{\mname{c\_2Epred\_\_set\_2EREST}}~{A\_27a}})}}~{V1s}})}})}}~{V1s}})}})}})}})}})}})}})}})}}~{({{\uniddcgcg} V2SET\_\_TO\_\_LIST \in {({{({{ty\_2Elist\_2Elist}~{A\_27a}})}^{{({{2}^{{A\_27a}}})}}})} .  {({{\uniddcgcg} V3a \in {({{2}^{{A\_27a}}})} .  {({{{ap}~{({{\mname{c\_2Ecombin\_2EI}}~{({{ty\_2Elist\_2Elist}~{A\_27a}})}})}}~{({{{ap}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Ebool\_2ECOND}}~{({{ty\_2Elist\_2Elist}~{A\_27a}})}})}}~{({{{ap}~{({{\mname{c\_2Epred\_\_set\_2EFINITE}}~{A\_27a}})}}~{V3a}})}})}}~{({{{ap}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Ebool\_2ECOND}}~{({{ty\_2Elist\_2Elist}~{A\_27a}})}})}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{({{2}^{{A\_27a}}})}})}}~{V3a}})}}~{({{\mname{c\_2Epred\_\_set\_2EEMPTY}}~{A\_27a}})}})}})}}~{({{c\_2Elist\_2ENIL}~{A\_27a}})}})}}~{({{{ap}~{({{{ap}~{({{c\_2Elist\_2ECONS}~{A\_27a}})}}~{({{{ap}~{({{c\_2Epred\_\_set\_2ECHOICE}~{A\_27a}})}}~{V3a}})}})}}~{({{{ap}~{V2SET\_\_TO\_\_LIST}}~{({{{ap}~{({{\mname{c\_2Epred\_\_set\_2EREST}}~{A\_27a}})}}~{V3a}})}})}})}})}})}}~{({{c\_2Ebool\_2EARB}~{({{ty\_2Elist\_2Elist}~{A\_27a}})}})}})}})}})}})}})}}$.
\end{definition}
Let $ c\_2Esum\_2EOUTL : {{\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\_2Esum\_2EOUTL~\\
A\_27a~A\_27b \in (A\_27a^{{({{{ty\_2Esum\_2Esum}~{A\_27a}}~{A\_27b}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfedhfhngpfcdfepeffefme}
\end{equation}
\begin{definition}\label{def:dgpfcdfeggjgogjgehfgpfpfngbgahpfcdfegebeafafmejf}
We define $\mname{c\_2Efinite\_\_map\_2EFAPPLY}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0f \in {({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})} .  {{\uniddcgcg} V1x \in {A\_27a} .  {({{{ap}~{({{{c\_2Esum\_2EOUTL}~{A\_27b}}~{ty\_2Eone\_2Eone}})}}~{({{{ap}~{({{{ap}~{({{{c\_2Efinite\_\_map\_2Efmap\_\_REP}~{A\_27a}}~{A\_27b}})}}~{V0f}})}}~{V1x}})}})}}}}}$.
\end{definition}
Let $ c\_2Elist\_2EMAP : {{\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\_2EMAP~\\
A\_27a~A\_27b \in (((ty\_2Elist\_2Elist~A\_27b)^{{({{ty\_2Elist\_2Elist}~{A\_27a}})}})^{{({{A\_27b}^{{A\_27a}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfemgjgdhehpfcdfenebeaf}
\end{equation}
\begin{definition}\label{def:dgpfcdfebgmgjgdhehpfcdfeggngbgahpfpfehpgpfpfbgmgjgdheh}
We define $\mname{c\_2Ealist\_2Efmap\_\_to\_\_alist}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0s \in {({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})} .  {({{{ap}~{({{{ap}~{({{{c\_2Elist\_2EMAP}~{A\_27a}}~{({{{ty\_2Epair\_2Eprod}~{A\_27a}}~{A\_27b}})}})}}~{({{\uniddcgcg} V1k \in {A\_27a} .  {({{{ap}~{({{{ap}~{({{{\mname{c\_2Epair\_2E\_2C}}~{A\_27a}}~{A\_27b}})}}~{V1k}})}}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Efinite\_\_map\_2EFAPPLY}}~{A\_27a}}~{A\_27b}})}}~{V0s}})}}~{V1k}})}})}})}})}}~{({{{ap}~{({{\mname{c\_2Elist\_2ESET\_\_TO\_\_LIST}}~{A\_27a}})}}~{({{{ap}~{({{{\mname{c\_2Efinite\_\_map\_2EFDOM}}~{A\_27a}}~{A\_27b}})}}~{V0s}})}})}})}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfepgogfgpfcdfepgogfg}
We define $\mname{c\_2Eone\_2Eone}$ to be ${({{{ap}~{({{\mname{c\_2Emin\_2E\_40}}~{ty\_2Eone\_2Eone}})}}~{({{\uniddcgcg} V0x \in {ty\_2Eone\_2Eone} .  {\mname{c\_2Ebool\_2ET}}})}})}$.
\end{definition}
Let $ c\_2Esum\_2EABS\_\_sum : {{\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\_2Esum\_2EABS\_\_sum~\\
A\_27a~A\_27b \in ((ty\_2Esum\_2Esum~A\_27a~A\_27b)^{{({{({{({{2}^{{A\_27b}}})}^{{A\_27a}}})}^{{2}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfedhfhngpfcdfebecedfpfpfdhfhng}
\end{equation}
\begin{definition}\label{def:dgpfcdfedhfhngpfcdfejeoecf}
We define $\mname{c\_2Esum\_2EINR}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0e \in {A\_27b} .  {({{{ap}~{({{{c\_2Esum\_2EABS\_\_sum}~{A\_27a}}~{A\_27b}})}}~{({{\uniddcgcg} V1b \in {2} .  {({{\uniddcgcg} V2x \in {A\_27a} .  {({{\uniddcgcg} V3y \in {A\_27b} .  {({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{A\_27b}})}}~{V3y}})}}~{V0e}})}})}}~{({{{ap}~{\mname{c\_2Ebool\_2E\_7E}}}~{V1b}})}})}})}})}})}})}}}}$.
\end{definition}
Let $ c\_2Efinite\_\_map\_2Efmap\_\_ABS : {{\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\_2Efinite\_\_map\_2Efmap\_\_ABS~\\
A\_27a~A\_27b \in ((ty\_2Efinite\_\_map\_2Efmap~A\_27a~A\_27b)^{{({{({{{ty\_2Esum\_2Esum}~{A\_27b}}~{ty\_2Eone\_2Eone}})}^{{A\_27a}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfeggjgogjgehfgpfpfngbgahpfcdfeggngbgahpfpfbecedf}
\end{equation}
\begin{definition}\label{def:dgpfcdfeggjgogjgehfgpfpfngbgahpfcdfegefeneafefjf}
We define $\mname{c\_2Efinite\_\_map\_2EFEMPTY}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {({{{ap}~{({{{c\_2Efinite\_\_map\_2Efmap\_\_ABS}~{A\_27a}}~{A\_27b}})}}~{({{\uniddcgcg} V0a \in {A\_27a} .  {({{{ap}~{({{{\mname{c\_2Esum\_2EINR}}~{A\_27b}}~{ty\_2Eone\_2Eone}})}}~{\mname{c\_2Eone\_2Eone}}})}})}})}}}$.
\end{definition}
Let $ c\_2Efinite\_\_map\_2EFUPDATE : {{\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\_2Efinite\_\_map\_2EFUPDATE~\\
A\_27a~A\_27b \in (((ty\_2Efinite\_\_map\_2Efmap~A\_27a~A\_27b)^{{({{{ty\_2Epair\_2Eprod}~{A\_27a}}~{A\_27b}})}})^{{({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfeggjgogjgehfgpfpfngbgahpfcdfegeffafeebeeffe}
\end{equation}
Let $ c\_2Epair\_2ESND : {{\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\_2Epair\_2ESND~\\
A\_27a~A\_27b \in (A\_27b^{{({{{ty\_2Epair\_2Eprod}~{A\_27a}}~{A\_27b}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfeahbgjgchpfcdfedfoeee}
\end{equation}
Let $ c\_2Epair\_2EFST : {{\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\_2Epair\_2EFST~\\
A\_27a~A\_27b \in (A\_27a^{{({{{ty\_2Epair\_2Eprod}~{A\_27a}}~{A\_27b}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfeahbgjgchpfcdfegedfef}
\end{equation}
\begin{definition}\label{def:dgpfcdfeahbgjgchpfcdfeffoedeffcfcfjf}
We define $\mname{c\_2Epair\_2EUNCURRY}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} A\_27c : {\iota} .  {{\uniddcgcg} V0f \in {({{({{A\_27c}^{{A\_27b}}})}^{{A\_27a}}})} .  {{\uniddcgcg} V1v \in {({{{ty\_2Epair\_2Eprod}~{A\_27a}}~{A\_27b}})} .  {({{{ap}~{({{{ap}~{V0f}}~{({{{ap}~{({{{c\_2Epair\_2EFST}~{A\_27a}}~{A\_27b}})}}~{V1v}})}})}}~{({{{ap}~{({{{c\_2Epair\_2ESND}~{A\_27a}}~{A\_27b}})}}~{V1v}})}})}}}}}}$.
\end{definition}
Let $ c\_2Elist\_2EFOLDR : {{\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\_2EFOLDR~\\
A\_27a~A\_27b \in (((A\_27b^{{({{ty\_2Elist\_2Elist}~{A\_27a}})}})^{{A\_27b}})^{{({{({{A\_27b}^{{A\_27b}}})}^{{A\_27a}}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfemgjgdhehpfcdfegepemeeecf}
\end{equation}
\begin{definition}\label{def:dgpfcdfebgmgjgdhehpfcdfebgmgjgdhehpfpfehpgpfpfggngbgah}
We define $\mname{c\_2Ealist\_2Ealist\_\_to\_\_fmap}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0s \in {({{ty\_2Elist\_2Elist}~{({{{ty\_2Epair\_2Eprod}~{A\_27a}}~{A\_27b}})}})} .  {({{{ap}~{({{{ap}~{({{{ap}~{({{{c\_2Elist\_2EFOLDR}~{({{{ty\_2Epair\_2Eprod}~{A\_27a}}~{A\_27b}})}}~{({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})}})}}~{({{{ap}~{({{{{\mname{c\_2Epair\_2EUNCURRY}}~{A\_27a}}~{A\_27b}}~{({{({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})}^{{({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})}}})}})}}~{({{\uniddcgcg} V1k \in {A\_27a} .  {({{\uniddcgcg} V2v \in {A\_27b} .  {({{\uniddcgcg} V3f \in {({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})} .  {({{{ap}~{({{{ap}~{({{{c\_2Efinite\_\_map\_2EFUPDATE}~{A\_27a}}~{A\_27b}})}}~{V3f}})}}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Epair\_2E\_2C}}~{A\_27a}}~{A\_27b}})}}~{V1k}})}}~{V2v}})}})}})}})}})}})}})}}~{({{{\mname{c\_2Efinite\_\_map\_2EFEMPTY}}~{A\_27a}}~{A\_27b}})}})}}~{V0s}})}}}}$.
\end{definition}
Let $ c\_2Elist\_2ELIST\_\_TO\_\_SET : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}c\_2Elist\_2ELIST\_\_TO\_\_SET~A\_27a \in \\
((2^{{A\_27a}})^{{({{ty\_2Elist\_2Elist}~{A\_27a}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfemgjgdhehpfcdfemejedfefpfpfefpepfpfdffeef}
\end{equation}
Let $ ty\_2Eoption\_2Eoption : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
{{\unicdcdadad} A0 .  {{{nonempty}~{A0}}{\unicdbdjdcd}{{nonempty}~{({{ty\_2Eoption\_2Eoption}~{A0}})}}}}\label{hyp:ogfgpfehjhpfcdfepgahehjgpgogpfcdfepgahehjgpgog}
\end{equation}
Let $ c\_2Ealist\_2EALOOKUP : {{\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\_2Ealist\_2EALOOKUP~\\
A\_27a~A\_27b \in (((ty\_2Eoption\_2Eoption~A\_27a)^{{A\_27b}})^{{({{ty\_2Elist\_2Elist}~{({{{ty\_2Epair\_2Eprod}~{A\_27b}}~{A\_27a}})}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfebgmgjgdhehpfcdfebemepepeleffaf}
\end{equation}
Let $ c\_2Eoption\_2Eoption\_\_ABS : {{\iota}{\unicdbdjdcd}{\iota}}$ be given.
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}c\_2Eoption\_2Eoption\_\_ABS~A\_27a \in \\
((ty\_2Eoption\_2Eoption~A\_27a)^{{({{{ty\_2Esum\_2Esum}~{A\_27a}}~{ty\_2Eone\_2Eone}})}})\end{array}
\label{hyp:ngfgngpfdgpfcdfepgahehjgpgogpfcdfepgahehjgpgogpfpfbecedf}
\end{equation}
\begin{definition}\label{def:dgpfcdfepgahehjgpgogpfcdfeoepeoefe}
We define $\mname{c\_2Eoption\_2ENONE}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {({{{ap}~{({{c\_2Eoption\_2Eoption\_\_ABS}~{A\_27a}})}}~{({{{ap}~{({{{\mname{c\_2Esum\_2EINR}}~{A\_27a}}~{ty\_2Eone\_2Eone}})}}~{\mname{c\_2Eone\_2Eone}}})}})}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfedhfhngpfcdfejeoeme}
We define $\mname{c\_2Esum\_2EINL}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0e \in {A\_27a} .  {({{{ap}~{({{{c\_2Esum\_2EABS\_\_sum}~{A\_27a}}~{A\_27b}})}}~{({{\uniddcgcg} V1b \in {2} .  {({{\uniddcgcg} V2x \in {A\_27a} .  {({{\uniddcgcg} V3y \in {A\_27b} .  {({{{ap}~{({{{ap}~{\mname{c\_2Ebool\_2E\_2F\_5C}}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Emin\_2E\_3D}}~{A\_27a}})}}~{V2x}})}}~{V0e}})}})}}~{V1b}})}})}})}})}})}}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfepgahehjgpgogpfcdfedfpenefe}
We define $\mname{c\_2Eoption\_2ESOME}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} V0x \in {A\_27a} .  {({{{ap}~{({{c\_2Eoption\_2Eoption\_\_ABS}~{A\_27a}})}}~{({{{ap}~{({{{\mname{c\_2Esum\_2EINL}}~{A\_27a}}~{ty\_2Eone\_2Eone}})}}~{V0x}})}})}}}$.
\end{definition}
\begin{definition}\label{def:dgpfcdfeggjgogjgehfgpfpfngbgahpfcdfegemepepeleffaf}
We define $\mname{c\_2Efinite\_\_map\_2EFLOOKUP}$ to be ${{\uniddcgcg} A\_27a : {\iota} .  {{\uniddcgcg} A\_27b : {\iota} .  {{\uniddcgcg} V0f \in {({{{ty\_2Efinite\_\_map\_2Efmap}~{A\_27a}}~{A\_27b}})} .  {{\uniddcgcg} V1x \in {A\_27a} .  {({{{ap}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Ebool\_2ECOND}}~{({{ty\_2Eoption\_2Eoption}~{A\_27b}})}})}}~{({{{ap}~{({{{ap}~{({{\mname{c\_2Ebool\_2EIN}}~{A\_27a}})}}~{V1x}})}}~{({{{ap}~{({{{\mname{c\_2Efinite\_\_map\_2EFDOM}}~{A\_27a}}~{A\_27b}})}}~{V0f}})}})}})}}~{({{{ap}~{({{\mname{c\_2Eoption\_2ESOME}}~{A\_27b}})}}~{({{{ap}~{({{{ap}~{({{{\mname{c\_2Efinite\_\_map\_2EFAPPLY}}~{A\_27a}}~{A\_27b}})}}~{V0f}})}}~{V1x}})}})}})}}~{({{\mname{c\_2Eoption\_2ENONE}}~{A\_27b}})}})}}}}}$.
\end{definition}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}{\unicdcdadad} A\_27b .  nonempty~A\_27b{\unicdbdjdcd}{\unicdcdadad} A\_27c .  \\
nonempty~A\_27c{\unicdbdjdcd}{\unicdcdadad} A\_27d .  nonempty~A\_27d{\unicdbdjdcd}({\unicdcdadad} V0al \in (\\
ty\_2Elist\_2Elist~(ty\_2Epair\_2Eprod~A\_27a~A\_27b)) .  ({\unicdcdadad} V1fm \in \\
(ty\_2Efinite\_\_map\_2Efmap~A\_27c~A\_27d) .  (((ap~(\mname{c\_2Efinite\_\_map\_2EFLOOKUP}~\\
A\_27a~A\_27b)~(ap~(\mname{c\_2Ealist\_2Ealist\_\_to\_\_fmap}~A\_27a~A\_27b)~V0al))=\\
(ap~(c\_2Ealist\_2EALOOKUP~A\_27b~A\_27a)~V0al)){\unicdcdcdhd}((ap~(c\_2Ealist\_2EALOOKUP~\\
A\_27d~A\_27c)~(ap~(\mname{c\_2Ealist\_2Efmap\_\_to\_\_alist}~A\_27c~A\_27d)~V1fm))=\\
(ap~(\mname{c\_2Efinite\_\_map\_2EFLOOKUP}~A\_27c~A\_27d)~V1fm)))))\end{array}
\label{hyp:ehigngpfcdfebgmgjgdhehpfcdfebemepepeleffafpfpffebfpfpfgemepepeleffaf}
\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} V0al \in (ty\_2Elist\_2Elist~(ty\_2Epair\_2Eprod~A\_27a~A\_27b)) .  \\
({\unicdcdadad} V1k \in A\_27a .  ({\unicdcdadad} V2v \in A\_27b .  (((ap~(ap~(c\_2Ealist\_2EALOOKUP~\\
A\_27b~A\_27a)~V0al)~V1k)=(ap~(\mname{c\_2Eoption\_2ESOME}~A\_27b)~V2v)){\unicdbdjdcd}(\\
p~(ap~(ap~(\mname{c\_2Ebool\_2EIN}~(ty\_2Epair\_2Eprod~A\_27a~A\_27b))~(ap~(ap~\\
(\mname{c\_2Epair\_2E\_2C}~A\_27a~A\_27b)~V1k)~V2v))~(ap~(c\_2Elist\_2ELIST\_\_TO\_\_SET~\\
(ty\_2Epair\_2Eprod~A\_27a~A\_27b))~V0al)))))))\end{array}
\label{hyp:ehigngpfcdfebgmgjgdhehpfcdfebemepepeleffafpfpfnefene}
\end{equation}
Assume the following.
\begin{equation}
{True}\label{hyp:ehigngpfcdfecgpgpgmgpfcdfeefcfffefie}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}({\unicdcdadad} V0t \in 2 .  (((True{\unicdcdcdhd}(p~V0t)){\unicdbdjded}(p~V0t)){\unicdcdcdhd}((((p~V0t){\unicdcdcdhd}True){\unicdbdjded}\\
(p~V0t)){\unicdcdcdhd}(((False{\unicdcdcdhd}(p~V0t)){\unicdbdjded}False){\unicdcdcdhd}((((p~V0t){\unicdcdcdhd}False){\unicdbdjded}False){\unicdcdcdhd}\\
(((p~V0t){\unicdcdcdhd}(p~V0t)){\unicdbdjded}(p~V0t)))))))\end{array}
\label{hyp:ehigngpfcdfecgpgpgmgpfcdfebeoeeepfpfdemebeffdffedf}
\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} V0t \in 2 .  (((True{\unicdbdjded}(p~V0t)){\unicdbdjded}(p~V0t)){\unicdcdcdhd}((((p~V0t){\unicdbdjded}True){\unicdbdjded}\\
(p~V0t)){\unicdcdcdhd}(((False{\unicdbdjded}(p~V0t)){\unicdbdjded}(\preoh (p~V0t))){\unicdcdcdhd}(((p~V0t){\unicdbdjded}False){\unicdbdjded}(\preoh (\\
p~V0t)))))))\end{array}
\label{hyp:ehigngpfcdfecgpgpgmgpfcdfefebfpfpfdemebeffdffedf}
\end{equation}
Assume the following.
\begin{equation}
\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}({\unicdcdadad} V0P \in 2 .  ({\unicdcdadad} V1x \in A\_27a .  \\
({\unicdcdadad} V2y \in A\_27a .  ((((ap~(ap~(ap~(\mname{c\_2Ebool\_2ECOND}~(ty\_2Eoption\_2Eoption~\\
A\_27a))~V0P)~(ap~(\mname{c\_2Eoption\_2ESOME}~A\_27a)~V1x))~(\mname{c\_2Eoption\_2ENONE}~\\
A\_27a))=(\mname{c\_2Eoption\_2ENONE}~A\_27a)){\unicdbdjded}(\preoh (p~V0P))){\unicdcdcdhd}((((ap~(ap~(\\
ap~(\mname{c\_2Ebool\_2ECOND}~(ty\_2Eoption\_2Eoption~A\_27a))~V0P)~(\mname{c\_2Eoption\_2ENONE}~\\
A\_27a))~(ap~(\mname{c\_2Eoption\_2ESOME}~A\_27a)~V1x))=(\mname{c\_2Eoption\_2ENONE}~\\
A\_27a)){\unicdbdjded}(p~V0P)){\unicdcdcdhd}((((ap~(ap~(ap~(\mname{c\_2Ebool\_2ECOND}~(ty\_2Eoption\_2Eoption~\\
A\_27a))~V0P)~(ap~(\mname{c\_2Eoption\_2ESOME}~A\_27a)~V1x))~(\mname{c\_2Eoption\_2ENONE}~\\
A\_27a))=(ap~(\mname{c\_2Eoption\_2ESOME}~A\_27a)~V2y)){\unicdbdjded}((p~V0P){\unicdcdcdhd}(V1x=V2y))){\unicdcdcdhd}\\
(((ap~(ap~(ap~(\mname{c\_2Ebool\_2ECOND}~(ty\_2Eoption\_2Eoption~A\_27a))~\\
V0P)~(\mname{c\_2Eoption\_2ENONE}~A\_27a))~(ap~(\mname{c\_2Eoption\_2ESOME}~A\_27a)~\\
V1x))=(ap~(\mname{c\_2Eoption\_2ESOME}~A\_27a)~V2y)){\unicdbdjded}((\preoh (p~V0P)){\unicdcdcdhd}(V1x=\\
V2y)))))))))\end{array}
\label{hyp:ehigngpfcdfepgahehjgpgogpfcdfejegepfpffebfffbemedfpfpfpeafefjepeoe}
\end{equation}
\begin{theorem}\label{thm:ehigngpfcdfebgmgjgdhehpfcdfebgmgjgdhehpfpfehpgpfpfggngbgahpfpfgebeafafmejfpfpfnefene}
$$\begin{array}{c}{\unicdcdadad} A\_27a .  nonempty~A\_27a{\unicdbdjdcd}{\unicdcdadad} A\_27b .  nonempty~A\_27b{\unicdbdjdcd}(\\
{\unicdcdadad} V0al \in (ty\_2Elist\_2Elist~(ty\_2Epair\_2Eprod~A\_27a~A\_27b)) .  \\
({\unicdcdadad} V1z \in A\_27a .  ((p~(ap~(ap~(\mname{c\_2Ebool\_2EIN}~A\_27a)~V1z)~(ap~(\\
\mname{c\_2Efinite\_\_map\_2EFDOM}~A\_27a~A\_27b)~(ap~(\mname{c\_2Ealist\_2Ealist\_\_to\_\_fmap}~\\
A\_27a~A\_27b)~V0al)))){\unicdbdjdcd}(p~(ap~(ap~(\mname{c\_2Ebool\_2EIN}~(ty\_2Epair\_2Eprod~\\
A\_27a~A\_27b))~(ap~(ap~(\mname{c\_2Epair\_2E\_2C}~A\_27a~A\_27b)~V1z)~(ap~(ap~(\\
\mname{c\_2Efinite\_\_map\_2EFAPPLY}~A\_27a~A\_27b)~(ap~(\mname{c\_2Ealist\_2Ealist\_\_to\_\_fmap}~\\
A\_27a~A\_27b)~V0al))~V1z)))~(ap~(c\_2Elist\_2ELIST\_\_TO\_\_SET~(ty\_2Epair\_2Eprod~\\
A\_27a~A\_27b))~V0al))))))\end{array}$$
\end{theorem}
\end{document}
