Propositional Logic 1 Introduction: 2 A Brief History of

0 downloads 0 Views 242KB Size Report
represented by a combination of basic ideograms. He suggested that a ... P with the use of connectives with the following rule: (i) P ⊂ W,. (ii) If α, β ... thus the negation of a statement α is true iff the statement α itself false. Consider the .... as inductively in the following way(see the truth tables constructed in 3.3):. (i) v(¬α)=1iff ...
Propositional Logic Subrata Bhowmik Dept. of Mathematics, Tripura University Suryamaninagar, Tripura, India-799022 bhowmik− [email protected]

1

Introduction:

The term ’logic’ came from GREEK word ’logos’, which is sometimes translated as ’sentence’, ’discourse’, ’reason’, ’rule’ and ’ratio’. The GREEK word ’logos’ means thought. There are many thought processes such as ’reasoning’, ’remembering’, ’imagining’. Reasoning is a thought process in which inference takes place. Logic is the science of reasoning. Briefly speaking we might define logic as the study of principles of correct reasoning. Logic is the former discipline, and it tells us how we ought to reason if we want to reason correctly. Logic is the science of how to evaluate arguments and reasoning. Critical thinking is a process of evaluation which uses logic to separate truth from falsehood, reasonable from unreasonable beliefs.

2

A Brief History of logic from ARISTOTLE to GEORGE BOOLE:

In Europe, Logic was first developed by Aristotle(384-322 BCE). Aristotelian logic became widely accepted in science and mathematics and remained in wide use in the west until the early 19th century. Aristotles system of logic was responsible for the introduction hypothetical syllogism, temporal modal logic, and the inductive logic. In the history of logic, classical logic and symbolic logic are two important stage of development. Classical logic is also called the Aristotelian logic or Ancient logic, in contrast to symbolic logic or mathematical logic or modern logic. According to Bassoon and O’conner [1], ”modern symbolic logic is a development of the concepts and techniques which were implicit in the work of Aristotle”. It is now generally agreed by logician that modern symbolic logic is a development of the concepts and techniques which were implicit in the work of Aristotle. The first important name in the development of modern symbolic logic is that of G.W Leibnitz (1646-1716). Leibnitz put forward a two-fold plan for the reform of logic. He suggested first the establishment of a universal scientific language in which all the scientific concepts could be represented by a combination of basic ideograms. He suggested that a universal calculus of reasoning could be devised which would provide an automatic method of solution for all problems which could be expressed in the universal language. Had he carried out of his proposal, he would have provided a system of symbolic logic. The next important name in the development of symbolic logic is that of George Boole (18151864). His contribution consisted in the formulation of a system of algebra which was first set out in the book The Mathematical Analysis of Logic, and in a subsequent work The Laws of Thought. Boole applied his algebra to several branches of logic including the syllogism of the classical logic. This was an important advance in that he showed that the doctrine of the Aristotelian syllogism which had hitherto been regarded as practically co-extensive with deductive logic could be shown to be a special case of a kind of logical algebra. Other important 19th century logicians who contributed to the development of symbolic logic included Augustus de Morgan (1806-1871), W.S Jevons (1835-1882) and C.S Peirce (1839-1914).

1

3

Syntax and Semantics of Propositional Calculus:

Propositional logic is the most basic branch of mathematical logic. The area of logic that deals with propositions is called Propositional logic. It is also called propositional calculus(PC). In Latin, calculus means a stone used in counting. In PC, the truth or falsity of a ”proposition” can be ”counted” determined using ”truth table”. Definition3.1: A declarative sentence ia a sentence which is true or false, but not both, is called a Proposition (or statement). Statements which are exclamatory, interrogative or imperative in nature are not propositions. For example we consider the following sentences (i) New Delhi is the capital of India. (ii) How beautiful is Rose?. (iii) 2+2=3. (iv) What time is it? (v) Take a cup of coffee. In these sentences (ii), (iv) and (v) are obviously not propositions as they are not declarative in nature. Whereas (i) and (iii) are propositions. If a proposition is true, we say that the truth value of the proposition is TRUE, denoted by T or 1. If a proposition is FALSE, the truth value is said to be false, denoted by F or 0. Propositions which do not contain any of the logical operators or connectives (not, and, or, if-then, if-and-only-if) are called atomic propositions (or primitive/simple sentence). Many mathematical statement which can be constructed by combining one or more atomic statements using connectives are called molecular or compound propositions (or compound sentences or simply sentences). The truth value of a compound proposition depends on those of sub propositions and the way in which they are combined using connectives. Definition3.2: The language L of a propositional logic consisting of: (1) A countable set P of simple sentences. (2) A set {¬, ∨, ∧, →, ↔} of connectives. ¬ (not: negation) is a unary connective; the connectives ∨ (or: disjunction), ∧ (and: conjunction), → (if-then: conditional), ↔ (if-and-only-if: biconditional) are binary connectives. We define a set W of Well Form Formulas(wffs) or simply formulas or sentences formed from P with the use of connectives with the following rule: (i) P ⊂ W , (ii) If α, β ∈ W then ¬α, α ∨ β, α ∧ β, α → β, α ↔ β ∈ W , (ii) The members of W are only defined by the above rules (i) and (ii). Truth Value Evaluation3.3: All our propositions are either true or false, that is taking only one truth value not simultaneously both. So if a proposition is not true (denoted by T or 1) then it must be of opposite truth value that is false (denoted by F or 0), similarly if it is not false then it must be of opposite truth value that is T or 1. From the truth value of the compound statement with connectives we need to understand the meaning of connectives and evaluate the truth value from the nature of the connectives and the component(s) of the sentence adjoint by the connectives.

2

(i) Negation(¬): It is an unary connective, that is it associated with only one statement. It is in the sense of ”NOT” (not happening of the statement). The negation of a statement α is written as ¬α (NOT ”α”). The truth evaluation of negation of statement is opposite to the statement, thus the negation of a statement α is true iff the statement α itself false. Consider the example: α=”City X is capital of country Y.” So ¬α=”City X in NOT capital of country Y”. Naturally if α is true then obviously ¬α is false and α is false then obviously ¬α is true. The truth valuation of negation of a statement can be expressed by the following truth table: α ¬α 1 0 0 1 (ii) Disjunction(∨): It is a binary connective, that is it adjoin with two statements. The nature of this connective is in the sense of ”OR” (happening of at least any one of the statements). The disjunction of two statement α and β is written as α ∨ β (”α OR ”β”). The truth evaluation is true if we find at least any one of the adjoint statement is true, else false. Consider the example: α=”SIMRAN is dancing” and β=”MITA is singing”. Thus α ∨ β=”SIMRAN is dancing” OR ”MITA is singing”. This compound statement is considered to be true if at least any one of the event occur or both. See the following truth table evaluation: α 1 1 0 0

β α∨β 1 1 0 1 1 1 0 0

(iii) Conjunction(∧): It is a binary connective, that is it adjoin with two statements. The nature of this connective is in the sense of ”AND” (happening of both of the statements). The conjunction of two statement α and β is written as α ∧ β (”α AND ”β”). The truth evaluation is true if we find both of the adjoint statement is true, else false. Consider the example: α=”SIMRAN is dancing” and β=”MITA is singing”. Thus α ∧ β=”SIMRAN is dancing” AND ”MITA is singing”. This compound statement is considered to be true if both of the event occur. If any one or both do not happened the conjunction should be considered false. See the following truth table evaluation: α 1 1 0 0

β α∧β 1 1 0 0 1 0 0 0

(iv) Conditional(→): It is a binary connective, that is it adjoin with two statements. The conditional statement for two statement α and β is written as α → β (If ”α” THEN ”β”), where α is called antecedent and β is called consequent. Intuitively we mean α → β as β is deducible from α. Consider the statement α=”Apply Shreedharacharya formula to quadratic equation f (x) = 0” and β=”Solution of quadratic equation f (x) = 0”. (a) If α is true then we have applied Shredharacharya formula to the equation f (x) = 0 thus if β is true then we have a solution of the equation f (x) = 0 which is true, thus the statement α → β is true. 3

(b) If α is true then we have applied Shredharacharya formula to the equation f (x) = 0 thus if β is false then we have a wrong solution of the equation f (x) = 0 which is not possible, thus the statement α → β becomes false. (c) Again if α is false then we have not applied Shredharacharya formula to solve the equation f (x) = 0, may be some other method applied (correct or false method) or may not applied any method to solve f (x) = 0, then we may get solution of f (x) = 0 (correct or false) or may not get any solution accordingly, that is whether β is true or false the conditional statement α → β have to be taken true. Consider another example: α=”KIRAN walk through the main way of University”, β=”KIRAN get the University”. (a) If α is true then KIRAN follow the right path to the university. Thus if β is true then we must accept α → β is true. (b) If α is true but is β is false, then though he follow correct path, he did not get the university which we cannot accept and so we have to take the conditional statement α → β is false. (c) If α is false, then KIRAN did not follow the main way, he may follow another way that may lead to university or not or may did not follow any way; so accordingly he will get the university or not, that is β may be true or false, and so we have to take the conditional statement α → β is true for any truth value of β. The truth value evaluation of conditional statement can be demonstrated in the following truth table: α 1 1 0 0

β α→β 1 1 0 0 1 1 0 1

(v) biconditional(↔): It is a binary connective, that is it adjoin with two statements. The biconditional statement for two statement α and β is written as α ↔ β (”α” IF ONLY IF ”β”). The nature of this statement is that α is happening whenever β is happening and conversely, in other words ”if α then β and if β then α”. The truth value of this statement is consider to be true if both agree that is both have the same truth value. Consider the example: For triangles consider the statements in Euclidean plane geometry, α=”All sides are equal” and β=”All angle are equal”. We already know that if α is true then also β and conversely; in other word if α is false then β is false and conversely. Thus the statement ”α IF AND ONLY IF β” that α ↔ β is true whenever α and β are simultaneously true or false. The truth evaluation of conditional statement can be demonstrated in the following truth table: α 1 1 0 0

β α↔β 1 1 0 0 1 0 0 1

Now we define the truth evaluation of a sentence from the truth assignment of the simple sentences.

4

Definition3.4: A truth assignment or valuation or model of the language L of propositional calculus is a mapping: v : P → {0, 1} . Now we define the truth value of any sentence of W to be the extension of the mapping v to v : W → {0, 1} as inductively in the following way(see the truth tables constructed in 3.3): (i) v(¬α) = 1 iff v(α) = 0. (ii) v(α ∨ β) = 1 iff v(α) = 1 or v(β) = 1. (iii) v(α ∧ β) = 1 iff v(α) = 1 and v(β) = 1. (iv) v(α → β) = 1 iff v(α) = 0 or v(β) = 1. (v) v(α ∨ β) = 1 iff v(α) = 1 = v(β) or v(α) = 0 = v(β). Let V be the set of all valuation on L. Definition3.5: α ∈ W is said to be a: (i) Tautology if for any model v, v(α) = 1. We write |= α. If α is not a tautology we will write 2 α. (ii) Contradiction if for any model v, v(α) = 0, or in other word ¬α is a tautology (i.e. |= ¬α). Example3.6: Tautology: (i) α∨¬α (law of excluded middle). (ii) α → α∨β. (iii) α∧β → β. Contradiction: (i) α ∧ ¬α, (ii) ¬(α → α). Definition3.7: Two statements α and β are said to be contradictory to each other if α ∧ β is a contradiction. Definition3.8: Let α, β ∈ W , we say α and β are logically equivalent if for any model v, v(α) = v(β). We write α ≡ β. Example3.9: (i) α ∨ ¬α ≡ β ∨ ¬β, α ∧ ¬α ≡ β ∧ ¬β, (ii) α ∨ β ≡ β ∨ α, α ∧ β ≡ β ∧ α (commutative) (ii) α ∨ (β ∨ γ) ≡ (α ∨ β) ∨ γ, α ∧ (β ∧ γ) ≡ (α ∧ β) ∧ γ (associative) (iii) α ∨ β ≡ ¬(¬α ∧ ¬β), α ∧ β ≡ ¬(¬α ∨ ¬β). (iv) α → β ≡ ¬α ∨ β. (v) α → β ≡ ¬β → ¬α. (vi) α ↔ β ≡ (α → β) ∧ (β ↔ α). (vii) α ≡ ¬¬α. (viii) α ∨ (α ∧ β) ≡ α, α ∧ (α ∨ β) ≡ α (Absorption). Theorem3.10: (i) α ≡ β iff |= α ↔ β iff |= α → β and |= β → α. (ii) If α ≡ β and |= α then |= β. (iii) If |= α and |= α → β then |= β. (iv) If α ≡ β then ¬α ≡ ¬β. (v) If α1 ≡ α2 and β1 ≡ β2 then α1 ∨ β1 ≡ α2 ∨ β2 and α1 ∧ β1 ≡ α2 ∧ β2 . Also α1 → β1 ≡ α2 → β2 . Theorem3.11: The relation ≡ on W is an equivalence relation on W . Let < α > be the equivalence class containing α ∈ W and W/≡ be the collection of all equivalence classes. 5

Define the binary operations t; u and an unary operation ∼ on W/≡ as < α > t < β >=< α ∨ β >, < α > u < β >=< α ∧ β > and ∼< α >=< ¬α >. Then these operations are well defined and (W/≡ , t, u, ∼, ⊥, >) forms a Boolean algebra, where ⊥ =< α ∧ ¬α > the class of contradictions and > =< α ∨ ¬α > the class of tautologies. (Exercise) Exercise3.12: Consider the set of simple sentences P = {p, q, r}. Check weather the following pair of formulas are equivalent or not. (i) (p → q) → p and p. (ii) ¬p ∨ q and ¬q ∨ p. (iii) p ∨ (q ↔ r) and (p ∨ q) ↔ (p ∨ r). (iv) p → (q → r) and (p → q) → (p → r). Definition3.13:(Adequate Set of Connectives) A subset C of the set of connectives {¬, ∨, ∧, →, ↔} is said to be a adequate set of connectives if any formula is logically equivalent to a formula having only connectives from the set C. Theorem3.14: Show that (i) {¬, ∨}, (ii) {¬, →}, (iii) {¬, ∧} are adequate set of connectives. Proof: (i) and (iii) are exercise. (ii) Let v be any model. Claim I: α ∨ β ≡ ¬α → β. Verification: v(¬α → β) = 1 iff v(¬α) = 0 or v(β) = 1 iff v(α) = 1 or v(β) = 1 iff v(α ∨ β) = 1. Thus Claim I verified. Claim II: α ∧ β ≡ ¬(α → ¬β). Verification: v(¬(α → ¬β)) = 1 iff v(α → ¬β) = 0 iff v(α) = 1 and v(¬β) = 0 iff v(α) = 1 and v(β) = 1 iff v(α ∧ β) = 1. Thus Claim II verified. Claim III: α ↔ β ≡ (α → β) ∧ (β → β). Verification: v((α → β) ∧ (β → α)) = 1 iff v(α → β) = 1 and v(β → α) = 1 iff v(α) = 0 or v(β) = 1 and v(β) = 0 or v(α) = 1 iff v(α) = 0 = v(β) or v(α) = 1 = v(β) iff v(α ↔ β) = 1. Thus Claim III verified. Hence by verifying Claim I, II and III we conclude that {¬, →} is a adequate set of connectives. And this set is minimal as further reduction is not possible due to only one unary and only one binary connectives, further reduction will loss all the binary connectives or the unary connective. Note3.15: Let F ⊂ W and v ∈ V . If for any α ∈ F , v(α) = 1 we write v |= F and we say v is a model of F . If F = {β} we can write v |= β. Definition3.16: Let F ⊆ W and β ∈ W . We say F logically infer β if for any model v, if v |= F then v |= β (i.e. v(β) = 1) or in other words if for any model v if v(β) = 0 then ∃ α ∈ F such that v(α) = 0). If F = {α1 , α2 , ....., αn }, we write α1 , α2 , ....., αn |= β. If F does not logically infer β we will write F 2 β. Theorem3.17: ∅ |= β iff |= β (i.e. β is a tautology). Theorem3.18: (i) α ≡ β iff α |= β and β |= α. (ii) α1 , α2 , ...., αn |= β iff α1 ∧ α2 ∧ ...... ∧ αn |= β. (iii)For any α, β ∈ W , α, ¬α |= β (equivalently α ∧ ¬α |= β). 6

(iv) α, α → β |= β. (v) α |= β iff |= α → β. (vi) α1 , α2 , ...., αn |= β iff α1 , ...., αn−1 |= αn → β iff |= α1 → (α2 → (....(αn → β).....)). Theorem3.19: α ≡ β iff α |= β and β |= α. Theorem3.20: The relation  on W defined as α  β iff α |= β (equivalently |= α → β) is a partial ordering on W . Define a relation  on W/≡ defined as < α >< β > iff α  β, then  is an well defined and is a partial ordering on W/≡ . (Exercise) Theorem3.21: (i) F ⊆ E ⊂ W , F |= β implies E |= β. (ii) F |= α or F |= β iff F |= α ∨ β. (iii) If F |= α and F |= α → β then F |= β. (iv) F |= α and F |= α iff F |= α ∧ β. (v) If F |= α → β and F |= β → γ then F |= α → γ (Thus If |= α → β and |= β → γ then |= α → γ).

4

Satisfiability:

Definition4.1: Let F ⊆ W . F is said to be (i) Satisfiable if there exists a truth evaluation v, such that for any α ∈ F , v(α) = 1, that is v |= F . Otherwise F is said to be not satisfiable. A wff α is said to be satisfiable if the set {α} is satisfiable, i.e. there exists a model v such that v(α) = 1. (ii) Finitely satisfiable if every finite subset of F is satisfiable. Example4.2: For any α ∈ W , {α, ¬α} is not a satisfiable set. Theorem4.3: (i) F is not satisfiable iff (ii) for any sentence α, F |= α iff (iii) there exists a sentence β such that F |= α and F |= ¬β both iff (iv) there exists a sentence β such that F |= β ∧ ¬β. Proof: (i) implies (ii): Let F is not satisfiable. So we can say for any model v and for any sentence α, if v(α) = 0, there is some γ ∈ F such that v(γ) = 0, so F |= α for any sentence α. (ii) implies (iii): Follows from (ii) for some fixed sentence β. (iii) implies (iv): Immediate. (iv) implies (i): Due to (iv) there is no model v which satisfies F . Theorem4.4: If F is finitely satisfiable and β ∈ / F , then F ∪ {β} or F ∪ {¬β} is finitely satisfiable. Proof: Let F ∪ {¬β} is not finitely satisfiable. So ∃ a finite set S ⊆ F such that S ∪ {¬β} is not satisfiable. So whenever v |= F , v(¬β) = 0, i.e. v(β) = 1, hence S |= β.......(i) Let K ⊆ F be finite. Now S ⊆ S ∪ K, so S ∪ K |= β (from (i))........(ii) Since both S and K are finite subset of F , so S ∪ K is also a finite subset of F , so ∃ a model u such that u |= S ∪ K. So from (ii) u(β) = 1. Thus u |= K ∪ {β}. Thus F ∪ {β} is finitely satisfiable.

7

Exercise4.5: Consider the set P = {p, q, r} of simple sentences. Check wheatear the following formulas are tautology, contradiction or satisfiable: (i) p → ((q ∧ ¬r) → ¬p). (ii) (p ↔ (¬q ∨ r)) → (¬p → q). (iii) (p → (q ∨ r)) ∨ (p → q). (iv) (p ∧ q) → (p ∨ r). (v) ((p → q) → p) → p. Theorem4.6: (i) F |= α iff F ∪ {¬α} is not satisfiable. (ii) F ∪ {α} is satisfiable iff F 2 ¬α. Proof: (i) Let F |= α. If possible let F ∪ {¬α} is satisfiable. So there exists v |= F ∪ {¬α}, i.e. v |= F and v(¬α) = 1, i.e. v(α) = 0 which is not possible. Hence F ∪ {¬α} is not satisfiable. Conversely, suppose that F ∪{¬α} is not satisfiable. If possible let F 2 α, so there exists v ∈ V sauch that v |= F and v(α) = 0, i.e. v(¬α) = 1, i.e. v |= F ∪ {¬α}, i.e. F ∪ {¬α} is satisfiable which is not possible. Hence F |= α. (ii) Let F ∪ {α} is satisfiable. So there exists v |= F ∪ {α}, i.e. v |= F and (vα) = 1, i.e. v(¬α) = 0 and thus F 2 ¬α. Conversely, suppose that F 2 ¬α. So there exists a model v such that v |= F but v(¬α) = 0, i.e. v(α) = 1, i.e. v satisfies F ∪ {α}. So F ∪ {α} is satisfiable. Corr4.7: (i) F |= ¬α iff F ∪ {α} is not satisfiable. (ii) F ∪ {¬α} is satisfiable iff F 2 α. (iii) |= α iff ¬α is not satisfiable. (iv) α is satisfiable iff 2 ¬α. (v) |= ¬α iff α is not satisfiable. (vi) ¬α is satisfiable iff 2 α. Definition4.8: A satisfiable (finitely satisfiable) set M is said to be maximal satisfiable (resp. maximal finitely satisfiable) set if M cannot enlarge to a larger satisfiable (resp. finitely satisfiable) set, i.e. if F is satisfiable (resp. finitely satisfiable) set and M ⊆ F then F = M . Theorem4.9: Let M be a maximal finitely satisfiable (mfs) set then: (i) For any β ∈ W , either β ∈ M or ¬β ∈ M . (ii) If α, α → β ∈ M then β ∈ M . (iii) α ∨ β ∈ M iff α ∈ M or β ∈ M . (iv) α ∧ β ∈ M iff α ∈ M and β ∈ M . Proof: (i) M is a finitely satisfiable set. Let β ∈ / M , so M ∪ {β} or M ∪ {¬β} is finitely satisfiable. If M ∪ {β} is not finitely satisfiable, then M ∪ {¬β} is finitely satisfiable. But M ⊆ M ∪ {¬β}, by maximality of M , ¬β ∈ M . So β ∈ M or ¬β ∈ M . If β, ¬β ∈ M , then {β, ¬β} is a finite subset of M which is not satisfiable. A contradiction arose. Hence, either β ∈ M or ¬β ∈ M . (ii) Let α, α → β ∈ M and if possible β ∈ / M . By (i) ¬β ∈ M . Thus {α, α → β, ¬β} finite subset of M which is not satisfiable, which contradicts the finite satisfiability of M . 8

Hence β ∈ M . (iii) Let α ∨ β ∈ M . If possible let α ∈ / M and β ∈ / M . By (i) ¬α ∈ M and ¬β ∈ M . Thus {α ∨ β, ¬α, ¬β} is a finite subset of M which is not satisfiable which is not satisfiable, which contradicts the finite satisfiability of M . Hence α ∈ M or β ∈ M . (iv) Exercise. Theorem4.10: Every finitely satisfiable set of sentences contained in a maximal finitely satisfiable set of sentences. Proof: Let F is finitely satisfiable. Let P = {E ⊂ W : F ⊆ E and E finitely satisfiable}. Thus F ∈ P and (P, ⊆) is a poset. Let C be a chain in P. Let G = ∪C. Since for any E ∈ C, F ⊆ E, so F ⊆ G. Let {β1 , ...., βn } be a finite subset of G, so ∃, E1 , ..., En ∈ C such that βk ∈ Ek . But C is a chain, so all Ek0 s subset of one Ek for some k = 1, ..., n say Ej , i.e. {β1 , ...., βn } ⊆ Ej . Since Ej is finitely satisfiable, so {β1 , ...., βn } is satisfiable. Thus any finite set of G is satisfiable, i.e. G is finitely satisfiable and F ⊆ G, i.e. G ∈ P. But for any E ∈ C, E ⊆ G, i.e. G is an upper bound of C. Hence every chain in P has an upper bound, so by Zorn’s lemma P has a maximal element say M (with F ⊆ M ) which is a maximal finitely satisfiable set. Theorem4.11:(Compactness Theorem of Propositional Calculus): F be a set of sentences. F is satisfiable iff F is finitely satisfiable. Proof: If F is satisfiable then F obviously finitely satisfiable. Conversely let F is finitely satisfiable. Then F contained in a maximal finitely satisfiable set M (say). We define v : W → {0, 1} as v(α) = 1 iff α ∈ M . Now we see that for any α, β ∈ W (i) v(¬α) = 1 iff ¬α ∈ M iff α ∈ / M iff v(α) = 0. (iii) v(α ∨ β) = 1 iff α ∨ β ∈ M iff α ∈ M or β ∈ M iff v(α) = 1 or v(β) = 1. Thus v/P defines a valuation (which is defined since for any simple sentence p either p ∈ M or ¬p ∈ M , i.e. either v(p) = 1 or v(p) = 0). Thus v |= M , hence v |= F . Thus F is satisfiable. Theorem4.12: Let M be a maximal satisfiable (ms) set then, (i) for any β ∈ W , β ∈ M iff M |= β. (ii) |= α implies α ∈ M . (iii) If α ≡ β, then α ∈ M iff β ∈ M , (in other word |= α ↔ β implies α ∈ M iff β ∈ M ). (iv) If α → β ∈ M , then α ∈ M implies β ∈ M . (v) If α ↔ β ∈ M , then α ∈ M iff β ∈ M . Proof: (i) Let β ∈ M , then obviously M |= β. Conversely let M |= β. If possible let β ∈ / M . Since M is satisfiable, hence finitely satisfiable and must be maximal. So ¬β ∈ M . Since M is satisfiable, ∃ a model v such that v |= M , so v(¬β) = 1, i.e. v(β) = 0. since M |= β, v(β) = 1, which is a contradiction. Hence β ∈ M . 9

(ii)-(v) Exercise. Theorem4.13: F |= β iff for a finite E ⊆ F , E |= β Proof: Let for as finite E ⊆ F , E |= β, which readily implies F |= β by definition. Conversely, let F |= β, but for any finite E ⊆ F , E 2 β, so E ∪ {¬β} is satisfiable. Thus F ∪ {¬β} is finitely satisfiable. By compactness theorem F ∪ {¬β} is satisfiable, i.e. F 2 β, which is not possible. Thus ∃ a finite E ⊆ F such that E |= β. Definition4.14: F ⊂ W we define model of F to be the set M od(F ) = {v : v |= F }. For F = {α} we will write M od(F ) = M od(α). Definition4.15: F ⊂ W we define the theory generated by F to be the set T h(F ) = {β ∈ W : F |= β}. For F = {α} we will write T h(F ) = T h(α) which is the set {β ∈ W : α |= β}. Exercise4.16: Let E ⊆ F ⊂ W . Show that (i) M od(F ) ⊆ M od(E). (ii) If F |= β iff M od(F ) ⊆ M od(β). (iii) F ⊆ T h(F ). (v) T h(E) ⊆ T h(F ). (vi) T h(∅) is the set of all tautologies. (vii) T h(α) ∩ T h(β) = T h(α ∧ β), M od(α) ∩ M od(β) = M od(α ∧ β). (viii) T h(α) ∪ T h(β) = T h(α ∨ β), M od(α) ∪ M od(β) = M od(α ∨ β). (ix) |= α → β iff T h(β) ⊆ T h(α) iff M od(α) ⊆ M od(β). (x) |= α ↔ β iff T h(α) = T h(β) iff M od(α) = M od(β). (xi) For ∅ ⊆ W , T h(∅) = {α :|= α} i.e. the set of all tautologies. Definition4.17: Let F ⊂ W . F is said to be propositional theory iff it is closed under tautological consequence, that is if F |= β then β ∈ F . Theorem4.18: For any F ⊂ W , (i) T h(F ) is a propositional theory. (ii) F is a propositional theory iff F = T h(F ). (iii) T h(T h(F )) = T h(F ) (iv) T h(F ) is the smallest propositional theory E such that F ⊆ E. Proof: (i) Let T h(F ) |= β. If possible β ∈ / T h(F ). So F 2 β, i.e. F ∪ {¬β} is satisfiable. So there exists v |= F ∪ {¬β}, i.e. v |= F and v(β) = 0. Now if α ∈ T h(F ) then F |= α, so v(α) = 1, thus v |= T h(F ) and since T h(F ) |= β, v(β) = 1 which is a contradiction. So β ∈ T h(F ). Thus T h(F ) is a propositional theory. (ii) We already know that F ⊆ T h(F ). Now let F is a propositional theory, so F |= β implies β ∈ F , i.e. β ∈ T h(F ) implies β ∈ F , i.e. T h(F ) ⊆ F . Thus (ii) F = T h(F ) (iii) Follows from (i) and (ii). (iv) We already know that F ⊆ T h(F ). Now if E is a propositional theory then T h(E) = E and if F ⊆ E then T h(F ) ⊆ T h(E) = E, ie. F ⊆ T h(F ) ⊆ E. Thus (iv) follows.

10

Definition4.19: For a truth assignment v we define the theory of v to be the set T h(v) of all sentences which are true under v, i.e. T h(v) = {α ∈ W : v(α) = 1}. Theorem4.20 For any truth assignment u and v, (i) T h(u) = T h(v) iff u = v. (ii) T h(u) ⊆ T h(v) iff u = v. (iii) For any statement α either α ∈ T h(v) or ¬α ∈ T h(v). (iv) T h(v) is a maximal satisfiable set. Proof. (i) Let T h(u) = T h(v). For any simple sentence p, u(p) = 1 iff p ∈ T h(u) iff p ∈ T h(v) iff v(p) = 1 i.e. u = v. Converse follows directly. (ii) Let T h(u) ⊆ T h(v). If possible T h(u) 6= T h(v). So there exists a simple sentence α such that α ∈ T h(v) but α∈ / T h(u). So u(α) = 0 and v(α) = 1. So u(¬α) = 1, i.e. ¬α ∈ T h(v), hence α, ¬α ∈ T h(v), which is not possible. Hence T h(u) = T h(v), i.e. u = v. Converse follows directly. (iii) Easy to prove. (iv) Let T h(v) is a satisfiable set, since it has a model v. If T h(v) is not maximal satisfiable set, there exists a statement α ∈ / T h(v) and T h(v) ∪ {α} is satisfiable. So there exists a model u satisfying T h(v) ∪ {α}, thus T h(v) ∪ {α} ⊆ T h(u), i.e. T h(v) ⊆ T h(u). which implies u = v, which is not possible since v(α) = 0 and u(α) = 1. Thus T h(v) is a maximal satisfiable set. Theorem4.21: M is a maximal satisfiable set iff it has an unique model (truth assignment). If v that unique model then M = T h(v). Proof: Let M is maximal. Let v satisfies M , so M ⊆ T h(v). but T h(v) is satisfiable set, so M = T h(v). Thus for any two models u and v satisfying M , M = T h(u) and M = T h(v), i.e. T h(u) = T h(v), i.e. u = v. Thus M has an unique model. The last part follows from above proof. Converse directly follows. Corr4.22: For any model v, v is the unique model of T h(v). Definition4.23: For any non-empty set K of truth assignments / models we define the theory of K to be the set T h(K) = {α ∈ W : v(α) = 1 for all v ∈ K}. Definition4.24: For any non-empty set K of truth assignments / models we say K is axiomatizable if for some F of sentences, K = M od(F ). Theorem4.25: (i) T h(K) = ∩{T h(v) : v ∈ K}. (ii) K ⊆ M od(T h(K)). (iii) For any set of sentences F , F ⊆ T h(M od(F )). (iv) F is a propositional theory then F = T h(M od(F )). (v) T h(F ) = T h(M od(F )). (vi) If K is axiomatizable then K = M od(T h(K)). Proof: 11

(i) Exercise. (ii) Let u ∈ K then u |= T h(u). Since ∩{T h(v) : v ∈ K} ⊆ T h(u), so u |= ∩{T h(v) : v ∈ K}, i.e. u |= M od(T h(K)). Thus K ⊆ M od(T h(K)). (iii) T h(M od(F )) = ∩{T h(v) : v ∈ M od(F )} = ∩{T h(v) : v |= F }, let α ∈ / T h(M od(F )), so α∈ / T h(v) for some v |= F . Since F ⊆ T h(v), α ∈ / F . Hence (iii) follows. (iv) Let α ∈ T h(M od(F )), so for any v ∈ M od(F ), v(α) = 1, so v |= F implies v(α) = 1, i.e. F |= α, i.e. α ∈ T h(F ). Since F is a propositional theory T h(F ) = F . Thus α ∈ F . So T h(M od(F )) ⊆⊆ F . Using (iii) (iv) follows. (iii) Exercise. (vi) Let K is axiomatizable. So there exists a set F of formulas such that K = M od(F ). Now F ⊆ T h(M od(F )), i.e. F ⊆ T h(K), thus M od(T h(K)) ⊆ M od(F ) = K. Then using (i) (vi) follows.

5

Topological Interpretation of Compactness Theorem:

In this section we will construct a topological space and see the interpretation of the compactness theorem from topological point of view. Definition5.1: Let for any α ∈ W , let Vα = {v ∈ V : v(α) = 1} = M od(α). Let BV = {Vα : α ∈ W }. Theorem5.2: (i) Vα ∪ Vβ = Vα∨β . (ii) V¬α = V − Vα . (iii) Vα ∩ Vβ = Vα∧β . (iv) For any tautology α, Vα = V and for any contradiction β, Vβ = ∅. Theorem5.3: BV form a topology on V say τ (V ) which is zero-dimensional Hausdorff space. Proof: (i) BV form a topology on V : Let v ∈ V , and p ∈ P , then either v(p) = 0 or 1. If v(p) = 0 then v ∈ V¬p else v ∈ Vp , so BV is a cover of V . Also for any α, β ∈ W , Vα ∩ Vβ = Vα∧β ∈ BV . So BV form a base for a topology on V . (ii) τ (V ) is zero dimensional: Since V − Vα = V¬α , so every member of BV is clopen, so the topology is zero-dimensional. (iii) τ (V ) is Hausdorff: Let u, v ∈ V and u 6= v, then there exists p ∈ P such that u(p) 6= v(p). With out loss of generality suppose u(p) = 0, then v(p) = 1. So v ∈ V¬p and u ∈ Vp . Also Vp ∩ V¬p = V¬p∧p = ∅. Theorem5.4: (BV , ∪, ∩, V − (.), ∅, V ) forms a Boolean algebra. Theorem5.5(Compactness Theorem from topological point of view): Compactness theorem holds iff the topological space (V, τ (V )) is a compact space. Proof: Let compactness theorem holds: Let C be any collection of of closed sets with finite intersection property. We can suppose all closed sets are proper subset of V . We define 12

F = {¬α : Vα ⊆ V − C for some C ∈ C}. Let {¬α1 , ...., ¬αn } be a finite subset of F , So there exist Ck ∈ C, k = 1, ...., n such that V αk ⊆ V − C k . Now S = V − ∪nk=1 Vαk ⊇ ∩nk=1 Ck 6= ∅. So S is a non-empty set, and contains all v ∈ S such that αk are 0 for k = 1, ..., n, i.e. there exists a v ∈ C such that v(¬αk ) = 1 for k = 1, ..., n. Thus F is finitely satisfiable, so by compactness theorem F is satisfiable, so there exists a v ∈ V such that v(¬α) = 1 for all ¬α ∈ F . Since each sets in C is proper subset of V , so each set V − C for each C ∈ C contains a Vα for some α and ¬α ∈ F . Thus v ∈ / Vα ⊆ V − C for each C ∈ C, i.e. v ∈ C for each C ∈ C, i.e. C has non-empty intersection. Hence (V, τ (V )) is a compact space. Conversely, suppose (V, τ (V )) is a compact space: Let F be an infinite subset of W which is finitely satisfiable. Let C = {Vα : α ∈ F }, then C is a family of closed subsets. Since for any finite subset of F has a model, so C has finite intersection property. By compactness of (V, τ (V )), C has non-empty intersection, i.e. there is a model satisfying all the statements in F .

6

Axiomatic Approach(Hilbert Calculi of Propositional Logic):

By the use of truth table or truth value evaluation we have decided whether a formula a tautology or not, whether two formulas are equivalent or not etc. These were some simple part of proposition logic. But dealing with more complex part of the logic cannot be handled by truth table or truth value evaluation or by any other similar effective procedure. In this part we will construct a formal axiomatic approach to deal with propositional logic. In axiomatic approach we consider a set of tautologies as axioms and one ore more formal rule of inferring a sentence from a finite number of sentences called rule of inference. Definition6.1: Let P be a countable set of simple sentences. We consider the primitive set of connectives {¬, →} and we form the set W of wff from P with the connectives ¬ and → as: (i) P ⊂ W , (ii) If α, β ∈ W then ¬α, α → β ∈ W , (ii) The members of W are only defined by the above rules (i) and (ii). We consider the axioms of propositional calculus (PC): for any wff α, β, γ (PC1) α → (β → α) (PC2) (α → (β → γ)) → ((α → β) → (α → γ)) (PC3) (¬α → ¬β) → (β → α). The only rule of inference is Modus Ponens (MP): (MP) α,α→β β We can also write the above process as: MP(α, α → β) = β. (Concluding/infering β from α and α → β). We define three more connectives ∨, ∧ and ↔ defined as follows: α ∨ β = ¬α → β α ∧ β = ¬(α → ¬β) 13

α ↔ β = (α → β) ∧ (β → α). (NB: From truth valuation we can see that (MP) is of the form:

α,¬α∨β ). β

Definition6.2: A proof is a sequence α1 , α2 , ...., αn in W such that for each k, αk is an axiom or αk is a direct consequence of some of the preceding αi and αj (1 ≤ i, j < k) by MP. Definition6.3: Let α ∈ W , we say α is a theorem if there exists a proof α1 , α2 , ...., αn such that αn = α called proof of α. We write ` α. Thus if α is an axiom then ` α. If α is not a theorem we will write 0 α. Theorem6.4: ` α → α. Proof: (i) α → (α → α). (PC1) (ii) α → ((α → α) → α). (PC1) (ii) (α → ((α → α) → α)) → ((α → (α → α)) → (α → α)). (PC2) (iii) (α → (α → α)) → (α → α). (MP (ii), (iii)) (iv) α → α. (MP (i), (iii)) Thus ` α → α. Theorem6.5: ` α and ` α → β implies ` β. Proof: Let α1 , ...., αn be a proof of α where αn = α and β1 , ...., βm be a proof of α → β, then α1 , ...., αn , β1 , ...., βm , β is a proof of β where the last sentence follows from αn and βm be MP. Theorem6.6: If the wff α is an axiom then |= α. Proof: Exercise. Theorem6.7(Soundness Theorem of Propositional Calculus): For a sentence α, ` α implies |= α. Proof: Since ` α, so there is a proof of α say α1 , α2 , ...., αn such that each αk is an axiom of PC or for k > 2, αk follows from αi , αj for some 1 ≤ i, j < k by MP. Now, obviously α1 and α2 are axioms, so |= α1 and |= α2 . Lets us prove the theorem by induction. Let k > 2 and for i < k, |= αi . Now if αk is an axiom then |= αk . Now if αk is not an axiom then αk follows from αi and αj by the rule MP where 1 ≤ i, j < k and αj is of the form αi → αk . Now |= αi and |= αj , i.e. |= αi → αk . Hence |= αk . And by induction |= αn , i.e. |= α. Definition6.8: Let F be a set of sentences and α ∈ W . We say α is a consequence of F if there is a sequence α1 , α2 , ...., αn in W called proof of α from F such that αn = α and for each k, αk is an axiom or member of F or αk is a direct consequence of some of the preceding αi and αj (1 ≤ i, j < k) by MP. We write F ` α. If F = {α1 , α2 , ..., αn }, we write α1 , α2 , ..., αn ` α. If α is not a consequence of F we write F 0 α. Theorem6.9: α ∈ F implies F ` α. Theorem6.10: ∅ ` α iff ` α. Theorem6.11: α ` α. Theorem6.12: If F ⊆E ⊂W then F ` α implies E ` α. 14

Theorem6.13: If ` α then for any set F of sentences F ` α. Theorem6.14: If F ` α and F ` α → β then F ` β. (Exercise) Theorem6.15:(Soundness Theorem[General Form]): If F ` α then F |= α. Proof: Exercise. Theorem6.16(Deduction Theorem): If F, β ` α then F ` β → α. Proof: Let α1 , ...., αn be the proof of α from F ∪ {β}, where αn = α. Now α1 is an axiom or α1 ∈ F or α1 = β. (i) If α1 is an axiom then ` α1 . Again ` α1 → (β → α1 (PC1), hence ` β → α1 . (ii) If α ∈ F then F ` α1 , again ` α1 → (β → α1 ) (PC1), i.e. F ` α1 → (β → α1 ), thus F ` β → α1 . (iii) If α1 = β, since ` β → β, so ` β → α1 . Thus in general F ` β → α1 . Let k > 1 and for any i < k, F ` β → αi . If αk is an axiom or in F or β we can prove as above that F ` β → αi . Let αk follows from αi , αj for 1 ≤ i, j < k by MP where αj = αi → αk . Now F ` β → αi ..........(iv) F ` β → (αi → αk ) ......(v) Also, F ` (β → (αi → αk )) → ((β → αi ) → (β → αk )) (PC2).....(vi) From (v) and (vi) using MP we have ` (β → αi ) → (β → αk ) .......(vii) Again from (iv) and (vii), F ` β → αk . Thus by induction F ` β → αi for all 1 ≤ i ≤ n, thus F ` β → αn , i.e. F ` β → α. Note6.17: The converse of Deduction Theorem is also true, i.e. F ` β → α implies F, β ` α. Proof: If F ` β → α, so F, β ` β → α ...(i) and also F, β ` β ...(ii), thus by MP((i),(ii)) F, β ` α. Corr6.18: (i) α ` β iff ` α → β. (ii) α1 , α2 , ..., αn ` β iff ` α1 → (α2 → (....(αn → β).....)) Theorem6.19:(MP) α, α → β ` β. Theorem6.20: If α ` β and β ` γ then α ` γ. Proof: Since α ` β, let α, β1 , ...., βn = β be a proof of β from α where αk are axiom or follows from αi , αj for 1 ≤ i, j < k by MP. Again, since β ` γ, let β, γ1 , ...., γn = γ be a proof of γ from β where γk are axiom or follows from αi , αj for 1 ≤ i, j < k by MP. Now, α, β1 , ...., βn , γ1 , ...., γn = γ be a proof of γ from α, thus α ` γ. Corr6.21: (Syllogism): If ` α → β and ` β → γ then ` α → γ. Exercise. Theorem6.22: (Syllogism): α → β, β → γ ` α → γ. Proof: (i) α → β (Assumption 1) (ii) β → γ (Assumption 2) (iii) (β → γ) → (α → (β → γ)) (PC1) (iv) α → (β → γ) MP(ii, iii) 15

(v) (α → (β → γ)) → ((α → β) → (α → γ)) (PC2) (vi) (α → β) → (α → γ) MP(iv, v) (vii) α → γ MP(i, vi). Thus α → β, β → γ ` α → γ. Theorem6.23:(Syllogism(General Form)): If F ` α → β and F ` β → γ then F ` α → γ. Theorem6.24: ` ¬α → (α → β). Proof: (i) ¬α (Assumption 1) (ii) α (Assumption 2) (iii) α → (¬β → α) (PC1) (iv) ¬α → (¬β → ¬α) (PC1) (v) ¬β → α (MP(ii, iii)) (vi) ¬β → ¬α (MP(i, iv)) (vii)(¬β → ¬α) → (α → β) (PC3) (viii) α → β (MP(vi, vii)) (ix) β (MP(ii, viii). Thus ¬α, α ` β. Using deduction theorem ¬α ` α → β and again using deduction theorem ` ¬α → (α → β). Theorem6.25: ` ¬¬α → α. Proof: (i) ¬¬α (We assume) (ii) ¬¬α → (¬α → ¬¬¬α) (Theorem) (iii) ¬α → ¬¬¬α (MP(i, ii)) (iv) (¬α → ¬¬¬α) → (¬¬α → α) (PCA3) (v) ¬¬α → α (MP(iii, iv)) (vi) α (MP(i, v)). Thus ¬¬α ` α, hence by deduction theorem ` ¬¬α → α. Theorem6.26: ` α → ¬¬α. Proof: (i) ¬¬¬α → ¬α (Theorem) (ii) (¬¬¬α → ¬α) → (α → ¬¬α) (PC3) (iii) α → ¬¬α (MP(i, ii)). Hence ` α → ¬¬α. Theorem6.27: ` (α → β) → (¬β → ¬α). Proof: (i) α → β (Assumption) (ii) ¬¬α → α (Theorem) (iii) ¬¬α → β (Syllogism(ii, i)) (iv) β → ¬¬β (Theorem) (v) ¬¬α → ¬¬β (Syllogism(iii, iv)) (vi) (¬¬α → ¬¬β) → (¬β → ¬α) (PC3) (vii) ¬β → ¬α MP(v, vi) Thus α → β ` ¬β → ¬α and using deduction theorem ` (α → β) → (¬β → ¬α). Theorem6.28:(MT: Modus Tollens) If ` α → β and ` ¬β then ` ¬α. Proof: We have ` (α → β) → (¬β → ¬α). Since ` α → β, so ` ¬β → ¬α. 16

Again since, ` ¬β, thus ` ¬α. Theorem6.29:(MP: Modus Ponens(General Form)) If F ` α → β and F ` α then F ` β. Theorem6.30:(MT: Modus Tollens(General Form)) If F ` α → β and F ` ¬β then F ` ¬α. Theorem6.31: α ` β iff ¬β ` ¬α. (Exercise) Theorem6.32: ` (α → ¬β) → (β → ¬α). Proof: (i) α → ¬β (Assumption) (ii) ` (α → ¬β) → (¬¬β → ¬α). (Theorem) (iii) ¬¬β → ¬α (MP(i, ii)) (iv) β → ¬¬β (Theorem) (v) β → ¬α (Syllogism(iv, iii)). Thus α → ¬β ` β → ¬α and the remaining follows by deduction theorem. Theorem6.33: ` (¬α → β) → (¬β → α). (Exercise). Theorem6.34: ` (¬α → α) → α. Proof: (i) ¬α → (¬(¬α → α) → ¬α) (PCA1), (ii) (¬α → (¬(¬α → α) → ¬α)) → ((¬α → ¬(¬α → α)) → (¬α → ¬α)) (PCA2), (iii) (¬α → ¬(¬α → α)) → (¬α → ¬α) MP(ii, iii) (iv) ((¬α → α) → α) → (¬α → ¬(¬α → α)) (Theorem) (v) ((¬α → α) → α) → (¬α → ¬α) Syllogism(iv, iii) (vi) (¬α → ¬α) → (α → α) (PC3) (vii) ((¬α → α) → α) → (α → α) Syllogism(v, vi) (viii) (¬α → α) → α) Syllogism in (vii) Theorem6.35: ` (α → β) → ((¬α → β) → β). Proof: (i) α → β (Assumption 1) (ii) ¬α → β (Assumption 2) (iii) (α → β) → (¬β → ¬α) (Theorem) (iv) ¬β → ¬α (MP(i, iii)) (v) ¬β → β (Syllogism(iv, ii)) (vi)(¬β → β) → β (Theorem) (vii) β (MP(v, vi)). Thus α → β, ¬α → β ` β and using deduction theorem we have ` (α → β) → ((¬α → β) → β). Theorem6.36: ` α → (¬β → ¬(α → β)). Proof: (i) α (Assumption 1) (ii) α → β (Assumption 2) (iii) β (MP(i, ii). Thus α, α → β ` β, using deduction theorem α ` (α → β) → β.....(iv) Since ` ((α → β) → β) → (¬β → ¬(α → β)).....(v) (Theorem)

17

From Syllogism(iv, v) we have α ` ¬β → ¬(α → β) and using deduction theorem we have the required result. Exercise6.37: (i) ` α → ((α → β) → β). (ii) For any two formulas α, β, show that α, ¬α ` β. (iii) If F ` α and α ` β then F ` β. (iv) If F ` α1 ,......, F ` αn and α1 , ....., αn ` β then F ` β. Lemma6.37: Let α be a sentence in which the only occurrence of simple sentences are / / p1 , p2 , ...., pk . Let v be a truth assignment. We define pi to be pi if v(pi ) = 1, otherwise pi is ¬pi and α/ to be α if v(α) = 1, otherwise α/ is ¬α. Then / / / p1 , p2 , ...., pk ` α/ Proof: Let the assume the only connectives occurring in α are ¬ and →. We will prove the claim by induction on the number n of all the total number of occurrence of ¬ and → in α. / If n = 0 then, α is a simple sentence pi for some i = 1, 2, ...., k. Thus α/ is pi and the claim follows immediately. Let the claim be true for less than n occurrence of ¬ and →. Case 1: α is of the form ¬β. / / / By induction hypothesis, p1 , p2 , ...., pk ` β / .......(i) Subcase 1.1: Let v(β) = 1, so v(α) = 0. Thus β / = β and α/ = ¬α = ¬¬β. / / / / / / Now ` β → ¬¬β, so from (i) p1 , p2 , ...., pk ` ¬¬β / by (MP). Thus p1 , p2 , ...., pk ` α/ . Subcase 1.2: Let v(β) = 0, so v(α) = 1. Thus β / = ¬β and α/ = α = ¬β. / / / / / / From (i) p1 , p2 , ...., pk ` ¬¬β / , i.e. p1 , p2 , ...., pk ` α/ . Case 2: α is of the form β → γ. / / / By induction hypothesis, p1 , p2 , ...., pk ` β / .......(ii) / / / and p1 , p2 , ...., pk ` γ / ........(iii) Subcase 2.1: v(γ) = 1, so v(α) = 1. Thus γ / = γ, α/ = α. From (iii) / / / p1 , p2 , ...., pk ` γ........(iii) Since ` γ → (β → γ) ......(iv) (PC1) From (iii) and (iv) by MP we have: / / / p1 , p2 , ...., pk ` β → γ, i.e. the required claim. Subcase 2.2: v(β) = 0, then so v(α) = 1, β / = ¬β and α/ = α = β → γ. So from (iii) / / / p1 , p2 , ...., pk ` ¬β........(v) Since ` ¬β → (β → γ) ......(vi) From (v) and (vi) by MP we have: / / / p1 , p2 , ...., pk ` β → γ, i.e. the required claim. Subcase 2.3: v(β) = 1 and v(γ) = 0, then so v(α) = 0, β / = β, γ / = ¬γ and α = ¬α = ¬(β → γ). So from (iii) and (iv) / / / p1 , p2 , ...., pk ` β........(vii) / / / p1 , p2 , ...., pk ` ¬γ........(viii) 18

Since ` β → (¬γ → ¬(β → γ)).......(ix) From (vii) and (ix) by MP we have: / / / p1 , p2 , ...., pk ` ¬γ → ¬(β → γ).....(xi) Again, by MP(viii, ix) we have: / / / p1 , p2 , ...., pk ` ¬(β → γ) and the claim follows. Theorem6.38(Completeness Theorem of Propositional Calculus): For a sentence α, |= α implies ` α. Proof: Let |= α. Let p1 , p2 , ...., pk be the distinct simple sentences occurring α. Let v ∈ V . / / We define We define pi to be pi if v(pi ) = 1, otherwise pi to be ¬pi and α/ to be α if v(α) = 1, / / otherwise α to be ¬α, but α = α (being tautology). Then we have / / / p1 , p2 , ...., pk ` α. Let us consider a case when v(pk ) = 1, then / / / p1 , p2 , ...., pk−1 , pk ` α........(i) Again we consider a case when v(pk ) = 0, then / / / p1 , p2 , ...., pk−1 , ¬pk ` α........(ii) Using deduction theorem we have from (i) and (ii) respectively: / / / p1 , p2 , ...., pk−1 ` pk → α........(iii) /

/

/

p1 , p2 , ...., pk−1 ` ¬pk → α........(iv) We have ` (pk → α) → ((¬pk → α) → α)........(v) Using MP(iii, v) we have, / / / p1 , p2 , ...., pk−1 ` (¬pk → α) → α........(vi) Again using MP(iv, vi) we have, / / / p1 , p2 , ...., pk−1 ` α. /

Thus the assumption pk is eliminated. Repeating the above process for more (k − 1)-times we have ` α. Theorem6.39(Completeness Theorem of Propositional Calculus)(General Form): Let F ⊆ W and for a sentence α if F |= α then F ` α. Proof: Let F |= α, then as a consequence of compactness theorem of PC there exists a finite set {α1 , ....., αn } ⊆ F such that α1 , ....., αn |= α, then |= α1 → (α1 → (......(αn → α).....)). Now using completeness theorem we have ` α1 → (α1 → (......(αn → α).....)) and using converse of deduction theorem we have α1 , ....., αn ` α and so F ` α. Theorem6.40: (i) ` α ∨ ¬α, 0 α ∧ ¬α. (ii) If F ` α and α ` β iff F ` α ∧ β. So ` α and ` β iff ` α ∧ β. (iii) ` α → (α ∨ β) (iv) ` (α ∧ β) → α. (v) If ` α ↔ β then ` α iff ` β.

7

Consistency:

Definition7.1: A set F of formulas is said to be (i) consistent if there does not exists any formula β such that F ` β and F ` ¬β holds simultaneously, equivalently there does not exists any formula β such that F ` β ∧ ¬β. Other wise F is said to be inconsistent.

19

(ii) F is said to be maximal consistent if F is consistent and F cannot to enlarge to a bigger set as consistent set, i.e. if E is consistent and F ⊆ E then E = F . Exercise7.2: If {α.¬α} ⊆ F then F is inconsistent. Theorem7.3: (i) If ` α then {α} is consistent. (ii) For every simple sentence p ∈ P , {p} is consistent. (iii) E ⊆ F ⊂ W . If F is consistent then E also consistent. Proof: (i) If {α} is inconsistent, then there exists β such that α ` β and α ` ¬β. By soundness theorem α |= β and α |= ¬β.......(*) But ` α, so |= α, so (*) is not possible. Hence the proof. (ii) If {p} is inconsistent, then there exists β such that p ` β and p ` ¬β. By soundness theorem p |= β and p |= ¬β.......(**) We take a model v such that v(p) = 1, then v(β) = 1 = v(¬β), which is not possible. Hence (**) is not possible. Thus the proof follows. (iii) Exercise. Exercise 7.4: Prove 7.3(i) and (ii) without use of soundness theorem. Definition7.5: For any F ⊆ W the theorem of F is the set T H(F ) = {β : F ` β}. If F = {α}, we write this set as T H(α). Theorem7.6: (i) T H(∅) = {α :` α}. (ii) E ⊆ F ⊆ W implies T H(E) ⊆ T H(F ). (iii) If α ` β or equivalently ` α → β, then T H(β) ⊆ T H(α). (iv) ` α ↔ β iff T H(α) = T H(β). (vi) F ` β then β ∈ T H(F ). (vii) If F ` β then T H(β) ⊆ T H(F ). Proof: Exercise. Theorem7.7: (i) If {α} is consistent then T H(α) is a constituent set. (ii) T H(α) = T h(α). (iii) T H(α) ∩ T H(β) = T H(α ∧ β). (iv) T H(α) ∪ T H(β) = T H(α ∨ β). (vi) ` α ↔ β iff T H(α) = T H(β). (vii) ` α → β iff T H(β) ⊆ T H(α). Proof: (i) If T H(α) is inconsistent, then there exists β such that T H(α) ` β and T H(α) ` ¬β. Now ∃ a finite subset {α1 , ..., αn } ⊆ T H(α) such that α1 , ..., αn ` β and α1 , ..., αn ` ¬β. But α ` αk for any k = 1, ..., n, so α ` β and α ` ¬β, which is not possible. Hence the proof follows. (ii) - (vii) Exercise. Theorem7.8: If F is a consistent set iff there is an α such that F 0 α.

20

Proof: Let F be consistent. So there is no formula β such that F ` β and F ` ¬β holds simultaneously and so there exists some α (β or ¬β) such that F 0 α. Conversely, let there is an α such that F 0 α. If possible let F is inconsistent, so there exists β such that F ` β and F ` ¬β. Since β, ¬β ` α, so F ` α, which is not possible, hence F is a consistent. Theorem7.9: Every consistent set of formula(s) is contained in a maximal consistent set of formulas. Proof: Let F be a consistent set of formula(s). Let P = {E ⊂ W : F ⊆ E and E is consistent}. Thus F ∈ P and (P, ⊆) is a poset. Let C be a chain in P. Let G = ∪C. Since for any E ∈ C, F ⊆ E, so F ⊆ G. If G is not consistent then there exists a formula β such that G ` β and G ` ¬β. So we can find a finite subset {α1 , α2 , ...., αn } such that α1 , α2 , ...., αn ` β and α1 , α2 , ...., αn ` ¬β. Now ∃, E1 , ..., En ∈ C such that αk ∈ Ek . But C is a chain, so all Ek0 s subset of one Ek for some k = 1, ..., n say Ej , i.e. {α1 , ...., αn } ⊆ Ej . And we conclude that Ej is inconsistent, which is impossible. Hence G is consistent and so G ∈ P. So every chain in P has an upper bound. So by Zorn’s lemma P has a maximal element say M (with F ⊆ M ) which is a maximal consistent set containing F . Theorem7.10: F is consistent iff F is finitely consistent, i.e. every finite subset of F is consistent. Proof: If F is consistent then obviously F is finitely consistent. Conversely suppose that F is finitely consistent. If possible let F is inconsistent so there exists β such that both F ` β and F ` ¬β holds simultaneously. Hence there exists a finite subset {α1 , ....., αn } of F such that {α1 , ....., αn } ` β and {α1 , ....., αn } ` ¬β. So {α1 , ....., αn } is a finite subset of F which is inconsistent, which is a contradiction. Hence F is consistent. Theorem7.11: (i) F ` α iff F ∪ {¬α} is inconsistent. (ii) F ∪ {α} is consistent iff F 0 ¬α. Proof: (i) Let F ` α. So F ∪ {¬α} ` α, and also F ∪ {¬α} ` ¬α. Hence F ∪ {¬α} is inconsistent. Conversely, suppose that F ∪{¬α} is inconsistent. So there is a formula β such that F ∪{¬α} ` β and F ∪ {¬α} ` ¬β. By deduction Theorem F ` ¬α → β and F ` ¬α → ¬β, so F ` β → α and then using Syllogism F ` ¬α → α. Since ` (¬α → α) → α, by MP we have F ` α. (ii) Let F ∪ {α} is consistent. Let if possible F ` ¬α. So F ∪ {α} ` ¬α, and also F ∪ {α} ` α. which shows that F ∪ {α} is inconsistent, which is not possible, so F 0 ¬α. Conversely suppose that F 0 ¬α. Let if possible F ∪ {α} is inconsistent. So there is a formula β such that F ∪ {α} ` β and F ∪ {α} ` ¬β. As similar above we can show F ` ¬α, which is not possible, so F ∪ {α} is consistent. Corollary7.12: (i) F ` ¬α iff F ∪ {α} is inconsistent. (ii) F ∪ {¬α} is consistent iff F 0 α. (iii) ` α iff {¬α} is inconsistent. (iv) {α} is consistent iff 0 ¬α. (v) ` ¬α iff {α} is inconsistent. 21

(vi) {¬α} is consistent iff 0 α. Exercise7.13: F ∪ {α} is consistent iff F ∪ {¬¬α} is consistent. Theorem7.14: Let M is maximal set then (i) α ∈ M iff M ` α. (ii) for α ∈ W , α ∈ M iff ¬α ∈ / M (i.e. for any α either α ∈ M or ¬α ∈ M ). (iii) α ∨ β ∈ M iff α ∈ M or β ∈ M . (iv) α ∧ β ∈ M iff α ∈ M and β ∈ M . (v) if α, α → β ∈ M then β ∈ M . (vi) If α ↔ β ∈ M then α ∈ M iff β ∈ M . (vii) ` α implies α ∈ M (so ` ¬α implies α ∈ / M ). Proof: (i) If α ∈ M , then M ` α. Conversely, suppose M ` α. If α ∈ / M , then by maximality of M , M ∪ {α} is inconsistent. So M ` ¬α, which shows that M is inconsistent. So α ∈ M . (ii) Let α, ¬α ∈ M , then M ` α and M ` ¬α, i.e. M is inconsistent which is not possible, so both α and ¬α cannot be both of them to be members of M . Again let neither α and ¬α is in M , by maximality of M , M ∪ {α} and M ∪ {¬α} both inconsistent. So M ` ¬α and M ` α. So α, ¬α ∈ M which is a contradiction, so α ∈ M or ¬α ∈ M but not both. (iii)-(vii) Exercise. Definition7.15: Let M be the collection of all maximal consistent subsets of W . It is not so hard to see that this is a non-empty set. We define [.] : W → ℘(M) (where ℘(M) is power set of M) defined as: for each sentence α ∈ W we define [α] = {M ∈ M : α ∈ M } . Theorem7.16: (i) [α] = {M ∈ M : M ` α}. (ii) ` α → β iff [α] ⊆ [β]. (iii) ` α ↔ β iff [α] = [β]. (iv) [¬α] = M − [α]. (v) For any theorem α, [α] = M. (vi) For any theorem α, [¬α] = ∅. (viii) [α ∨ β] = [α] ∪ [β]. (vii) [α ∧ β] = [α] ∩ [β]. Proof: Exercise. Corollary7.17: The collection B(M) = {[α] : α ∈ W } forms a base for a topology on M. We denote this topology by τ (M). Theorem: (i) (M, τ (M)) is a zero-dimensional space, i.e. the topology τ (M) has a base consisting of clopen sets. (ii) (M, τ (M)) is a Hausdorff space. 22

(iii) (M, τ (M)) is a second countable space. (v) B(M) is a base for closed sets also. Proof: (i) Since [α] ∩ [¬α] = [α ∧ ¬α] = ∅, so if N ∈ M − [α], N ∈ [¬α] = M − [α], so [α] is a closed set. So B(M) consisting of clopen sets. Hence (i) follows. (ii) Let M, N ∈ M and M 6= N , so there exists α ∈ W such that α is only one of them, not in both, say α ∈ M and α ∈ / N (other case similar). So ¬α ∈ N . Thus M ∈ [α] and N ∈ [¬α]. But we have [α] ∩ [¬α] = ∅. Hence (ii) follows. (iii) The space is second countable since P is countable and also the set of connectives, so the set W is countable. So B(M) is a second countable space. (v) Every open set U is of the form ∪i∈Λ [αi ] where Λ is an indexing set. So every closed set is of the form M − ∪i∈Λ [αi ] = ∩i∈Λ (M − [αi ]) = ∩i∈Λ ([¬αi ]) = ∩i∈Λ ([βi ]). Theorem7.18: (B(M), ∪, ∩, M − [.], ∅, M) forms a Boolean algebra.

8

Topological Semantics:

We have studied the semantics of propositional calculus as two two valued mappings. In this section we will study the topological semantics of propositional calculus. Here we consider the primitive connectives to be {¬, ∨} and other connectives are defined as defined before with ¬ and ∨. For any topological space (X, τ (X)) we denote τclopen (X) be the collection of all clopen sets in (X, τ (X)). Definition8.1: By a topological model (X, τ (X), v) of the language L of propositional logic a non-empty set X with a topology τ (X) on X and a mapping v : P → τclopen (X). Now we extend the mapping v to v : W → τclopen (X) inductively as: (i) v(¬α) = X − v(α). (ii) v(α ∨ β) = v(α) ∪ v(β). Let T be the collection of all topological models of L. Exercise8.2: v(α ∧ β) = v(α) ∩ v(β). We will say a formula α is valid for the model (X, τ (X), v), if v(α) = X. α is said to be topologically valid if for any model in T , α is valid. We write α. Let F ⊆ W and β ∈ W , we will write F α, if for any (X, τ (X), v) ∈ T , v(α) = X for any α ∈ F then v(β) = X. If F = {α1 , ...., αn } we will write α1 , ...., αn β. Exercise8.3: ∅ β iff β. Exercise8.4: (i)For any topological model (X, τ (X), v) v(α) ⊆ v(β) iff α → β. (ii) α ↔ β iff for any topological model (X, τ (X), v) v(α) = v(β). Theorem8.5:(Soundness Theorem for Topological Semantics): If ` α then α. Proof: Exercise. 23

Theorem8.6:(Completeness Theorem for Topological Semantics): If α then ` α. Proof: We consider the topological space (M, τ (M)). Now we define the mapping: v : P → τclopen (M) defined as v(p) = [p]. So (M, τ (M), v) is topological model for L. We claim that for any α ∈ W , v(α) = [α]. We prove it by induction on the connectives: (i) Let α = ¬β and v(β) = [β]. So v(α) = v(¬β) = M − v(β) = M − [β] = [¬β] = [α]. (ii) α = β ∨ γ and v(β) = [β], v(γ) = [γ]. Now v(α) = v(β ∨ γ) = v(β) ∪ v(γ) = [β] ∪ [γ] = [β ∨ γ] = [α]. Thus the claim is true. Let α, so v(α) = M. So α ∈ M for every maximal consistent set M . If α in not a theorem then ¬α must be consistent (since if ¬α is inconsistent, then ` α which is not possible). Now {¬α} can be extended to a maximal consistent set say M so that ¬α ∈ M , but α ∈ M , which is not possible. So ` α.

9

Algebraic Semantics:

We have studied the semantics of propositional calculus as truth valued semantics and topological semantics. It is easy to see that for any topological space (X, τ (X)), (τclopen (X), ∪, ∩, X − (.), ∅, X) forms a Boolean algebra. In this section we will study the algebraic semantics of propositional calculus. Here we consider the primitive connectives to be {¬, ∨} and other connectives are defined as defined before with ¬ and ∨. Definition9.1: By an algebraic model we mean a Boolean algebra (B, +, ·,/ , 0, 1) or simply B along with a valuation v : P → B. We denote the model by (B, v). Now we extend the mapping v to v : W → B inductively as: (i) v(¬α) = v(α)/ . (ii) v(α ∨ β) = v(α) + v(β). Let B be the collection of all Boolean models of L. Exercise9.2: v(α ∧ β) = v(α) · v(β). We will say a formula α is valid for the model (B, v), if v(α) = 1. α is said to be algebraically valid if for any model in B α is valid. We write  α. Let F ⊆ W and β ∈ W , we will write F  α, if for any (B, v) ∈ B, v(α) = 1 for any α ∈ F implies v(β) = 1. If F = {α1 , ...., αn } we will write α1 , ...., αn  β. Exercise9.3: ∅  β iff  β. Exercise9.4: (i) For any algebraic model (B, v) v(α) ≤ v(β) iff  α → β. Here ≤ is the partial order relation induced from the Boolean algebra B defined as a ≤ b iff a + b = b equivalently iff a · b = a. (ii)  α ↔ β iff for any algebraic model (B, v) v(α) = v(β). 24

Theorem9.5:(Soundness Theorem for Algebraic Semantics): If ` α then  α. Proof: Exercise. Theorem9.6:(Completeness Theorem for Algebraic Semantics): If  α then ` α. Proof: We consider Boolean algebra (B(M), ∪, ∩, M−[.], ∅, M). Now we define the mapping: v : P → B(M) defined as v(p) = [p]. So ((B(M), ∪, ∩, M − [.], ∅, M), v) is algebraic model for L. It is easy already verified that for any α ∈ W , v(α) = [α]. The remaining proof is same as that of topological semantics.

References [1] A. H. Bassoon; D. J. O’connor, Introduction to Symbolic Logic, Oxford university press (1998). [2] P. Hinman, Fundamentals of Mathematical Logic, A. K. Peters (2005). [3] A. Margaris, First Order Mathematical Logic, Dover (1990). [4] E. Mendelson, Introduction to Mathematical Logic, 6e, CRC Press (2015). [5] H. Rasiowa, An algebraic approach of non-classical logic, Elsevier Science (1974). [6] H. Rasiowa, R. Sikorski, The Mathematics of Metamathematics, PWN-Polish Scientific Publishers (1970). [7] S. M. Sriastava, A Course on Mathematical Logic, 2e, Springer (2013). [8] R. R. Stoll, Set Theory and Logic, Dover, (1979).

25