Lambda Calculus Substitutions Flashcards

1
Q

What is the requirement for a substitution to be case 1?

A

b must be a variable

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

What is the requirement for a substitution to be case 2?

A

b must be a lambda abstraction

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

What is the requirement for a substitution to be case 3?

A

b must be an application expression

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

What property does subst(a, p, b) contain if the case is 1a?

A

p == b

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

What property does subst(a, p, b) contain if the case is 1b?

A

p != b

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

What property does subst(a, p, b) contain if the case is 2a?

A

p == x

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

What properties does subst(a, p, b) contain if the case is 2b?

A

p != x and x does not occur freely in a

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

What properties does subst(a, p, b) contain if the case is 2c?

A

p != x and x does occur freely in a

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

What property does subst(a, p, b) contain if the case is 3?

A

e1 and e2 are arbitrary lambda expressions

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

What is the evaluation of case 1a?

A

a

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

What is the evaluation of case 1b?

A

b

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

What is the evaluation of case 2a?

A

b

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

What is the evaluation of case 2b?

A

[lambda]x.subst(a, p, E)

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

What is the evaluation of case 2c?

A

The Lambda Calculus with case 2b applied, after an alpha-conversion

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

What is the evaluation of case 3?

A

(subst(a, p, e1) subst(a, p, e2))

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