Logic, Lecture I Introduction to logics
Logic and discrete mathematics (HKGAB4) http://www.ida.liu.se/∼HKGAB4/ “All rational inquiry depends on logic, on the ability
- f people to reason correctly most of the time, and, when
they fail to reason correctly, on the ability of others to point
- ut the gaps in their reasoning” (Barwise & Etchemendy)
Logic: contents
- 1. Logic: informal introduction, syntactic and semantic per-
- spective. Meta properties (soundness, completeness).
- 2. Logical connectives and 0-1 reasoning.
- 3. Introduction to formal reasoning: Fitch format (notation).
- 4. Fitch rules for propositional connectives.
- 5. Quantifiers.
- 6. Fitch rules for quantifiers.
- 7. Normal forms for formulas and reasoning by resolution.
- 8. Logic as a database querying language.
- 9. Modal logics.
- A. Sza
las
- 1 -
Logic, Lecture I Introduction to logics
What is logic? The first approximation: logic is the science of correct reasoning, i.e., reasoning based on correct (sound) arguments. A correct (sound) argument is one in which anyone who accepts its premises should also accept its conclusions. To see whether an argument is correct, one looks at the connec- tion between the premisses and the conclusion. One does not judge whether there are good reasons for accepting the premisses, but whether person who accepted the premisses, for whatever reasons, good or bad, ought also accept the conclusion. Examples
- 1. Correct arguments:
- if x is a parent of y, and y is a parent of z,
then x is a grandparent of z
- if A and B is true, then A is true.
- 2. Incorrect arguments:
- if A implies B then B implies A
- if A or B is true, then A is true.
- 3. are the following arguments correct?
- if A implies B then not B implies not A
- if A is true, then A or B is true.
- A. Sza
las
- 2 -
Logic, Lecture I Introduction to logics
What is logic? – continued Logical formalisms are applied in many areas of science as a basis for clarifying and formalizing reasoning. Intuitively, a logic is defined by the (family of) language(s) it uses and by its underlying reasoning machinery. The intensive use of formal reasoning techniques resulted in defining hundreds, if not thousands, of logics that fit nicely to particular application areas. We then first need to clarify what do we mean by a logic. In order to make any reasoning fruitful, we have
- 1. to decide what is the subject of reasoning or, in other words, what
are we going to talk about and what language is to be used
- 2. to associate a precise meaning to basic notions of the language,
in order to avoid ambiguities and misunderstandings
- 3. to state clearly what kind of opinions (sentences) can be formu-
lated in the language we deal with and, moreover, which of those
- pinions are true (valid), and which are false (invalid).
Now we can investigate the subject of reasoning via the validity of expressed opinions. Such an abstraction defines a specific logic.
c- A. Sza
las
- 3 -
Logic, Lecture I Introduction to logics
What is logic? – continued Traditionally, there are two methodologies to introduce a logic:
- syntactically, via a notion of a proof and proof system
- semantically, via a notion of a model, satisfiability and
truth. Both methodologies first require to chose a language that suits best a particular application. For example,
- 1. talking about politics we use terms “political party”, “prime min-
ister”, “parliament”, “statement”, etc. etc.
- 2. talking about computer science phenomena we use terms “soft-
ware”, “program execution”, “statement”, etc. etc. Of course we use different vocabulary talking about different areas. Logical language is defined by means of basic concepts, formulas and logical connectives or operators. Connectives and operators have a fixed meaning. Vocabularies reflecting particular application domains are flexible.
c- A. Sza
las
- 4 -