First Order Language Flashcards

1
Q

What are the terms of L?

A
  1. All constant symbols
  2. All variables
  3. n-ary function symbols
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the formulas of L?

A
  1. t_1≈t_2
  2. Rt_1…t_n where R is an n-ary relation symbol
  3. ¬φ if φ is a formula
  4. (φ_1→φ_2) if φ_1 and φ_2 are formulas
  5. ∀xφ is a formula if φ is a formula
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the formulas are atomic?

A
  1. t_1≈t_2
  2. Rt_1…t_n where R is an n-ary relation symbol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the components of a model?

A

Domain of A (a non-empty set)

For every n-ary relation symbol, R^A⊆A^n

For every n-ary function symbol: A^n→A

For every constant symbol, an element c^A∈A

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

What is an assignment β?

A

β a/x (y) = β(y) if y≠x
β a/x (y) = a if y=x

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

What is an interpretation?

A

A model and assignment pair I=(A,β)

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

What are the interpretations for the terms of L?

A

If c is constant: I(c)=c^A
If x is a first order variable: I(x)=β(x)
If f is an n-ary function symbol: I(ft_1…t_n )=f^A (I(t_1 ),…,I(t_n ))

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

What are the interpretations for the formulas?

A
  1. If φ=t_1≈t_n, then I⊨t_1≈t_n⟺I(t_1 )=I(t_2)
  2. If φ=Rt_1…t_n where R is a relation symbol, then I⊨Rt_1…t_n⟺(I(t_1 ),…,I(t_n ))∈R^A
  3. If φ=¬φ, then I⊨¬φ⟺I⊭φ
  4. If φ=(ψ_1→ψ_2 ), then I⊭(ψ_1→ψ_2 )⟺I⊨ψ_1 and I⊭ψ_2
  5. If φ=∀xψ, then I⊨∀xψ ⟺ for all a∈A, I a/x⊨ψ
  6. I⊨(φ∧ψ) ⟺I⊨ φ and I⊨ψ
  7. I⊨(φ∨ψ) ⟺I⊨ φ or I⊨ψ
  8. I⊨(φ↔ψ) ⟺I⊨ φ ⟺I⊨ψ
  9. I⊨ ∃x φ ⟺ there exists a∈A such that I a/x⊨φ
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the sub formula for φ=∀xψ?

A

sub(φ) = {φ} ∪ sub(ψ).

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

What does ∃x φ abbreviate?

A

¬ ∀x ¬φ

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

What is the language of arithmetic?

A

L_ar={+,∙,0,1,<}
Domain: Q,N,Z,R

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

What are the variables of the formula φ = ∀x ψ?

A

var(φ) = var(ψ)

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

If φ = ∀x ψ, what is free(φ)?

A

free(φ) = free(ψ) \ {x}.

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

What are bounded variables?

A

The variables that occur next to the quantifier.

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

What is a sentence?

A

a formula that has no free variables.

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

What type of formula is complete?

A

Sentences

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

How can formulas be true in models?

A

a formula can be true, false, or neither true nor false

18
Q

How can sentences be true in models?

A

only true or false

19
Q

If β(x)=β ̃(x) for all x∈free(φ), then what?

A

(A,β) ⊨ φ ⟺ (A,β ̃) ⊨ φ.

20
Q

If β and β ̃ are assignments on A that agree on all variables occurring in t, then what?

A

(A,β)(t) = (A,β ̃)(t).

21
Q

What is the notation for divides in the language of arithmetic?

A

r|s (abbreviates ∃x_i r·x_i ≈ s)

22
Q

Define Logical Consequence

A

φ is a logical consequence of Γ if for every interpretation I such that I ⊨ γ for all γ∈Γ, then I ⊨ φ.

23
Q

Define logically valid

A

If I ⊨ φ for all interpretations (∅⊨φ), then ⊨φ.

24
Q

Define truth equivalent

A

For every interpretation I of L, either both I ⊨ φ and I ⊨ ψ or both I ⊭ φ and I ⊭ ψ

25
Q

Define satisfiable

A

Γ is satisfiable if there exists an interpretation I such that I ⊨ Γ.

26
Q

If γ is a tautology in propositional logic, then?

A

γ^* is a logically valid first order formula

27
Q

What is a first order tautology?

A

If φ=γ^* for a tautology γ and formula φ, then φ is a first order tautology.

28
Q

How do you substitute terms for variables?

A

If s is a constant symbol, then s t/x= s
If s is a variable and y≠x, then s t/x=s
If s is a variable and y=x, then s t/x=t
If f is a function symbol, then s t/x=fs1 t/x…sn t/x

29
Q

How do you substitute formulas for variables?

A

If φ = s_1≈s_2, then φ t/x = s_t t/x ≈ s_2 t/x
If φ = R is an n-ary relation symbol then, φ t/x = Rs_1 t/x ··· s_n t/x
If φ = ¬φ_1, then φ t/x = ¬[φ_1 t/x]
If φ = (φ_1→ φ_2), then φ t/x=(φ_1 t/x→φ_2 t/x).
If φ = ∀yφ_1 where y≠x, then φ t/x = ∀y [φ_1 t/x].
If φ = ∀xφ_1 where y=x, then φ t/x = φ.

30
Q

Define substitutable.

A

If φ t/x creates no new bound occurrence for t, then t is substitutable for x in φ.

31
Q

Define part 1 of the substitution lemma

A

For any terms s and t, any variable x, and any interpretation I of L, I(s t/x)=I I(t)/x(s)

32
Q

Define part 2 of the substitution lemma

A

I ⊨ φ t/x iff I I(t)/x ⊨ φ

33
Q

If t is substitutable for x in φ, then what is logically valid?

A

(∀xφ→φ t/x)

34
Q

For any variable x, φ is logically valid if and only if what is logically valid?

A

∀x φ

35
Q

φ is logically valid if what is logically valid?

A

∃x φ for any variable x

36
Q

φ and ψ are truth equivalent if and only if what?

A

(φ ↔ ψ) is logically valid.

37
Q

What is prenex normal form?

A

a formula that has the form Q_1 y_1…Q_n y_n ψ where Q_i∈{∀,∃}, ψ is quantifier free, and n≥0.

38
Q

Convert the following formulas to prenex normal form.
¬Qxφ
(ψ→Qxφ) and (Qxφ→ψ)
y is substitutable for x in φ: Qxφ

A

¬Qxφ ⊨=| Q ̅x¬φ.
If x ∉ free(ψ), then (ψ→Qxφ) ⊨=|Qx(ψ→φ) and (Qxφ→ψ) ⊨=|Q ̅x(φ→ψ).
If y ∉ free(φ) and y is substitutable for x in φ, then Qxφ ⊨=|Qyφ y/x.

39
Q

Convert the following formulas to prenex normal form.
(Qxφ ∧ ψ)
(ψ ∧ Qxφ)
(Qxφ ∨ ψ)
(ψ ∨ Qxφ)

A

(Qxφ ∧ ψ) ⊨=|Qx(φ ∧ ψ)
(ψ ∧ Qxφ) ⊨=|Qx(ψ ∧ φ)
(Qxφ ∨ ψ) ⊨=|Qx(φ ∨ ψ)
(ψ ∨ Qxφ) ⊨=|Qx(ψ ∨ φ)

40
Q

Every first order formula is truth equivalent to a formula in prenex normal form with what?

A

The same free variables.

41
Q

Define the quantifier number of φ for the following:
φ is atomic
φ = ¬ψ
φ = (ψ → γ)
φ = ∀xψ

A

If φ is atomic, qn(φ) = 0.
If φ = ¬ψ, then qn(φ) = qn(ψ).
If φ = (ψ → γ), then qn(φ) = qn(ψ)+qn(γ).
If φ = ∀xψ, then qn(φ) = qn(ψ)+1.

42
Q

If φ is an L-formula with qn(φ) ≤ n, then there is an L-formula ψ in prenex normal form with qn(φ) = ?, free(φ) = ? and φ ⊨=|?

A

qn(φ) = qn(ψ), free(φ) = free(ψ) and φ⊨=|ψ.