diff --git a/src/Stlc.lagda b/src/Stlc.lagda index 444c814b..29e4c6e3 100644 --- a/src/Stlc.lagda +++ b/src/Stlc.lagda @@ -8,7 +8,6 @@ permalink : /Stlc module Stlc where \end{code} - # The Simply Typed Lambda-Calculus @@ -161,13 +159,9 @@ so we will STLC's function type as `_⇒_`. data Type : Set where bool : Type _⇒_ : Type → Type → Type -\end{code} - ### Terms @@ -194,21 +188,20 @@ to Agda (and other functional languages like ML, Haskell, etc.), which use _type inference_ to fill in missing annotations. We're not considering type inference here. -Some examples... +We introduce $$x, y, z$$ as names for variables. The pragmas ensure +that $$id 0, id 1, id 2$$ display as $$x, y, z$$. \begin{code} x = id 0 y = id 1 z = id 2 -\end{code} - + +Some examples... $$\text{idB} = \lambda x:bool. x$$.