Sections 2.3 and 2.4 Flashcards

1
Q

A redex that can’t be reduced further is in ____ form.

A

normal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: For a given lambda expression reducible to a normal form, every reduction terminates.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A non-terminating reduction sequence is like a ____ in an imperative program.

A

infinite loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False: The normal form, if it exists, is unique.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If a lambda expression E is reducible to both E1 and E2, what is true about E1 and E2?

A

E1 and E2 are reducible to E3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The previous property is known as ____

A

The Church-Rosser Theorem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Normal order reduction reduces the ____ redex first.

A

leftmost outermost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Using normal order reduction, the next redex to reduce in z (((λx. x x) u) ((λy. y) v)) is ____.

A

(λx. x x) u

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

True or False: Normal order reduction of an expression will reduce it to normal form, if it exists.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

True or False: Normal order reduction produces the fewest number of reductions.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The lambda calculus provides no facility for ____ expressions.

A

naming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In the equality FAC = H FAC, FAC is a ____ of H.

A

fixed point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or False: The fixed point of a function is unique

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or False: The equality in the equation FAC = H FAC is syntactic equality.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Y produces the ____ fixed-point of a function.

A

least

How well did you know this?
1
Not at all
2
3
4
5
Perfectly