a graph easy class of mute terms
play

A graph easy class of mute terms A. Bucciarelli, A.Carraro, G.Favro, - PowerPoint PPT Presentation

A graph easy class of mute terms A. Bucciarelli, A.Carraro, G.Favro, A.Salibra ICTCS 2014, Perugia Terms representing undefinedness. A natural problem arising in -calculus is what terms should be considered as representative of undefined


  1. A graph easy class of mute terms A. Bucciarelli, A.Carraro, G.Favro, A.Salibra ICTCS 2014, Perugia

  2. Terms representing undefinedness. A natural problem arising in λ -calculus is what terms should be considered as representative of undefined programs.

  3. Terms representing undefinedness. A natural problem arising in λ -calculus is what terms should be considered as representative of undefined programs. Ω ≡ ( λ x . xx )( λ x . xx ) is the simplest term that embodies this intuitive idea.

  4. Unsolvable terms.

  5. Unsolvable terms. Every λ -term has one of the following form: ◮ λ x 1 . . . x m . yM 1 . . . M n

  6. Unsolvable terms. Every λ -term has one of the following form: ◮ λ x 1 . . . x m . yM 1 . . . M n ◮ λ x 1 . . . x m . ( λ z . M ) M 1 . . . M n

  7. Unsolvable terms. Every λ -term has one of the following form: ◮ λ x 1 . . . x m . yM 1 . . . M n ◮ λ x 1 . . . x m . ( λ z . M ) M 1 . . . M n If a term β -reduces to a term of the first kind, we say it has a head normal form .

  8. Unsolvable terms. Every λ -term has one of the following form: ◮ λ x 1 . . . x m . yM 1 . . . M n ◮ λ x 1 . . . x m . ( λ z . M ) M 1 . . . M n If a term β -reduces to a term of the first kind, we say it has a head normal form . Definition A term is called unsolvable if it does not have an head normal form.

  9. Unsolvable terms. Every λ -term has one of the following form: ◮ λ x 1 . . . x m . yM 1 . . . M n ◮ λ x 1 . . . x m . ( λ z . M ) M 1 . . . M n If a term β -reduces to a term of the first kind, we say it has a head normal form . Definition A term is called unsolvable if it does not have an head normal form. Unsolvables can be considered as the terms representing the undefined (Barendregt, Wadsworth).

  10. λ -theories and unsolvable terms. Definition A λ -theory is a theory of equations between λ -terms that contains λβ .

  11. λ -theories and unsolvable terms. Definition A λ -theory is a theory of equations between λ -terms that contains λβ . Theorem (Berarducci-Intrigila) There exists a closed unsolvable t such that ∀ M s.t. M � = β I , λβ + { t = M } is a consistent theory, while ∀ M s.t. M = β I , λβ + { t = M } is not consistent.

  12. Easy terms. A closed unsolvable term t is called easy if for any closed term M the theory λβ + { t = M } is consistent.

  13. Easy terms. A closed unsolvable term t is called easy if for any closed term M the theory λβ + { t = M } is consistent. Example ◮ Ω

  14. Easy terms. A closed unsolvable term t is called easy if for any closed term M the theory λβ + { t = M } is consistent. Example ◮ Ω ◮ Ω 3 I , where Ω 3 ≡ ( λ x . xxx )( λ x . xxx )

  15. Easy terms. A closed unsolvable term t is called easy if for any closed term M the theory λβ + { t = M } is consistent. Example ◮ Ω ◮ Ω 3 I , where Ω 3 ≡ ( λ x . xxx )( λ x . xxx ) Ω 3 is unsolvable but not easy.

  16. Easy sets. Definition A set A of closed unsolvable terms is an easy set if for any closed M the theory λβ + { t = M | t ∈ A } is consistent.

  17. Easy sets. Definition A set A of closed unsolvable terms is an easy set if for any closed M the theory λβ + { t = M | t ∈ A } is consistent. Example { Ω( λ x 1 . . . x k +1 . x k +1 ) | k ∈ ω }

  18. Easy sets. Definition A set A of closed unsolvable terms is an easy set if for any closed M the theory λβ + { t = M | t ∈ A } is consistent. Example { Ω( λ x 1 . . . x k +1 . x k +1 ) | k ∈ ω } Theorem The set of easy terms is not an easy set.

  19. Mute terms. Berarducci, “Infinite λ -calculus and non-sensible models”.

  20. Mute terms. Berarducci, “Infinite λ -calculus and non-sensible models”. Definition A term M is a zero term if it does not reduce to an abstraction.

  21. Mute terms. Berarducci, “Infinite λ -calculus and non-sensible models”. Definition A term M is a zero term if it does not reduce to an abstraction. Definition A zero term is mute if it does not reduce to a variable or to a term of the form (Zero term) · Term

  22. Examples and properties of Mute terms. Example ◮ Ω

  23. Examples and properties of Mute terms. Example ◮ Ω ◮ BB , where B ≡ λ x . x ( λ y . xy )

  24. .

  25. Properties of the mute terms. ◮ The set of mute terms is an easy set.

  26. Properties of the mute terms. ◮ The set of mute terms is an easy set. ◮ The set of mute terms is not recursively enumerable, as well as the set of easy sets.

  27. Properties of the mute terms. ◮ The set of mute terms is an easy set. ◮ The set of mute terms is not recursively enumerable, as well as the set of easy sets. Problem Is Y Ω 3 , where Y ≡ λ f . ( λ x . f ( xx ))( λ x . f ( xx )) , easy?

  28. Regular mute terms

  29. Hereditarily n -ary terms. Definition Let n > 0 and ¯ x ≡ x 1 , . . . x k be distinct variables. The set of hereditarily n-ary λ -terms over ¯ x , H n [¯ x ], is the smallest set of terms such that:

  30. Hereditarily n -ary terms. Definition Let n > 0 and ¯ x ≡ x 1 , . . . x k be distinct variables. The set of hereditarily n-ary λ -terms over ¯ x , H n [¯ x ], is the smallest set of terms such that: ◮ For all i = 1 , . . . , k x i ∈ H n [¯ x ]

  31. Hereditarily n -ary terms. Definition Let n > 0 and ¯ x ≡ x 1 , . . . x k be distinct variables. The set of hereditarily n-ary λ -terms over ¯ x , H n [¯ x ], is the smallest set of terms such that: ◮ For all i = 1 , . . . , k x i ∈ H n [¯ x ] ◮ For all fresh distinct variables ¯ y ≡ y 1 , . . . , y n , t 1 ∈ H n [¯ x , ¯ y ] , . . . , t n ∈ H n [¯ x , ¯ y ] λ y 1 . . . λ y n . y i t 1 . . . t n ∈ H n [¯ x ]

  32. Examples of hereditarily terms. ◮ λ x . xx ∈ H 1 = H 1 []

  33. Examples of hereditarily terms. ◮ λ x . xx ∈ H 1 = H 1 [] ◮ λ y . yx ∈ H 1 [ x ]

  34. Examples of hereditarily terms. ◮ λ x . xx ∈ H 1 = H 1 [] ◮ λ y . yx ∈ H 1 [ x ] λ x . xxx is not an hereditarily n -ary term.

  35. A hierarchy of sets based on hereditarily terms. Definition Let ¯ x ≡ x 1 , . . . x k and ¯ y ≡ y 1 , . . . , y n be distinct variables. ◮ H 0 n [¯ x ] = H n [¯ x ]

  36. A hierarchy of sets based on hereditarily terms. Definition Let ¯ x ≡ x 1 , . . . x k and ¯ y ≡ y 1 , . . . , y n be distinct variables. ◮ H 0 n [¯ x ] = H n [¯ x ] ◮ H m +1 x ] = { s [ u / y ] : s ∈ H m u ≡ u 1 , . . . , u n ∈ H m [¯ n [¯ x , ¯ y ] , ¯ n [¯ x ] } n

  37. A hierarchy of sets based on hereditarily terms. Definition Let ¯ x ≡ x 1 , . . . x k and ¯ y ≡ y 1 , . . . , y n be distinct variables. ◮ H 0 n [¯ x ] = H n [¯ x ] ◮ H m +1 x ] = { s [ u / y ] : s ∈ H m u ≡ u 1 , . . . , u n ∈ H m [¯ n [¯ x , ¯ y ] , ¯ n [¯ x ] } n x ] = � ◮ S n [¯ m H m n [¯ x ].

  38. A new class of mute terms. Theorem Given s 0 , . . . , s n ∈ S n , the term s 0 . . . s n is mute.

  39. A new class of mute terms. Theorem Given s 0 , . . . , s n ∈ S n , the term s 0 . . . s n is mute. Proof. Sketch: the key point of the proof is that every reduction path can be seen as starting from a term of this form: ( λ y 1 . . . λ y n . y i t 1 . . . t n ) M 1 . . . M n � �� � � �� � � �� � n terms n terms n abstractions with t j , M j ∈ S n

  40. A new class of mute terms. Theorem Given s 0 , . . . , s n ∈ S n , the term s 0 . . . s n is mute. Proof. Sketch: the key point of the proof is that every reduction path can be seen as starting from a term of this form: ( λ y 1 . . . λ y n . y i t 1 . . . t n ) M 1 . . . M n � �� � � �� � � �� � n terms n terms n abstractions with t j , M j ∈ S n This means that at each step the whole term has a shape among those who are allowed for mute terms.

  41. Definition Terms of the form s 0 . . . s n ∈ S n where s i belongs to S n , are called Regular mute terms.

  42. Definition Terms of the form s 0 . . . s n ∈ S n where s i belongs to S n , are called Regular mute terms. M n is the set of regular mute terms of the form s 0 . . . s n .

  43. Definition Terms of the form s 0 . . . s n ∈ S n where s i belongs to S n , are called Regular mute terms. M n is the set of regular mute terms of the form s 0 . . . s n . M is the set of all regular mute.

  44. Definition Terms of the form s 0 . . . s n ∈ S n where s i belongs to S n , are called Regular mute terms. M n is the set of regular mute terms of the form s 0 . . . s n . M is the set of all regular mute. Example ◮ Ω ∈ M 1

  45. Definition Terms of the form s 0 . . . s n ∈ S n where s i belongs to S n , are called Regular mute terms. M n is the set of regular mute terms of the form s 0 . . . s n . M is the set of all regular mute. Example ◮ Ω ∈ M 1

  46. Definition Terms of the form s 0 . . . s n ∈ S n where s i belongs to S n , are called Regular mute terms. M n is the set of regular mute terms of the form s 0 . . . s n . M is the set of all regular mute. Example ◮ Ω ∈ M 1 ◮ ( λ x . x ( λ y . yx ))( λ x . xx ) ∈ M 1

  47. Definition Terms of the form s 0 . . . s n ∈ S n where s i belongs to S n , are called Regular mute terms. M n is the set of regular mute terms of the form s 0 . . . s n . M is the set of all regular mute. Example ◮ Ω ∈ M 1 ◮ ( λ x . x ( λ y . yx ))( λ x . xx ) ∈ M 1

Recommend


More recommend