Skip to content

Commit

Permalink
fix typo in 3.14 (hmemcpy#340)
Browse files Browse the repository at this point in the history
* fix typo in 3.14

* run prettier
  • Loading branch information
kkinugasa authored Oct 8, 2024
1 parent 8765d97 commit d13765c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ feature-flags.

Afterwards, type `nix flake show` in the root directory of the project to see
all the available versions of this book. Then type `nix build .#<edition>` to
build the edition you want (Scala, OCaml, Reason and their printed
versions). For example, to build the Scala edition you'll have to type
build the edition you want (Scala, OCaml, Reason and their printed versions).
For example, to build the Scala edition you'll have to type
`nix build .#ctfp-scala`. For Haskell (the original version) that is just
`nix build .#ctfp`.

Expand Down
4 changes: 2 additions & 2 deletions src/content/3.14/lawvere-theories.tex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ \section{Universal Algebra}
Lawvere theory $\cat{L}$: an object in the category $\cat{Law}$.
\item
Model $M$ of a Lawvere category: an object in the category\\
$\cat{Mod}(\cat{Law}, \Set)$.
$\cat{Mod}(\cat{L}, \Set)$.
\end{enumerate}

\begin{figure}[H]
Expand Down Expand Up @@ -352,7 +352,7 @@ \section{Lawvere Theories and Monads}
\[\cat{L}(n, -) \Colon \cat{L} \to \Set\]
To show that it's indeed free, all we have to do is to prove that it's a
left adjoint to the forgetful functor:
\[\cat{Mod}(\cat{L}(n, -), M) \cong \Set(n, U(M))\]
\[\cat{Mod}(\cat{L}, \Set)(\cat{L}(n, -), M) \cong \Set(n, U(M))\]
Let's simplify the right hand side:
\[\Set(n, U(M)) \cong \Set(n, M 1) \cong (M 1)^n \cong M n\]
(I used the fact that a set of morphisms is isomorphic to the
Expand Down

0 comments on commit d13765c

Please sign in to comment.