The Church-Rosser Property Dr. Mattox Beckman University of - - PowerPoint PPT Presentation

the church rosser property
SMART_READER_LITE
LIVE PREVIEW

The Church-Rosser Property Dr. Mattox Beckman University of - - PowerPoint PPT Presentation

Introduction Church-Rosser The Church-Rosser Property Dr. Mattox Beckman University of Illinois at Urbana-Champaign Department of Computer Science Introduction Church-Rosser Objectives You should be able to ... Describe the


slide-1
SLIDE 1

Introduction Church-Rosser

The Church-Rosser Property

  • Dr. Mattox Beckman

University of Illinois at Urbana-Champaign Department of Computer Science

slide-2
SLIDE 2

Introduction Church-Rosser

Objectives

You should be able to ...

◮ Describe the Church-Rosser property. ◮ Explain the advantages it confers when a language has that property.

slide-3
SLIDE 3

Introduction Church-Rosser

Other Arrow Notations

Notations

→0 ≡ The identity →1 ≡ → →n ≡ → · →n−1 →∗ ≡ ∞

i=0 →i

→+ ≡ ∞

i=1 →i

a ← b ≡ b → a ↔ ≡ → ∪ ← ↔∗ ≡ (→ ∪ ←)∗

Example

3 →∗ 3, and if 3 > 2 then 5 + 9 else 2 * 4 →∗ 14

slide-4
SLIDE 4

Introduction Church-Rosser

Be Careful with ↔∗

a ↔∗ b ≡ a ←∗ b ∪ a →∗ b For example a ↔∗ b when a ← a1 → a2 → a3 ← b2 ← b1 → b

slide-5
SLIDE 5

Introduction Church-Rosser

Term Rewriting Systems

Transition semantics can be thought of as a term rewriting system. Common questions: ◮ Does an expression always terminate? ◮ Can we tell if two expressions are equal? Church-Rosser property: if x ↔∗ y then x and y normalize to the same value. x z y ∗ ∗ ∗

slide-6
SLIDE 6

Introduction Church-Rosser

Example

Confmuence

If x → y1 and x → y2 then y1 and y2 normalize to the same value. (Confmuence and the Church-Rosser property coincide.) x = 2 + 3 + 5 x = 5 + 5 x = 2 + 8 x = 10 This is also known as the “diamond property.”

slide-7
SLIDE 7

Introduction Church-Rosser

Who Has It?

◮ Alonzo Church and J. Barkley Rosser proved that the λ-calculus has these properties in 1936. ◮ Very important for theorem provers ◮ Most programming languages have this property (some of the time). ◮ One Benefjt: you can check for equality of x and y by evaluating them.