summaryrefslogtreecommitdiff
path: root/sec/encoding.ltx
diff options
context:
space:
mode:
authorChloe Brown <chloe.brown.00@outlook.com>2025-04-29 18:42:48 +0100
committerChloe Brown <chloe.brown.00@outlook.com>2025-04-29 18:42:48 +0100
commitc96076007468bc5636ceaa2c5de97238a69f639e (patch)
treeb8bd69eae0fff87d3a08c9ef29933a0b884d621a /sec/encoding.ltx
parent2121ecaf46a6f0500934662686563e8692e166e6 (diff)
Give (weak) justification for adding `snoc`.
Diffstat (limited to 'sec/encoding.ltx')
-rw-r--r--sec/encoding.ltx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sec/encoding.ltx b/sec/encoding.ltx
index 1063ba7..bf2c96e 100644
--- a/sec/encoding.ltx
+++ b/sec/encoding.ltx
@@ -175,10 +175,16 @@ X)\) of countable trees. To compute the recursive depth, we need to
compute the maximum of a countable sequence, which is impossible in
general. Thus we cannot encode such infinite types.
+Adding the \(\mathsf{snoc}\) operator may at first seem
+counterproductive; we want to encode away inductive types and
+recursion, yet \(\mathsf{snoc}\) is naively a recursion over an
+inductive type. Fortunately there exist encodings for lists such that
+not only does \(\mathsf{snoc}\) avoid recursion, but it is also as
+performant as cons.
+
\TODO{
\begin{itemize}
\item justify the head operator
- \item justify the snoc operator
\item justify the arb operator
\end{itemize}
}