Forallx - An Introduction to Formal Logic - P.D. Magnus - E-Book

Forallx - An Introduction to Formal Logic E-Book

P.D. Magnus

0,0
0,99 €

oder
-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.
Mehr erfahren.
Beschreibung

Forallx is an introduction to sentential logic and first-order predicate logic with identity, logical systems that significantly influenced twentieth-century analytic philosophy. After working through the material in this book, a student should be able to understand most quantified expressions that arise in their philosophical reading. This book treats symbolization, formal semantics, and proof theory for each language. The discussion of formal semantics is more direct than in many introductory texts. Although forall x does not contain proofs of soundness and completeness, it lays the groundwork for understanding why these are things that need to be proven. Contents: What is logic? Sentential logic Truth tables Quanti ed logic Formal semantics Proofs Other symbolic notation Solutions to selected exercises

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



P.D. Magnus

Forallx - An Introduction to Formal Logic

ISBN 978-80-272-2658-0
Produced by Studium Publishing, 2018
Studium Publishing, 2018. No claim to the material licensed as Creative Commons CC BY-SA 3.0. "Forallx, An Introduction to Formal Logic", by P.D. Magnus, available on-line at http://www.fecundity.com/logic is offered under a Creative Commons license (Attribution-ShareAlike 3.0), https://creativecommons.org/licenses/by-sa/3.0/". Changes were not made to the original material. You are free to copy this book, to distribute it, to display it, and to make derivative works, under the following conditions: (a) Attribution. You must give the original author credit. (b) Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a license identical to this one. For any reuse or distribution, you must make clear to others the license terms of this work. Any of these conditions can be waived if you get permission from the copyright holder. © 2005-2014 by P.D. Magnus. Some rights reserved

The author would like to thank the people who made this project possible. Notable among these are Cristyn Magnus, who read many early drafts; Aaron Schiller, who was an early adopter and provided considerable, helpful feedback; and Bin Kang, Craig Erb, Nathan Carter, Wes McMichael, Selva Samuel, Dave Krueger, Brandon Lee, Toan Tran, and the students of Introduction to Logic, who detected various errors in previous versions of the book.

Table of Contents
1 What is logic?
Arguments
Sentences
Two ways that arguments can go wrong
Deductive validity
Other logical notions
Formal languages
Practice Exercises
2 Sentential logic
Sentence letters
Connectives
Other symbolization
Sentences of SL
Practice Exercises
3 Truth tables
Truth-functional connectives
Complete truth tables
Using truth tables
Partial truth tables
Practice Exercises
4 Quantified logic
From sentences to predicates
Building blocks of QL
Quantifiers
Translating to QL
Sentences of QL
Identity
Practice Exercises
5 Formal semantics
Semantics for SL
Interpretations and models in QL
Semantics for identity
Working with models
Truth in QL
Practice Exercises
6 Proofs
Basic rules for SL
Derived rules
Rules of replacement
Rules for quantifiers
Rules for identity
Proof strategy
Proof-theoretic concepts
Proofs and models
Soundness and completeness
Practice Exercises
Other symbolic notation
Solutions to selected exercises
Quick Reference

Chapter 1 What is logic?

Table of Contents

Logic is the business of evaluating arguments, sorting good ones from bad ones. In everyday language, we sometimes use the word ‘argument’ to refer to belligerent shouting matches. If you and a friend have an argument in this sense, things are not going well between the two of you.

In logic, we are not interested in the teeth-gnashing, hair-pulling kind of argument. A logical argument is structured to give someone a reason to believe some conclusion. Here is one such argument:

(1) It is raining heavily.

(2) If you do not take an umbrella, you will get soaked.

.˙. You should take an umbrella.

The three dots on the third line of the argument mean ‘Therefore’ and they indicate that the final sentence is the conclusion of the argument. The other sentences are premises of the argument. If you believe the premises, then the argument provides you with a reason to believe the conclusion.

This chapter discusses some basic logical notions that apply to arguments in a natural language like English. It is important to begin with a clear understanding of what arguments are and of what it means for an argument to be valid. Later we will translate arguments from English into a formal language. We want formal validity, as defined in the formal language, to have at least some of the important features of natural-language validity.

Arguments

Table of Contents

When people mean to give arguments, they typically often use words like ‘therefore’ and ‘because.’ When analyzing an argument, the first thing to do is to separate the premises from the conclusion. Words like these are a clue to what the argument is supposed to be, especially if— in the argument as given— the conclusion comes at the beginning or in the middle of the argument.

premise indicators: since, because, given that

conclusion indicators: therefore, hence, thus, then, so

To be perfectly general, we can define an ARGUMENT as a series of sentences. The sentences at the beginning of the series are premises. The final sentence in the series is the conclusion. If the premises are true and the argument is a good one, then you have a reason to accept the conclusion.

Notice that this definition is quite general. Consider this example:

There is coffee in the coffee pot.

There is a dragon playing bassoon on the armoire.

.˙. Salvador Dali was a poker player.

It may seem odd to call this an argument, but that is because it would be a terrible argument. The two premises have nothing at all to do with the conclusion. Nevertheless, given our definition, it still counts as an argument— albeit a bad one.

Sentences

Table of Contents

In logic, we are only interested in sentences that can figure as a premise or conclusion of an argument. So we will say that a SENTENCE is something that can be true or false.

You should not confuse the idea of a sentence that can be true or false with the difference between fact and opinion. Often, sentences in logic will express things that would count as facts— such as ‘Kierkegaard was a hunchback’ or ‘Kierkegaard liked almonds.’ They can also express things that you might think of as matters of opinion— such as, ‘Almonds are yummy.’

Also, there are things that would count as ‘sentences’ in a linguistics or grammar course that we will not count as sentences in logic.

Questions In a grammar class, ‘Are you sleepy yet?’ would count as an interrogative sentence. Although you might be sleepy or you might be alert, the question itself is neither true nor false. For this reason, questions will not count as sentences in logic. Suppose you answer the question: ‘I am not sleepy.’ This is either true or false, and so it is a sentence in the logical sense. Generally, questions will not count as sentences, but answers will.

‘What is this course about?’ is not a sentence. ‘No one knows what this course is about’ is a sentence.

Imperatives Commands are often phrased as imperatives like ‘Wake up!’, ‘Sit up straight’, and so on. In a grammar class, these would count as imperative sentences. Although it might be good for you to sit up straight or it might not, the command is neither true nor false. Note, however, that commands are not always phrased as imperatives. ‘You will respect my authority’ is either true or false— either you will or you will not— and so it counts as a sentence in the logical sense.

Exclamations ‘Ouch!’ is sometimes called an exclamatory sentence, but it is neither true nor false. We will treat ‘Ouch, I hurt my toe!’ as meaning the same thing as ‘I hurt my toe.’ The ‘ouch’ does not add anything that could be true or false.

Two ways that arguments can go wrong

Table of Contents

Consider the argument that you should take an umbrella (on p. 5, above). If premise (1) is false— if it is sunny outside— then the argument gives you no reason to carry an umbrella. Even if it is raining outside, you might not need an umbrella. You might wear a rain pancho or keep to covered walkways. In these cases, premise (2) would be false, since you could go out without an umbrella and still avoid getting soaked.

Suppose for a moment that both the premises are true. You do not own a rain pancho. You need to go places where there are no covered walkways. Now does the argument show you that you should take an umbrella? Not necessarily. Perhaps you enjoy walking in the rain, and you would like to get soaked. In that case, even though the premises were true, the conclusion would be false.

For any argument, there are two ways that it could be weak. First, one or more of the premises might be false. An argument gives you a reason to believe its conclusion only if you believe its premises. Second, the premises might fail to support the conclusion. Even if the premises were true, the form of the argument might be weak. The example we just considered is weak in both ways.

When an argument is weak in the second way, there is something wrong with the logical form of the argument: Premises of the kind given do not necessarily lead to a conclusion of the kind given. We will be interested primarily in the logical form of arguments.

Consider another example:

You are reading this book.

This is a logic book.

.˙. You are a logic student.

This is not a terrible argument. Most people who read this book are logic students. Yet, it is possible for someone besides a logic student to read this book. If your roommate picked up the book and thumbed through it, they would not immediately become a logic student. So the premises of this argument, even though they are true, do not guarantee the truth of the conclusion. Its logical form is less than perfect.

An argument that had no weakness of the second kind would have perfect logical form. If its premises were true, then its conclusion would necessarily be true. We call such an argument ‘deductively valid’ or just ‘valid.’

Even though we might count the argument above as a good argument in some sense, it is not valid; that is, it is ‘invalid.’ One important task of logic is to sort valid arguments from invalid arguments.

Deductive validity

Table of Contents

An argument is deductively VALID if and only if it is impossible for the premises to be true and the conclusion false.

The crucial thing about a valid argument is that it is impossible for the premises to be true at the same time that the conclusion is false. Consider this example:

Oranges are either fruits or musical instruments.

Oranges are not fruits.

.˙. Oranges are musical instruments.

The conclusion of this argument is ridiculous. Nevertheless, it follows validly from the premises. This is a valid argument. If both premises were true, then the conclusion would necessarily be true.

This shows that a deductively valid argument does not need to have true premises or a true conclusion. Conversely, having true premises and a true conclusion is not enough to make an argument valid. Consider this example:

London is in England.

Beijing is in China.

.˙. Paris is in France.

The premises and conclusion of this argument are, as a matter of fact, all true. This is a terrible argument, however, because the premises have nothing to do with the conclusion. Imagine what would happen if Paris declared independence from the rest of France. Then the conclusion would be false, even though the premises would both still be true. Thus, it is logically possible for the premises of this argument to be true and the conclusion false. The argument is invalid.

The important thing to remember is that validity is not about the actual truth or falsity of the sentences in the argument. Instead, it is about the form of the argument: The truth of the premises is incompatible with the falsity of the conclusion.

Inductive arguments

There can be good arguments which nevertheless fail to be deductively valid. Consider this one:

In January 1997, it rained in San Diego.

In January 1998, it rained in San Diego.

In January 1999, it rained in San Diego.

.˙. It rains every January in San Diego.

This is an INDUCTIVE argument, because it generalizes from many cases to a conclusion about all cases.

Certainly, the argument could be made stronger by adding additional premises: In January 2000, it rained in San Diego. In January 2001. . . and so on. Regardless of how many premises we add, however, the argument will still not be deductively valid. It is possible, although unlikely, that it will fail to rain next January in San Diego. Moreover, we know that the weather can be fickle. No amount of evidence should convince us that it rains there every January. Who is to say that some year will not be a freakish year in which there is no rain in January in San Diego; even a single counter-example is enough to make the conclusion of the argument false.

Inductive arguments, even good inductive arguments, are not deductively valid. We will not be interested in inductive arguments in this book.

Other logical notions

Table of Contents

In addition to deductive validity, we will be interested in some other logical concepts.

Truth-values

True or false is said to be the TRUTH-VALUE of a sentence. We defined sentences as things that could be true or false; we could have said instead that sentences are things that can have truth-values.

Logical truth

In considering arguments formally, we care about what would be true if the premises were true. Generally, we are not concerned with the actual truth value of any particular sentences— whether they are actually true or false. Yet there are some sentences that must be true, just as a matter of logic.

Consider these sentences:

1. It is raining.

2. Either it is raining, or it is not.

3. It is both raining and not raining.

In order to know if sentence 1 is true, you would need to look outside or check the weather channel. Logically speaking, it might be either true or false. Sentences like this are called contingent sentences.

Sentence 2 is different. You do not need to look outside to know that it is true. Regardless of what the weather is like, it is either raining or not. This sentence is logically true; it is true merely as a matter of logic, regardless of what the world is actually like. A logically true sentence is called a TAUTOLOGY .

You do not need to check the weather to know about sentence 3, either. It must be false, simply as a matter of logic. It might be raining here and not raining across town, it might be raining now but stop raining even as you read this, but it is impossible for it to be both raining and not raining here at this moment.

The third sentence is logically false; it is false regardless of what the world is like. A logically false sentence is called a CONTRADICTION .

To be precise, we can define a CONTINGENT SENTENCE as a sentence that is neither a tautology nor a contradiction.

A sentence might always be true and still be contingent. For instance, if there never were a time when the universe contained fewer than seven things, then the sentence ‘At least seven things exist’ would always be true. Yet the sentence is contingent; its truth is not a matter of logic. There is no contradiction in considering a possible world in which there are fewer than seven things. The important question is whether the sentence must be true, just on account of logic.

Logical equivalence

We can also ask about the logical relations between two sentences. For example:

John went to the store after he washed the dishes.

John washed the dishes before he went to the store.

These two sentences are both contingent, since John might not have gone to the store or washed dishes at all. Yet they must have the same truth-value. If either of the sentences is true, then they both are; if either of the sentences is false, then they both are. When two sentences necessarily have the same truth value, we say that they are LOGICALLY EQUIVALENT .

Consistency

Consider these two sentences:

B1 My only brother is taller than I am.

B2 My only brother is shorter than I am.

Logic alone cannot tell us which, if either, of these sentences is true. Yet we can say that if the first sentence (B1) is true, then the second sentence (B2) must be false. And if B2 is true, then B1 must be false. It cannot be the case that both of these sentences are true.

If a set of sentences could not all be true at the same time, like B1–B2, they are said to be INCONSISTENT . Otherwise, they are CONSISTENT .

We can ask about the consistency of any number of sentences. For example, consider the following list of sentences:

G1 There are at least four giraffes at the wild animal park.

G2 There are exactly seven gorillas at the wild animal park.

G3 There are not more than two martians at the wild animal park.

G4 Every giraffe at the wild animal park is a martian.

G1 and G4 together imply that there are at least four martian giraffes at the park. This conflicts with G3, which implies that there are no more than two martian giraffes there. So the set of sentences G1–G4 is inconsistent. Notice that the inconsistency has nothing at all to do with G2. G2 just happens to be part of an inconsistent set.

Sometimes, people will say that an inconsistent set of sentences ‘contains a contradiction.’ By this, they mean that it would be logically impossible for all of the sentences to be true at once. A set might be inconsistent even if each of the sentences in it is either contingent or tautologous. When a single sentence is a contradiction, then that sentence alone cannot be true.

Formal languages

Table of Contents

Here is a famous valid argument:

Socrates is a man.

All men are mortal.

.˙. Socrates is mortal.

This is an iron-clad argument. The only way you could challenge the conclusion is by denying one of the premises— the logical form is impeccable. What about this next argument?

Socrates is a man.

All men are carrots.

.˙. Socrates is a carrot.

This argument might be less interesting than the first, because the second premise is obviously false. There is no clear sense in which all men are carrots. Yet the argument is valid. To see this, notice that both arguments have this form:

S is M.

All Ms are Cs.

.˙. S is C.

In both arguments S stands for Socrates and M stands for man. In the first argument, C stands for mortal; in the second, C stands for carrot. Both arguments have this form, and every argument of this form is valid. So both arguments are valid.

What we did here was replace words like ‘man’ or ‘carrot’ with symbols like ‘M’ or ‘C’ so as to make the logical form explicit. This is the central idea behind formal logic. We want to remove irrelevant or distracting features of the argument to make the logical form more perspicuous.

Starting with an argument in a natural language like English, we translate the argument into a formal language. Parts of the English sentences are replaced with letters and symbols. The goal is to reveal the formal structure of the argument, as we did with these two.

There are formal languages that work like the symbolization we gave for these two arguments. A logic like this was developed by Aristotle, a philosopher who lived in Greece during the 4th century BC. Aristotle was a student of Plato and the tutor of Alexander the Great. Aristotle’s logic, with some revisions, was the dominant logic in the western world for more than two millennia.

In Aristotelean logic, categories are replaced with capital letters. Every sentence of an argument is then represented as having one of four forms, which medieval logicians labeled in this way: (A) All As are Bs. (E) No As are Bs. (I) Some A is B. (O) Some A is not B.

It is then possible to describe valid syllogisms, three-line arguments like the two we considered above. Medieval logicians gave mnemonic names to all of the valid argument forms. The form of our two arguments, for instance, was called Barbara. The vowels in the name, all As, represent the fact that the two premises and the conclusion are all (A) form sentences.

There are many limitations to Aristotelean logic. One is that it makes no distinction between kinds and individuals. So the first premise might just as well be written ‘All Ss are Ms’: All Socrateses are men. Despite its historical importance, Aristotelean logic has been superceded. The remainder of this book will develop two formal languages.

The first is SL, which stands for sentential logic. In SL, the smallest units are sentences themselves. Simple sentences are represented as letters and connected with logical connectives like ‘and’ and ‘not’ to make more complex sentences.

The second is QL, which stands for quantified logic. In QL, the basic units are objects, properties of objects, and relations between objects.

When we translate an argument into a formal language, we hope to make its logical structure clearer. We want to include enough of the structure of the English language argument so that we can judge whether the argument is valid or invalid. If we included every feature of the English language, all of the subtlety and nuance, then there would be no advantage in translating to a formal language. We might as well think about the argument in English.

At the same time, we would like a formal language that allows us to represent many kinds of English language arguments. This is one reason to prefer QL to Aristotelean logic; QL can represent every valid argument of Aristotelean logic and more.

So when deciding on a formal language, there is inevitably a tension between wanting to capture as much structure as possible and wanting a simple formal language— simpler formal languages leave out more. This means that there is no perfect formal language. Some will do a better job than others in translating particular English-language arguments.

In this book, we make the assumption that true and false are the only possible truth-values. Logical languages that make this assumption are called bivalent, which means two-valued. Aristotelean logic, SL, and QL are all bivalent, but there are limits to the power of bivalent logic. For instance, some philosophers have claimed that the future is not yet determined. If they are right, then sentences about what will be the case are not yet true or false. Some formal languages accommodate this by allowing for sentences that are neither true nor false, but something in between. Other formal languages, so-called paraconsistent logics, allow for sentences that are both true and false.

The languages presented in this book are not the only possible formal languages. However, most nonstandard logics extend on the basic formal structure of the bivalent logics discussed in this book. So this is a good place to start.

Summary of logical notions

  An argument is (deductively) VALID if it is impossible for the premises to be true and the conclusion false; it is INVALID otherwise.

  A TAUTOLOGY is a sentence that must be true, as a matter of logic.

  A CONTRADICTION is a sentence that must be false, as a matter of logic.

  A CONTINGENT SENTENCE is neither a tautology nor a contradiction.

  Two sentences are LOGICALLY EQUIVALENT if they necessarily have the same truth value.

  A set of sentences is CONSISTENT if it is logically possible for all the members of the set to be true at the same time; it is INCONSISTENT otherwise.

Practice Exercises

Table of Contents

At the end of each chapter, you will find a series of practice problems that review and explore the material covered in the chapter. There is no substitute for actually working through some problems, because logic is more about a way of thinking than it is about memorizing facts. The answers to some of the problems are provided at the end of the book in appendix B; the problems that are solved in the appendix are marked with a .

Part A Which of the following are ‘sentences’ in the logical sense?

England is smaller than China.

Greenland is south of Jerusalem.

Is New Jersey east of Wisconsin?

The atomic number of helium is 2.

The atomic number of helium is

π

.

I hate overcooked noodles.

Blech! Overcooked noodles!

Overcooked noodles are disgusting.

Take your time.

This is the last question.

Part B For each of the following: Is it a tautology, a contradiction, or a contingent sentence?

Caesar crossed the Rubicon.

Someone once crossed the Rubicon.

No one has ever crossed the Rubicon.