Hereditary Substitution for the -Calculus Harley Eades and Aaron - - PowerPoint PPT Presentation

hereditary substitution for the calculus
SMART_READER_LITE
LIVE PREVIEW

Hereditary Substitution for the -Calculus Harley Eades and Aaron - - PowerPoint PPT Presentation

Hereditary Substitution for the -Calculus Harley Eades and Aaron Stump Computer Science Saturday, June 22, 13 1 The Big Picture Goal: Prove weak normalization of the -calculus. Tool of choice: hereditary substitution. Novelty:


slide-1
SLIDE 1

Hereditary Substitution for the λΔ-Calculus

Harley Eades and Aaron Stump Computer Science

1 Saturday, June 22, 13

slide-2
SLIDE 2

The Big Picture

Goal: Prove weak normalization of the λΔ-calculus. Tool of choice: hereditary substitution. Novelty: normalization by hereditary substitution has never been applied to any classical type theories.

2 Saturday, June 22, 13

slide-3
SLIDE 3

Why Hereditary Substitution

It provides a directly defined substitution which preserves normal forms.

3 Saturday, June 22, 13

slide-4
SLIDE 4

Overview

Hereditary substitution and STLC. The λΔ-calculus. A naive extension of hereditary substitution to the λΔ- calculus. The correct extension. Normalization of the λΔ-calculus.

4 Saturday, June 22, 13

slide-5
SLIDE 5

The Simply Typed λ-Calculus

Syntax:

5 Saturday, June 22, 13

slide-6
SLIDE 6

The Simply Typed λ-Calculus

Typing: Reduction:

6 Saturday, June 22, 13

slide-7
SLIDE 7

Hereditary Substitution

Syntax: Usual termination order: Like ordinary capture-avoiding substitution. Except, if the substitution introduces a redex, then that redex is recursively reduced. Example:

[t/x]At

7 Saturday, June 22, 13

slide-8
SLIDE 8

Hereditary Substitution

8 Saturday, June 22, 13

slide-9
SLIDE 9

Hereditary Substitution

9 Saturday, June 22, 13

slide-10
SLIDE 10

Properties of Hereditary Substitution

10 Saturday, June 22, 13

slide-11
SLIDE 11

Properties of Hereditary Substitution

11 Saturday, June 22, 13

slide-12
SLIDE 12

Properties of Hereditary Substitution

12 Saturday, June 22, 13

slide-13
SLIDE 13

The λΔ-Calculus

Syntax Negation: Rehof:1994

13 Saturday, June 22, 13

slide-14
SLIDE 14

The λΔ-Calculus

Typing: Reduction: Rehof:1994

14 Saturday, June 22, 13

slide-15
SLIDE 15

Problems with a Naive Extension

The naive extension is a simple extension to the hereditary substitution function for STLC:

15 Saturday, June 22, 13

slide-16
SLIDE 16

Problems with a Naive Extension

The naive extension is a simple extension to the hereditary substitution function for STLC: ctype tells us:A ≥ A00 → A0 < ¬(A00 → A0)

16 Saturday, June 22, 13

slide-17
SLIDE 17

Problems with a Naive Extension

The naive extension is a simple extension to the hereditary substitution function for STLC: ctype tells us:A ≥ A00 → A0 < ¬(A00 → A0)

17 Saturday, June 22, 13

slide-18
SLIDE 18

How do we fix this?

Consider the following example:

18 Saturday, June 22, 13

slide-19
SLIDE 19

How do we fix this?

Consider the following example:

19 Saturday, June 22, 13

slide-20
SLIDE 20

How do we fix this?

Consider the following example:

20 Saturday, June 22, 13

slide-21
SLIDE 21

A Correct Extension of Hereditary Substitution

Hereditary structural substitution: Is a multi-substitution defined by induction mutually with the hereditary substitution function. Syntax: , where New termination metric:

21 Saturday, June 22, 13

slide-22
SLIDE 22

A Correct Extension of Hereditary Substitution

New termination metric:

[t/x]At

(<, −, −) (=, <, −) (=, =, <) (<, −, −) (=, =, <)

22 Saturday, June 22, 13

slide-23
SLIDE 23

A Correct Extension of Hereditary Substitution

Variables:

23 Saturday, June 22, 13

slide-24
SLIDE 24

A Correct Extension of Hereditary Substitution

Abstractions:

24 Saturday, June 22, 13

slide-25
SLIDE 25

A Correct Extension of Hereditary Substitution

Applications:

25 Saturday, June 22, 13

slide-26
SLIDE 26

A Correct Extension of Hereditary Substitution

Applications:

26 Saturday, June 22, 13

slide-27
SLIDE 27

A Correct Extension of Hereditary Substitution

The hereditary substitution function:

27 Saturday, June 22, 13

slide-28
SLIDE 28

A Correct Extension of Hereditary Substitution

28 Saturday, June 22, 13

slide-29
SLIDE 29

A Correct Extension of Hereditary Substitution

29 Saturday, June 22, 13

slide-30
SLIDE 30

A Correct Extension of Hereditary Substitution

30 Saturday, June 22, 13

slide-31
SLIDE 31

Concluding Normalization

31 Saturday, June 22, 13

slide-32
SLIDE 32

Concluding Normalization

32 Saturday, June 22, 13

slide-33
SLIDE 33

Concluding Normalization

33 Saturday, June 22, 13

slide-34
SLIDE 34

Related Work

The key notion of using a lexicographic ordering on an

  • rdering on types and the strict subexpression ordering on

proofs dates all the way to Prawitz 1965. STLC: Lévy:1967, Girard:1989, and Amadio:1998. Hereditary substitution was first made explicit by Watkins: 2004 and Adams:2004.

34 Saturday, June 22, 13

slide-35
SLIDE 35

Related Work

Abel:2006 implemented a normalizer using sized heterogeneous types. Abel:2008 uses hereditary substitution as a normalization function at the kind level in the metatheory of higher order subtyping. Keller:2010 formalized the hereditary substitution for STLC in Agda.

35 Saturday, June 22, 13

slide-36
SLIDE 36

Related Work

David:2003 show strong normalization of the simply typed λΔ-calculus using a lexicographic ordering.

36 Saturday, June 22, 13

slide-37
SLIDE 37

Conclusion

Hereditary substitution is a proof method which shows promise as an effective tool to prove normalization of typed λ-calculi. We showed how to adapt this proof method to a type theory with control. The key notion was to eliminate auxiliary redexes during reduction.

37 Saturday, June 22, 13

slide-38
SLIDE 38

Thank you!

38 Saturday, June 22, 13