Logic Lectures Miloš Adžić, Kosta Došen
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Chapter 5: Methods of Proof for Boolean Logic
Chapter 5: Methods of Proof for Boolean Logic § 5.1 Valid inference steps Conjunction elimination Sometimes called simplification. From a conjunction, infer any of the conjuncts. • From P ∧ Q, infer P (or infer Q). Conjunction introduction Sometimes called conjunction. From a pair of sentences, infer their conjunction. • From P and Q, infer P ∧ Q. § 5.2 Proof by cases This is another valid inference step (it will form the rule of disjunction elimination in our formal deductive system and in Fitch), but it is also a powerful proof strategy. In a proof by cases, one begins with a disjunction (as a premise, or as an intermediate conclusion already proved). One then shows that a certain consequence may be deduced from each of the disjuncts taken separately. One concludes that that same sentence is a consequence of the entire disjunction. • From P ∨ Q, and from the fact that S follows from P and S also follows from Q, infer S. The general proof strategy looks like this: if you have a disjunction, then you know that at least one of the disjuncts is true—you just don’t know which one. So you consider the individual “cases” (i.e., disjuncts), one at a time. You assume the first disjunct, and then derive your conclusion from it. You repeat this process for each disjunct. So it doesn’t matter which disjunct is true—you get the same conclusion in any case. Hence you may infer that it follows from the entire disjunction. In practice, this method of proof requires the use of “subproofs”—we will take these up in the next chapter when we look at formal proofs. -
Principles of Logic Roehampton : Printed by John Griffin ^Principles of Logic
PRINCIPLES OF LOGIC ROEHAMPTON : PRINTED BY JOHN GRIFFIN ^PRINCIPLES OF LOGIC By GEORGE HAYWARD JOYCE, S.J. M.A., ORIEL COLLEGE, OXFORD PROFESSOR OF LOGIC, ST. MARY S HALL, STONYHURST *.r LONGMANS, GREEN & CO 39, PATERNOSTER ROW, LONDON NEW YORK. BOMBAY, AND CALCUTTA 1908 INTRODUCTION THIS work is an attempt at a presentment of what is fre quently termed the Traditional Logic, and is intended for those who are making acquaintance with philosophical questions for the first time. Yet it is impossible, even in a text-book such as this, to deal with logical questions save in connexion with definite metaphysical and epistemolo- gical principles. Logic, as the theory of the mind s rational processes in regard of their validity, must neces sarily be part of a larger philosophical system. Indeed when this is not the case, it becomes a mere collection of technical rules, possessed of little importance and of less interest. The point of view adopted in this book is that of the Scholastic as far as is philosophy ; and compatible with the size and purpose of the work, some attempt has been made to vindicate the fundamental principles on which that philosophy is based. From one point of view, this position should prove a source of strength. The thinkers who elaborated our sys tem of Logic, were Scholastics. With the principles of that philosophy, its doctrines and its rules are in full accord. In the light of Scholasticism, the system is a connected whole ; and the subjects, traditionally treated in it, have each of them its legitimate place. -
UNIT-I Mathematical Logic Statements and Notations
UNIT-I Mathematical Logic Statements and notations: A proposition or statement is a declarative sentence that is either true or false (but not both). For instance, the following are propositions: “Paris is in France” (true), “London is in Denmark” (false), “2 < 4” (true), “4 = 7 (false)”. However the following are not propositions: “what is your name?” (this is a question), “do your homework” (this is a command), “this sentence is false” (neither true nor false), “x is an even number” (it depends on what x represents), “Socrates” (it is not even a sentence). The truth or falsehood of a proposition is called its truth value. Connectives: Connectives are used for making compound propositions. The main ones are the following (p and q represent given propositions): Name Represented Meaning Negation ¬p “not p” Conjunction p q “p and q” Disjunction p q “p or q (or both)” Exclusive Or p q “either p or q, but not both” Implication p ⊕ q “if p then q” Biconditional p q “p if and only if q” Truth Tables: Logical identity Logical identity is an operation on one logical value, typically the value of a proposition that produces a value of true if its operand is true and a value of false if its operand is false. The truth table for the logical identity operator is as follows: Logical Identity p p T T F F Logical negation Logical negation is an operation on one logical value, typically the value of a proposition that produces a value of true if its operand is false and a value of false if its operand is true. -
Introduction to Logic
IntroductionI Introduction to Logic Propositional calculus (or logic) is the study of the logical Christopher M. Bourke relationship between objects called propositions and forms the basis of all mathematical reasoning. Definition A proposition is a statement that is either true or false, but not both (we usually denote a proposition by letters; p, q, r, s, . .). Computer Science & Engineering 235 Introduction to Discrete Mathematics [email protected] IntroductionII ExamplesI Example (Propositions) Definition I 2 + 2 = 4 I The derivative of sin x is cos x. The value of a proposition is called its truth value; denoted by T or I 6 has 2 factors 1 if it is true and F or 0 if it is false. Opinions, interrogative and imperative sentences are not Example (Not Propositions) propositions. I C++ is the best language. I When is the pretest? I Do your homework. ExamplesII Logical Connectives Connectives are used to create a compound proposition from two Example (Propositions?) or more other propositions. I Negation (denoted or !) ¬ I 2 + 2 = 5 I And (denoted ) or Logical Conjunction ∧ I Every integer is divisible by 12. I Or (denoted ) or Logical Disjunction ∨ I Microsoft is an excellent company. I Exclusive Or (XOR, denoted ) ⊕ I Implication (denoted ) → I Biconditional; “if and only if” (denoted ) ↔ Negation Logical And A proposition can be negated. This is also a proposition. We usually denote the negation of a proposition p by p. ¬ The logical connective And is true only if both of the propositions are true. It is also referred to as a conjunction. Example (Negated Propositions) Example (Logical Connective: And) I Today is not Monday. -
Rules of Replacement II, §7.4
Philosophy 109, Modern Logic, Queens College Russell Marcus, Instructor email: [email protected] website: http://philosophy.thatmarcusfamily.org Office phone: (718) 997-5287 Rules of Replacement II, §7.4 I. The Last Five Rules of Replacement See the appendix at the end of the lesson for truth tables proving equivalence for each. Transposition (Trans) P e Q :: -Q e -P You may switch the antecedent and consequent of a conditional statement, as long as you negate (or un-negate) both. Often used with (HS). Also, traditionally, called the ‘contrapositive’. Sample Derivation: 1. A e B 2. D e -B / A e -D 3. --B e -D 2, Trans 4. A e -D 1, 3, DN, HS QED Transposition can be tricky when only one term is negated: A e -B becomes, by Trans: --B e -A which becomes, by DN B e -A Equivalently, but doing the double negation first: A e -B becomes, by DN: --A e -B becomes, by Trans: B e -A Either way, you can include the DN on the line with Trans. Material Implication (Impl) P e Q :: -P w Q Implication allows you to change a statement from a disjunction to a conditional, or vice versa. It’s often easier to work with disjunctions. You can use (DM) to get conjunctions. You may be able to use distribution, which doesn’t apply to conditionals. On the other hand, sometimes, you just want to work with conditionals. You can use (HS) and (MP). Proofs are overdetermined by our system - there are many ways to do them. -
7.1 Rules of Implication I
Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic. The method consists of using sets of Rules of Inference (valid argument forms) to derive either a conclusion or a series of intermediate conclusions that link the premises of an argument with the stated conclusion. The First Four Rules of Inference: ◦ Modus Ponens (MP): p q p q ◦ Modus Tollens (MT): p q ~q ~p ◦ Pure Hypothetical Syllogism (HS): p q q r p r ◦ Disjunctive Syllogism (DS): p v q ~p q Common strategies for constructing a proof involving the first four rules: ◦ Always begin by attempting to find the conclusion in the premises. If the conclusion is not present in its entirely in the premises, look at the main operator of the conclusion. This will provide a clue as to how the conclusion should be derived. ◦ If the conclusion contains a letter that appears in the consequent of a conditional statement in the premises, consider obtaining that letter via modus ponens. ◦ If the conclusion contains a negated letter and that letter appears in the antecedent of a conditional statement in the premises, consider obtaining the negated letter via modus tollens. ◦ If the conclusion is a conditional statement, consider obtaining it via pure hypothetical syllogism. ◦ If the conclusion contains a letter that appears in a disjunctive statement in the premises, consider obtaining that letter via disjunctive syllogism. Four Additional Rules of Inference: ◦ Constructive Dilemma (CD): (p q) • (r s) p v r q v s ◦ Simplification (Simp): p • q p ◦ Conjunction (Conj): p q p • q ◦ Addition (Add): p p v q Common Misapplications Common strategies involving the additional rules of inference: ◦ If the conclusion contains a letter that appears in a conjunctive statement in the premises, consider obtaining that letter via simplification. -
Chapter 1 Logic and Set Theory
Chapter 1 Logic and Set Theory To criticize mathematics for its abstraction is to miss the point entirely. Abstraction is what makes mathematics work. If you concentrate too closely on too limited an application of a mathematical idea, you rob the mathematician of his most important tools: analogy, generality, and simplicity. – Ian Stewart Does God play dice? The mathematics of chaos In mathematics, a proof is a demonstration that, assuming certain axioms, some statement is necessarily true. That is, a proof is a logical argument, not an empir- ical one. One must demonstrate that a proposition is true in all cases before it is considered a theorem of mathematics. An unproven proposition for which there is some sort of empirical evidence is known as a conjecture. Mathematical logic is the framework upon which rigorous proofs are built. It is the study of the principles and criteria of valid inference and demonstrations. Logicians have analyzed set theory in great details, formulating a collection of axioms that affords a broad enough and strong enough foundation to mathematical reasoning. The standard form of axiomatic set theory is denoted ZFC and it consists of the Zermelo-Fraenkel (ZF) axioms combined with the axiom of choice (C). Each of the axioms included in this theory expresses a property of sets that is widely accepted by mathematicians. It is unfortunately true that careless use of set theory can lead to contradictions. Avoiding such contradictions was one of the original motivations for the axiomatization of set theory. 1 2 CHAPTER 1. LOGIC AND SET THEORY A rigorous analysis of set theory belongs to the foundations of mathematics and mathematical logic. -
Existence As a Real Property
Francesco Berto Existence as a Real Property The Ontology of Meinongianism For Graham Priest, Long-distance teacher Prologue: Much Ado About Nothing Some philosophers think that something’s having intuitive content is very inconclusive evidence in favor of it. I think it is very heavy evidence in favor of anything, myself. I really don’t know, in a way, what more conclusive evidence one can have about anything, ultimately speaking. –Saul Kripke, Naming and Necessity 1 In an episode of The Today Show of some years ago, Gene Shalit – NBC’s film and book critic, famous for his wits – reviews several books sharing the feature of bearing entertaining titles. The highpoint of the monologue comes with Nonexistent Objects, by the UCLA philosopher Terence Parsons. Shalit wonders how one could write a whole book on things that do not exist!1 This whole book, too, is about things that do not exist. But if one stops to think, one may find that, in a sense, there is nothing special about this. There are, in fact, thousands of books speaking about unreal things. You have probably read quite a few of them: Sir Arthur Conan Doyle’s stories portrait the adventures of the detective Sherlock Holmes; The Lord of the Rings speaks at length of Gandalf the wizard. Doyle represents Sherlock Holmes as a detective living in London, Baker Street (precisely, at number 221b), describes his remarkable observational and deductive abilities, makes of him the arch-enemy of the criminal mastermind Moriarty. J.R.R. Tolkien characterizes Gandalf as a wizard with a pointy hat and a grey robe (a white one, from a certain point of the story onwards), a heavy pipe-herb 1 The anecdote is reported by Roy Sorensen [2003], p. -
Notes on Proof Theory
Notes on Proof Theory Master 1 “Informatique”, Univ. Paris 13 Master 2 “Logique Mathématique et Fondements de l’Informatique”, Univ. Paris 7 Damiano Mazza November 2016 1Last edit: March 29, 2021 Contents 1 Propositional Classical Logic 5 1.1 Formulas and truth semantics . 5 1.2 Atomic negation . 8 2 Sequent Calculus 10 2.1 Two-sided formulation . 10 2.2 One-sided formulation . 13 3 First-order Quantification 16 3.1 Formulas and truth semantics . 16 3.2 Sequent calculus . 19 3.3 Ultrafilters . 21 4 Completeness 24 4.1 Exhaustive search . 25 4.2 The completeness proof . 30 5 Undecidability and Incompleteness 33 5.1 Informal computability . 33 5.2 Incompleteness: a road map . 35 5.3 Logical theories . 38 5.4 Arithmetical theories . 40 5.5 The incompleteness theorems . 44 6 Cut Elimination 47 7 Intuitionistic Logic 53 7.1 Sequent calculus . 55 7.2 The relationship between intuitionistic and classical logic . 60 7.3 Minimal logic . 65 8 Natural Deduction 67 8.1 Sequent presentation . 68 8.2 Natural deduction and sequent calculus . 70 8.3 Proof tree presentation . 73 8.3.1 Minimal natural deduction . 73 8.3.2 Intuitionistic natural deduction . 75 1 8.3.3 Classical natural deduction . 75 8.4 Normalization (cut-elimination in natural deduction) . 76 9 The Curry-Howard Correspondence 80 9.1 The simply typed l-calculus . 80 9.2 Product and sum types . 81 10 System F 83 10.1 Intuitionistic second-order propositional logic . 83 10.2 Polymorphic types . 84 10.3 Programming in system F ...................... 85 10.3.1 Free structures . -
Tables of Implications and Tautologies from Symbolic Logic
Tables of Implications and Tautologies from Symbolic Logic Dr. Robert B. Heckendorn Computer Science Department, University of Idaho March 17, 2021 Here are some tables of logical equivalents and implications that I have found useful over the years. Where there are classical names for things I have included them. \Isolation by Parts" is my own invention. By tautology I mean equivalent left and right hand side and by implication I mean the left hand expression implies the right hand. I use the tilde and overbar interchangeably to represent negation e.g. ∼x is the same as x. Enjoy! Table 1: Properties of All Two-bit Operators. The Comm. is short for commutative and Assoc. is short for associative. Iff is short for \if and only if". Truth Name Comm./ Binary And/Or/Not Nands Only Table Assoc. Op 0000 False CA 0 0 (a " (a " a)) " (a " (a " a)) 0001 And CA a ^ b a ^ b (a " b) " (a " b) 0010 Minus b − a a ^ b (b " (a " a)) " (a " (a " a)) 0011 B A b b b 0100 Minus a − b a ^ b (a " (a " a)) " (a " (a " b)) 0101 A A a a a 0110 Xor/NotEqual CA a ⊕ b (a ^ b) _ (a ^ b)(b " (a " a)) " (a " (a " b)) (a _ b) ^ (a _ b) 0111 Or CA a _ b a _ b (a " a) " (b " b) 1000 Nor C a # b a ^ b ((a " a) " (b " b)) " ((a " a) " a) 1001 Iff/Equal CA a $ b (a _ b) ^ (a _ b) ((a " a) " (b " b)) " (a " b) (a ^ b) _ (a ^ b) 1010 Not A a a a " a 1011 Imply a ! b a _ b (a " (a " b)) 1100 Not B b b b " b 1101 Imply b ! a a _ b (b " (a " a)) 1110 Nand C a " b a _ b a " b 1111 True CA 1 1 (a " a) " a 1 Table 2: Tautologies (Logical Identities) Commutative Property: p ^ q $ q -
Relevant and Substructural Logics
Relevant and Substructural Logics GREG RESTALL∗ PHILOSOPHY DEPARTMENT, MACQUARIE UNIVERSITY [email protected] June 23, 2001 http://www.phil.mq.edu.au/staff/grestall/ Abstract: This is a history of relevant and substructural logics, written for the Hand- book of the History and Philosophy of Logic, edited by Dov Gabbay and John Woods.1 1 Introduction Logics tend to be viewed of in one of two ways — with an eye to proofs, or with an eye to models.2 Relevant and substructural logics are no different: you can focus on notions of proof, inference rules and structural features of deduction in these logics, or you can focus on interpretations of the language in other structures. This essay is structured around the bifurcation between proofs and mod- els: The first section discusses Proof Theory of relevant and substructural log- ics, and the second covers the Model Theory of these logics. This order is a natural one for a history of relevant and substructural logics, because much of the initial work — especially in the Anderson–Belnap tradition of relevant logics — started by developing proof theory. The model theory of relevant logic came some time later. As we will see, Dunn's algebraic models [76, 77] Urquhart's operational semantics [267, 268] and Routley and Meyer's rela- tional semantics [239, 240, 241] arrived decades after the initial burst of ac- tivity from Alan Anderson and Nuel Belnap. The same goes for work on the Lambek calculus: although inspired by a very particular application in lin- guistic typing, it was developed first proof-theoretically, and only later did model theory come to the fore. -
Logic and Ontology
Logic and Ontology Nino B. Cocchiarella Abstract A brief review of the historical relation between logic and ontology and of the opposition between the views of logic as language and logic as calculus is given. We argue that predication is more fundamental than membership and that di¤erent theories of predication are based on di¤erent theories of universals, the three most important being nominalism, conceptualism, and realism. These theories can be formulated as formal ontologies, each with its own logic, and compared with one another in terms of their respective explanatory powers. After a brief survey of such a comparison, we argue that an extended form of conceptual realism provides the most coherent formal ontology and, as such, can be used to defend the view of logic as language. Logic, as Father Bochenski observed, developed originally out of dialectics, rules for discussion and reasoning, and in particular rules for how to argue suc- cessfully.1 Aristotle, one of the founders of logic in western philosophy, described such rules in his Topics, where logic is presented in this way. Indeed, the idea of logic as the art of arguing was the primary view of this subject in ancient philos- ophy. It was defended in particular by the Stoics, who developed a formal logic of propositions, but conceived of it only as a set of rules for arguing.2 Aristotle was the founder not only of logic in western philosophy, but of ontol- ogy as well, which he described in his Metaphysics and the Categories as a study of the common properties of all entities, and of the categorial aspects into which they can be analyzed.