Question 1 @ 2024-01-30 18:17
Using our WAE language semantics, which of these expressions will evaluate to 1?
-
{with {x 1} {with {x 2} x}}
-
{with {x 2} {with {x 1} x}}
-
{with {x 1} {with {x x} x}}
-
{with {x x} {with {x 1} x}}
-
{with {x x} 1}
Question 2 @ 2024-01-30 18:21
In our WAE language, which of the following evaluations would lead to an error?
-
{with {x x} 1}
-
{with {x x} x}
-
{with {x 1} {with {x x} x}}
-
{with {x {with {x 1} x}} x}
Question 3 @ 2024-01-30 18:25
{with {x x} {+ x y}}
For the four identifiers in this WAE expression (x
, x
, x
, y
),
what are they (in order)?
- Bound-Bound-Free-Free
- Free-Bound-Bound-Free
- Binding-Binding-Bound-Bound
- Binding-Free-Bound-Free
- Binding-Free-Bound-Bound
- Binding-Bound-Bound-Free
Question 4 @ 2024-01-30 18:27
{with {x x} {+ x y}}
In the same WAE expression, what about the +
?
It is…
- Free.
- Bound.
- Binding.
- Not an identifier.
- A punctuation, so not an identifier.
- A function name.
Question 5 @ 2024-01-30 18:31
How does the following expression gets translated to our de-Bruijn index notation?
{with {x {with {x 1} x}} {with {x x} x}}
-
{with {x {with {x 1} [0]}} {with {x [1]} [2]}}
-
{with {x {with {x 1} [0]}} {with {x [0]} [0]}}
-
{with {x {with {x 1} [1]}} {with {x [1]} [1]}}
-
{with {with 1 [0]} {with [1] [2]}}
-
{with {with 1 [0]} {with [0] [0]}}
-
{with {with 1 [1]} {with [1] [1]}}