Switch more posts to work with KaTeX and the latex macro
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-04 14:07:05 -08:00
parent 80d722568e
commit 67ecc741d0
5 changed files with 174 additions and 123 deletions

View File

@@ -36,12 +36,13 @@ if (if True False True) 11 3
This is because, for this to work, both of the following would need to hold (borrowing
some of our notation from the [typechecking]({{< relref "03_compiler_typechecking.md" >}}) post):
$$
\\text{if} : \\text{Int} \\rightarrow \\text{Int}
$$
$$
\\text{if} : \\text{Bool} \\rightarrow \\text{Bool}
$$
{{< latex >}}
\text{if} : \text{Int} \rightarrow \text{Int}
{{< /latex >}}
{{< latex >}}
\text{if} : \text{Bool} \rightarrow \text{Bool}
{{< /latex >}}
But using our rules so far, such a thing is impossible, since there is no way for
\\(\text{Int}\\) to be unified with \\(\text{Bool}\\). We need a more powerful