summaryrefslogtreecommitdiff
path: root/sec/encoding.ltx
diff options
context:
space:
mode:
authorChloe Brown <chloe.brown.00@outlook.com>2025-06-26 14:49:17 +0100
committerChloe Brown <chloe.brown.00@outlook.com>2025-06-26 14:49:17 +0100
commitde3138bfe231b3bcf052eec12216957b8e7a12ef (patch)
treeba1edf3692165b83d3d7544be38ad9b99390b0c1 /sec/encoding.ltx
parent71e72351e17ce41ae56b69c095858e395e5ef917 (diff)
Fix 653--655.
Diffstat (limited to 'sec/encoding.ltx')
-rw-r--r--sec/encoding.ltx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sec/encoding.ltx b/sec/encoding.ltx
index 079027a..2d32f30 100644
--- a/sec/encoding.ltx
+++ b/sec/encoding.ltx
@@ -392,9 +392,9 @@ let compose' (depth, heap) =
In this phase we remove sums from the language by encoding them as
tagged C-style unions, following the work of \textcite{oleg}. We
-encode the type \(\sum_i A_i\) by the pair \(\nat \times \bigsqcup_i A_i\) of
-a tag indicating which case we are in, and a union which can contain a
-value from any case.
+encode the type \(\sum_{\ell \in I} A_\ell\) by the pair \(\nat \times \bigsqcup_{\ell \in I} A_\ell\)
+of a tag indicating the variant, and a union which can contain a value
+from any variant.
Unions have two operators: \(\mathsf{inj}~i~t\) and
\(\mathsf{prj}~t~i\) for injecting and projecting values at type