Skip to content
The Lumenary

Practice · Early undergraduate

First-order logic

First-order logic

Warm-upHuman

In the signature of fields {+,⋅,−,0,1}\{+, \cdot, -, 0, 1\}, which sentence says "every non-zero element has a multiplicative inverse"?

Choose one

First-order logic

Warm-upHuman

Let C=({1,2,3},E)\mathcal{C} = (\{1, 2, 3\}, E) with E={(1,2),(2,3),(3,1)}E = \{(1,2), (2,3), (3,1)\} (a directed triangle). Which sentences are true in C\mathcal{C}? Choose all that apply.

Choose all that apply

First-order logic

CoreHuman

Which of these properties of a structure (M,<)(M, <) can be expressed by a single first-order sentence in the signature {<}\{<\}? Choose all that apply.

Choose all that apply

First-order logic

CoreHuman

Which statement is the soundness theorem?

Choose one

First-order logic

CoreHuman

Someone "derives" P(y)⊢∀x P(x)P(y) \vdash \forall x\, P(x) as follows: (1) P(y)⊢P(y)P(y) \vdash P(y) by assumption; (2) P(y)⊢∀x P(x)P(y) \vdash \forall x\, P(x) by ∀\forallI. Which statement is right?

Choose one

First-order logic

CoreHuman

Which sentence proves that (Z,<)(\mathbb{Z}, <) and (Q,<)(\mathbb{Q}, <) are not isomorphic?

Choose one

First-order logic

StretchFormal

In the Lean formalisation, the rule allI : Derivable (Γ.map Formula.shift) φ → Derivable Γ (.all φ) shifts every assumption (variable ii becomes i+1i + 1) before deriving the body φ. What does the shift achieve?

Choose one

First-order logic

CoreComputational

On a finite domain, quantifiers are loops. Write forall(domain, pred) and exists(domain, pred), and use them to write serial(domain, rel), which decides ∀x ∃y R(x,y)\forall x\, \exists y\ R(x, y) for a relation rel given as a set of pairs, and has_hub(domain, rel), which decides ∃y ∀x R(x,y)\exists y\, \forall x\ R(x, y).

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.