On the Stability by Union of Reducibility Candidates Colin Riba - - PowerPoint PPT Presentation

on the stability by union of reducibility candidates
SMART_READER_LITE
LIVE PREVIEW

On the Stability by Union of Reducibility Candidates Colin Riba - - PowerPoint PPT Presentation

Introduction Reducibility Candidates Stability by Union Application to Conclusion & Future work On the Stability by Union of Reducibility Candidates Colin Riba INPL & LORIA http://loria.fr/~riba/ Journe Dduction Modulo


slide-1
SLIDE 1

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work

On the Stability by Union of Reducibility Candidates

Colin Riba

INPL & LORIA http://loria.fr/~riba/

Journée Déduction Modulo 14 Janvier 2006

Colin Riba On the Stability by Union of Reducibility Candidates

slide-2
SLIDE 2

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-3
SLIDE 3

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Motivations The Calculus λ⇒×

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-4
SLIDE 4

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Motivations The Calculus λ⇒×

Our starting point: Strong normalization of λ-calculus plus rewriting in presence

  • f union types [Blanqui & Riba 06].

More generally, Simple characterization of reducibility candidates and saturated sets. Better understanding of reducibility.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-5
SLIDE 5

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Motivations The Calculus λ⇒×

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-6
SLIDE 6

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Motivations The Calculus λ⇒×

Terms

Terms: t, u ∈ Λ ::= x | t u | λx.t | πit | t, u . Reductions: (λx.t)u →β t[u/x] πit1, t2 →β ti . Two kinds of values: λx.t and t, u

Colin Riba On the Stability by Union of Reducibility Candidates

slide-7
SLIDE 7

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Motivations The Calculus λ⇒×

Types

Types: T, U ∈ T ::= B | T ⇒ U | T × U Typing rules:

(AX) Γ, x : T ⊢ x : T (⇒ I) Γ, x : U ⊢ t : T Γ ⊢ λx.t : U ⇒ T (⇒ E) Γ ⊢ t : U ⇒ T Γ ⊢ u : U Γ ⊢ t u : T (×I) Γ ⊢ t1 : T1 Γ ⊢ t2 : T2 Γ ⊢ t1, t2 : T1 × T2 (×E) Γ ⊢ t : T1 × T2 Γ ⊢ πit : Ti (i ∈ {1, 2})

Colin Riba On the Stability by Union of Reducibility Candidates

slide-8
SLIDE 8

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-9
SLIDE 9

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Interpret types T ∈ T as sets of SN terms T ⊆ SN. Prove the soundness of the interpretation: If Γ ⊢ t : T and σ(x) ∈ A for all (x : A) ∈ Γ, then σ(t) ∈ T. T must satisfy some closure conditions.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-10
SLIDE 10

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Interpret types T ∈ T as sets of SN terms T ⊆ SN. Prove the soundness of the interpretation: If Γ ⊢ t : T and σ(x) ∈ A for all (x : A) ∈ Γ, then σ(t) ∈ T. T must satisfy some closure conditions.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-11
SLIDE 11

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-12
SLIDE 12

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Arrow: A ⇒ B =def {t | ∀u (u ∈ A ⇒ tu ∈ B)} Product: A × B =def {t | π1t ∈ A ∧ π2t ∈ B}

Colin Riba On the Stability by Union of Reducibility Candidates

slide-13
SLIDE 13

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-14
SLIDE 14

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Neutrality

Atomic elimination contexts: ǫ[ ] ::= [ ] t | πi[ ] Elimination contexts: E[ ] ::= [ ] | E[ǫ[ ]]. t is neutral (t ∈ N) iff t is not a value. If t ∈ N, then

1

E[t] ∈ N

2

If E[t] → v, then v = E′[t′] with (E[ ], t) → (E′[ ], t′).

Colin Riba On the Stability by Union of Reducibility Candidates

slide-15
SLIDE 15

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Neutrality

Atomic elimination contexts: ǫ[ ] ::= [ ] t | πi[ ] Elimination contexts: E[ ] ::= [ ] | E[ǫ[ ]]. t is neutral (t ∈ N) iff t is not a value. If t ∈ N, then

1

E[t] ∈ N

2

If E[t] → v, then v = E′[t′] with (E[ ], t) → (E′[ ], t′).

Colin Riba On the Stability by Union of Reducibility Candidates

slide-16
SLIDE 16

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Definitions

C ∈ CR iff C ⊆ SN and (CR0) if t ∈ C and t → u then u ∈ C, (CR1) if t ∈ N and (∀u (t → u ⇒ u ∈ C)) then t ∈ C. If X ⊆ SN, X is the smallest set such that X ⊆ X ∈ CR.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-17
SLIDE 17

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Application

Let X ∈ {⇒, ×} If A, B ∈ CR, then A X B ∈ CR. A X B ⊆ SN. A X B stable by reduction. Let t ∈ N and (t)→ ⊆ A X B. Since ǫ[t] ∈ N, apply (CR1) on A, B. By induction on ǫ[ ] ∈ SN. Let (ǫ[ ], t) → v. If v = ǫ[t′] with t → t′, we conclude by assumption. Otherwise, v = ǫ′[t], and we conclude by induction hypothesis.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-18
SLIDE 18

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Application

Let X ∈ {⇒, ×} If A, B ∈ CR, then A X B ∈ CR. A X B ⊆ SN. A X B stable by reduction. Let t ∈ N and (t)→ ⊆ A X B. Since ǫ[t] ∈ N, apply (CR1) on A, B. By induction on ǫ[ ] ∈ SN. Let (ǫ[ ], t) → v. If v = ǫ[t′] with t → t′, we conclude by assumption. Otherwise, v = ǫ′[t], and we conclude by induction hypothesis.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-19
SLIDE 19

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Application

Let X ∈ {⇒, ×} If A, B ∈ CR, then A X B ∈ CR. A X B ⊆ SN. A X B stable by reduction. Let t ∈ N and (t)→ ⊆ A X B. Since ǫ[t] ∈ N, apply (CR1) on A, B. By induction on ǫ[ ] ∈ SN. Let (ǫ[ ], t) → v. If v = ǫ[t′] with t → t′, we conclude by assumption. Otherwise, v = ǫ′[t], and we conclude by induction hypothesis.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-20
SLIDE 20

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Application

Let X ∈ {⇒, ×} If A, B ∈ CR, then A X B ∈ CR. A X B ⊆ SN. A X B stable by reduction. Let t ∈ N and (t)→ ⊆ A X B. Since ǫ[t] ∈ N, apply (CR1) on A, B. By induction on ǫ[ ] ∈ SN. Let (ǫ[ ], t) → v. If v = ǫ[t′] with t → t′, we conclude by assumption. Otherwise, v = ǫ′[t], and we conclude by induction hypothesis.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-21
SLIDE 21

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Application

Let X ∈ {⇒, ×} If A, B ∈ CR, then A X B ∈ CR. A X B ⊆ SN. A X B stable by reduction. Let t ∈ N and (t)→ ⊆ A X B. Since ǫ[t] ∈ N, apply (CR1) on A, B. By induction on ǫ[ ] ∈ SN. Let (ǫ[ ], t) → v. If v = ǫ[t′] with t → t′, we conclude by assumption. Otherwise, v = ǫ′[t], and we conclude by induction hypothesis.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-22
SLIDE 22

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work General Idea Interpretation of Types Girard’s Reducibility Candidates

Application

Let X ∈ {⇒, ×} If A, B ∈ CR, then A X B ∈ CR. A X B ⊆ SN. A X B stable by reduction. Let t ∈ N and (t)→ ⊆ A X B. Since ǫ[t] ∈ N, apply (CR1) on A, B. By induction on ǫ[ ] ∈ SN. Let (ǫ[ ], t) → v. If v = ǫ[t′] with t → t′, we conclude by assumption. Otherwise, v = ǫ′[t], and we conclude by induction hypothesis.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-23
SLIDE 23

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-24
SLIDE 24

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Let C ⊆ CR. We want

  • C

=def

  • C∈C

C ∈ CR SN and (CR0) are OK. (CR1)

Let t ∈ N with (t)→ ⊆ C. We need some C ∈ C such that (t)→ ∈ C.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-25
SLIDE 25

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-26
SLIDE 26

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Let CRU be the smallest set such that CR ⊆ CRU and C ⊆ CRU ⇒ C ∈ CRU. Hence, CR is stable by union iff CR = CRU. Theorem 1. C ∈ CRU iff C =

  • {t | t ∈ C}

Note that for all C ∈ CR, C =

  • {t | t ∈ C}

Colin Riba On the Stability by Union of Reducibility Candidates

slide-27
SLIDE 27

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Let CRU be the smallest set such that CR ⊆ CRU and C ⊆ CRU ⇒ C ∈ CRU. Hence, CR is stable by union iff CR = CRU. Theorem 1. C ∈ CRU iff C =

  • {t | t ∈ C}

Note that for all C ∈ CR, C =

  • {t | t ∈ C}

Colin Riba On the Stability by Union of Reducibility Candidates

slide-28
SLIDE 28

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-29
SLIDE 29

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Definitions

Let t ⊑ u iff for all value v, t →∗ v ⇒ u →∗ v . Let t ⊑SN u iff t ⊑ u and t, u ∈ SN. We have t ⊑ u iff for all value v, ∀E[ ] (E[t] →∗ v ⇒ E[u] →∗ v) .

Colin Riba On the Stability by Union of Reducibility Candidates

slide-30
SLIDE 30

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Definitions

Let t ⊑ u iff for all value v, t →∗ v ⇒ u →∗ v . Let t ⊑SN u iff t ⊑ u and t, u ∈ SN. We have t ⊑ u iff for all value v, ∀E[ ] (E[t] →∗ v ⇒ E[u] →∗ v) .

Colin Riba On the Stability by Union of Reducibility Candidates

slide-31
SLIDE 31

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Results

Theorem 2. t = {u | u ⊑SN t}. Corollary 1. C ∈ CRU iff C = {u | u ⊑SN t ∈ C} Corollary 2. CR is stable by union iff CR is the set of all C ⊆ SN such that C = {u | u ⊑SN t ∈ C}

Colin Riba On the Stability by Union of Reducibility Candidates

slide-32
SLIDE 32

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Principal Reduct

Therefore, CR = CRU iff for all C, C = {u | u ⊑SN t ∈ C} ⇒ C ∈ CR (CR0) Since (u ⊑SN t ∧ u → u′) ⇒ u′ ⊑SN t. (CR1) Let t ∈ N such that (t)→ ⊆ C. We need some u ∈ C such that u ⊑SN t. Theorem 3. CR = CRU iff for every t ∈ N ∩ SN, there is u ∈ (t)→ such that t ⊑ u. Note that u = max⊑ (t)→. We say that u is a principal reduct of t.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-33
SLIDE 33

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Main Point General Considerations Weak Observational Preorder

Principal Reduct

Therefore, CR = CRU iff for all C, C = {u | u ⊑SN t ∈ C} ⇒ C ∈ CR (CR0) Since (u ⊑SN t ∧ u → u′) ⇒ u′ ⊑SN t. (CR1) Let t ∈ N such that (t)→ ⊆ C. We need some u ∈ C such that u ⊑SN t. Theorem 3. CR = CRU iff for every t ∈ N ∩ SN, there is u ∈ (t)→ such that t ⊑ u. Note that u = max⊑ (t)→. We say that u is a principal reduct of t.

Colin Riba On the Stability by Union of Reducibility Candidates

slide-34
SLIDE 34

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Application to λ⇒×

Outline

1

Introduction Motivations The Calculus λ⇒×

2

Reducibility Candidates General Idea Interpretation of Types Girard’s Reducibility Candidates

3

Stability by Union Main Point General Considerations Weak Observational Preorder

4

Application to λ⇒× Application to λ⇒×

Colin Riba On the Stability by Union of Reducibility Candidates

slide-35
SLIDE 35

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Application to λ⇒×

In λ⇒×, we seek for principal reducts of t ∈ N ∩ SN. Weak Standardization: Let t →β u and E[t] → v with v = E[u]. Then v = E′[t′] with (E[ ], t) → (E′[ ], t′) and there exists u′ such that t′ →β u′ and E[u] →∗ E′[u′].

Colin Riba On the Stability by Union of Reducibility Candidates

slide-36
SLIDE 36

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work Application to λ⇒×

In λ⇒×, we seek for principal reducts of t ∈ N ∩ SN. Weak Standardization: Let t →β u and E[t] → v with v = E[u]. Then v = E′[t′] with (E[ ], t) → (E′[ ], t′) and there exists u′ such that t′ →β u′ and E[u] →∗ E′[u′].

Colin Riba On the Stability by Union of Reducibility Candidates

slide-37
SLIDE 37

Introduction Reducibility Candidates Stability by Union Application to λ⇒× Conclusion & Future work

In a recent paper [Riba 07]: We have given a characterization of the stability by union of CR. We have shown that it holds for λ⇒×, and for more elaborated calculi. It those cases, we have shown that Girard’s Reducibility candidates are exactly the Tait’s saturated sets that are stable by reduction. Future Work: Application to orthogonal rewriting. What happens when mixing union types and non-determinism?

Colin Riba On the Stability by Union of Reducibility Candidates