9. Unification Flashcards

1
Q

What is a matching problem?

A

Given a pattern and a target, find a substitution such that: pattern[substitution] == target

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

pattern: s(X) + Y target: s(0) + s(0) what is the substitution?

A

[0/X, s(0)/Y]

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

What does this mean?

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

What does this mean?

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

What does vars(t) this mean?

A

The set of all free variables in t

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

What does Vars mean?

A

the set of (all) free variables

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

What is vars(f(X, Y, g(a, Z, X))?

A

{X, Y, Z}

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

What is vars(f(a, b, c))?

A

{}

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

What does it mean for the pattern and target to be ‘standardised apart’ for matching?

A

vars(pattern) ∩ vars(target) = {}

Change the variable names in pattern so they arn’t any with the same name as in target.

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

Before/after/condition of decompose

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

Before/after/condition of conflict

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

Before/after/condition of eliminate

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

Before/after/condition of delete

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

What is the unification problem?

A

term1[substitution] == term2[subsitution]

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

Before/after/condition of switch?

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

Before/after/condition of occurs check?

A
17
Q

Before/after/condition of coalesce?

A
18
Q

What do the conditions of the unification algorithm ensure?

A

At most one rule applys

19
Q

What is the termination condition of the unification algorthm?

A

No further rules apply

20
Q

What is the definition of an mgu theta, given two terms s and t?

A
21
Q

Before/after/condition of mutate rule (for commutativity)?

A
22
Q

What is unitary? (mgu)

A

Single mgu (or none)

23
Q

What is finitary? (mgu)

A

Finite number of mgu’s

24
Q

What is infinitary? (mgu)

A

Possibly infinite mgu’s

25
Q

What is nullary? (mgu)

A

No mgu’s exist (unifiers may still exist)

26
Q

What type (mgu) and is it decidable: unification (no extensions)

A

unitary and decidable

27
Q

What type (mgu) and is it decidable: unification with commutivity

A

finitary and decidable

28
Q

What type (mgu) and is it decidable: unification with lambda calculus

A

infinitary and undecidable