* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download propositions and connectives propositions and connectives
Meaning (philosophy of language) wikipedia , lookup
Abductive reasoning wikipedia , lookup
Mathematical proof wikipedia , lookup
Statistical inference wikipedia , lookup
Truth-bearer wikipedia , lookup
Axiom of reducibility wikipedia , lookup
Willard Van Orman Quine wikipedia , lookup
Fuzzy logic wikipedia , lookup
History of the function concept wikipedia , lookup
Sequent calculus wikipedia , lookup
First-order logic wikipedia , lookup
Jesús Mosterín wikipedia , lookup
Combinatory logic wikipedia , lookup
Foundations of mathematics wikipedia , lookup
Modal logic wikipedia , lookup
History of logic wikipedia , lookup
Mathematical logic wikipedia , lookup
Curry–Howard correspondence wikipedia , lookup
Laws of Form wikipedia , lookup
Natural deduction wikipedia , lookup
Principia Mathematica wikipedia , lookup
Propositional formula wikipedia , lookup
Brouwer–Hilbert controversy wikipedia , lookup
Intuitionistic logic wikipedia , lookup
Quantum logic wikipedia , lookup
propositions and connectives … two-valued logic – every sentence is either true or false some sentences are minimal – no proper part which is also a sentence others – can be taken apart into smaller parts we can build larger sentences from smaller ones by using connectives lecture 12: propositional logic – part I of#33# propositions and connectives … connectives – each has one or more meanings in natural language – need for precise, formal language 2# of#33# propositional logic … can do … logic that deals only with propositions (sentences, statements) If I open the window then 1+3=4. John is working or he is at home. Euclid was a Greek or a mathematician. ece#720,#winter#‘12# ece#720,#winter#‘12# if it is raining then people carry their umbrellas raised people are not carrying their umbrellas raised it is not raining 3# of#33# propositional logic ece#720,#winter#‘12# 4# of#33# propositional logic … … cannot do … we will look at three different versions if it is raining then everyone will have their umbrellas up John is a person John does not have his umbrella up (it is not raining) ! Hilbert system (the view that logic is about proofs) ! Gentzen system and tableau (or Beth) system (the view that is about consistency and entailment) no way to substitute the name of the individual John into the general rule about everyone ece#720,#winter#‘12# 5# of#33# ece#720,#winter#‘12# 6# of#33# propositional logic propositional logic … Hilbert system two stages of formalization PROP_H ! present a formal language the syntax is extremely simple ! a set of names for prepositions ! specify a procedure for obtaining valid/true propositions ! single logical operator ! a single rule for combining simple expressions via logical operator (using brackets to avoid ambiguity) ece#720,#winter#‘12# 7# of#33# propositional logic 8# of#33# ece#720,#winter#‘12# propositional logic Hilbert system Hilbert system PROP_H language … is a system which is tailored for talking about what can and what cannot be proved within the language, rather than for actually saying things and exploring entailments propositions names: p, q, r, …, p0, p1, p2, … a name for false : ⊥ € ece#720,#winter#‘12# 9# of#33# propositional logic 10# of#33# ece#720,#winter#‘12# propositional logic Hilbert system Hilbert system - semantics language … is given by explaining the meaning of the basic formulae - the proposition letters and ⊥ the connective: → (intended to be read implies ) single combining rule: if A and B are expressions then so is €A → B (A, B stand for arbitrary expressions of the language) is given in terms of two objects T and F € is given by providing a function V called valuation (it defines meaning of expressions) € ece#720,#winter#‘12# 11# of#33# ece#720,#winter#‘12# 12# of#33# propositional logic propositional logic Hilbert system - semantics Hilbert system - semantics V(P) – maps P (basic proposition letters and ⊥ ) to {T, F} answer – truth tables A T T F F € to expr expr - denotes the meaning assigned so, how to find out the value of complex expressions € € (built from simple ones using → , i.e., A → B ) …? € € € ece#720,#winter#‘12# € 13# of#33# propositional logic B →A T T € F T negation - ¬ A →(B → A)) T T € T T € € 15# of#33# ece#720,#winter#‘12# propositional logic ece#720,#winter#‘12# ⊥ F F €€ A →⊥ F T 16# of#33# ece#720,#winter#‘12# Hilbert system - semantics disjunction ∨ A T T F F A T F propositional logic Hilbert system - semantics € 14# of#33# ece#720,#winter#‘12# Hilbert system - semantics a truth table of complex expressions B T F € T F A→B T F T T propositional logic Hilbert system - semantics A T T F F B T F € T F conjunction ∧ B T F € T F ¬A F F T T ¬ A →B € € A T T € F F € T T T F 17# of#33# ece#720,#winter#‘12# ¬B B ¬A T F F F F T € € € T T F F T T ¬ A ∨¬B F T €€ € T T ¬ (¬A ∨¬ B) T F F F 18# of#33# propositional logic propositional logic Hilbert system – inference rules Hilbert system – inference rules only one inference rule + three axioms (expressions that are accepted as being true under any evaluation) for any expressions A and B: from A and A →B we can infer B PH1: A → (B → A) PH2: [A → (B → C)] → [(A → B) → (A → C)] PH3: ¬ ( ¬ A) → A it is known as MODUS PONENS (MP) € € ece#720,#winter#‘12# € € € € € € 19# of#33# € € € € 20# of#33# ece#720,#winter#‘12# propositional logic propositional logic Hilbert system – inference rules Hilbert system – inference rules a proof of a conclusion C from hypotheses H1, H2, …, Hk is a sequence of expressions E1, E2, …, En obeying the following conditions: (i) C is En (ii) Each Ei is either an axiom, or one of the Hj or is a result of applying the inference rule MP to Ek and El where k and l are less then i proof of r from p hypotheses: p → q, q → r 1p 2 p →q € € 3q 4 q →r € 5r (hypothesis) (hypothesis) (from 1 and 2 by MP) (hypothesis) (from 3 and 4 by MP) € ece#720,#winter#‘12# 21# of#33# 22# of#33# ece#720,#winter#‘12# propositional logic propositional logic Hilbert system – inference rules Hilbert system – inference rules proof of A → A p, p → q, q → r r is a meta-symbol indicating that proof exists € € if we have a proof of a conclusion from an empty set of hypotheses – a formula which can be proved in such a way is called a theorem € € € € ece#720,#winter#‘12# 23# of#33# 1 [A → ((A → A) → A)] → [(A → (A → A)) → (A → A)] (PH2) € 2 [A → ((A → A) → A)] (PH1) 3 [A → (A → A)] → (A → A) (MP on 1, 2) € € € € € € € 4 (A → (A → A)) (PH1) € € 5 (A → A) (MP on 3, 4) € € € € € ece#720,#winter#‘12# 24# of#33# propositional logic propositional logic Hilbert system – inference rules Hilbert system – inference rules deduction theorem if A1, …, An proof of A → ¬ ¬ A B then A1, …, An-1 An → B 1 A, A → ⊥ ⊥ € €€ 2 A (A → ⊥ ) → ⊥ 3 A → ((A → ⊥) → ⊥ € € € 4 A → ¬ ¬A € € € € € € € € € € € €€ 25# of#33# ece#720,#winter#‘12# propositional logic € € € € € € € 26# of#33# Hilbert system – soundness ⊥→ A 1 ⊥, A → ⊥ ⊥ 2 ⊥€ (A → ⊥ ) → ⊥ 3 ⊥ [(A → ⊥ ) → ⊥] → A € € € 4⊥ A € € € € 5 ⊥→ A € € ece#720,#winter#‘12# propositional logic Hilbert system – inference rules proof of (MP) (DT) (DT) (A →⊥≡¬A) would like to be reassured that Prop_H will not permit us to infer conclusions which can be false when their supporting hypotheses are true (otherwise, we would be able to prove things which are not true) (DT) (PH3) (MP on 2, 3) (DT) € € 27# of#33# ece#720,#winter#‘12# propositional logic ece#720,#winter#‘12# 28# of#33# propositional logic Hilbert system – soundness definition Hilbert system – completeness would like to know that if some conclusion is always true whenever every member of a given set of hypotheses is true, then there is a proof of the conclusion from the hypotheses if A1, …, An A then A = T for any valuation function V for which all the Ai are T € € € € ece#720,#winter#‘12# 29# of#33# ece#720,#winter#‘12# 30# of#33# propositional logic propositional logic Hilbert system – completeness definition if A is valid then Hilbert system – consistency definition A there is no proof of ⊥ € ece#720,#winter#‘12# 31# of#33# propositional logic Hilbert system – decidability definition there is a mechanical procedure which can decide for any A whether or not A ece#720,#winter#‘12# 33# of#33# ece#720,#winter#‘12# 32# of#33#