The Lumenary · Early undergraduate
First-order logic
Name: ______________________
Date: ______________________
You will learn to
- Write first-order formulas in a given signature, such as the axioms for groups, linear orders and fields, and recognise statements that are not first-order
- Decide whether a sentence is true in a given structure by unwinding the definition of satisfaction
- Use natural deduction to derive simple consequences, and prove the soundness theorem
- Prove that isomorphic structures satisfy the same sentences, and use sentences and countermodels to show non-isomorphism and non-derivability
- State Gödel's completeness theorem and distinguish from
- 1.
In the signature of fields , which sentence says "every non-zero element has a multiplicative inverse"?
- A.
- B.
- C.
- D.
- 2.
Let with (a directed triangle). Which sentences are true in ? Choose all that apply.
- A.
- B.
- C.
- D.
- E.
- 3.
Which of these properties of a structure can be expressed by a single first-order sentence in the signature ? Choose all that apply.
- A.There is a least element.
- B.Between any two elements there is a third.
- C.Every non-empty subset has a least element.
- D.There are exactly three elements.
- E.There are only finitely many elements.
- 4.
Which statement is the soundness theorem?
- A.If then .
- B.If then .
- C.Every consistent theory has a model.
- D.There is an algorithm deciding whether .
- 5.
Someone "derives" as follows: (1) by assumption; (2) by I. Which statement is right?
- A.Step 2 is illegal: I requires that is not free in the assumptions, but is free in .
- B.The derivation is correct.
- C.Step 1 is illegal: one cannot assume a formula with a free variable.
- D.It needs E instead of I.
- 6.
Which sentence proves that and are not isomorphic?
- A.
- B.
- C.
- D."There are countably many elements."
- 7.
In the Lean formalisation, the rule
allI : Derivable (Γ.map Formula.shift) φ → Derivable Γ (.all φ)shifts every assumption (variable becomes ) before deriving the bodyφ. What does the shift achieve?- A.It makes the de Bruijn variable fresh — it occurs free in no assumption — which is the eigenvariable condition of I.
- B.It renames bound variables to avoid capture during substitution.
- C.It weakens the assumptions, so that fewer formulas are derivable.
- D.Nothing: it is needed only to make the types match.
- 8.
On a finite domain, quantifiers are loops. Write
forall(domain, pred)andexists(domain, pred), and use them to writeserial(domain, rel), which decides for a relationrelgiven as a set of pairs, andhas_hub(domain, rel), which decides .Computational — Practice