Course handouts: Discrete Math , Qinxiang Cao — notes of Mar 30, Apr 13, Apr 20, Apr 22, Apr 27, May 6, May 9, May 11 (2026). Topics: translating natural language into logic, single-step proofs, interpreting informal proofs, a formal proof system for propositional logic, first-order quantifier rules and derived properties, and the syntax of first-order logic.
Universal statement.
Natural language: In this class, every student in this class has already studied calculus.
Predicate symbols: S ( t ) S(t) S ( t ) = "t t t is a student in this class"; C ( t ) C(t) C ( t ) = "t t t has already studied calculus".
Logic expression: ∀ x . S ( x ) → C ( x ) \forall x.\ S(x) \to C(x) ∀ x . S ( x ) → C ( x ) .
Existential statement.
Natural language: Some US students in this class have visited Mexico.
Predicate symbols: U ( t ) U(t) U ( t ) = "t t t is a US student in this class"; M ( t ) M(t) M ( t ) = "t t t has visited Mexico".
Logic expression: ∃ x . U ( x ) ∧ M ( x ) \exists x.\ U(x) \land M(x) ∃ x . U ( x ) ∧ M ( x ) .
Nested quantifiers.
Natural language: For every student in SAI, a research mentor will be assigned to him or her from his or her first year.
Predicate symbols: S ( t ) S(t) S ( t ) = "t t t is a student in SAI"; M ( t 1 , t 2 ) M(t_1, t_2) M ( t 1 , t 2 ) = "t 2 t_2 t 2 is the research mentor of t 1 t_1 t 1 ".
Logic expression: ∀ x . ( S ( x ) → ∃ y . M ( x , y ) ) \forall x.\ (S(x) \to \exists y.\ M(x, y)) ∀ x . ( S ( x ) → ∃ y . M ( x , y )) .
Constant symbols (lions).
Natural language: Lions are fierce. Lions do not drink coffee. Some fierce creatures do not drink coffee.
Constant symbol c L c_L c L = "lions"; predicate symbols: F ( t ) F(t) F ( t ) = "t t t is fierce"; D ( t ) D(t) D ( t ) = "t t t drink coffee".
Logic expressions: F ( c L ) F(c_L) F ( c L ) ; ¬ D ( c L ) \neg D(c_L) ¬ D ( c L ) ; ∃ x . F ( x ) ∧ ¬ D ( x ) \exists x.\ F(x) \land \neg D(x) ∃ x . F ( x ) ∧ ¬ D ( x ) .
Uniqueness.
Natural language: In this class, there is a unique student who got full marks in the final exam.
Predicate symbols: S ( t ) S(t) S ( t ) = "t t t is a student in this class"; F ( t ) F(t) F ( t ) = "t t t got full marks in the final exam".
Logic expression: ∃ x . ( ( S ( x ) ∧ F ( x ) ) ∧ ∀ y . ( ( S ( y ) ∧ F ( y ) ) → y = x ) ) \exists x.\ ((S(x) \land F(x)) \land \forall y.\ ((S(y) \land F(y)) \to y = x)) ∃ x . (( S ( x ) ∧ F ( x )) ∧ ∀ y . (( S ( y ) ∧ F ( y )) → y = x )) .
Injectivity. The function f f f is injective (function symbol f ( t ) f(t) f ( t ) = "the value of function f f f at t t t "): ∀ x . ∀ y . ( f ( x ) = f ( y ) → x = y ) \forall x. \forall y.\ (f(x) = f(y) \to x = y) ∀ x .∀ y . ( f ( x ) = f ( y ) → x = y ) .
Surjectivity. The function f f f is surjective : ∀ y . ∃ x . ( f ( x ) = y ) \forall y. \exists x.\ (f(x) = y) ∀ y .∃ x . ( f ( x ) = y ) .
Notation. If Φ \Phi Φ is a set of propositions and ψ \psi ψ is one single proposition, we write Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ representing: we can derive ψ \psi ψ from Φ \Phi Φ .
Single-step proof patterns (the connective word driving each step is highlighted in red in the original):
Assumption Conclusion Logic T T T is a tree, i.e. connected and has no simple loopT T T is connectedp ∧ q ⊢ p p \land q \vdash p p ∧ q ⊢ p u u u is v v v 's descendantu u u is in the subtree at v v v , i.e. u u u is either v v v itself or v v v 's descendantp ⊢ p ∨ q p \vdash p \lor q p ⊢ p ∨ q (none) π e \pi^e π e is a rational number or a irrational number⊢ p ∨ ¬ p \vdash p \lor \neg p ⊢ p ∨ ¬ p Every human being is mortal Socrates is mortal ∀ x . M ( x ) ⊢ M ( c ) \forall x.\ M(x) \vdash M(c) ∀ x . M ( x ) ⊢ M ( c ) Two is an even prime number There exists an even prime number E ( c ) ∧ P ( c ) ⊢ ∃ x . ( E ( x ) ∧ P ( x ) ) E(c) \land P(c) \vdash \exists x.\ (E(x) \land P(x)) E ( c ) ∧ P ( c ) ⊢ ∃ x . ( E ( x ) ∧ P ( x ))
Example. Proof of ∀ ε > 0 , ∃ N , ∀ n > N , ∣ 1 n ∣ < ε \forall \varepsilon > 0, \exists N, \forall n > N, \left|\frac{1}{n}\right| < \varepsilon ∀ ε > 0 , ∃ N , ∀ n > N , n 1 < ε :
Given a fixed ε > 0 \varepsilon > 0 ε > 0 ⟨red⟩, let N = [ 1 ε ] + 1 N = \left[\frac{1}{\varepsilon}\right] + 1 N = [ ε 1 ] + 1 ⟨blue⟩, then for any n > N n > N n > N ,
∣ 1 n ∣ = 1 n < 1 N < 1 1 ε = ε . \left|\frac{1}{n}\right| = \frac{1}{n} < \frac{1}{N} < \frac{1}{\frac{1}{\varepsilon}} = \varepsilon. n 1 = n 1 < N 1 < ε 1 1 = ε .
Qed. (In the original the first phrase is printed in red and the second in blue; the analyses below refer to these colors.)
Analysis A (the red phrase).
At the beginning, the proof target is:
Assumptions: all math theorems (we call it Φ \Phi Φ ).
Conclusion: ∀ ε \forall \varepsilon ∀ ε , if ε > 0 \varepsilon > 0 ε > 0 , then ∃ N , ∀ n > N , ∣ 1 n ∣ < ε \exists N, \forall n > N, \left|\frac{1}{n}\right| < \varepsilon ∃ N , ∀ n > N , n 1 < ε — which can be formulated by ∀ x . ( P ( x ) → Q ( x ) ) \forall x.\ (P(x) \to Q(x)) ∀ x . ( P ( x ) → Q ( x )) .
After the red phrase, the proof target is:
Assumptions: all math theorems (we call it Φ \Phi Φ ) and ε > 0 \varepsilon > 0 ε > 0 (formulated as P ( x ) P(x) P ( x ) ).
Conclusion: ∃ N , ∀ n > N , ∣ 1 n ∣ < ε \exists N, \forall n > N, \left|\frac{1}{n}\right| < \varepsilon ∃ N , ∀ n > N , n 1 < ε (formulated as Q ( x ) Q(x) Q ( x ) ).
Logic: If Φ , P ( x ) ⊢ Q ( x ) \Phi, P(x) \vdash Q(x) Φ , P ( x ) ⊢ Q ( x ) then Φ ⊢ ∀ x . ( P ( x ) → Q ( x ) ) \Phi \vdash \forall x.\ (P(x) \to Q(x)) Φ ⊢ ∀ x . ( P ( x ) → Q ( x )) .
Analysis B (the blue phrase).
Before the blue phrase, the proof target is:
Assumptions: all math theorems and ε > 0 \varepsilon > 0 ε > 0 (we call them Φ \Phi Φ ).
Conclusion: ∃ N , ∀ n > N , ∣ 1 n ∣ < ε \exists N, \forall n > N, \left|\frac{1}{n}\right| < \varepsilon ∃ N , ∀ n > N , n 1 < ε (formulated as ∃ x . P ( x ) \exists x. P(x) ∃ x . P ( x ) ).
After the blue phrase, the proof target is:
Assumptions: all math theorems and ε > 0 \varepsilon > 0 ε > 0 (we call them Φ \Phi Φ ).
Conclusion: ∀ n > [ 1 ε ] + 1 , ∣ 1 n ∣ < ε \forall n > \left[\frac{1}{\varepsilon}\right] + 1, \left|\frac{1}{n}\right| < \varepsilon ∀ n > [ ε 1 ] + 1 , n 1 < ε (formulated as P ( t ) P(t) P ( t ) ).
Logic: If Φ ⊢ P ( t ) \Phi \vdash P(t) Φ ⊢ P ( t ) then Φ ⊢ ∃ x . P ( x ) \Phi \vdash \exists x.\ P(x) Φ ⊢ ∃ x . P ( x ) .
Example. Proof of:
¬ ∃ x ∈ N . ∃ y ∈ N . gcd ( x , y ) = 1 and x 2 = 2 y 2 . \neg\ \exists x \in \mathbb{N}.\ \exists y \in \mathbb{N}.\ \gcd(x, y) = 1 \text{ and } x^2 = 2y^2. ¬ ∃ x ∈ N . ∃ y ∈ N . g cd( x , y ) = 1 and x 2 = 2 y 2 .
(The word "and" is printed as the English word in the source statement, not as ∧ \land ∧ .)
Suppose there exists x ∈ N x \in \mathbb{N} x ∈ N and y ∈ N y \in \mathbb{N} y ∈ N s.t. x 2 = 2 y 2 x^2 = 2y^2 x 2 = 2 y 2 ⟨red⟩. Thus, x x x must be an even number ⟨blue⟩ and we can assume x = 2 x 0 x = 2x_0 x = 2 x 0 ⟨red⟩. Now, we have y 2 = 2 x 0 2 y^2 = 2x_0^2 y 2 = 2 x 0 2 . Thus, y y y must be an even number too and we can assume y = 2 y 0 y = 2y_0 y = 2 y 0 . Therefore, gcd ( x , y ) ≠ 1 \gcd(x, y) \neq 1 g cd( x , y ) = 1 . Qed.
Step-by-step analysis (each proof step paired with the logic rule it instantiates; colors match the marked phrases):
Proof step ⟨red, the "Suppose" sentence⟩: In order to prove ¬ ∃ x ∈ N . ∃ y ∈ N . gcd ( x , y ) = 1 \neg\ \exists x \in \mathbb{N}.\ \exists y \in \mathbb{N}.\ \gcd(x, y) = 1 ¬ ∃ x ∈ N . ∃ y ∈ N . g cd( x , y ) = 1 and x 2 = 2 y 2 x^2 = 2y^2 x 2 = 2 y 2 , it suffices to prove that if x ∈ N x \in \mathbb{N} x ∈ N , y ∈ N y \in \mathbb{N} y ∈ N and x 2 = 2 y 2 x^2 = 2y^2 x 2 = 2 y 2 then gcd ( x , y ) ≠ 1 \gcd(x, y) \neq 1 g cd( x , y ) = 1 .
Logic: If Φ , P ( x ) , P ( y ) , Q ( x , y ) ⊢ ¬ R ( x , y ) \Phi, P(x), P(y), Q(x, y) \vdash \neg R(x, y) Φ , P ( x ) , P ( y ) , Q ( x , y ) ⊢ ¬ R ( x , y ) , then Φ ⊢ ¬ ∃ x . ( P ( x ) ∧ ∃ y . ( P ( y ) ∧ Q ( x , y ) ∧ R ( x , y ) ) ) \Phi \vdash \neg \exists x.\ (P(x) \land \exists y. (P(y) \land Q(x, y) \land R(x, y))) Φ ⊢ ¬∃ x . ( P ( x ) ∧ ∃ y . ( P ( y ) ∧ Q ( x , y ) ∧ R ( x , y ))) .
Proof step ⟨blue⟩: If x 2 = 2 y 2 x^2 = 2y^2 x 2 = 2 y 2 , then x x x is an even number. The sentence itself is a math fact.
Logic (considering its role in the whole proof): If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ , then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ .
Proof step ⟨red, "we can assume x = 2 x 0 x = 2x_0 x = 2 x 0 "⟩: Because there exists x 0 ∈ N x_0 \in \mathbb{N} x 0 ∈ N s.t. x = 2 x 0 x = 2x_0 x = 2 x 0 , we can use x 0 x_0 x 0 to represent this natural number in later proofs.
Logic: If Φ , P ( x ) ⊢ ψ \Phi, P(x) \vdash \psi Φ , P ( x ) ⊢ ψ , then Φ , ∃ x . P ( x ) ⊢ ψ \Phi, \exists x.\ P(x) \vdash \psi Φ , ∃ x . P ( x ) ⊢ ψ . (Printed with no explicit side condition.)
Quiz. Here is an segment of Prim algorithm's correctness proof. Assuming there exists a minimum spanning tree T ∗ T^* T ∗ such that T n T_n T n is a subgraph of T ∗ T^* T ∗ , we need to show that there also exists a minimum spanning tree (maybe different from T ∗ T^* T ∗ ) such that T n + 1 T_{n+1} T n + 1 is a subgraph of it.
Choose an arbitrary minimum spanning tree T ∗ T^* T ∗ such that T n T_n T n is a subgraph of T ∗ T^* T ∗ .
If T n + 1 T_{n+1} T n + 1 is a subgraph of T ∗ T^* T ∗ , then we are done. Otherwise, we can always change an edge in T ∗ T^* T ∗ so that T n + 1 T_{n+1} T n + 1 is a subgraph of T ∗ T^* T ∗ . Here is how to change the edge.
Since T n + 1 T_{n+1} T n + 1 is not a subgraph of T ∗ T^* T ∗ , e n + 1 e_{n+1} e n + 1 (which connects u n + 1 u_{n+1} u n + 1 and v n + 1 v_{n+1} v n + 1 ) is not an edge in T ∗ T^* T ∗ . Because T ∗ T^* T ∗ is a spanning tree, there is a path in T ∗ T^* T ∗ between u n + 1 u_{n+1} u n + 1 and v n + 1 v_{n+1} v n + 1 . On this path, there must be an edge e ∗ e^* e ∗ leaving V n V_n V n .
w ( e ∗ ) = w ( e n + 1 ) w(e^*) = w(e_{n+1}) w ( e ∗ ) = w ( e n + 1 ) .
So, T ∗ ∖ { e ∗ } ∪ { e n + 1 } T^* \setminus \{e^*\} \cup \{e_{n+1}\} T ∗ ∖ { e ∗ } ∪ { e n + 1 } is another minimum spanning tree.
Besides, T n + 1 T_{n+1} T n + 1 is a subgraph of T ∗ ∖ { e ∗ } ∪ { e n + 1 } T^* \setminus \{e^*\} \cup \{e_{n+1}\} T ∗ ∖ { e ∗ } ∪ { e n + 1 } .
Please describe the logic behind each step.
Answer (each proof step paired with the logic rule it instantiates):
Proof step: Choose an arbitrary minimum spanning tree T ∗ T^* T ∗ such that T n T_n T n is a subgraph of T ∗ T^* T ∗ .
Logic: If Φ , P ( x ) ⊢ ψ \Phi, P(x) \vdash \psi Φ , P ( x ) ⊢ ψ , then Φ , ∃ x . P ( x ) ⊢ ψ \Phi, \exists x.\ P(x) \vdash \psi Φ , ∃ x . P ( x ) ⊢ ψ .
Proof step: If T n + 1 T_{n+1} T n + 1 is a subgraph of T ∗ T^* T ∗ , then ... . Otherwise, ... .
Logic: If Φ , φ ⊢ ψ \Phi, \varphi \vdash \psi Φ , φ ⊢ ψ and Φ , ¬ φ ⊢ ψ \Phi, \neg\varphi \vdash \psi Φ , ¬ φ ⊢ ψ , then Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ .
Proof step: We can always change an edge in T ∗ T^* T ∗ so that T n + 1 T_{n+1} T n + 1 is a subgraph of T ∗ T^* T ∗ .
Describe the proof strategy afterwards.
Proof step: Since T n + 1 T_{n+1} T n + 1 is not a subgraph of T ∗ T^* T ∗ , e n + 1 e_{n+1} e n + 1 (which connects u n + 1 u_{n+1} u n + 1 and v n + 1 v_{n+1} v n + 1 ) is not an edge in T ∗ T^* T ∗ .
Logic: If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ , then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ .
Proof step: Because T ∗ T^* T ∗ is a spanning tree, there is a path in T ∗ T^* T ∗ between u n + 1 u_{n+1} u n + 1 and v n + 1 v_{n+1} v n + 1 .
Logic (1): If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ , then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ .
Logic (2): If Φ , P ( x ) ⊢ ψ \Phi, P(x) \vdash \psi Φ , P ( x ) ⊢ ψ , then Φ , ∃ x . P ( x ) ⊢ ψ \Phi, \exists x.\ P(x) \vdash \psi Φ , ∃ x . P ( x ) ⊢ ψ .
Proof step: On this path, there must be an edge e ∗ e^* e ∗ leaving V n V_n V n .
Logic (1): If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ , then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ .
Logic (2): If Φ , P ( x ) ⊢ ψ \Phi, P(x) \vdash \psi Φ , P ( x ) ⊢ ψ , then Φ , ∃ x . P ( x ) ⊢ ψ \Phi, \exists x.\ P(x) \vdash \psi Φ , ∃ x . P ( x ) ⊢ ψ .
Proof step: w ( e ∗ ) = w ( e n + 1 ) w(e^*) = w(e_{n+1}) w ( e ∗ ) = w ( e n + 1 ) .
Logic: If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ , then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ .
Notation (⊣ ⊢ \dashv\vdash ⊣⊢ ). We write φ ⊣ ⊢ ψ \varphi \dashv\vdash \psi φ ⊣⊢ ψ if and only if both φ ⊢ ψ \varphi \vdash \psi φ ⊢ ψ and ψ ⊢ φ \psi \vdash \varphi ψ ⊢ φ .
ASSUMPTION : if φ ∈ Φ \varphi \in \Phi φ ∈ Φ , then Φ ⊢ φ \Phi \vdash \varphi Φ ⊢ φ .
WEAKENING : if Φ ⊆ Φ ′ \Phi \subseteq \Phi' Φ ⊆ Φ ′ and Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ , then Φ ′ ⊢ ψ \Phi' \vdash \psi Φ ′ ⊢ ψ .
SUBSTITUTION : if Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ .
Example. Prove the following derivations using ASSUMPTION, WEAKENING and SUBSTITUTION.
φ ⊢ φ \varphi \vdash \varphi φ ⊢ φ .
If φ ⊢ ψ \varphi \vdash \psi φ ⊢ ψ and ψ ⊢ χ \psi \vdash \chi ψ ⊢ χ , then φ ⊢ χ \varphi \vdash \chi φ ⊢ χ .
If Φ , φ ⊢ ψ \Phi, \varphi \vdash \psi Φ , φ ⊢ ψ and Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ , then Φ , φ ⊢ χ \Phi, \varphi \vdash \chi Φ , φ ⊢ χ .
Proof of φ ⊢ φ \varphi \vdash \varphi φ ⊢ φ :
(1) φ ⊢ φ \varphi \vdash \varphi φ ⊢ φ (by ASSUMPTION).
Proof of: if φ ⊢ ψ \varphi \vdash \psi φ ⊢ ψ and ψ ⊢ χ \psi \vdash \chi ψ ⊢ χ , then φ ⊢ χ \varphi \vdash \chi φ ⊢ χ :
(1) φ ⊢ ψ \varphi \vdash \psi φ ⊢ ψ (hypothesis).
(2) ψ ⊢ χ \psi \vdash \chi ψ ⊢ χ (hypothesis).
(3) φ , ψ ⊢ χ \varphi, \psi \vdash \chi φ , ψ ⊢ χ (WEAKENING and (2)).
(4) φ ⊢ χ \varphi \vdash \chi φ ⊢ χ (SUBSTITUTION and (1) and (3)).
Proof of: if Φ , φ ⊢ ψ \Phi, \varphi \vdash \psi Φ , φ ⊢ ψ and Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ , then Φ , φ ⊢ χ \Phi, \varphi \vdash \chi Φ , φ ⊢ χ :
(1) Φ , φ ⊢ ψ \Phi, \varphi \vdash \psi Φ , φ ⊢ ψ (hypothesis).
(2) Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ (hypothesis).
(3) Φ , φ , ψ ⊢ χ \Phi, \varphi, \psi \vdash \chi Φ , φ , ψ ⊢ χ (WEAKENING and (2)).
(4) Φ , φ ⊢ χ \Phi, \varphi \vdash \chi Φ , φ ⊢ χ (SUBSTITUTION and (1) and (3)).
Primitive rules:
AND-INTRO : φ , ψ ⊢ φ ∧ ψ \varphi, \psi \vdash \varphi \land \psi φ , ψ ⊢ φ ∧ ψ .
AND-ELIM1 : φ ∧ ψ ⊢ φ \varphi \land \psi \vdash \varphi φ ∧ ψ ⊢ φ .
AND-ELIM2 : φ ∧ ψ ⊢ ψ \varphi \land \psi \vdash \psi φ ∧ ψ ⊢ ψ .
Example. Prove the following derivations.
AND-R : If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ , then Φ ⊢ ψ ∧ χ \Phi \vdash \psi \land \chi Φ ⊢ ψ ∧ χ .
If Φ ⊢ ψ ∧ χ \Phi \vdash \psi \land \chi Φ ⊢ ψ ∧ χ , then Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ .
If Φ ⊢ ψ ∧ χ \Phi \vdash \psi \land \chi Φ ⊢ ψ ∧ χ , then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ .
If Φ , ψ 1 ∧ ψ 2 ⊢ χ \Phi, \psi_1 \land \psi_2 \vdash \chi Φ , ψ 1 ∧ ψ 2 ⊢ χ , then Φ , ψ 1 , ψ 2 ⊢ χ \Phi, \psi_1, \psi_2 \vdash \chi Φ , ψ 1 , ψ 2 ⊢ χ .
If Φ , ψ 1 ⊢ χ \Phi, \psi_1 \vdash \chi Φ , ψ 1 ⊢ χ , Φ , ψ 1 ∧ ψ 2 ⊢ χ \Phi, \psi_1 \land \psi_2 \vdash \chi Φ , ψ 1 ∧ ψ 2 ⊢ χ .
If Φ , ψ 2 ⊢ χ \Phi, \psi_2 \vdash \chi Φ , ψ 2 ⊢ χ , Φ , ψ 1 ∧ ψ 2 ⊢ χ \Phi, \psi_1 \land \psi_2 \vdash \chi Φ , ψ 1 ∧ ψ 2 ⊢ χ . (The last two bullets are printed without the word "then".)
Proof of AND-R:
(1) ψ , χ ⊢ ψ ∧ χ \psi, \chi \vdash \psi \land \chi ψ , χ ⊢ ψ ∧ χ (AND-INTRO).
(2) Φ , ψ , χ ⊢ ψ ∧ χ \Phi, \psi, \chi \vdash \psi \land \chi Φ , ψ , χ ⊢ ψ ∧ χ (WEAKENING and (1)).
(3) Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ (hypothesis).
(4) Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ (WEAKENING and (3)).
(5) Φ , ψ ⊢ ψ ∧ χ \Phi, \psi \vdash \psi \land \chi Φ , ψ ⊢ ψ ∧ χ (SUBSTITUTION and (2) and (4)).
(6) Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ (hypothesis).
(7) Φ ⊢ ψ ∧ χ \Phi \vdash \psi \land \chi Φ ⊢ ψ ∧ χ (SUBSTITUTION and (5) and (6)).
Proof of: if Φ ⊢ ψ ∧ χ \Phi \vdash \psi \land \chi Φ ⊢ ψ ∧ χ , then Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ :
(1) Φ ⊢ ψ ∧ χ \Phi \vdash \psi \land \chi Φ ⊢ ψ ∧ χ (hypothesis).
(2) ψ ∧ χ ⊢ ψ \psi \land \chi \vdash \psi ψ ∧ χ ⊢ ψ (AND-ELIM1).
(3) Φ , ψ ∧ χ ⊢ ψ \Phi, \psi \land \chi \vdash \psi Φ , ψ ∧ χ ⊢ ψ (WEAKENING and (2)).
(4) Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ (SUBSTITUTION and (1) and (3)).
For "If Φ ⊢ ψ ∧ χ \Phi \vdash \psi \land \chi Φ ⊢ ψ ∧ χ , then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ ": Similar.
Proof of: if Φ , ψ 1 ∧ ψ 2 ⊢ χ \Phi, \psi_1 \land \psi_2 \vdash \chi Φ , ψ 1 ∧ ψ 2 ⊢ χ , then Φ , ψ 1 , ψ 2 ⊢ χ \Phi, \psi_1, \psi_2 \vdash \chi Φ , ψ 1 , ψ 2 ⊢ χ :
(1) ψ 1 , ψ 2 ⊢ ψ 1 ∧ ψ 2 \psi_1, \psi_2 \vdash \psi_1 \land \psi_2 ψ 1 , ψ 2 ⊢ ψ 1 ∧ ψ 2 (AND-INTRO).
(2) Φ , ψ 1 , ψ 2 ⊢ ψ 1 ∧ ψ 2 \Phi, \psi_1, \psi_2 \vdash \psi_1 \land \psi_2 Φ , ψ 1 , ψ 2 ⊢ ψ 1 ∧ ψ 2 (WEAKENING and (1)).
(3) Φ , ψ 1 ∧ ψ 2 ⊢ χ \Phi, \psi_1 \land \psi_2 \vdash \chi Φ , ψ 1 ∧ ψ 2 ⊢ χ (hypothesis).
(4) Φ , ψ 1 , ψ 2 , ψ 1 ∧ ψ 2 ⊢ χ \Phi, \psi_1, \psi_2, \psi_1 \land \psi_2 \vdash \chi Φ , ψ 1 , ψ 2 , ψ 1 ∧ ψ 2 ⊢ χ (WEAKENING and (3)).
(5) Φ , ψ 1 , ψ 2 ⊢ χ \Phi, \psi_1, \psi_2 \vdash \chi Φ , ψ 1 , ψ 2 ⊢ χ (SUBSTITUTION and (2) and (4)). (No proofs are printed for the last two bullets of the example.)
Derived theorems (note: and-L is the converse direction of the fourth bullet above):
and-L : If Φ , ψ 1 , ψ 2 ⊢ χ \Phi, \psi_1, \psi_2 \vdash \chi Φ , ψ 1 , ψ 2 ⊢ χ , then Φ , ψ 1 ∧ ψ 2 ⊢ χ \Phi, \psi_1 \land \psi_2 \vdash \chi Φ , ψ 1 ∧ ψ 2 ⊢ χ .
and-comm : φ ∧ ψ ⊣ ⊢ ψ ∧ φ \varphi \land \psi \dashv\vdash \psi \land \varphi φ ∧ ψ ⊣⊢ ψ ∧ φ .
and-assoc : ( φ ∧ ψ ) ∧ χ ⊣ ⊢ φ ∧ ( ψ ∧ χ ) (\varphi \land \psi) \land \chi \dashv\vdash \varphi \land (\psi \land \chi) ( φ ∧ ψ ) ∧ χ ⊣⊢ φ ∧ ( ψ ∧ χ ) .
Proof of and-L:
(1) Φ , ψ 1 , ψ 2 ⊢ χ \Phi, \psi_1, \psi_2 \vdash \chi Φ , ψ 1 , ψ 2 ⊢ χ (hypothesis).
(2) ψ 1 ∧ ψ 2 ⊢ ψ 1 \psi_1 \land \psi_2 \vdash \psi_1 ψ 1 ∧ ψ 2 ⊢ ψ 1 (and-elim1).
(3) Φ , ψ 1 ∧ ψ 2 ⊢ ψ 1 \Phi, \psi_1 \land \psi_2 \vdash \psi_1 Φ , ψ 1 ∧ ψ 2 ⊢ ψ 1 (weakening and (2)).
(4) ψ 1 ∧ ψ 2 ⊢ ψ 2 \psi_1 \land \psi_2 \vdash \psi_2 ψ 1 ∧ ψ 2 ⊢ ψ 2 (and-elim2).
(5) Φ , ψ 1 ∧ ψ 2 , ψ 1 ⊢ ψ 2 \Phi, \psi_1 \land \psi_2, \psi_1 \vdash \psi_2 Φ , ψ 1 ∧ ψ 2 , ψ 1 ⊢ ψ 2 (weakening and (4)).
(6) Φ , ψ 1 ∧ ψ 2 , ψ 1 , ψ 2 ⊢ χ \Phi, \psi_1 \land \psi_2, \psi_1, \psi_2 \vdash \chi Φ , ψ 1 ∧ ψ 2 , ψ 1 , ψ 2 ⊢ χ (weakening and (1)).
(7) Φ , ψ 1 ∧ ψ 2 , ψ 1 ⊢ χ \Phi, \psi_1 \land \psi_2, \psi_1 \vdash \chi Φ , ψ 1 ∧ ψ 2 , ψ 1 ⊢ χ (substitution and (5) and (6)).
(8) Φ , ψ 1 ∧ ψ 2 ⊢ χ \Phi, \psi_1 \land \psi_2 \vdash \chi Φ , ψ 1 ∧ ψ 2 ⊢ χ (substitution and (3) and (7)).
Proof of and-comm — it suffices to prove: φ ∧ ψ ⊢ ψ ∧ φ \varphi \land \psi \vdash \psi \land \varphi φ ∧ ψ ⊢ ψ ∧ φ :
(1) φ ∧ ψ ⊢ ψ \varphi \land \psi \vdash \psi φ ∧ ψ ⊢ ψ (and-elim2).
(2) φ ∧ ψ ⊢ φ \varphi \land \psi \vdash \varphi φ ∧ ψ ⊢ φ (and-elim1).
(3) φ ∧ ψ ⊢ ψ ∧ φ \varphi \land \psi \vdash \psi \land \varphi φ ∧ ψ ⊢ ψ ∧ φ (and-R and (1) and (2)).
Proof of and-assoc, from left to right (only this direction is shown):
(1) φ , ψ , χ ⊢ φ \varphi, \psi, \chi \vdash \varphi φ , ψ , χ ⊢ φ (assumption).
(2) ( φ ∧ ψ ) , χ ⊢ φ (\varphi \land \psi), \chi \vdash \varphi ( φ ∧ ψ ) , χ ⊢ φ (and-L and (1)).
(3) ( φ ∧ ψ ) ∧ χ ⊢ φ (\varphi \land \psi) \land \chi \vdash \varphi ( φ ∧ ψ ) ∧ χ ⊢ φ (and-L and (2)).
(4) φ , ψ , χ ⊢ ψ \varphi, \psi, \chi \vdash \psi φ , ψ , χ ⊢ ψ (assumption).
(5) ( φ ∧ ψ ) , χ ⊢ ψ (\varphi \land \psi), \chi \vdash \psi ( φ ∧ ψ ) , χ ⊢ ψ (and-L and (4)).
(6) ( φ ∧ ψ ) ∧ χ ⊢ ψ (\varphi \land \psi) \land \chi \vdash \psi ( φ ∧ ψ ) ∧ χ ⊢ ψ (and-L and (5)).
(7) ( φ ∧ ψ ) ∧ χ ⊢ χ (\varphi \land \psi) \land \chi \vdash \chi ( φ ∧ ψ ) ∧ χ ⊢ χ (and-elim2).
(8) ( φ ∧ ψ ) ∧ χ ⊢ ( ψ ∧ χ ) (\varphi \land \psi) \land \chi \vdash (\psi \land \chi) ( φ ∧ ψ ) ∧ χ ⊢ ( ψ ∧ χ ) (and-R and (6) and (7)).
(9) ( φ ∧ ψ ) ∧ χ ⊢ φ ∧ ( ψ ∧ χ ) (\varphi \land \psi) \land \chi \vdash \varphi \land (\psi \land \chi) ( φ ∧ ψ ) ∧ χ ⊢ φ ∧ ( ψ ∧ χ ) (and-R and (3) and (8)).
Congruence of ∧ \land ∧ with respect to ⊢ \vdash ⊢ :
Example. If ψ 1 ⊢ ψ 2 \psi_1 \vdash \psi_2 ψ 1 ⊢ ψ 2 and χ 1 ⊢ χ 2 \chi_1 \vdash \chi_2 χ 1 ⊢ χ 2 , then ψ 1 ∧ χ 1 ⊢ ψ 2 ∧ χ 2 \psi_1 \land \chi_1 \vdash \psi_2 \land \chi_2 ψ 1 ∧ χ 1 ⊢ ψ 2 ∧ χ 2 .
Proof:
(1) ψ 1 ⊢ ψ 2 \psi_1 \vdash \psi_2 ψ 1 ⊢ ψ 2 (hypothesis).
(2) ψ 1 , χ 1 ⊢ ψ 2 \psi_1, \chi_1 \vdash \psi_2 ψ 1 , χ 1 ⊢ ψ 2 (weakening and (1)).
(3) χ 1 ⊢ χ 2 \chi_1 \vdash \chi_2 χ 1 ⊢ χ 2 (hypothesis).
(4) ψ 1 , χ 1 ⊢ χ 2 \psi_1, \chi_1 \vdash \chi_2 ψ 1 , χ 1 ⊢ χ 2 (weakening and (3)).
(5) ψ 1 , χ 1 ⊢ ψ 2 ∧ χ 2 \psi_1, \chi_1 \vdash \psi_2 \land \chi_2 ψ 1 , χ 1 ⊢ ψ 2 ∧ χ 2 (and-R and (2) and (4)).
(6) ψ 1 ∧ χ 1 ⊢ ψ 2 ∧ χ 2 \psi_1 \land \chi_1 \vdash \psi_2 \land \chi_2 ψ 1 ∧ χ 1 ⊢ ψ 2 ∧ χ 2 (and-L and (5)).
Theorem. If Φ , ψ 1 ⊢ ψ 2 \Phi, \psi_1 \vdash \psi_2 Φ , ψ 1 ⊢ ψ 2 and Φ , χ 1 ⊢ χ 2 \Phi, \chi_1 \vdash \chi_2 Φ , χ 1 ⊢ χ 2 , then Φ , ψ 1 ∧ χ 1 ⊢ ψ 2 ∧ χ 2 \Phi, \psi_1 \land \chi_1 \vdash \psi_2 \land \chi_2 Φ , ψ 1 ∧ χ 1 ⊢ ψ 2 ∧ χ 2 .
Proof:
(1) Φ , ψ 1 ⊢ ψ 2 \Phi, \psi_1 \vdash \psi_2 Φ , ψ 1 ⊢ ψ 2 (hypothesis).
(2) Φ , ψ 1 , χ 1 ⊢ ψ 2 \Phi, \psi_1, \chi_1 \vdash \psi_2 Φ , ψ 1 , χ 1 ⊢ ψ 2 (weakening and (1)).
(3) Φ , χ 1 ⊢ χ 2 \Phi, \chi_1 \vdash \chi_2 Φ , χ 1 ⊢ χ 2 (hypothesis).
(4) Φ , ψ 1 , χ 1 ⊢ χ 2 \Phi, \psi_1, \chi_1 \vdash \chi_2 Φ , ψ 1 , χ 1 ⊢ χ 2 (weakening and (3)).
(5) Φ , ψ 1 , χ 1 ⊢ ψ 2 ∧ χ 2 \Phi, \psi_1, \chi_1 \vdash \psi_2 \land \chi_2 Φ , ψ 1 , χ 1 ⊢ ψ 2 ∧ χ 2 (and-R and (2) and (4)).
(6) Φ , ψ 1 ∧ χ 1 ⊢ ψ 2 ∧ χ 2 \Phi, \psi_1 \land \chi_1 \vdash \psi_2 \land \chi_2 Φ , ψ 1 ∧ χ 1 ⊢ ψ 2 ∧ χ 2 (and-L and (5)).
(In the printed proof every occurrence of Φ \Phi Φ is typeset in red: this proof is the previous example's proof with the extra premise set Φ \Phi Φ carried through every line.)
Primitive rules:
or-intro1 : φ ⊢ φ ∨ ψ \varphi \vdash \varphi \lor \psi φ ⊢ φ ∨ ψ .
or-intro2 : ψ ⊢ φ ∨ ψ \psi \vdash \varphi \lor \psi ψ ⊢ φ ∨ ψ .
or-elim (or-L) : if Φ , ψ 1 ⊢ χ \Phi, \psi_1 \vdash \chi Φ , ψ 1 ⊢ χ and Φ , ψ 2 ⊢ χ \Phi, \psi_2 \vdash \chi Φ , ψ 2 ⊢ χ , then Φ , ψ 1 ∨ ψ 2 ⊢ χ \Phi, \psi_1 \lor \psi_2 \vdash \chi Φ , ψ 1 ∨ ψ 2 ⊢ χ .
Derived rules:
or-R1 : If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ , then Φ ⊢ ψ ∨ χ \Phi \vdash \psi \lor \chi Φ ⊢ ψ ∨ χ .
or-R2 : If Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ , then Φ ⊢ ψ ∨ χ \Phi \vdash \psi \lor \chi Φ ⊢ ψ ∨ χ .
Proof of or-R1 (no proof of or-R2 is shown):
(1) Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ (hypothesis).
(2) ψ ⊢ ψ ∨ χ \psi \vdash \psi \lor \chi ψ ⊢ ψ ∨ χ (or-intro1).
(3) Φ , ψ ⊢ ψ ∨ χ \Phi, \psi \vdash \psi \lor \chi Φ , ψ ⊢ ψ ∨ χ (weakening and (2)).
(4) Φ ⊢ ψ ∨ χ \Phi \vdash \psi \lor \chi Φ ⊢ ψ ∨ χ (substitution and (1) and (3)).
Derived theorems:
or-comm : φ ∨ ψ ⊣ ⊢ ψ ∨ φ \varphi \lor \psi \dashv\vdash \psi \lor \varphi φ ∨ ψ ⊣⊢ ψ ∨ φ .
or-assoc : ( φ ∨ ψ ) ∨ χ ⊣ ⊢ φ ∨ ( ψ ∨ χ ) (\varphi \lor \psi) \lor \chi \dashv\vdash \varphi \lor (\psi \lor \chi) ( φ ∨ ψ ) ∨ χ ⊣⊢ φ ∨ ( ψ ∨ χ ) .
Proof of or-comm — it suffices to prove: φ ∨ ψ ⊢ ψ ∨ φ \varphi \lor \psi \vdash \psi \lor \varphi φ ∨ ψ ⊢ ψ ∨ φ (no proof of or-assoc is shown):
(1) ψ ⊢ ψ ∨ φ \psi \vdash \psi \lor \varphi ψ ⊢ ψ ∨ φ (or-intro1).
(2) φ ⊢ ψ ∨ φ \varphi \vdash \psi \lor \varphi φ ⊢ ψ ∨ φ (or-intro2).
(3) φ ∨ ψ ⊢ ψ ∨ φ \varphi \lor \psi \vdash \psi \lor \varphi φ ∨ ψ ⊢ ψ ∨ φ (or-elim and (2) and (1)).
Distributivity:
φ ∧ ( ψ ∨ χ ) ⊣ ⊢ ( φ ∧ ψ ) ∨ ( φ ∧ χ ) \varphi \land (\psi \lor \chi) \dashv\vdash (\varphi \land \psi) \lor (\varphi \land \chi) φ ∧ ( ψ ∨ χ ) ⊣⊢ ( φ ∧ ψ ) ∨ ( φ ∧ χ ) .
φ ∨ ( ψ ∧ χ ) ⊣ ⊢ ( φ ∨ ψ ) ∧ ( φ ∨ χ ) \varphi \lor (\psi \land \chi) \dashv\vdash (\varphi \lor \psi) \land (\varphi \lor \chi) φ ∨ ( ψ ∧ χ ) ⊣⊢ ( φ ∨ ψ ) ∧ ( φ ∨ χ ) .
Absorption:
φ ∧ ( φ ∨ ψ ) ⊣ ⊢ φ \varphi \land (\varphi \lor \psi) \dashv\vdash \varphi φ ∧ ( φ ∨ ψ ) ⊣⊢ φ .
φ ∨ ( φ ∧ ψ ) ⊣ ⊢ φ \varphi \lor (\varphi \land \psi) \dashv\vdash \varphi φ ∨ ( φ ∧ ψ ) ⊣⊢ φ .
Idempotence:
φ ∧ φ ⊣ ⊢ φ \varphi \land \varphi \dashv\vdash \varphi φ ∧ φ ⊣⊢ φ .
φ ∨ φ ⊣ ⊢ φ \varphi \lor \varphi \dashv\vdash \varphi φ ∨ φ ⊣⊢ φ .
Primitive rules:
CONTRADICTION : If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and Φ ⊢ ¬ ψ \Phi \vdash \neg\psi Φ ⊢ ¬ ψ , then Φ ⊢ χ \Phi \vdash \chi Φ ⊢ χ .
EXCLUDED-MIDDLE : ⊢ φ ∨ ¬ φ \vdash \varphi \lor \neg\varphi ⊢ φ ∨ ¬ φ .
Derived theorems:
CASE-ANALYSIS : If Φ , ¬ φ ⊢ ψ \Phi, \neg\varphi \vdash \psi Φ , ¬ φ ⊢ ψ and Φ , φ ⊢ ψ \Phi, \varphi \vdash \psi Φ , φ ⊢ ψ , then Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ .
DOUBLE-NEGATION : φ ⊣ ⊢ ¬ ¬ φ \varphi \dashv\vdash \neg\neg\varphi φ ⊣⊢ ¬¬ φ .
CONTRAPOSITION (four forms):
If Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ , then Φ , ¬ χ ⊢ ¬ ψ \Phi, \neg\chi \vdash \neg\psi Φ , ¬ χ ⊢ ¬ ψ .
If Φ , ¬ ψ ⊢ χ \Phi, \neg\psi \vdash \chi Φ , ¬ ψ ⊢ χ , then Φ , ¬ χ ⊢ ψ \Phi, \neg\chi \vdash \psi Φ , ¬ χ ⊢ ψ .
If Φ , ¬ ψ ⊢ ¬ χ \Phi, \neg\psi \vdash \neg\chi Φ , ¬ ψ ⊢ ¬ χ , then Φ , χ ⊢ ψ \Phi, \chi \vdash \psi Φ , χ ⊢ ψ .
If Φ , ψ ⊢ ¬ χ \Phi, \psi \vdash \neg\chi Φ , ψ ⊢ ¬ χ , then Φ , χ ⊢ ¬ ψ \Phi, \chi \vdash \neg\psi Φ , χ ⊢ ¬ ψ .
DE-MORGAN :
¬ ( φ ∧ ψ ) ⊣ ⊢ ¬ φ ∨ ¬ ψ \neg(\varphi \land \psi) \dashv\vdash \neg\varphi \lor \neg\psi ¬ ( φ ∧ ψ ) ⊣⊢ ¬ φ ∨ ¬ ψ .
¬ ( φ ∨ ψ ) ⊣ ⊢ ¬ φ ∧ ¬ ψ \neg(\varphi \lor \psi) \dashv\vdash \neg\varphi \land \neg\psi ¬ ( φ ∨ ψ ) ⊣⊢ ¬ φ ∧ ¬ ψ .
Primitive rules (stated twice in the notes; the elimination rule is named "implies-elim (Modus Ponens)" the first time and "modus-ponens" the second time):
implies-intro : If Φ , φ ⊢ ψ \Phi, \varphi \vdash \psi Φ , φ ⊢ ψ , then Φ ⊢ φ → ψ \Phi \vdash \varphi \to \psi Φ ⊢ φ → ψ .
implies-elim (Modus Ponens ): φ → ψ , φ ⊢ ψ \varphi \to \psi, \varphi \vdash \psi φ → ψ , φ ⊢ ψ .
Example. Prove: ⊢ φ → φ \vdash \varphi \to \varphi ⊢ φ → φ .
Formal proof:
(1) φ ⊢ φ \varphi \vdash \varphi φ ⊢ φ (assumption).
(2) ⊢ φ → φ \vdash \varphi \to \varphi ⊢ φ → φ (implies-intro on (1)).
Transitivity of implication — proof of φ → ψ , ψ → χ ⊢ φ → χ \varphi \to \psi, \psi \to \chi \vdash \varphi \to \chi φ → ψ , ψ → χ ⊢ φ → χ :
(1) φ → ψ , φ ⊢ ψ \varphi \to \psi, \varphi \vdash \psi φ → ψ , φ ⊢ ψ (modus-ponens).
(2) φ → ψ , ψ → χ , φ ⊢ ψ \varphi \to \psi, \psi \to \chi, \varphi \vdash \psi φ → ψ , ψ → χ , φ ⊢ ψ (weakening and (1)).
(3) ψ → χ , ψ ⊢ χ \psi \to \chi, \psi \vdash \chi ψ → χ , ψ ⊢ χ (modus-ponens).
(4) φ → ψ , ψ → χ , φ , ψ ⊢ χ \varphi \to \psi, \psi \to \chi, \varphi, \psi \vdash \chi φ → ψ , ψ → χ , φ , ψ ⊢ χ (weakening and (3)).
(5) φ → ψ , ψ → χ , φ ⊢ χ \varphi \to \psi, \psi \to \chi, \varphi \vdash \chi φ → ψ , ψ → χ , φ ⊢ χ (substitution and (2) and (4)).
(6) φ → ψ , ψ → χ ⊢ φ → χ \varphi \to \psi, \psi \to \chi \vdash \varphi \to \chi φ → ψ , ψ → χ ⊢ φ → χ (implies-intro and (5)).
Derived theorems (all two-way):
( φ ∧ ψ ) → χ ⊣ ⊢ φ → ( ψ → χ ) (\varphi \land \psi) \to \chi \dashv\vdash \varphi \to (\psi \to \chi) ( φ ∧ ψ ) → χ ⊣⊢ φ → ( ψ → χ ) .
( φ ∨ ψ ) → χ ⊣ ⊢ ( φ → χ ) ∧ ( ψ → χ ) (\varphi \lor \psi) \to \chi \dashv\vdash (\varphi \to \chi) \land (\psi \to \chi) ( φ ∨ ψ ) → χ ⊣⊢ ( φ → χ ) ∧ ( ψ → χ ) .
φ → ψ ⊣ ⊢ ¬ ψ → ¬ φ \varphi \to \psi \dashv\vdash \neg\psi \to \neg\varphi φ → ψ ⊣⊢ ¬ ψ → ¬ φ .
forall-intro : If Φ ⊢ ψ ( x ) \Phi \vdash \psi(x) Φ ⊢ ψ ( x ) , then Φ ⊢ ∀ x . ψ ( x ) \Phi \vdash \forall x.\ \psi(x) Φ ⊢ ∀ x . ψ ( x ) (Φ \Phi Φ is irrelevant with x x x ).
forall-elim : ∀ x . φ ( x ) ⊢ φ ( t ) \forall x. \varphi(x) \vdash \varphi(t) ∀ x . φ ( x ) ⊢ φ ( t ) .
Example. Prove: ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( x ) ⊢ ∀ x . ψ ( x ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(x) \vdash \forall x.\psi(x) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( x ) ⊢ ∀ x . ψ ( x ) .
Formal proof:
(1) ∀ x . φ ( x ) ⊢ φ ( x ) \forall x.\varphi(x) \vdash \varphi(x) ∀ x . φ ( x ) ⊢ φ ( x ) (forall-elim).
(2) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( x ) ⊢ φ ( x ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(x) \vdash \varphi(x) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( x ) ⊢ φ ( x ) (weakening and (1)).
(3) ∀ x . ( φ ( x ) → ψ ( x ) ) ⊢ φ ( x ) → ψ ( x ) \forall x.(\varphi(x) \to \psi(x)) \vdash \varphi(x) \to \psi(x) ∀ x . ( φ ( x ) → ψ ( x )) ⊢ φ ( x ) → ψ ( x ) (forall-elim).
(4) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( x ) , φ ( x ) ⊢ φ ( x ) → ψ ( x ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(x), \varphi(x) \vdash \varphi(x) \to \psi(x) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( x ) , φ ( x ) ⊢ φ ( x ) → ψ ( x ) (weakening and (3)).
(5) φ ( x ) → ψ ( x ) , φ ( x ) ⊢ ψ ( x ) \varphi(x) \to \psi(x), \varphi(x) \vdash \psi(x) φ ( x ) → ψ ( x ) , φ ( x ) ⊢ ψ ( x ) (modus-ponens).
(6) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( x ) , φ ( x ) → ψ ( x ) , φ ( x ) ⊢ ψ ( x ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(x), \varphi(x) \to \psi(x), \varphi(x) \vdash \psi(x) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( x ) , φ ( x ) → ψ ( x ) , φ ( x ) ⊢ ψ ( x ) (weakening and (5)).
(7) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( x ) , φ ( x ) ⊢ ψ ( x ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(x), \varphi(x) \vdash \psi(x) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( x ) , φ ( x ) ⊢ ψ ( x ) (substitution and (4), (6)).
(8) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( x ) ⊢ ψ ( x ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(x) \vdash \psi(x) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( x ) ⊢ ψ ( x ) (substitution and (2), (7)).
(9) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( x ) ⊢ ∀ x . ψ ( x ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(x) \vdash \forall x.\psi(x) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( x ) ⊢ ∀ x . ψ ( x ) (forall-intro and (8)).
Example. Prove: ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( f ( x ) ) ⊢ ∀ x . ψ ( f ( x ) ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(f(x)) \vdash \forall x.\psi(f(x)) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( f ( x )) ⊢ ∀ x . ψ ( f ( x )) .
Formal proof:
(1) ∀ x . φ ( f ( x ) ) ⊢ φ ( f ( x ) ) \forall x.\varphi(f(x)) \vdash \varphi(f(x)) ∀ x . φ ( f ( x )) ⊢ φ ( f ( x )) (forall-elim).
(2) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( f ( x ) ) ⊢ φ ( f ( x ) ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(f(x)) \vdash \varphi(f(x)) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( f ( x )) ⊢ φ ( f ( x )) (weakening and (1)).
(3) ∀ x . ( φ ( x ) → ψ ( x ) ) ⊢ φ ( f ( x ) ) → ψ ( f ( x ) ) \forall x.(\varphi(x) \to \psi(x)) \vdash \varphi(f(x)) \to \psi(f(x)) ∀ x . ( φ ( x ) → ψ ( x )) ⊢ φ ( f ( x )) → ψ ( f ( x )) (forall-elim).
(4) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( f ( x ) ) , φ ( f ( x ) ) ⊢ φ ( f ( x ) ) → ψ ( f ( x ) ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(f(x)), \varphi(f(x)) \vdash \varphi(f(x)) \to \psi(f(x)) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( f ( x )) , φ ( f ( x )) ⊢ φ ( f ( x )) → ψ ( f ( x )) (weakening and (3)).
(5) φ ( f ( x ) ) → ψ ( f ( x ) ) , φ ( f ( x ) ) ⊢ ψ ( f ( x ) ) \varphi(f(x)) \to \psi(f(x)), \varphi(f(x)) \vdash \psi(f(x)) φ ( f ( x )) → ψ ( f ( x )) , φ ( f ( x )) ⊢ ψ ( f ( x )) (modus-ponens).
(6) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( f ( x ) ) , φ ( f ( x ) ) → ψ ( f ( x ) ) , φ ( f ( x ) ) ⊢ ψ ( f ( x ) ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(f(x)), \varphi(f(x)) \to \psi(f(x)), \varphi(f(x)) \vdash \psi(f(x)) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( f ( x )) , φ ( f ( x )) → ψ ( f ( x )) , φ ( f ( x )) ⊢ ψ ( f ( x )) (weakening and (5)).
(7) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( f ( x ) ) , φ ( f ( x ) ) ⊢ ψ ( f ( x ) ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(f(x)), \varphi(f(x)) \vdash \psi(f(x)) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( f ( x )) , φ ( f ( x )) ⊢ ψ ( f ( x )) (substitution and (4), (6)).
(8) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( f ( x ) ) ⊢ ψ ( f ( x ) ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(f(x)) \vdash \psi(f(x)) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( f ( x )) ⊢ ψ ( f ( x )) (substitution and (2), (7)).
(9) ∀ x . ( φ ( x ) → ψ ( x ) ) , ∀ x . φ ( f ( x ) ) ⊢ ∀ x . ψ ( f ( x ) ) \forall x.(\varphi(x) \to \psi(x)), \forall x.\varphi(f(x)) \vdash \forall x.\psi(f(x)) ∀ x . ( φ ( x ) → ψ ( x )) , ∀ x . φ ( f ( x )) ⊢ ∀ x . ψ ( f ( x )) (forall-intro and (8)).
exists-intro : φ ( t ) ⊢ ∃ x . φ ( x ) \varphi(t) \vdash \exists x.\varphi(x) φ ( t ) ⊢ ∃ x . φ ( x ) .
exists-elim : If Φ , ψ ( x ) ⊢ χ \Phi, \psi(x) \vdash \chi Φ , ψ ( x ) ⊢ χ , then Φ , ∃ x . ψ ( x ) ⊢ χ \Phi, \exists x.\psi(x) \vdash \chi Φ , ∃ x . ψ ( x ) ⊢ χ (Φ \Phi Φ and χ \chi χ are irrelevant with x x x ).
Example. Prove: ∃ x . φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x ) ) ⊢ ∃ x . ψ ( x ) \exists x.\varphi(x), \forall x.(\varphi(x) \to \psi(x)) \vdash \exists x.\psi(x) ∃ x . φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x )) ⊢ ∃ x . ψ ( x ) .
Formal proof:
(1) ∀ x . ( φ ( x ) → ψ ( x ) ) ⊢ φ ( x ) → ψ ( x ) \forall x.(\varphi(x) \to \psi(x)) \vdash \varphi(x) \to \psi(x) ∀ x . ( φ ( x ) → ψ ( x )) ⊢ φ ( x ) → ψ ( x ) (forall-elim).
(2) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x ) ) ⊢ φ ( x ) → ψ ( x ) \varphi(x), \forall x.(\varphi(x) \to \psi(x)) \vdash \varphi(x) \to \psi(x) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x )) ⊢ φ ( x ) → ψ ( x ) (weakening and (1)).
(3) φ ( x ) → ψ ( x ) , φ ( x ) ⊢ ψ ( x ) \varphi(x) \to \psi(x), \varphi(x) \vdash \psi(x) φ ( x ) → ψ ( x ) , φ ( x ) ⊢ ψ ( x ) (modus-ponens).
(4) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x ) ) , φ ( x ) → ψ ( x ) ⊢ ψ ( x ) \varphi(x), \forall x.(\varphi(x) \to \psi(x)), \varphi(x) \to \psi(x) \vdash \psi(x) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x )) , φ ( x ) → ψ ( x ) ⊢ ψ ( x ) (weakening and (3)).
(5) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x ) ) ⊢ ψ ( x ) \varphi(x), \forall x.(\varphi(x) \to \psi(x)) \vdash \psi(x) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x )) ⊢ ψ ( x ) (substitution and (2), (4)).
(6) ψ ( x ) ⊢ ∃ x . ψ ( x ) \psi(x) \vdash \exists x.\psi(x) ψ ( x ) ⊢ ∃ x . ψ ( x ) (exists-intro).
(7) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x ) ) , ψ ( x ) ⊢ ∃ x . ψ ( x ) \varphi(x), \forall x.(\varphi(x) \to \psi(x)), \psi(x) \vdash \exists x.\psi(x) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x )) , ψ ( x ) ⊢ ∃ x . ψ ( x ) (weakening and (6)).
(8) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x ) ) ⊢ ∃ x . ψ ( x ) \varphi(x), \forall x.(\varphi(x) \to \psi(x)) \vdash \exists x.\psi(x) φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x )) ⊢ ∃ x . ψ ( x ) (substitution and (5) and (7)).
(9) ∃ x . φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x ) ) ⊢ ∃ x . ψ ( x ) \exists x.\varphi(x), \forall x.(\varphi(x) \to \psi(x)) \vdash \exists x.\psi(x) ∃ x . φ ( x ) , ∀ x . ( φ ( x ) → ψ ( x )) ⊢ ∃ x . ψ ( x ) (exists-elim and (8)).
∀ x . φ ( x ) ∧ ψ ( x ) ⊣ ⊢ ( ∀ x . φ ( x ) ) ∧ ( ∀ x . ψ ( x ) ) \forall x.\varphi(x) \land \psi(x) \dashv\vdash (\forall x.\varphi(x)) \land (\forall x.\psi(x)) ∀ x . φ ( x ) ∧ ψ ( x ) ⊣⊢ ( ∀ x . φ ( x )) ∧ ( ∀ x . ψ ( x )) — two-way.
( ∀ x . φ ( x ) ) ∨ ( ∀ x . ψ ( x ) ) ⊢ ∀ x . φ ( x ) ∨ ψ ( x ) (\forall x.\varphi(x)) \lor (\forall x.\psi(x)) \vdash \forall x.\varphi(x) \lor \psi(x) ( ∀ x . φ ( x )) ∨ ( ∀ x . ψ ( x )) ⊢ ∀ x . φ ( x ) ∨ ψ ( x ) — one-way only.
( ∃ x . φ ( x ) ) ∨ ( ∃ x . ψ ( x ) ) ⊣ ⊢ ∃ x . φ ( x ) ∨ ψ ( x ) (\exists x.\varphi(x)) \lor (\exists x.\psi(x)) \dashv\vdash \exists x.\varphi(x) \lor \psi(x) ( ∃ x . φ ( x )) ∨ ( ∃ x . ψ ( x )) ⊣⊢ ∃ x . φ ( x ) ∨ ψ ( x ) — two-way.
∃ x . φ ( x ) ∧ ψ ( x ) ⊢ ( ∃ x . φ ( x ) ) ∧ ( ∃ x . ψ ( x ) ) \exists x.\varphi(x) \land \psi(x) \vdash (\exists x.\varphi(x)) \land (\exists x.\psi(x)) ∃ x . φ ( x ) ∧ ψ ( x ) ⊢ ( ∃ x . φ ( x )) ∧ ( ∃ x . ψ ( x )) — one-way only.
If Φ , φ ( x ) ⊢ ψ ( x ) \Phi, \varphi(x) \vdash \psi(x) Φ , φ ( x ) ⊢ ψ ( x ) and Φ \Phi Φ is irrelevant with x x x , then Φ , ∀ x . φ ( x ) ⊢ ∀ x . ψ ( x ) \Phi, \forall x.\varphi(x) \vdash \forall x.\psi(x) Φ , ∀ x . φ ( x ) ⊢ ∀ x . ψ ( x ) .
If Φ , φ ( x ) ⊢ ψ ( x ) \Phi, \varphi(x) \vdash \psi(x) Φ , φ ( x ) ⊢ ψ ( x ) and Φ \Phi Φ is irrelevant with x x x , then Φ , ∃ x . φ ( x ) ⊢ ∃ x . ψ ( x ) \Phi, \exists x.\varphi(x) \vdash \exists x.\psi(x) Φ , ∃ x . φ ( x ) ⊢ ∃ x . ψ ( x ) .
∀ x . ∀ y . φ ( x , y ) ⊣ ⊢ ∀ y . ∀ x . φ ( x , y ) \forall x.\forall y.\ \varphi(x, y) \dashv\vdash \forall y.\ \forall x.\ \varphi(x, y) ∀ x .∀ y . φ ( x , y ) ⊣⊢ ∀ y . ∀ x . φ ( x , y ) .
∃ x . ∃ y . φ ( x , y ) ⊣ ⊢ ∃ y . ∃ x . φ ( x , y ) \exists x.\exists y.\ \varphi(x, y) \dashv\vdash \exists y.\ \exists x.\ \varphi(x, y) ∃ x .∃ y . φ ( x , y ) ⊣⊢ ∃ y . ∃ x . φ ( x , y ) .
∃ x . ∀ y . φ ( x , y ) ⊢ ∀ y . ∃ x . φ ( x , y ) \exists x.\forall y.\ \varphi(x, y) \vdash \forall y.\ \exists x.\ \varphi(x, y) ∃ x .∀ y . φ ( x , y ) ⊢ ∀ y . ∃ x . φ ( x , y ) — one-way only.
¬ ∀ x . φ ( x ) ⊣ ⊢ ∃ x . ¬ φ ( x ) \neg\forall x.\varphi(x) \dashv\vdash \exists x.\neg\varphi(x) ¬∀ x . φ ( x ) ⊣⊢ ∃ x .¬ φ ( x ) .
¬ ∃ x . φ ( x ) ⊣ ⊢ ∀ x . ¬ φ ( x ) \neg\exists x.\varphi(x) \dashv\vdash \forall x.\neg\varphi(x) ¬∃ x . φ ( x ) ⊣⊢ ∀ x .¬ φ ( x ) .
Distribution over the restricted body (unparenthesized sides scope as ∀ x . ( φ ( x ) → ( ψ ( x ) ∧ χ ( x ) ) ) \forall x.(\varphi(x) \to (\psi(x) \land \chi(x))) ∀ x . ( φ ( x ) → ( ψ ( x ) ∧ χ ( x ))) etc.):
∀ x . φ ( x ) → ψ ( x ) ∧ χ ( x ) ⊣ ⊢ ( ∀ x . φ ( x ) → ψ ( x ) ) ∧ ( ∀ x . φ ( x ) → χ ( x ) ) \forall x.\varphi(x) \to \psi(x) \land \chi(x) \dashv\vdash (\forall x.\varphi(x) \to \psi(x)) \land (\forall x.\varphi(x) \to \chi(x)) ∀ x . φ ( x ) → ψ ( x ) ∧ χ ( x ) ⊣⊢ ( ∀ x . φ ( x ) → ψ ( x )) ∧ ( ∀ x . φ ( x ) → χ ( x )) .
( ∀ x . φ ( x ) → ψ ( x ) ) ∨ ( ∀ x . φ ( x ) → χ ( x ) ) ⊢ ∀ x . φ ( x ) → ψ ( x ) ∨ χ ( x ) (\forall x.\varphi(x) \to \psi(x)) \lor (\forall x.\varphi(x) \to \chi(x)) \vdash \forall x.\varphi(x) \to \psi(x) \lor \chi(x) ( ∀ x . φ ( x ) → ψ ( x )) ∨ ( ∀ x . φ ( x ) → χ ( x )) ⊢ ∀ x . φ ( x ) → ψ ( x ) ∨ χ ( x ) — one-way only.
∃ x . φ ( x ) ∧ ( ψ ( x ) ∨ χ ( x ) ) ⊣ ⊢ ( ∃ x . φ ( x ) ∧ ψ ( x ) ) ∨ ( ∃ x . φ ( x ) ∧ χ ( x ) ) \exists x.\varphi(x) \land (\psi(x) \lor \chi(x)) \dashv\vdash (\exists x.\varphi(x) \land \psi(x)) \lor (\exists x.\varphi(x) \land \chi(x)) ∃ x . φ ( x ) ∧ ( ψ ( x ) ∨ χ ( x )) ⊣⊢ ( ∃ x . φ ( x ) ∧ ψ ( x )) ∨ ( ∃ x . φ ( x ) ∧ χ ( x )) .
∃ x . φ ( x ) ∧ ( ψ ( x ) ∧ χ ( x ) ) ⊢ ( ∃ x . φ ( x ) ∧ ψ ( x ) ) ∧ ( ∃ x . φ ( x ) ∧ χ ( x ) ) \exists x.\varphi(x) \land (\psi(x) \land \chi(x)) \vdash (\exists x.\varphi(x) \land \psi(x)) \land (\exists x.\varphi(x) \land \chi(x)) ∃ x . φ ( x ) ∧ ( ψ ( x ) ∧ χ ( x )) ⊢ ( ∃ x . φ ( x ) ∧ ψ ( x )) ∧ ( ∃ x . φ ( x ) ∧ χ ( x )) — one-way only.
Exchanging two restricted-domain quantifiers (the first two bullets appear in both handouts; the third only in the May 11 notes):
∀ x . φ ( x ) → ( ∀ y . ψ ( y ) → χ ( x , y ) ) ⊣ ⊢ ∀ y . ψ ( y ) → ( ∀ x . φ ( x ) → χ ( x , y ) ) \forall x.\varphi(x) \to (\forall y.\psi(y) \to \chi(x, y)) \dashv\vdash \forall y.\psi(y) \to (\forall x.\varphi(x) \to \chi(x, y)) ∀ x . φ ( x ) → ( ∀ y . ψ ( y ) → χ ( x , y )) ⊣⊢ ∀ y . ψ ( y ) → ( ∀ x . φ ( x ) → χ ( x , y )) .
∃ x . φ ( x ) ∧ ( ∃ y . ψ ( y ) ∧ χ ( x , y ) ) ⊣ ⊢ ∃ y . ψ ( y ) ∧ ( ∃ x . φ ( x ) ∧ χ ( x , y ) ) \exists x.\varphi(x) \land (\exists y.\psi(y) \land \chi(x, y)) \dashv\vdash \exists y.\psi(y) \land (\exists x.\varphi(x) \land \chi(x, y)) ∃ x . φ ( x ) ∧ ( ∃ y . ψ ( y ) ∧ χ ( x , y )) ⊣⊢ ∃ y . ψ ( y ) ∧ ( ∃ x . φ ( x ) ∧ χ ( x , y )) .
∃ x . φ ( x ) ∧ ( ∀ y . ψ ( y ) → χ ( x , y ) ) ⊢ ∀ y . ψ ( y ) → ( ∃ x . φ ( x ) ∧ χ ( x , y ) ) \exists x.\varphi(x) \land (\forall y.\psi(y) \to \chi(x, y)) \vdash \forall y.\psi(y) \to (\exists x.\varphi(x) \land \chi(x, y)) ∃ x . φ ( x ) ∧ ( ∀ y . ψ ( y ) → χ ( x , y )) ⊢ ∀ y . ψ ( y ) → ( ∃ x . φ ( x ) ∧ χ ( x , y )) — one-way only.
Negated restricted-domain quantifiers:
¬ ∀ x . φ ( x ) → ψ ( x ) ⊣ ⊢ ∃ x . φ ( x ) ∧ ¬ ψ ( x ) \neg\forall x.\ \varphi(x) \to \psi(x) \dashv\vdash \exists x.\ \varphi(x) \land \neg\psi(x) ¬∀ x . φ ( x ) → ψ ( x ) ⊣⊢ ∃ x . φ ( x ) ∧ ¬ ψ ( x ) .
¬ ∃ x . φ ( x ) ∧ ψ ( x ) ⊣ ⊢ ∀ x . φ ( x ) → ¬ ψ ( x ) \neg\exists x.\ \varphi(x) \land \psi(x) \dashv\vdash \forall x.\varphi(x) \to \neg\psi(x) ¬∃ x . φ ( x ) ∧ ψ ( x ) ⊣⊢ ∀ x . φ ( x ) → ¬ ψ ( x ) .
All four require the side condition that φ \varphi φ is irrelevant with x x x :
φ ∧ ∀ x . ψ ( x ) ⊣ ⊢ ∀ x . φ ∧ ψ ( x ) \varphi \land \forall x.\psi(x) \dashv\vdash \forall x.\ \varphi \land \psi(x) φ ∧ ∀ x . ψ ( x ) ⊣⊢ ∀ x . φ ∧ ψ ( x ) (if φ \varphi φ is irrelevant with x x x ).
φ ∨ ∀ x . ψ ( x ) ⊣ ⊢ ∀ x . φ ∨ ψ ( x ) \varphi \lor \forall x.\psi(x) \dashv\vdash \forall x.\ \varphi \lor \psi(x) φ ∨ ∀ x . ψ ( x ) ⊣⊢ ∀ x . φ ∨ ψ ( x ) (if φ \varphi φ is irrelevant with x x x ).
φ ∧ ∃ x . ψ ( x ) ⊣ ⊢ ∃ x . φ ∧ ψ ( x ) \varphi \land \exists x.\psi(x) \dashv\vdash \exists x.\ \varphi \land \psi(x) φ ∧ ∃ x . ψ ( x ) ⊣⊢ ∃ x . φ ∧ ψ ( x ) (if φ \varphi φ is irrelevant with x x x ).
φ ∨ ∃ x . ψ ( x ) ⊣ ⊢ ∃ x . φ ∨ ψ ( x ) \varphi \lor \exists x.\psi(x) \dashv\vdash \exists x.\ \varphi \lor \psi(x) φ ∨ ∃ x . ψ ( x ) ⊣⊢ ∃ x . φ ∨ ψ ( x ) (if φ \varphi φ is irrelevant with x x x ).
Vacuous quantification:
If φ \varphi φ is irrelevant with x x x , φ ⊣ ⊢ ∀ x . φ \varphi \dashv\vdash \forall x.\varphi φ ⊣⊢ ∀ x . φ .
If φ \varphi φ is irrelevant with x x x , φ ⊣ ⊢ ∃ x . φ \varphi \dashv\vdash \exists x.\varphi φ ⊣⊢ ∃ x . φ .
Unrelated antecedent:
φ → ∀ x . ψ ( x ) ⊣ ⊢ ∀ x . φ → ψ ( x ) \varphi \to \forall x.\psi(x) \dashv\vdash \forall x.\ \varphi \to \psi(x) φ → ∀ x . ψ ( x ) ⊣⊢ ∀ x . φ → ψ ( x ) (if φ \varphi φ is irrelevant with x x x ).
Empty-domain style entailments (all one-way ⊢ \vdash ⊢ ):
∀ x . ¬ φ ( x ) ⊢ ∀ x . φ ( x ) → ψ ( x ) \forall x.\neg\varphi(x) \vdash \forall x.\varphi(x) \to \psi(x) ∀ x .¬ φ ( x ) ⊢ ∀ x . φ ( x ) → ψ ( x ) .
∀ x . ¬ φ ( x ) ⊢ ¬ ∃ x . φ ( x ) ∧ ψ ( x ) \forall x.\neg\varphi(x) \vdash \neg\exists x.\varphi(x) \land \psi(x) ∀ x .¬ φ ( x ) ⊢ ¬∃ x . φ ( x ) ∧ ψ ( x ) .
∀ x . ψ ( x ) ⊢ ∀ x . φ ( x ) → ψ ( x ) \forall x.\psi(x) \vdash \forall x.\varphi(x) \to \psi(x) ∀ x . ψ ( x ) ⊢ ∀ x . φ ( x ) → ψ ( x ) .
∀ x . ¬ ψ ( x ) , ∃ x . φ ( x ) ⊢ ¬ ∀ x . φ ( x ) → ψ ( x ) \forall x.\neg\psi(x), \exists x.\varphi(x) \vdash \neg\forall x.\varphi(x) \to \psi(x) ∀ x .¬ ψ ( x ) , ∃ x . φ ( x ) ⊢ ¬∀ x . φ ( x ) → ψ ( x ) .
∀ x . ψ ( x ) , ∃ x . φ ( x ) ⊢ ∃ x . φ ( x ) ∧ ψ ( x ) \forall x.\psi(x), \exists x.\varphi(x) \vdash \exists x.\varphi(x) \land \psi(x) ∀ x . ψ ( x ) , ∃ x . φ ( x ) ⊢ ∃ x . φ ( x ) ∧ ψ ( x ) .
∀ x . ¬ ψ ( x ) ⊢ ¬ ∃ x . φ ( x ) ∧ ψ ( x ) \forall x.\neg\psi(x) \vdash \neg\exists x.\varphi(x) \land \psi(x) ∀ x .¬ ψ ( x ) ⊢ ¬∃ x . φ ( x ) ∧ ψ ( x ) .
Variables symbols: x x x , y y y , z z z , ...
Constants symbols: c 1 c_1 c 1 , c 2 c_2 c 2 , ...
Function symbols: f f f , g g g , h h h , ...
Predicate symbols: P P P , Q Q Q , R R R , ...
Terms (t t t ): x x x , y y y , z z z , ..., c 1 c_1 c 1 , c 2 c_2 c 2 , ..., f ( t 1 , t 2 , . . . ) f(t_1, t_2, ...) f ( t 1 , t 2 , ... ) , ...
Proposition (ϕ \phi ϕ ): P ( t ) P(t) P ( t ) , Q ( t 1 , t 2 ) Q(t_1, t_2) Q ( t 1 , t 2 ) , ϕ 1 ∧ ϕ 2 \phi_1 \land \phi_2 ϕ 1 ∧ ϕ 2 , ¬ ϕ \neg\phi ¬ ϕ , ∃ x . ϕ \exists x.\phi ∃ x . ϕ , ∀ y . ψ \forall y.\psi ∀ y . ψ , ...
Quiz. If x , y , z , … x, y, z, \ldots x , y , z , … are variable symbols, c 0 , c 1 , … c_0, c_1, \ldots c 0 , c 1 , … are constant symbols, f , g , … f, g, \ldots f , g , … are function symbols, and P , Q , R , … P, Q, R, \ldots P , Q , R , … are predicate symbols, then:
which of the following are first order logic terms?
x + 1 x+1 x + 1 , x + y x+y x + y , f ( x , y ) f(x,y) f ( x , y ) , f ( x ) + g ( y ) f(x)+g(y) f ( x ) + g ( y )
c 1 + c 2 c_1+c_2 c 1 + c 2 , f ( g ( c 1 ) ) f(g(c_1)) f ( g ( c 1 )) , h ( f ( x ) , g ( c 2 ) ) h(f(x), g(c_2)) h ( f ( x ) , g ( c 2 ))
which of the following are first order logic propositions?
P ( x ) P(x) P ( x ) , Q ( f ( c 0 ) ) Q(f(c_0)) Q ( f ( c 0 )) , f ( x ) < f ( x + 1 ) f(x) < f(x+1) f ( x ) < f ( x + 1 ) , R ( x , y ) ∧ R ( y , x ) R(x,y) \land R(y,x) R ( x , y ) ∧ R ( y , x )
∀ x . ∃ y . ( x < y ) \forall x.\exists y.\,(x < y) ∀ x .∃ y . ( x < y ) , ∀ x . ∀ y . ( R ( x , y ) ∨ R ( y , x ) ) \forall x.\forall y.\,(R(x,y) \lor R(y,x)) ∀ x .∀ y . ( R ( x , y ) ∨ R ( y , x ))
Answer: terms — f ( x , y ) f(x,y) f ( x , y ) , f ( g ( c 1 ) ) f(g(c_1)) f ( g ( c 1 )) and h ( f ( x ) , g ( c 2 ) ) h(f(x), g(c_2)) h ( f ( x ) , g ( c 2 )) ; propositions — P ( x ) P(x) P ( x ) , Q ( f ( c 0 ) ) Q(f(c_0)) Q ( f ( c 0 )) , R ( x , y ) ∧ R ( y , x ) R(x,y) \land R(y,x) R ( x , y ) ∧ R ( y , x ) and ∀ x . ∀ y . ( R ( x , y ) ∨ R ( y , x ) ) \forall x.\forall y.\,(R(x,y) \lor R(y,x)) ∀ x .∀ y . ( R ( x , y ) ∨ R ( y , x )) .
Free occurrence and bound occurrence. Assume x x x is a variable symbol. In ∀ x . ϕ \forall x.\phi ∀ x . ϕ and ∃ x . ϕ \exists x.\phi ∃ x . ϕ , all occurrences of x x x are called bound occurrences. All other occurrences of x x x are free occurrences.
Open proposition and closed proposition. A FOL proposition ϕ \phi ϕ is open if it contains at least one free occurrence of variables. Otherwise, ϕ \phi ϕ is called a closed proposition.
Example. If L L L is a binary predicate symbol and f f f is a unary function symbol:
x x x freely occurs in L ( x , f ( x ) ) L(x, f(x)) L ( x , f ( x )) ;
x x x and y y y freely occur in L ( x , y ) L(x, y) L ( x , y ) ;
x x x does not freely occur in ∀ x . L ( x , f ( x ) ) \forall x.L(x, f(x)) ∀ x . L ( x , f ( x )) ;
x x x freely occurs in ∃ y . L ( x , y ) \exists y.L(x, y) ∃ y . L ( x , y ) ;
y y y does not freely occur in ∃ y . L ( x , y ) \exists y.L(x, y) ∃ y . L ( x , y ) ;
neither x x x nor y y y does freely occur in ∀ x . ∃ y . L ( x , y ) \forall x.\exists y.L(x,y) ∀ x .∃ y . L ( x , y ) ;
L ( x , f ( x ) ) L(x, f(x)) L ( x , f ( x )) is open;
∀ x . L ( x , f ( x ) ) \forall x.L(x, f(x)) ∀ x . L ( x , f ( x )) is closed;
L ( x , y ) L(x, y) L ( x , y ) is open;
∃ y . L ( x , y ) \exists y.L(x, y) ∃ y . L ( x , y ) is open;
∀ x . ∃ y . L ( x , y ) \forall x.\exists y.L(x, y) ∀ x .∃ y . L ( x , y ) is closed.
( φ ∧ ψ ) [ x 1 ↦ t 1 , . . . , x n ↦ t n ] = φ [ x 1 ↦ t 1 , . . . , x n ↦ t n ] ∧ ψ [ x 1 ↦ t 1 , . . . , x n ↦ t n ] (\varphi \land \psi)[x_1 \mapsto t_1, ..., x_n \mapsto t_n] = \varphi[x_1 \mapsto t_1, ..., x_n \mapsto t_n] \land \psi[x_1 \mapsto t_1, ..., x_n \mapsto t_n] ( φ ∧ ψ ) [ x 1 ↦ t 1 , ... , x n ↦ t n ] = φ [ x 1 ↦ t 1 , ... , x n ↦ t n ] ∧ ψ [ x 1 ↦ t 1 , ... , x n ↦ t n ] .
( φ ∨ ψ ) [ x 1 ↦ t 1 , . . . , x n ↦ t n ] = φ [ x 1 ↦ t 1 , . . . , x n ↦ t n ] ∨ ψ [ x 1 ↦ t 1 , . . . , x n ↦ t n ] (\varphi \lor \psi)[x_1 \mapsto t_1, ..., x_n \mapsto t_n] = \varphi[x_1 \mapsto t_1, ..., x_n \mapsto t_n] \lor \psi[x_1 \mapsto t_1, ..., x_n \mapsto t_n] ( φ ∨ ψ ) [ x 1 ↦ t 1 , ... , x n ↦ t n ] = φ [ x 1 ↦ t 1 , ... , x n ↦ t n ] ∨ ψ [ x 1 ↦ t 1 , ... , x n ↦ t n ] .
( ¬ φ ) [ x 1 ↦ t 1 , . . . , x n ↦ t n ] = ¬ φ [ x 1 ↦ t 1 , . . . , x n ↦ t n ] (\neg\varphi)[x_1 \mapsto t_1, ..., x_n \mapsto t_n] = \neg\varphi[x_1 \mapsto t_1, ..., x_n \mapsto t_n] ( ¬ φ ) [ x 1 ↦ t 1 , ... , x n ↦ t n ] = ¬ φ [ x 1 ↦ t 1 , ... , x n ↦ t n ] .
( ∀ x . φ ) [ x 1 ↦ t 1 , . . . , x n ↦ t n ] = . . . (\forall x.\varphi)[x_1 \mapsto t_1, ..., x_n \mapsto t_n] = ... ( ∀ x . φ ) [ x 1 ↦ t 1 , ... , x n ↦ t n ] = ...
( ∃ x . φ ) [ x 1 ↦ t 1 , . . . , x n ↦ t n ] = . . . (\exists x.\varphi)[x_1 \mapsto t_1, ..., x_n \mapsto t_n] = ... ( ∃ x . φ ) [ x 1 ↦ t 1 , ... , x n ↦ t n ] = ...
(The two quantifier cases are literally left as "= . . . = ... = ... " in the notes.)
FORALL-INTRO : If Φ ⊢ ψ \Phi \vdash \psi Φ ⊢ ψ and x x x does not freely occur in Φ \Phi Φ , then Φ ⊢ ∀ x . ψ \Phi \vdash \forall x.\ \psi Φ ⊢ ∀ x . ψ .
FORALL-ELIM : ∀ x . φ ⊢ φ [ x ↦ t ] \forall x.\varphi \vdash \varphi[x \mapsto t] ∀ x . φ ⊢ φ [ x ↦ t ] .
EXISTS-INTRO : φ [ x ↦ t ] ⊢ ∃ x . φ \varphi[x \mapsto t] \vdash \exists x.\varphi φ [ x ↦ t ] ⊢ ∃ x . φ .
EXISTS-ELIM : If Φ , ψ ⊢ χ \Phi, \psi \vdash \chi Φ , ψ ⊢ χ and x x x does not freely occur in Φ \Phi Φ or χ \chi χ , then Φ , ∃ x . ψ ⊢ χ \Phi, \exists x.\psi \vdash \chi Φ , ∃ x . ψ ⊢ χ .
These restate the quantifier rules of Section 5 with the informal side condition "Φ \Phi Φ is irrelevant with x x x " made precise as "x x x does not freely occur in Φ \Phi Φ (or χ \chi χ )", and instantiation/generalization expressed via syntactic replacement φ [ x ↦ t ] \varphi[x \mapsto t] φ [ x ↦ t ] .