2 Commits

Author SHA1 Message Date
7d5b39f130 Make most tables not wrap on small screens 2022-09-10 23:56:08 -07:00
dd8c846b3e Fix typo in the polymorphism article 2022-09-10 17:20:09 -07:00
4 changed files with 6 additions and 2 deletions

View File

@@ -428,6 +428,7 @@ and already be up-to-speed on a big chunk of the content.
{{< /block >}}
#### Rules
{{< foldtable >}}
| Rule | Description |
|--------------|-------------|
| {{< latex >}}s : \text{string} {{< /latex >}}| String literals have type \\(\\text{string}\\) |

View File

@@ -58,12 +58,13 @@ __generalization__ and __instantiation__. It's been quite a while since the last
to present a table with these new rules, as well as all of the ones that we
{{< sidenote "right" "rules-note" "previously used." >}}
The rules aren't quite the same as the ones we used earlier;
note that \\(\sigma\\) is used in place of \\(\tau\\) in the first rule,
note that \(\sigma\) is used in place of \(\tau\) in the first rule,
for instance. These changes are slight, and we'll talk about how the
rules work together below.
{{< /sidenote >}} I will also give a quick
summary of each of these rules.
{{< foldtable >}}
Rule|Name and Description
-----|-------
{{< latex >}}

View File

@@ -219,6 +219,7 @@ Here, we may as well go through the three constructors to explain what they mean
Now it's time for some fun! The UCC language specification starts by defining two values:
true and false. Why don't we do the same thing?
{{< foldtable >}}
|UCC Spec| Coq encoding |
|---|----|
|\\(\\text{false}\\)=\\([\\text{drop}]\\)| {{< codelines "Coq" "dawn/Dawn.v" 41 42 >}}
@@ -257,6 +258,7 @@ element, as specified. The proof for \\(\\text{true}\\) is very similar in spiri
We can also formalize the \\(\\text{or}\\) operator:
{{< foldtable >}}
|UCC Spec| Coq encoding |
|---|----|
|\\(\\text{or}\\)=\\(\\text{clone}\\ \\text{apply}\\)| {{< codelines "Coq" "dawn/Dawn.v" 65 65 >}}