4 research outputs found

    Combinatorics of explicit substitutions

    Full text link
    \lambda\upsilon is an extension of the \lambda-calculus which internalises the calculus of substitutions. In the current paper, we investigate the combinatorial properties of \lambda\upsilon focusing on the quantitative aspects of substitution resolution. We exhibit an unexpected correspondence between the counting sequence for \lambda\upsilon-terms and famous Catalan numbers. As a by-product, we establish effective sampling schemes for random \lambda\upsilon-terms. We show that typical \lambda\upsilon-terms represent, in a strong sense, non-strict computations in the classic \lambda-calculus. Moreover, typically almost all substitutions are in fact suspended, i.e. unevaluated, under closures. Consequently, we argue that \lambda\upsilon is an intrinsically non-strict calculus of explicit substitutions. Finally, we investigate the distribution of various redexes governing the substitution resolution in \lambda\upsilon and investigate the quantitative contribution of various substitution primitives

    On the enumeration of closures and environments with an application to random generation

    Get PDF
    Environments and closures are two of the main ingredients of evaluation in lambda-calculus. A closure is a pair consisting of a lambda-term and an environment, whereas an environment is a list of lambda-terms assigned to free variables. In this paper we investigate some dynamic aspects of evaluation in lambda-calculus considering the quantitative, combinatorial properties of environments and closures. Focusing on two classes of environments and closures, namely the so-called plain and closed ones, we consider the problem of their asymptotic counting and effective random generation. We provide an asymptotic approximation of the number of both plain environments and closures of size nn. Using the associated generating functions, we construct effective samplers for both classes of combinatorial structures. Finally, we discuss the related problem of asymptotic counting and random generation of closed environemnts and closures

    On the enumeration of closures and environments with an application to random generation

    Get PDF
    Environments and closures are two of the main ingredients of evaluation in lambda-calculus. A closure is a pair consisting of a lambda-term and an environment, whereas an environment is a list of lambda-terms assigned to free variables. In this paper we investigate some dynamic aspects of evaluation in lambda-calculus considering the quantitative, combinatorial properties of environments and closures. Focusing on two classes of environments and closures, namely the so-called plain and closed ones, we consider the problem of their asymptotic counting and effective random generation. We provide an asymptotic approximation of the number of both plain environments and closures of size nn. Using the associated generating functions, we construct effective samplers for both classes of combinatorial structures. Finally, we discuss the related problem of asymptotic counting and random generation of closed environemnts and closures

    Combinatorics of Explicit Substitutions

    No full text
    International audience位蠀 is an extension of the 位-calculus which internalises the calculusof substitutions. In the current paper, we investigate thecombinatorial properties of 位蠀 focusing on the quantitativeaspects of substitution resolution. We exhibit an unexpectedcorrespondence between the counting sequence for 位蠀 terms~andfamous Catalan numbers. As a by-product, we establish effectivesampling schemes for random 位蠀 terms. We show that typical 位蠀terms~represent, in a strong sense, non-strict computations in theclassic 位-calculu. Moreover, typically almost all substitutionsare in fact suspended, i.e.~unevaluated, under closures.Consequently, we argue that 位蠀 is an intrinsically non-strictcalculus of explicit substitutions. Finally, we investigate thedistribution of various redexes governing the substitutionresolution in 位蠀 and investigate the quantitative contribution ofvarious substitution primitives
    corecore