Act06_Subst_and_Pf_Rules

Act06_Subst_and_Pf_R - CS 536 Activities Syntactic Substitution More Proof Rules Activity 6.1 Syntactic Substitution A Why • To reason about

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 536 Activities: Syntactic Substitution; More Proof Rules Activity 6.1: Syntactic Substitution A. Why? • To reason about assignments, we need to understand syntactic substitution. B. Outcomes At the end of this activity you should: • Be able to do syntactic substitution. C. Questions 1. Calculate ( x+i ∗ b+c = 0 )[ i+ 1/ i ][ b+c / c ]. For Questions 2 – 8, let P be ∃ x . x < y ∧ x ² ≥ y+k , where x , y , and k range over integers. 2. What is P [ 5 / x ]? The same as P , because we’re trying to substitute for x , the quantified variable. 3. What is P [ 5 / y ]? ∃ x . x < 5 ∧ x ² ≥ 5+k 4. What is P [ 5 / z ]? Same as P because z doesn’t occur in P at all. 5. What is P [ (x+y)/2 / y ]? To avoid capture, we’ll replace x by z . ( ∃ x . x < y ∧ x ² ≥ y+k) [ (x+y)/2 / y ] is ∃ z .( (x < y ∧ x ² ≥ y+k) [ z / x ] [ (x+y)/2 / y ]) is ∃ z .( (z < y ∧ z ² ≥ y+k) [ (x+y)/2 / y ]) is ∃ z . z < (x+y)/2 ∧ z ² ≥ (x+y)/2+k 6. Let Q be ∀ y . ∀ k . P . What is Q [ e / v ] where v is any variable (including possibly x , y , and k ) and e is any e x pression?...
View Full Document

This note was uploaded on 04/17/2011 for the course CS 536 taught by Professor Cs536 during the Fall '08 term at Illinois Tech.

Page1 / 3

Act06_Subst_and_Pf_R - CS 536 Activities Syntactic Substitution More Proof Rules Activity 6.1 Syntactic Substitution A Why • To reason about

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online