Beruflich Dokumente
Kultur Dokumente
show that every interpretation that makes X true also makes Y true
by giving:
an informal argument or
1
Valid Rules of Inference for Quantifiers [Epp 3.4, Grimaldi 2.5]
1. Universal Instantiation (Specification)
∀x ∈ D, P (x)
∴ P (a) where a is any particular element of D
2. Universal Generalization
4. Existential Generalization
∀x ∈ D, (P (x) → Q(x))
P (a) where a is an element of D
∴ Q(a)
∀x ∈ D, (P (x) → Q(x))
∼ Q(a) where a is an element of D
∴ ∼ P (a)
7. Universal Transitivity
∀x ∈ D, (P (x) → Q(x))
∀x ∈ D, (Q(x) → R(x))
∴ ∀x ∈ D, (P (x) → R(x))
2
Proofs in Predicate Logic
3
Example: The domain of all variables is D.
3. C(a)∧ ∼ B(a) 1, EI
4. C(a) 3, Specialization
6. ∼ B(a) 3, Specialization
4
Example: The domain of all variables is D.
5
Logic and Theoretical Computer Science
6
Example: Transforming an instance of exam scheduling to a SAT instance
The problem:
Given integers n and k, and a set of conflicts: C = {(i, j) | where 1 ≤ i <
j ≤ n and exam i cannot be scheduled at the same time as exam j},
can n exams be scheduled in k timeslots such that no conflicting exams are
scheduled in the same timeslot?