fbpx
Wikipedia

Böhm tree

In the study of denotational semantics of the lambda calculus, Böhm trees,[a] Lévy-Longo trees,[1][2][b] and Berarducci trees[3] are (potentially infinite) tree-like mathematical objects that capture the "meaning" of a term up to some set of "meaningless" terms.

Motivation

A simple way to read the meaning of a computation is to consider it as a mechanical procedure consisting of a finite number of steps that, when completed, yields a result. In particular, considering the lambda calculus as a rewriting system, each beta reduction step is a rewrite step, and once there are no further beta reductions the term is in normal form. We could thus, naively following Church's suggestion,[4] say the meaning of a term is its normal form, and that terms without a normal form are meaningless. For example the meanings of I = λx.x and I I are both I. This works for any strongly normalizing subset of the lambda calculus, such as a typed lambda calculus.

This naive assignment of meaning is however inadequate for the full lambda calculus. The term Ω =(λx.x x)(λx.x x) does not have a normal form, and similarly the term X=λx.xΩ does not have a normal form. But the application Ω (K I), where K denotes the standard lambda term λx.λy.x, reduces only to itself, whereas the application X (K I) reduces with normal order reduction to I, hence has a meaning. We thus see that not all non-normalizing terms are equivalent. We would like to say that Ω is less meaningful than X because applying X to a term can produce a result but applying Ω cannot.

In the infinitary lambda calculus, the term N N, where N = λx.I(xx), reduces to both to I (I (...)) and Ω. Hence there are also issues with confluence of normalization.[5]

Sets of meaningless terms

We define a set   of meaningless terms as follows:[6][7]

  • Root-activeness: Every root-active term is in  . A term   is root-active if for all   there exists a redex   such that  .
  • Closure under β-reduction: For all  , if   then  .
  • Closure under substitution: For all   and substitutions  ,  .
  • Overlap: For all  ,   .
  • Indiscernibility: For all  , if   can be obtained from   by replacing a set of pairwise disjoint subterms in   with other terms of  , then   if and only if  .
  • Closure under β-expansion. For all  , if  , then  . Some definitions leave this out, but it is useful.[8]

There are infinitely many sets of meaningless terms, but the ones most common in the literature are:[9]

  • The set of terms without head normal form
  • The set of terms without weak head normal form
  • The set of root-active terms, i.e. the terms without top normal form or root normal form. Since root-activeness is assumed, this is the smallest set of meaningless terms.

Note that Ω is root-active and therefore   for every set of meaningless terms  .

λ⊥-terms

The set of λ-terms with ⊥ (abbreviated λ⊥-terms) is defined coinductively by the grammar  . This corresponds to the standard infinitary lambda calculus plus terms containing  . Beta-reduction on this set is defined in the standard way. Given a set of meaningless terms  , we also define a reduction to bottom: if   and  , then  . The λ⊥-terms are then considered as a rewriting system with these two rules; thanks to the definition of meaningless terms this rewriting system is confluent and normalizing.[7]

The Böhm-like "tree" for a term may then be obtained as the normal form of the term in this system, possibly in an infinitary "in the limit" sense if the term expands infinitely.

Böhm trees

The Böhm trees are obtained by considering the λ⊥-terms where the set of meaningless terms consists of those without head normal form. More explicitly, the Böhm tree BT(M) of a lambda term M can be computed as follows:[10]

  1. BT(M) is  , if M has no head normal form
  2.  , if   reduces in a finite number of steps to the head normal form  

For example, BT(Ω)=⊥, BT(I)=I, and BT(λx.xΩ)=λx.x.

Determining whether a term has a head normal form is an undecidable problem. Barendregt introduced a notion of an "effective" Böhm tree that is computable, with the only difference being that terms with no head normal form are not marked with  .[11]

Note that computing the Böhm tree is similar to finding a normal form for M. If M has a normal form, the Böhm tree is finite and has a simple correspondence to the normal form. If M does not have a normal form, normalization may "grow" some subtrees infinitely, or it may get "stuck in a loop" attempting to produce a result for part of the tree, which produce infinitary trees and meaningless terms respectively. Since the Böhm tree may be infinite the procedure should be understood as being applied co-recursively or as taking the limit of an infinite series of approximations.

Lévy-Longo trees

The Lévy-Longo trees are obtained by considering the λ⊥-terms where the set of meaningless terms consists of those without weak head normal form. More explicitly, the Lévy-Longo tree LLT(M) of a lambda term M can be computed as follows:[10]

  1. LLT(M) is  , if M has no weak head normal form.
  2. If   reduces to the weak head normal form  , then  .
  3. If   reduces to the weak head normal form  , then  /

Berarducci trees

The Berarducci trees are obtained by considering the λ⊥-terms where the set of meaningless terms consists of the root-active terms. More explicitly, the Berarducci tree BerT(M) of a lambda term M can be computed as follows:[10]

  1. BerT(M) is  , if M is root-active.
  2. If   reduces to a term  , then  .
  3. If   reduces to a term   where   does not reduce to any abstraction  , then  .

Notes

  1. ^ per Sangiorgi & Walker (2003, p. 493), introduced in Barendregt (1977) and named after a theorem of Corrado Böhm
  2. ^ coined in Ong (1988), per Sangiorgi & Walker (2003, p. 511)

References

  1. ^ Levy, Jean-Jacques (1975). "An algebraic interpretation of the λβK-calculus and a labelled λ-calculus". Λ-Calculus and Computer Science Theory. Lecture Notes in Computer Science. 37: 147–165. doi:10.1007/BFb0029523. ISBN 3-540-07416-3.
  2. ^ Longo, Giuseppe (August 1983). "Set-theoretical models of λ-calculus: theories, expansions, isomorphisms". Annals of Pure and Applied Logic. 24 (2): 153–188. doi:10.1016/0168-0072(83)90030-1.
  3. ^ Berarducci, Alessandro (1996). "Infinite λ-calculus and non-sensible models" (PDF). Logic and algebra. New York: Marcel Dekker. pp. 339–377. ISBN 0824796063. Retrieved 23 September 2007.
  4. ^ Church, Alonzo (1941). The calculi of lambda-conversion. Princeton University Press. p. 15. ISBN 0691083940.
  5. ^ Severi & de Vries 2011, p. 1.
  6. ^ Kennaway, Richard; van Oostrom, Vincent; de Vries, Fer-Jan (1996). "Meaningless terms in rewriting". Algebraic and Logic Programming. Lecture Notes in Computer Science. 1139: 254–268. CiteSeerX 10.1.1.37.3616. doi:10.1007/3-540-61735-3_17. ISBN 978-3-540-61735-8.
  7. ^ a b Severi & de Vries 2011, p. 5.
  8. ^ Severi & de Vries 2011, pp. 4–5.
  9. ^ Severi & de Vries 2011, p. 2.
  10. ^ a b c Severi & de Vries 2011, p. 6.
  11. ^ Barendregt, Henk P. (2012). The Lambda Calculus : Its Syntax and Semantics. London: College Publications. pp. 219–221. ISBN 9781848900660.
  • Huet, Gérard; Laulhère, H. (1997). "Finite-state Transducers as Regular Böhm Trees" (PDF). In Abadi, M.; Ito, T. (eds.). Theoretical Aspects of Computer Software. LNCS. Vol. 1281. Springer. pp. 604–610. CiteSeerX 10.1.1.110.7910. doi:10.1007/BFb0014570. ISBN 978-3-540-69530-1.
  • Gérard Huet (1998). "Regular Böhm Trees" (PDF). Math. Struct. In Comp. Science. 8 (6): 671–680. CiteSeerX 10.1.1.123.475. doi:10.1017/S0960129598002643. S2CID 15752309.
  • Ong, C.-H. Luke (31 May 1988). The Lazy Lambda Calculus: An Investigation into the Foundations of Functional Programming (PDF) (PhD). University of London. OCLC 31204528. Retrieved 23 September 2022.
  • Sangiorgi, Davide; Walker, David (16 October 2003). The Pi-Calculus: A Theory of Mobile Processes. Cambridge University Press. ISBN 978-0-521-54327-9.
  • Barendregt, Henk P. (1977). "The Type Free Lambda Calculus". Studies in Logic and the Foundations of Mathematics. 90: 1091–1132. doi:10.1016/S0049-237X(08)71129-7. hdl:2066/17225. ISBN 9780444863881. S2CID 25828519.
  • Severi, Paula; de Vries, Fer-Jan (2011). "Decomposing the Lattice of Meaningless Sets in the Infinitary Lambda Calculus" (PDF). Logic, Language, Information and Computation. Lecture Notes in Computer Science. 6642: 210–227. doi:10.1007/978-3-642-20920-8_22. ISBN 978-3-642-20919-2. Retrieved 23 September 2022.

böhm, tree, study, denotational, semantics, lambda, calculus, lévy, longo, trees, berarducci, trees, potentially, infinite, tree, like, mathematical, objects, that, capture, meaning, term, some, meaningless, terms, contents, motivation, sets, meaningless, term. In the study of denotational semantics of the lambda calculus Bohm trees a Levy Longo trees 1 2 b and Berarducci trees 3 are potentially infinite tree like mathematical objects that capture the meaning of a term up to some set of meaningless terms Contents 1 Motivation 2 Sets of meaningless terms 3 l terms 3 1 Bohm trees 3 2 Levy Longo trees 3 3 Berarducci trees 4 Notes 5 ReferencesMotivation EditA simple way to read the meaning of a computation is to consider it as a mechanical procedure consisting of a finite number of steps that when completed yields a result In particular considering the lambda calculus as a rewriting system each beta reduction step is a rewrite step and once there are no further beta reductions the term is in normal form We could thus naively following Church s suggestion 4 say the meaning of a term is its normal form and that terms without a normal form are meaningless For example the meanings of b I b lx x and b I b b I b are both b I b This works for any strongly normalizing subset of the lambda calculus such as a typed lambda calculus This naive assignment of meaning is however inadequate for the full lambda calculus The term b W b lx x x lx x x does not have a normal form and similarly the term X lx x b W b does not have a normal form But the application b W b b K b b I b where b K b denotes the standard lambda term lx ly x reduces only to itself whereas the application X b K b b I b reduces with normal order reduction to b I b hence has a meaning We thus see that not all non normalizing terms are equivalent We would like to say that b W b is less meaningful than X because applying X to a term can produce a result but applying b W b cannot In the infinitary lambda calculus the term N N where N lx b I b xx reduces to both to b I b b I b and b W b Hence there are also issues with confluence of normalization 5 Sets of meaningless terms EditWe define a set U displaystyle U of meaningless terms as follows 6 7 Root activeness Every root active term is in U displaystyle U A term M displaystyle M is root active if for all M N displaystyle M stackrel to N there exists a redex l x P Q displaystyle lambda x P Q such that N l x P Q displaystyle N stackrel to lambda x P Q Closure under b reduction For all M U displaystyle M in U if M N displaystyle M stackrel to N then N U displaystyle N in U Closure under substitution For all M U displaystyle M in U and substitutions s displaystyle sigma M s U displaystyle M sigma in U Overlap For all l x M U displaystyle lambda x M in U l x M N U displaystyle lambda x M N in U Indiscernibility For all M N displaystyle M N if N displaystyle N can be obtained from M displaystyle M by replacing a set of pairwise disjoint subterms in U displaystyle U with other terms of U displaystyle U then M U displaystyle M in U if and only if N U displaystyle N in U Closure under b expansion For all N U displaystyle N in U if M N displaystyle M stackrel to N then M U displaystyle M in U Some definitions leave this out but it is useful 8 There are infinitely many sets of meaningless terms but the ones most common in the literature are 9 The set of terms without head normal form The set of terms without weak head normal form The set of root active terms i e the terms without top normal form or root normal form Since root activeness is assumed this is the smallest set of meaningless terms Note that b W b is root active and therefore W U displaystyle mathbf Omega in U for every set of meaningless terms U displaystyle U l terms EditThe set of l terms with abbreviated l terms is defined coinductively by the grammar M x l x M M M displaystyle M bot mid x mid lambda x M mid MM This corresponds to the standard infinitary lambda calculus plus terms containing displaystyle bot Beta reduction on this set is defined in the standard way Given a set of meaningless terms U displaystyle U we also define a reduction to bottom if M W U displaystyle M bot mapsto mathbf Omega in U and M displaystyle M neq bot then M displaystyle M to bot The l terms are then considered as a rewriting system with these two rules thanks to the definition of meaningless terms this rewriting system is confluent and normalizing 7 The Bohm like tree for a term may then be obtained as the normal form of the term in this system possibly in an infinitary in the limit sense if the term expands infinitely Bohm trees Edit The Bohm trees are obtained by considering the l terms where the set of meaningless terms consists of those without head normal form More explicitly the Bohm tree BT M of a lambda term M can be computed as follows 10 BT M is displaystyle bot if M has no head normal form B T M l x 1 l x 2 l x n y B T M 1 B T M m displaystyle mathrm BT M lambda x 1 lambda x 2 ldots lambda x n y mathrm BT M 1 ldots mathrm BT M m if M displaystyle M reduces in a finite number of steps to the head normal form l x 1 l x 2 l x n y M 1 M m displaystyle lambda x 1 lambda x 2 ldots lambda x n yM 1 ldots M m For example BT b W b BT b I b b I b and BT l i x i i x i b W b l i x i i x i Determining whether a term has a head normal form is an undecidable problem Barendregt introduced a notion of an effective Bohm tree that is computable with the only difference being that terms with no head normal form are not marked with displaystyle bot 11 Note that computing the Bohm tree is similar to finding a normal form for M If M has a normal form the Bohm tree is finite and has a simple correspondence to the normal form If M does not have a normal form normalization may grow some subtrees infinitely or it may get stuck in a loop attempting to produce a result for part of the tree which produce infinitary trees and meaningless terms respectively Since the Bohm tree may be infinite the procedure should be understood as being applied co recursively or as taking the limit of an infinite series of approximations Levy Longo trees Edit The Levy Longo trees are obtained by considering the l terms where the set of meaningless terms consists of those without weak head normal form More explicitly the Levy Longo tree LLT M of a lambda term M can be computed as follows 10 LLT M is displaystyle bot if M has no weak head normal form If M displaystyle M reduces to the weak head normal form y M 1 M m displaystyle yM 1 ldots M m then L L T M y L L T M 1 L L T M m displaystyle mathrm LLT M y mathrm LLT M 1 ldots mathrm LLT M m If M displaystyle M reduces to the weak head normal form l x N displaystyle lambda x N then L L T M l x L L T N displaystyle mathrm LLT M lambda x mathrm LLT N Berarducci trees Edit The Berarducci trees are obtained by considering the l terms where the set of meaningless terms consists of the root active terms More explicitly the Berarducci tree BerT M of a lambda term M can be computed as follows 10 BerT M is displaystyle bot if M is root active If M displaystyle M reduces to a term l x N displaystyle lambda x N then B e r T M l x B e r T N displaystyle mathrm BerT M lambda x mathrm BerT N If M displaystyle M reduces to a term N P displaystyle NP where N displaystyle N does not reduce to any abstraction l x Q displaystyle lambda x Q then B e r T M B e r T N B e r T P displaystyle mathrm BerT M mathrm BerT N mathrm BerT P Notes Edit per Sangiorgi amp Walker 2003 p 493 introduced in Barendregt 1977 and named after a theorem of Corrado Bohm coined in Ong 1988 per Sangiorgi amp Walker 2003 p 511 References Edit Levy Jean Jacques 1975 An algebraic interpretation of the lbK calculus and a labelled l calculus L Calculus and Computer Science Theory Lecture Notes in Computer Science 37 147 165 doi 10 1007 BFb0029523 ISBN 3 540 07416 3 Longo Giuseppe August 1983 Set theoretical models of l calculus theories expansions isomorphisms Annals of Pure and Applied Logic 24 2 153 188 doi 10 1016 0168 0072 83 90030 1 Berarducci Alessandro 1996 Infinite l calculus and non sensible models PDF Logic and algebra New York Marcel Dekker pp 339 377 ISBN 0824796063 Retrieved 23 September 2007 Church Alonzo 1941 The calculi of lambda conversion Princeton University Press p 15 ISBN 0691083940 Severi amp de Vries 2011 p 1 Kennaway Richard van Oostrom Vincent de Vries Fer Jan 1996 Meaningless terms in rewriting Algebraic and Logic Programming Lecture Notes in Computer Science 1139 254 268 CiteSeerX 10 1 1 37 3616 doi 10 1007 3 540 61735 3 17 ISBN 978 3 540 61735 8 a b Severi amp de Vries 2011 p 5 Severi amp de Vries 2011 pp 4 5 Severi amp de Vries 2011 p 2 a b c Severi amp de Vries 2011 p 6 Barendregt Henk P 2012 The Lambda Calculus Its Syntax and Semantics London College Publications pp 219 221 ISBN 9781848900660 Huet Gerard Laulhere H 1997 Finite state Transducers as Regular Bohm Trees PDF In Abadi M Ito T eds Theoretical Aspects of Computer Software LNCS Vol 1281 Springer pp 604 610 CiteSeerX 10 1 1 110 7910 doi 10 1007 BFb0014570 ISBN 978 3 540 69530 1 Gerard Huet 1998 Regular Bohm Trees PDF Math Struct In Comp Science 8 6 671 680 CiteSeerX 10 1 1 123 475 doi 10 1017 S0960129598002643 S2CID 15752309 Ong C H Luke 31 May 1988 The Lazy Lambda Calculus An Investigation into the Foundations of Functional Programming PDF PhD University of London OCLC 31204528 Retrieved 23 September 2022 Sangiorgi Davide Walker David 16 October 2003 The Pi Calculus A Theory of Mobile Processes Cambridge University Press ISBN 978 0 521 54327 9 Barendregt Henk P 1977 The Type Free Lambda Calculus Studies in Logic and the Foundations of Mathematics 90 1091 1132 doi 10 1016 S0049 237X 08 71129 7 hdl 2066 17225 ISBN 9780444863881 S2CID 25828519 Severi Paula de Vries Fer Jan 2011 Decomposing the Lattice of Meaningless Sets in the Infinitary Lambda Calculus PDF Logic Language Information and Computation Lecture Notes in Computer Science 6642 210 227 doi 10 1007 978 3 642 20920 8 22 ISBN 978 3 642 20919 2 Retrieved 23 September 2022 Retrieved from https en wikipedia org w index php title Bohm tree amp oldid 1139944783, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.