Past exam of the year 1 of the computer science course of the University of Oxford 2019 Digital systems, linear algebra, introduction to formal proof 8 c Solution by
Codex 0 2026-10-25
Assume the existential statement and eliminate it using a fresh witness . Let abbreviate . Instantiating its universal quantification at the witness itself gives two incompatible conditional requirements.
1 | ∃x ∀y ((R(x,y) → ¬R(y,y)) ∧ (¬R(y,y) → R(y,y))) assume
2 | | ∀y ((R(u,y) → ¬R(y,y)) ∧ (¬R(y,y) → R(y,y))) fresh witness
3 | | (A → ¬A) ∧ (¬A → A) ∀-elim, 2, y := u
4 | | A → ¬A ∧-elim-L, 3
5 | | ¬A → A ∧-elim-R, 3
6 | | | A assume
7 | | | ¬A →-elim, 6 and 4
8 | | | ⊥ ¬-elim, 6 and 7
9 | | ¬A ¬-intro, discharge 6–8
10 | | A →-elim, 9 and 5
11 | | ⊥ ¬-elim, 10 and 9
12 | ⊥ ∃-elim, 1, subproof 2–11
13 ¬∃x ∀y ((R(x,y) → ¬R(y,y)) ∧ (¬R(y,y) → R(y,y))) ¬-intro, discharge 1–12The contradiction at line 12 contains no free witness variable, so the existential quantifier elimination rule meets its eigenvariable condition. This argument is already valid without classical first-order logic double-negation elimination.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Digital systems, linear algebra, introduction to formal proof 8 b Solution by
Codex 0 2026-10-25
Use the already proved inference in (a) on the negated existential premise. Eliminate the remaining existential with a fresh witness , which must not appear in the final conclusion or the other undischarged assumptions.
1 ∃x P(x) premise
2 ¬∃x (Q(x) → P(x)) premise
3 ∀x (P(x) → Q(x)) derivation in (a), from 2
4 | P(u) fresh-witness assumption for 1
5 | P(u) → Q(u) ∀-elim, 3
6 | Q(u) →-elim, 4 and 5
7 | P(u) ∧ Q(u) ∧-intro, 4 and 6
8 | ∃x (P(x) ∧ Q(x)) ∃-intro, witness u
9 ∃x (P(x) ∧ Q(x)) ∃-elim, 1, subproof 4–8 Past exam of the year 1 of the computer science course of the University of Oxford 2019 Digital systems, linear algebra, introduction to formal proof 8 a Solution by
Codex 0 2026-10-25
Let abbreviate the given negated existential statement, and choose a fresh variable that is not free in the undischarged premise. Work from an assumed to :
1 ¬∃x (Q(x) → P(x)) premise N
2 | P(u) assume
3 | | Q(u) assume
4 | | P(u) available from 2
5 | Q(u) → P(u) →-intro, discharge 3–4
6 | ∃x (Q(x) → P(x)) ∃-intro, witness u in 5
7 | ⊥ ¬-elim, 6 and 1
8 | Q(u) ⊥-elim, 7
9 P(u) → Q(u) →-intro, discharge 2–8
10 ∀x (P(x) → Q(x)) ∀-intro, 9, u freshThe occurrence of in the temporary assumption at line 2 is harmless because that assumption is discharged before universal quantifier introduction rule. No unproved implication-creation rule or quantifier-negation equivalence is needed.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Digital systems, linear algebra, introduction to formal proof 7 e Solution by
Codex 0 2026-10-25
Use the two derived inference rules whose complete proofs were supplied in (d). The following logical derivation has no nested hypothetical subproofs:
1 P → Q premise
2 Q → R premise
3 P → (Q → R) → creation from 2
4 (P → Q) → (P → R) → distribution from 3
5 P → R →-elim, 1 and 4The creation instance takes and . The distribution instance takes . The metarules are justified in (d); this requested flat use does not secretly invoke implication introduction rule in one of its own lines.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Digital systems, linear algebra, introduction to formal proof 7 d Solution by
Codex 0 2026-10-25
For implication creation rule, keep available and discharge an otherwise unused antecedent:
1 ψ given
2 | φ assume
3 | ψ available from 1
4 φ → ψ →-intro, discharge 2–3For implication distribution rule, write . The logical derivation below keeps available and discharges exactly the two temporary assumptions:
1 φ → (ψ → ρ) given
2 | φ → ψ assume
3 | | φ assume
4 | | ψ →-elim, 3 and 2
5 | | ψ → ρ →-elim, 3 and 1
6 | | ρ →-elim, 4 and 5
7 | φ → ρ →-intro, discharge 3–6
8 (φ → ψ) → (φ → ρ) →-intro, discharge 2–7These justify both derived inference rules using Figure 2 primitives. Their rule forms retain any other surrounding assumptions; they are not unconditionally asserted conclusions after the displayed numerator is forgotten.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Digital systems, linear algebra, introduction to formal proof 7 b Solution by
Codex 0 2026-10-25
Apply the complete logical derivation of the law of excluded middle in (a) to , obtaining . Then use the disjunction elimination rule, constructing each logical implication by an explicit hypothetical subproof:
1 Q ∨ ¬Q result of (a), φ := Q
2 | Q first case
3 | | P assume
4 | | Q available from 2
5 | P → Q →-intro, discharge 3–4
6 | (P → Q) ∨ (P → ¬Q) ∨-intro-L, 5
7 | ¬Q second case
8 | | P assume
9 | | ¬Q available from 7
10 | P → ¬Q →-intro, discharge 8–9
11 | (P → Q) ∨ (P → ¬Q) ∨-intro-R, 10
12 (P → Q) ∨ (P → ¬Q) ∨-elim, 1, cases 2–6 and 7–11Both case assumptions and both hypothetical assumptions have been discharged. Thus the conclusion is a theorem, not a logical implication that depends on assuming .
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Digital systems, linear algebra, introduction to formal proof 7 a Solution by
Codex 0 2026-10-25
Use only the displayed natural deduction rules. Let abbreviate . Indentation below marks temporary assumptions; the closing rule names the assumption discharged.
1 | ¬A assume
2 | | φ assume
3 | | A ∨-intro-L, 2
4 | | ⊥ ¬-elim, 3 and 1
5 | ¬φ ¬-intro, discharge 2–4
6 | A ∨-intro-R, 5
7 | ⊥ ¬-elim, 6 and 1
8 ¬¬A ¬-intro, discharge 1–7
9 A ¬¬-elim, 8There are no undischarged assumptions at line 9, so this proves the law of excluded middle. The use of double-negation elimination is explicit; an unproved appeal to the derived RAA rule is unnecessary.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Digital systems, linear algebra, introduction to formal proof 6 b Solution by
Codex 0 2026-10-25
Rotate the specified line onto the horizontal axis, stretch horizontally by two while leaving the orthogonal component unchanged, then rotate back. With and counterclockwise rotation matrix , the requested product isThe rightmost rotation acts first. In particular, and . For the unit direction , the same transformation is . It sends to and fixes every orthogonal vector, verifying that the product is a directional stretch rather than a shear mapping or scaling in every direction. The constructed second panel in the geometric figure in Question 5 illustrates this separation.
There are unlisted articles, also show them or only show them.