cs20a models nov 14 2002
play

CS20a: Models (Nov 14, 2002) Alternative models Primitive - PowerPoint PPT Presentation

CS20a: Models (Nov 14, 2002) Alternative models Primitive recursive functions Partial recursive functions Recursion theorem Rices theorem Lambda Calculus Recursion theorem Rices theorem Arithmetic


  1. CS20a: Models (Nov 14, 2002) • Alternative models – Primitive recursive functions – Partial recursive functions – Recursion theorem – Rice’s theorem • Lambda Calculus – Recursion theorem – Rice’s theorem • Arithmetic – Recursion theorem – Godel’s incompleteness theorem (aka Rice’s theorem) T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 1 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  2. Arithmetic • Let’s do the same for arithmetic • Arithmetic is: – Operators: +, -, *, /, … – First-order logic • First, let’s define logic T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 2 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  3. Defining logics • A logic is defined in three parts – Syntax – Define what is “true” – Define derivation procedures T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 3 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  4. Defining the syntax Start with a countable set of propositional letters P, Q, R, . . . Define the propositions inductively: • ⊤ (true) is a proposition • ⊥ (false) is a proposition • Any propositional letter is a proposition • If A is a proposition, so it ¬ A (negation) • If A and B are propositions, so are – A ∧ B (conjunction) – A ∨ B (disjunction) – A ⇒ B (implication) T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 4 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  5. Standard syntax definition Propositions: :: = ⊤ | ⊥ e | P, Q, R, . . . | ¬ e | e ∧ e | e ∨ e | e ⇒ e T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 5 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  6. Semantics • The semantics of constants: ⊤ = 1 , ⊥ = 0 • The semantics of a propositional letter is its truth value. • The semantics of a compound proposition is de- termined by truth tables. A ∨ B A ∧ B A ∧ B A B A B A B 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 1 1 1 0 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 6 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  7. Extending the truth assignment A ∧ B (A ∧ B) ⇒ C A B C 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 1 0 1 1 1 1 1 T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 7 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  8. Some definitions • A truth assignment A assigns a value to each propo- sitional letter A a unique truth value A (A) ∈ { 0 , 1 } • A truth valuation V assigns a truth value to each proposition (it can be constructed from a A by following the truth tables). • A proposition α is satisfiable if there is a truth valuation V (α) = 1 • A proposition α is true (a tautology) if it is true in all valuations. T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 8 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  9. A proof (Pierce’s Law) A ⇒ B (A ⇒ B) ⇒ A ((A ⇒ B) ⇒ A) ⇒ A A B 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1 1 1 1 1 1 T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 9 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  10. Derivations • Truth tables are hard to use • We want a mechanical method for proving propositions • Use sequents and truth judgments T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 10 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  11. Sequents • A sequent has the form Γ ⊢ ∆ • ∆ is a list of propositions α 1 , . . . , α n • Γ is a context containing a list of propositions β 1 , . . . , β n • We can extend valuations to sequents, to get the folowing semantics: – A sequent β 1 , . . . , β n ⊢ α 1 , . . . , α n is true if some α i is true whenever β 1 , . . . , β n are all true. T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 11 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  12. Derivations • There are two kinds of inference rules – Introduction rules operate on the right of the turnstile – Elimination rules operate on the left of the turnstile • The base axiom Γ 1 , α, Γ 2 ⊢ ∆ 1 , α, ∆ 2 axiom T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 12 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  13. Introduction rules, part I Γ ⊢ ∆ 1 , ⊤ , ∆ 2 true intro Γ ⊢ ∆ 1 , α, ∆ 2 Γ ⊢ ∆ 1 , β, ∆ 2 and intro Γ ⊢ ∆ 1 , α ∧ β, ∆ 2 Γ ⊢ ∆ 1 , α, β, ∆ 2 Γ ⊢ ∆ 1 , α ∨ β, ∆ 2 or intro T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 13 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  14. Introduction rules, part II Γ , α ⊢ ∆ 1 , β, ∆ 2 implies intro Γ ⊢ ∆ 1 , α ⇒ β, ∆ 2 Γ , α ⊢ ∆ 1 , ∆ 2 Γ ⊢ ∆ 1 , ¬ α, ∆ 2 not intro T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 14 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

  15. Elimination rules Γ 1 , ⊥ , Γ 2 ⊢ ∆ false elim Γ 1 , α, β, Γ 2 ⊢ ∆ Γ 1 , α ∧ β, Γ 2 ⊢ ∆ and elim Γ 1 , α, Γ 2 ⊢ ∆ Γ 1 , β, Γ 2 ⊢ ∆ or elim Γ 1 , α ∨ β, Γ 2 ⊢ ∆ Γ 1 , β, Γ 2 ⊢ ∆ Γ 1 , Γ 2 ⊢ α, ∆ implies elim Γ 1 , α ⇒ β, Γ 2 ⊢ ∆ T U T E I O T S F N T I E A C I H N N Computation, Computers, and Programs Godel's incompleteness theorem R O O 15 I F L I O L http://www.cs.caltech.edu/courses/cs20/a/ November 13, 2002 A G Y C If this page displays slowly, try turning off the “smooth line art” option in Acrobat, under Edit->Preferences

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend