Böhm trees, Krivine machine and the Taylor expansion of ordinary lambda-terms

Size: px
Start display at page:

Download "Böhm trees, Krivine machine and the Taylor expansion of ordinary lambda-terms"

Transcription

1 Böhm trees, Krivine machine and the Taylor expansion of ordinary lambda-terms Thomas Ehrhard and Laurent Regnier Institut de Mathématiques de Luminy CNRS and Université de la Méditerranée UMR 6206 and June 6, 2005 Abstract We show that, given an ordinary lambda-term and a normal resource lambda-term which appears in the normal form of its Taylor expansion, the unique resource term of the Taylor expansion of the ordinary lambda-term reducing to this normal resource term can be obtained by running a version of the Krivine abstract machine. Introduction After having introduced the dierential lambda-calculus in [ER03], we studied in [ER04b] a subsystem of the dierential lambda-calculus which turns out to be very similar to resource oriented versions of the lambda-calculus previously introduced and studied by various authors [Bou93, BCL99, Kfo00]. Resource lambda-calculus and Taylor expansion. Our viewpoint on this resource lambda-calculus is that it is the sublanguage of the dierential lambda-calculus where the complete 1 Taylor expansions of ordinary lambda-terms can be written. Indeed, the only notion of application available in this calculus consists in taking a term s (of type A B if the calculus is typed) and a nite number of terms s 1,..., s n (of type A) and applying s to the multiset consisting of the terms s i, written multiplicatively s 1... s n. This application is written s (s 1... s n ). In ordinary dierential calculus, this operation corresponds to taking the nth derivative of s at 0, which is a symmetric n-linear map, and applying this derivative to (s 1,..., s n ). Dening the β-reduction in this calculus (as in the original dierential lambda-calculus) requires the possibility of adding terms, because the analogue of substitution is a notion of formal partial derivative whose inductive denition is based on Leibniz rule 2, and the expression s (s 1... s n ) is linear in s, s 1,..., s n ; the connection between ordinary linearity and this syntactical notion of linearity is discussed in the introduction of [ER03]. The logical signicance of this derivative, and the analogue in linear logic of this resource lambda-calculus are discussed in [ER04a], where dierential interaction nets are introduced. The striking fact is that this new structure appears in this linear logic setting as new operations associated to the exponentials, completely dual to the traditional structural operations (weakening, contraction), and to dereliction. In constrast, ordinary lambda-calculus has a notion of application which is linear in the function but not in the argument, for which we used the notation (M) N (parenthesis around the function, not around the argument). The connection between these two applications is given by the Taylor formula. This work has been supported by the ACI project GEOCAL. 1 By complete, we mean that all applications in the lambda-terms are Taylor expanded. 2 In [ER04a], it is shown that Leibniz rule is more pecisely connected to the interaction between derivation and contraction. 1

2 Taylor expansion and normalization. In [ER04b], we explained how to Taylor expand arbitrary ordinary lambda-terms as (generally innite) linear combinations of resource lambda-terms with rational coecients. We showed moreover that, when normalizing the resource terms which occur in such a Taylor expansion, one gets generally innitely many nite linear combinations of normal resource terms (with positive integers as coecients) which do not overlap; so it makes sense to sum up all these linear combinations. Moreover, the numerical coecients behave well during the reduction, in a sense which is made precise in the corresponding statement, Theorem 4 in the present paper. Overview We show that this sum s of normal resource terms obtained by normalizing the Taylor expansion of an ordinary lambda-term M is simply the Taylor expansion of the Böhm tree of M (the extension of Taylor expansion to Böhm trees is straightforward). Thanks to the results obtained in [ER04b], this reduces to showing that a normal resource term appears in s with a nonzero coecient i it appears with a nonzero coecient in the Taylor expansion of the Böhm tree of M. The only if part of this equivalence is fairly straightforward, whereas the if part requires the introduction of a version of the Krivine machine which also gives a appealing computational interpretation of the result. The Krivine machine. Usually, the Krivine machine [Kri05] is described as an abstract environment machine which performs the weak linear head reduction on lambda-terms: given a term M which is β- equivalent to a variable x, starting from the state (M,, ) (empty environment and empty stack 3 ), after a certain number of steps, the machine will produce the result (x, E, ) where the resulting variable x is not bound by the environment E. This computation can be understood as a special kind of reduction of lambdaterms which cannot be described exactly as a beta-reduction because, at each reduction step, only the leftmost occurrence of variable in the term is substituted. Rather than giving a formal denition 4, it is simpler to contemplate a simple example, so consider the term M 0 = (λx (x) (x) y) λz z. After one step of reduction, we get M 1 = (λx (λz z) (x) y) λz z. Observe that the argument and the lambda of the main redex are still there, and that the function still contains an occurrence of the variable x. Now the leftmost variable occurrence is z and the term M 1 reduces to M 2 = (λx (λz (x) y) (x) y) λz z. The leftmost occurrence of variable is x again and we get M 3 = (λx (λz (λz z) y) (x) y) λz z which reduces to M 4 = (λx (λz (λz y) y) (x) y) λz z. We arrive to a term M 4 whose redexes are all K-redexes 5 and reduces to the variable y. This is exactly this kind of computation that the Krivine machine performs, with the restriction that one does not reduce under the lambda's, in some sense (whence the word weak). We extend the Krivine machine in two directions 6. First, we accept to reduce under lambda's. Second, when the Krivine machine arrives to a state (x, E, Π) where the environment E does not bind x and Π is a non-empty stack, it classically stops with an error. Here instead we continue the computation by running the machine on each element of Π. This corresponds, in the linear head reduction process, to reducing within the arguments of the head variable when a head normal form has been reached. We call K this extended machine. When fed with a triple (M, E, ) where E does not bind the free variables of M, this machine produces the Böhm tree of M (all nite approximations being obtained in a nite number of steps). 3 The stack is there as usual for pushing the arguments of applications. 4 By the way, the best formal denition available is certainly the Krivine machine itself. 5 A K-redex is a redex (λx M) N such that x does not occur free in M. In M4, the outermost redex is not a K-redex, but becomes a K-redex after reduction of the internal K-redexes. 6 These extensions are fairly standard and part of the folklore. 2

3 A more informative version of the machine. Then we dene a version K of that machine where a tracing mechanism is added. The idea is to count precisely how many times the various parts of the term M have been used, starting from the state (M,, ), for reaching the state (x, E, ) (when one knows that M is equivalent to the variable x). This information is summarized as a resource term which has the same shape as M (or, equivalently, appears in the Taylor expansion of M with a nonzero coecient). For example, in the example of M 0, the corresponding resource term is λx x x y (λz z) 2, which appears with coecient 1 2 in the Taylor expansion of M 0. But there is no reason for limiting our attention to lambda-terms equivalent to a variable: when M reduces to a Böhm tree B, we just add a parameter to our Krivine machine, which is a resource term u occurring in the Taylor expansion of B. Then K(M,,, u) produces a resource term s which appears in the Taylor expansion of M and, in some sense, counts how much of M the machine uses for producing u. This machine also gives us a proof for the if part of our main result (see the beginning of this Overview section), because u appears with a nonzero coecient in the normal form of the resource term s produced by the machine. 1 Ordinary notions Böhm trees. We recall a few denitions, more or less standard in lambda-calculus. An elementary Böhm tree (EBT) is a normal term in the lambda-calculus extended with the constant Ω subject to the following equations: (Ω) M = Ω and λx Ω = Ω. In other words: Ω is an elementary Böhm tree; if x, x 1,..., x n are variables and B 1,..., B k are elementary Böhm trees, then λx 1... x n (x) B 1... B k is an elementary Böhm tree. The following clauses dene an order relation on EBTs: Ω B for all EBT B; λx 1... x n (x) B 1... B k C if c = λx 1... x n (x) C 1... C k with B j C j for all j. A (general) Böhm tree is now dened as an ideal of elementary Böhm trees, in other word, it is a set B of EBTs such that: if B C B then B B; B (equivalently, Ω B); if B, B B, there exists C B such that B, B C. To any ordinary lambda-term M is associated its Böhm tree. We dene rst a family of functions from lambda-terms to EBTs. BT 0 (M) = Ω; BT n+1 (λx 1... x p (x) M 1... M k ) = λx 1... x p (x) BT n (M 1 )... BT n (M k ); BT n+1 (λx 1... x p ((λy P ) Q) M 1... M k ) = BT n (λx 1... x p (P [Q/y]) M 1... M k ) It is straightforward to check that BT n (M) is a non decreasing sequence of EBTs. Then the Böhm tree of M is the downwards closure of the set {BT n (M) n N}, which is an ideal of EBTs. 3

4 The Krivine Abstract Machine. If f : S S is a partial function, a S and b S, we denote by f a b the partial function g : S S which is dened like f but for a, where it is dened and takes the value b. By simultaneous induction, we dene the two following concepts: A closure is a pair Γ = (M, E) where M is a lambda-term and E is an environment such that FV(M) Dom E. An environment is a nite partial function on variables, taking closures or the distinguished symbol free as value. We use Dom c E for the subset of Dom E whose elements are not mapped to free. We need also an auxiliary concept: a stack is a nite list Π of closures. We rst dene a sequence of functions from states to EBTs. K 0 (Γ, Π) = Ω; K n+1 (x, E, Π) = K n (E(x), Π) if x Dom c (E); K n+1 (x, E, Π) = (x) K n (Γ 1, )... K n (Γ k, ) where Π = (Γ 1,..., Γ n ), if E(x) = free; K n+1 (λx M, E, ) = λx K n (M, E x free, ) (assuming that x / Dom(E) and that x does not appear free in any of the terms mentioned in E); K n+1 (λx M, E, Γ :: Π) = K n (M, E x Γ, Π) (with similar assumptions for x); K n+1 ((M) N, E, Π) = K n (M, E, (N, E) :: Π). Observe that the denition is correct in the sense that, in all recursive calls of the function K, the closures are well formed (the domain of their environment contains the free variables of their term). Lemma 1 Let S = (Γ, Π) be a state. Then (K n (S)) n N is a non decreasing sequence of EBTs. This is easy to check. We dene K(S) as the downwards closure of the set {K n (S) n N}; this set is a Böhm tree. We dene another toral function T, from closures to lambda-terms. Given a closure Γ = (M, E), we set T(Γ) = M [T(E(x))/x] x Domc E This is a denition by induction on the height of closures, seen as nitely branching trees. We extend this mapping to states: T(Γ, (Γ 1,..., Γ n )) = (T(Γ)) T(Γ 1 )... T(Γ n ). The main, (almost) standard, property of the Krivine machine is as follows. Theorem 2 Let S be a state. Then K(S) = BT(T(S)). This soundness result shows in particular that the Krivine machine computes the Böhm tree of lambdaterms: BT(M) = K(M, E, ), where E is any environment mapping all the free variables of M to the value free. However the way it computes it is not the standard head reduction, but the linear head reduction of [DR99], also known as De Bruijn mini-reduction [DB87]. This reduction is much more elementary than the standard notion, since each substitution performed by the machine is linear (only head occurrences of variables are substituted). 4

5 2 Resource notions 2.1 The resource lambda-calculus. We give a short account of the resource lambda-calculus, as developped in [ER04b]. We recall the syntax and terminology of [ER04b]. As usual we are given a countable set of variables. Simple terms and poly-terms. If x is a variable, then x is a simple term. If x is a variable and t is a simple term, then λx t is a simple term. If t is a simple term and T is a simple poly-term, then t T is a simple term. A simple poly-term is a multiset of simple terms. We use multiplicative notations for these multisets: 1 denotes the empty poly-term, if t is a simple term, we use also t for denoting the simple poly-term whose only element is t, and if S and T are simple poly-terms, we use ST for the multiset union (sum) of S and T. We use the greek letters σ, τ... for simple terms or poly-terms when we do not want to be specic. The size of a simple resource (poly-)term σ is a nonnegative integer S(σ), dened by induction: S(x) = 1, S(λx s) = 1 + S(s), S( s S) = 1 + S(s) + S(S) and last, for poly-terms, S(s 1... s n ) = S(s 1 ) + + S(s n ). Observe that S(σ) = 0 holds i σ is the poly-term 1. We use for the set of all simple terms and! for the set of all simple poly-terms. Linear combinations and reduction. Let R be a set of scalars, a commutative semi-ring with multiplicative unit 1 (so that there is a canonical semi-ring homomorphism from N to R, under which we consider nonnegative integers as elements of R, although this homomorphism has no reason to be injective). If A is a set, we use R A for the free module over R generated by A. If α R A, we use Supp(α) for the set of all a A such that α a 0. A redex is a simple term of the shape r = λx s S. There is a small-step notion of reduction for these redexes, but we do not consider it here, we focus on the big-step reduction which stipulates that r reduces to 0 R if the cardinality of the multiset S is distinct from the number of free occurrences of x in s, and otherwise reduces to x (s, S) = [ ] s1,..., s d /x f(1),..., x f(d) R f S d s where S = s 1... s d and x 1,..., x d are the d free occurrences of x in s. In this expression, S d stands for the group of all permutations on the set {1,..., d}. This notion of reduction extends to all simple (poly-)terms, using the fact that all constructions of the syntax are linear. For instance, if s 1,..., s n and for each i, s i reduces to s i R, then the simple poly-term s 1... s n reduces to n i=1 s i R!. This notion of reduction is a relation from (!) to R (!) ; it is extended to a relation from R (!) to itself by linearity. This relation is conuent, and strongly normalizing when R = N. We use 0 for the set of all normal simple terms, and NF for the normalization map N (!) N (!) 0, which is linear. The following lemma is straightforward and will be useful in the sequel. Lemma 3 Let s 1,..., s p be simple terms and T 1,..., T p be simple poly-terms. Then p Supp( x (s i, T i )) Supp( x (s 1... s p, T 1... T p )). i=1 5

6 Taylor expansion of ordinary lambda-terms. Let us give an intuition of the resource lambda-calculus, explaining why it is related to the idea of Taylor expansion. Usually, when f is a suciently regular function from a vector space E to a vector space F (nite dimensional spaces, or Banach spaces, typically), at all point x E, f has nth derivatives for all n N, and these derivatives are maps f (n) : E E n F with the same regularity as f and such that f (n) (x, u 1,..., u n ) = f (n) (x) (u 1,..., u n ) is n-linear and symmetric in u 1,..., u n. When one is lucky, and at least locally around 0, the Taylor formula holds: f(x) = n=0 1 n! f (n) (0) (u,..., u). If we want to Taylor-expand lambda-terms, which after all are functions, we need to extend the language with explicit dierentials, or more precisely a construction of dierential application of a term M to n terms N 1,..., N n, as we did in [ER03] (a simplied version of that caclulus will be available soon in [Vau05]). The idea is that if M represents a function f from E to F and if N 1,..., N n represent n vectors u 1,..., u n E, then this new construction D n M (N 1,..., N n ) will represent the function from E to F which maps x to f (n) (x) (u 1,..., u n ), and therefore this linear and symmetric in the N i 's. So the Taylor expansion of a single lambda-calculus application (M) N would read n=0 1 n! (Dn M (N,..., N)) 0. If we want to Taylor expand all the applications occurring in a lambda-term, we see that the usual lambdacalculus application in its generality will become useless: only application to 0 is needed. This is exactly the purpose of the construction s s 1... s n of the resource lambda-calculus; with the notations of the dierential lambda-calculus, the expression s s 1... s n stands for (D n s (s 1,..., s n )) 0. So the resource lambda-calculus is a language for writing complete Taylor expansions of ordinary lambdaterms. The expansion of a term M will be an innite linear combination of resource terms, with rational coecients (actually of inverses of positive integers), let us use M for this expansion. By what we said, it should obey (M) N 1 = n! M (N ) n n=0 as well as x = x and (λx M) = λx M. From these equations, we obtain, applying the multinomial formula, that M = 1 m(s) s s T (M) where T (M) is dened inductively by T (x) = {x}, T (λx M) = {λx s s T (M)} and T ((M) N) = { s S s T (M) and S M fin (T (N))}. The positive number m(σ) associated to each (poly-)term σ is called is multiplicity coecient; see its denition and properties in [ER04b]. We can recall now the main result proven in that paper. Theorem 4 Let M be an ordinary lambda-term. 1. If s, s T (M), then Supp(NF(s)) Supp(NF(s )) = or s = s (syntactic equality, up to α-conversion only). 2. If s T (M) and u Supp(NF(s)), then NF(s) u = m(s)/m(u). For proving the rst part of this, we have been led to introduce a coherence relation on resource (poly- )terms, in such a way that T (M) is a maximal clique for this coherence relation, for any ordinary term M. 6

7 So, given an ordinary lambda-term M, it makes sense to apply NF to each of the simple terms occurring in its Taylor expansion, dening NF(M ) = 1 m(s) NF(s) s T (M) 1 and then what we get is a sum of normal simple resource terms u, each of them with coecient m(u). We want to prove that this sum is equal to BT(M), the Taylor expansion of the Böhm tree of M. To give a meaning to this notion, we need rst to dene T (B) when B is an EBT: the denition is the same as for ordinary lambda-terms, with the additional clause that T (Ω) =. For instance T ((x) Ω) = { x 1}. Observe by the way that B C T (B) T (C). We generalize this notion to arbitrary Böhm trees: T (B) = B B T (B) (this a directed union since B is an ideal). Of course, all these resource terms are normal. The obtained set is still a clique of (, ), but this clique has no reason to be maximal anymore (think of the clique associated to Ω!). Given a Böhm tree B, it makes sense nally to dene its Taylor expansion, as we did for ordinary lambda-terms: B = 1 m(b) b. b T (B) 2.2 Resource closures and resource stacks. We adapt now the concepts of closure and stack to the framework of the resource lambda-calculus, introducing multi-set based versions thereof. We stick to our multiplicative conventions for denoting multi-sets. A resource environment is a total function e on variables, taking resource closures or the symbol free as values. We extend pointwise the multi-set notations to resource environments, e.g. (ee )(x) = e(x)e (x) (equal to free when one of these two values is equal to free). For an environment e, we require moreover e(x) = 1 for almost all variables x, where 1 is the unit resource closure (see below). If x is a variable and c is a resource closure, we denote by [x c] the resource environment which takes the value 1 for all variables but for x, for which it takes the value c. If e is a resource environment, e \ x denotes the resource environment which takes the same values as e but for x where it takes the value free. We use Dom c e for the (co-nite) set of all variables where e does not take the value free. A resource closure is a pair γ = (T, e) where T is a simple resource poly-term and e is a resource environment, or is the special unit closure 1. Intuitively, this special closure is equal to any closure of the shape (1, e) where e maps all variables to free, to the unit closure 1 or to any closure of the shape we are now describing. Poly-term multiplication is extended to closures in the obvious way: the unit closure 1 is neutral, and (T, e)(t, e ) = (T T, ee ). A resource closure (T, e) will be said to be elementary if T has exactly one element. closures are product (in many dierent ways, usually) of elementary resource closures. All resource Finally, a resource stack π is a nite sequence of resource closures. A resource state is a triple (t, e, π) where t is a simple resource term, e is a resource environment and π is a resource stack. In such a resource state, the pair (t, e) will be considered as an elementary resource closure. By mutual induction, we dene T (E) and T (Γ), the set of all resource environments and resource closures of shape E and Γ respectively: T (E) is the set of all resource environments e such that if E(x) = free, then e(x) = free; otherwise and if E(x) is dened, then e(x) T (E(x)); if E(x) is undened, then e(x) = 1. 7

8 If Γ = (M, E), then T (Γ) = M fin (T (M)) T (E) {1}. This extends to standard stacks and resource stacks in the obvious way, dening π T (Π). Last we set T (Γ, Π) = T (Γ) T (Π). As we did for the ordinary lambda-calculus, we associate to each resource closure γ a (generally not simple) resource poly-term T D (γ) R! by the following inductive denition { 1 if γ = 1 T D (γ) = x1,...,x n (T, T D (e(x 1 )),..., T D (e(x n ))) if γ = (T, e) where x 1,..., x n is any repetition-free sequence of variables which contains all the variables Dom c e which are free in T or satisfy e(x) 1 (in particular, this expression is equal to 0 if there exists a variable x not free in T and such that e(x) 1). Due to the basic properties of partial derivatives explained in [ER04b], the expression above does not depend on the choice of this sequence of variables. Last, we extend this denition to resource states (γ, π) where π = (γ 1,..., γ k ) is a resource stack (the π i 's are therefore multisets of resource closures), setting T D (γ, π) = T D (γ) T D (γ 1 ) T D (γ k ) N. 3 A resource driven Krivine machine We dene a new version K of the Krivine machine which, fed with an ordinary closure Γ, an ordinary stack Π and a normal resource term u, will return a pair (γ, π) T (Γ, Π) where γ is an elementary resource closure, or will be undened. As we shall see, this partial function K will be dened exactly on the triples (Γ, Π, u)) such that u T (BT(T(Γ, Π))). We use the symbol for the result of the function when it is undened. As before, we dene by induction on n an increasing sequence of partial functions K n and we set K = K n=0 n. The base case is trivial: K 0 (Γ, Π, t) =, always. The inductive step is by case on the shape of the rst element of the closure Γ = (M, E) (remember that we assume that FV(M) Dom E). If M = x is a variable, we have two subcases. Assume rst that x Dom c (E). If K n (E(x), Π, u) =, then K n+1 (Γ, Π, u) = and otherwise, let (γ, π) = K n (E(x), Π, u), then γ if y = x K n+1 (M, E, Π, u) = (x, e, π) where e(y) = free if E(y) = free 1 otherwise. Otherwise, we have x Dom(E) and E(x) = free. The stack Π is a sequence (Γ 1,..., Γ k ) of closures. If u = x V 1 V k and for each j = 1,..., k and v supp(v j ), there exists an elementary resource closure γ j (v) such that K n (Γ j,, v) = (γ j (v), ), then { free if E(y) = free K n+1 (M, E, Π, u) = (x, e, π) where e(y) = 1 otherwise. and where π = (c 1,..., c k ) with c j = v supp(v j) γ j(v) Vj(v) (this product has to be understood as a product of resource closures, in the sense dened above). 8

9 Otherwise, K n+1 (M, E, Π, u) =. Assume now that M = λx N. Without loss of generality, we can assume that E(x) =. Again, we have two subcases. Assume rst that Π = is the empty stack. If u = λx v and K n (N, E x free,, v) = (t, e, ) with e(x) = free, then K n+1 (M, E,, u) = (λx t, e x 1, ) and otherwise, K n+1 (M, E,, u) =. Assume next that Π = Γ :: Π. If K n (N, E x Γ, Π, u) = (t, e, π ) with e(x) free, then and otherwise, K n+1 (M, E,, u) =. K n+1 (M, E, Π, u) = (λx t, e x 1, e(x) :: π ) Last assume that M = (P ) Q. If K n (P, E, (Q, E) :: Π, u) = (t, e, (T, e ) :: π), then and otherwise, K n+1 (M, E,, u) =. K n+1 (M, E, Π, u) = ( t T, ee, π) Lemma 5 Let Γ be an ordinary closure, Π be an ordinary stack and u be a simple resource term. If K(Γ, Π, u) is dened, then u is normal and K(Γ, Π, u) is a resource state (γ, π) which belongs to T (Γ, Π). The proof is by simple inspection of the denition above. Lemma 6 Let Γ be an ordinary closure, Π be an ordinary stack and u be a normal simple resource term. For each n N, we have the following equivalence: u T (K n (Γ, Π)) i K n (Γ, Π, u) is dened. Proof. By induction on n. For n = 0, this is trivial. Assume that the result is true for n, and consider the various following cases, according to the shape of Γ and Π. When needed, we give names to the elements of Π: (Γ 1,..., Γ k ) = Π. Assume that Γ = (x, E) with E(x) = free. Then u T (K n+1 (Γ, Π)) holds i u = x V 1 V k with V j M fin (K n (Γ j, )) for each j = 1,..., k. By inductive hypothesis, this latter property holds i for each j and each v supp(v j ), we have that K n (Γ j,, v) is dened. But this in turn is equivalent to saying that K n+1 (Γ, Π, u) is dened. Assume that Γ = (x, E) with E(x) free. Then u T (K n+1 (Γ, Π)) holds i u T (K n (E(x), Π)) which, by inductive hypothesis, holds i K n (E(x), Π, u) is dened, and this latter condition is equivalent to saying that K n+1 (Γ, Π, u) is dened. The cases Γ = ((M) N, E) and Γ = (λx t, E) with Π are handeled similarly. We are left with the case Γ = (λx M, E) with Π = which is straightforward. Lemma 7 Let Γ be an odinary closure, Π be an ordinary stack and u be a normal simple resource term. Let n N. If K n (Γ, Π, u) = (γ, π), then u Supp(NF(T D (γ, π))). 9

10 Proof. When needed, we use (Γ 1,..., Γ k ) = Π. The proof is by simple induction on n. For n = 0, this is trivial. So assume that K n+1 (Γ, Π, u) = (γ, π). We have several cases to consider, depending on Γ and Π. Assume rst that Γ = (x, E) with E(x) = free. Then by our hypothesis and by the denition of K, we know that u = x V 1 V k and that for each j = 1,..., k and v supp(v j ), there is a resource closure γ j (v) such that K n (Γ j,, v) = (γ j (v), ). Moreover, we know that γ = (x, e) with { free if E(y) = free e(y) = 1 otherwise, so that T D (γ) = x. By inductive hypothesis, for each j = 1,..., k and v supp(v j ), we have v Supp(NF(T D (γ j (v), ))). But we also know that π = (c 1,..., c k ) with c j = v supp(v γ j) j(v) Vj(v), so that V j Supp(NF(T D (c j ))) and nally u Supp(NF(T D (γ, π))) as required. Assume next that Γ = (x, E) with x Dom c E. Then we know that K n (E(x), Π, u) is dened, with value (γ, π) and that γ = (x, e) with e given by γ if y = x e(y) = free otherwise and if E(y) = free 1 otherwise. By inductive assumption, we have u Supp(NF(T D (γ, π))) and we conclude since T D (γ) = T D (γ ). The case Γ = (λx M, E) and Π = is straightforward. Assume that Γ = (λx M, E) and Π = Γ :: Π. Assume also that E(x) is undened. Then we know that K n (M, E x Γ, Π, u) is dened, with value (t, e, π ), and K n+1 (Γ, Π, u) = (λx t, e x 1, e(x) :: π ) (that is γ = (λx t, e x 1 ) and π = e(x) :: π ). Let us set (γ 1,..., γ k ) = π and e = e x free. By inductive assumption we have u Supp(NF(T D (t, e, π ))). We have NF(T D (λx t, e x 1, e(x) :: π )) = NF(... λx T D (t, e ) T D (e(x)) T D (γ 1 )... T D (γ k )). Let x 1,..., x p be an enumeration without repetitions of all the free varibles of t which do belong to Dom c e, so that the variable x does not occur in that list. We have T D (t, e ) = x1,...,x p (t, T D (e(x 1 )),..., T D (e(x p ))) by denition of T D and of e and hence NF(T D (λx t, e x 1, e(x) :: π )) = NF( x1,...,x p,x(t, T D (e(x 1 )),..., T D (e(x p )), T D (e(x))) T D (γ 1 ) T D (γ k )) = NF(T D (t, e, π )) so that u Supp(NF(T D (γ, π))). Assume last that Γ = ((M) N, E). We know that K n (M, E, (N, E) :: Π, u) is dened, with value (t, e, (S, e ) :: π), and K n+1 (Γ, Π) = ( t S, ee, π), that is γ = ( t S, ee ). By inductive hypothesis, we know that u Supp(NF(T D (t, e, (S, e ) :: π))). Applying Lemma 3 and the denition of T D we get the inclusion Supp(T D (t, e, (S, e ) :: π)) Supp(T D ( t S, ee, π)), which is strict in general. We conclude, applying the NF operator to both sides. 10

11 4 Normal form of the Taylor expansion Lemma 8 Let M and N be ordinary lambda-terms and let x be a variable. M fin (T (N)). Then Supp( x (s, S)) T (M [N/x]). Let s T (M) and S The proof is a straightforward induction on M, using Lemma 3 when M is an application. Lemma 9 Let M be an ordinary lambda-term and let s T (M). Then Supp(NF(s)) T (BT(M)). Proof. One denes a family of function NF n : N, mimicking the denition of BT. We set NF 0 (t) = 0 and NF n+1 (λx 1... x p x S 1 S k ) = λx 1... x p x NF n (S 1 ) NF n (S k ) and NF n+1 (λx 1... x p λx s S S 1 S k ) = NF n (λx 1... x p x (s, S) S 1 S k ), where NF n is extended multiplicatively to simple poly-terms, and linearly to linear combinations of simple (poly-)terms. One checks easily that for any s, there exists n such that NF(s) = NF n (s) (take any n S(s)). One concludes by proving by induction on n that Supp(NF n (s)) T (BT n (M)), using Lemma 8. Now we can prove the main theorem of the paper. Theorem 10 Let M be an ordinary lambda-term and let u be a normal simple resource term. Then u T (BT(M)) if and only if there exists s T (M) such that u Supp(NF(s)). Moreover, when this simple term s exists, it is unique. Proof. Assume rst that u T (BT(M)). Let E be an environment such that E(x) = free for all x FV(M). Since BT(M) = K(M, E, ) by Theorem 2, we obtain by Lemma 6 that K(M, E,, u) is dened ant takes a value (s, e, ) with (s, e) T (M, E) by Lemma 5. Moreover, by Lemma 7 we have u Supp(NF(T D (s, e))) = Supp(NF(s)) since e takes the value free for all free variables of s (indeed, FV(s) FV(M)). Assume conversely that u Supp(NF(s)) for some s T (M). By Lemma 9, we have u T (BT(M)), so again K(M, E,, u) is dened ant takes a value (s, e, ) with (s, e) T (M, E) and hence u Supp(NF(s )). But both s and s belong to T (M) and hence they must be equal by Theorem 4 and we conclude. The unicity statement also results from Theorem 4. As a consequence of this theorem and of the quantitative part of Theorem 4, we get immediately the announced commutation statement. Theorem 11 Let M be an ordinary lambda-term. Then BT(M) = NF(M ) = s T (M) 5 Concluding remarks and perspectives 1 m(s) NF(s). By Theorem 10, there exists a partial function E : Λ 0 such that E(M, u) is dened if and only if u T (BT(M)) and then takes as value the unique simple term s T (M) such that u Supp(NF(s)). In the proof of that theorem, we have seen how this function E can be dened, using a modied version of Krivine machine. When BT(M) is a variable, the situation is particularly simple: we have T (BT(M)) = { } and E(M, ) is the unique s T (M) which has a non-zero normal form, and the normal form of s must be m(s). In that particular case, it is interseting to observe that S(s) is the number of steps in the reduction of M to 11

12 by the Krivine machine, which in terms seems to be a sensible measure of the complexity of the reduction of M. The map S E : Λ 0 N seems therefore to provide more generally a way of measuring the complexity of the reduction of lambda-terms. The interesting point is that this measure is associated to the algebraic property stated by Theorems 10 and 11. The next step would be to adapt these constructions to a denotational setting, observing that the size of a normal simple term can be read in its relational denotational semantics. This might lead to a new denotational way of dealing with the computational complexity of lambda-terms. References [BCL99] Gérard Boudol, Pierre-Louis Curien, and Carolina Lavatelli. A semantics for lambda calculi with resource. Mathematical Structures in Computer Science, 9(4):437482, [Bou93] [DB87] [DR99] Gérard Boudol. The lambda calculus with multiplicities. Technical Report 2025, INRIA Sophia- Antipolis, N.G. De Bruijn. Generalizing Automath by means of a lambda-typed lambda calculus. In D.W. Kueker, E.G.K. Lopez-Escobar, and C.H. Smith, editors, Mathematical Logic and Theoretical Computer Science, Lecture Notes in Pure and Applied Mathematics, pages Marcel Dekker, Reprinted in: Selected papers on Automath, Studies in Logic, volume 133, pages , North- Holland, Vincent Danos and Laurent Regnier. Reversible, irreversible and optimal lambda-machines. Theoretical Computer Science, 227(1-2):273291, [ER03] Thomas Ehrhard and Laurent Regnier. The dierential lambda-calculus. Theoretical Computer Science, 309(1-3):141, [ER04a] Thomas Ehrhard and Laurent Regnier. Dierential interaction nets. In Proceedings of WoLLIC'04, Electronic Notes in Theoretical Computer Science. Elsevier Science, To appear. [ER04b] Thomas Ehrhard and Laurent Regnier. Uniformity and the Taylor expansion of ordinary lambdaterms. Technical report, Institut de mathématiques de Luminy, [Kfo00] Assaf J. Kfoury. A linearization of the lambda-calculus. Journal of Logic and Computation, 10(3):411436, [Kri05] [Vau05] Jean-Louis Krivine. A call-by-name lambda-calculus machine. Higher-Order and Symbolic Computation, To appear. Lionel Vaux. The dierential lambda-mu calculus. Technical report, Institut de Mathématiques de Luminy, To appear. 12

The Dierential Lambda-Calculus

The Dierential Lambda-Calculus The Dierential Lambda-Calculus Thomas Ehrhard and Laurent Regnier Institut de Mathématiques de Luminy, C.N.R.S. U.P.R. 9016 ehrhard@iml.univ-mrs.fr and regnier@iml.univ-mrs.fr July 17, 2003 Abstract We

More information

EasyChair Preprint. Normalization and Taylor expansion of lambda-terms

EasyChair Preprint. Normalization and Taylor expansion of lambda-terms EasyChair Preprint 165 Normalization and Taylor expansion of lambda-terms Federico Olimpieri EasyChair preprints are intended for rapid dissemination of research results and are integrated with the rest

More information

FROM COHERENT TO FINITENESS SPACES

FROM COHERENT TO FINITENESS SPACES FROM COHERENT TO FINITENESS SPACES PIERRE HYVERNAT Laboratoire de Mathématiques, Université de Savoie, 73376 Le Bourget-du-Lac Cedex, France. e-mail address: Pierre.Hyvernat@univ-savoie.fr Abstract. This

More information

A characterization of the Taylor expansion of λ-terms

A characterization of the Taylor expansion of λ-terms A characterization of the Taylor expansion of λ-terms Pierre Boudes, Fanny He, and Michele Pagani LIPN - University Paris 13 Villetaneuse, France {boudes, he, pagani}@lipn.univ-paris13.fr Abstract The

More information

A completeness theorem for symmetric product phase spaces

A completeness theorem for symmetric product phase spaces A completeness theorem for symmetric product phase spaces Thomas Ehrhard Fédération de Recherche des Unités de Mathématiques de Marseille CNRS FR 2291 Institut de Mathématiques de Luminy CNRS UPR 9016

More information

Resource lambda-calculus: the differential viewpoint

Resource lambda-calculus: the differential viewpoint Resource lambda-calculus: the differential viewpoint Preuves, Programmes et Systèmes (PPS) Université Paris Diderot and CNRS September 13, 2011 History ( 1985): Girard Girard had differential intuitions

More information

A call-by-name lambda-calculus machine

A call-by-name lambda-calculus machine A call-by-name lambda-calculus machine Jean-Louis Krivine University Paris VII, C.N.R.S. 2 place Jussieu 75251 Paris cedex 05 (krivine@pps.jussieu.fr) Introduction We present, in this paper, a particularly

More information

Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) 1.1 The Formal Denition of a Vector Space

Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) 1.1 The Formal Denition of a Vector Space Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) Contents 1 Vector Spaces 1 1.1 The Formal Denition of a Vector Space.................................. 1 1.2 Subspaces...................................................

More information

Primitive recursion in niteness spaces

Primitive recursion in niteness spaces Primitive recursion in niteness spaces Lionel Vaux Laboratoire de Mathématiques de l'université de Savoie UFR SF, Campus Scientique, 73376 Le Bourget-du-Lac Cedex, France E-mail: lionel.vaux@univ-savoie.fr

More information

Geometry of Interaction

Geometry of Interaction Linear logic, Ludics, Implicit Complexity, Operator Algebras Geometry of Interaction Laurent Regnier Institut de Mathématiques de Luminy Disclaimer Syntax/Semantics Syntax = nite (recursive) sets Semantics

More information

Consequence Relations and Natural Deduction

Consequence Relations and Natural Deduction Consequence Relations and Natural Deduction Joshua D. Guttman Worcester Polytechnic Institute September 9, 2010 Contents 1 Consequence Relations 1 2 A Derivation System for Natural Deduction 3 3 Derivations

More information

The differential lambda-mu-calculus

The differential lambda-mu-calculus The differential lambda-mu-calculus Lionel Vaux To cite this version: Lionel Vaux. The differential lambda-mu-calculus. Theoretical Computer Science, Elsevier, 2007, 379 (1-2, pp.166-209. .

More information

EXTENDED ABSTRACT. 2;4 fax: , 3;5 fax: Abstract

EXTENDED ABSTRACT. 2;4 fax: , 3;5 fax: Abstract 1 Syntactic denitions of undened: EXTENDED ABSTRACT on dening the undened Zena Ariola 1, Richard Kennaway 2, Jan Willem Klop 3, Ronan Sleep 4 and Fer-Jan de Vries 5 1 Computer and Information Science Department,

More information

hal , version 1-21 Oct 2009

hal , version 1-21 Oct 2009 ON SKOLEMISING ZERMELO S SET THEORY ALEXANDRE MIQUEL Abstract. We give a Skolemised presentation of Zermelo s set theory (with notations for comprehension, powerset, etc.) and show that this presentation

More information

Proving Completeness for Nested Sequent Calculi 1

Proving Completeness for Nested Sequent Calculi 1 Proving Completeness for Nested Sequent Calculi 1 Melvin Fitting abstract. Proving the completeness of classical propositional logic by using maximal consistent sets is perhaps the most common method there

More information

Equivalence of Algebraic λ -calculi extended abstract

Equivalence of Algebraic λ -calculi extended abstract Equivalence of Algebraic λ -calculi extended abstract Alejandro Díaz-Caro LIG, Université de Grenoble, France Alejandro.Diaz-Caro@imag.fr Christine Tasson CEA-LIST, MeASI, France Christine.Tasson@cea.fr

More information

Topology in Denotational Semantics

Topology in Denotational Semantics Journées Topologie et Informatique Thomas Ehrhard Preuves, Programmes et Systèmes (PPS) Université Paris Diderot - Paris 7 and CNRS March 21, 2013 What is denotational semantics? The usual stateful approach

More information

5 Set Operations, Functions, and Counting

5 Set Operations, Functions, and Counting 5 Set Operations, Functions, and Counting Let N denote the positive integers, N 0 := N {0} be the non-negative integers and Z = N 0 ( N) the positive and negative integers including 0, Q the rational numbers,

More information

Review of Linear Algebra

Review of Linear Algebra Review of Linear Algebra Throughout these notes, F denotes a field (often called the scalars in this context). 1 Definition of a vector space Definition 1.1. A F -vector space or simply a vector space

More information

Herbrand Theorem, Equality, and Compactness

Herbrand Theorem, Equality, and Compactness CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Herbrand Theorem, Equality, and Compactness The Herbrand Theorem We now consider a complete method for proving the unsatisfiability of sets of first-order

More information

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007)

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007) Löwenheim-Skolem Theorems, Countable Approximations, and L ω 0. Introduction David W. Kueker (Lecture Notes, Fall 2007) In its simplest form the Löwenheim-Skolem Theorem for L ω1 ω states that if σ L ω1

More information

2 Garrett: `A Good Spectral Theorem' 1. von Neumann algebras, density theorem The commutant of a subring S of a ring R is S 0 = fr 2 R : rs = sr; 8s 2

2 Garrett: `A Good Spectral Theorem' 1. von Neumann algebras, density theorem The commutant of a subring S of a ring R is S 0 = fr 2 R : rs = sr; 8s 2 1 A Good Spectral Theorem c1996, Paul Garrett, garrett@math.umn.edu version February 12, 1996 1 Measurable Hilbert bundles Measurable Banach bundles Direct integrals of Hilbert spaces Trivializing Hilbert

More information

Contents. 2.1 Vectors in R n. Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v. 2.50) 2 Vector Spaces

Contents. 2.1 Vectors in R n. Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v. 2.50) 2 Vector Spaces Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v 250) Contents 2 Vector Spaces 1 21 Vectors in R n 1 22 The Formal Denition of a Vector Space 4 23 Subspaces 6 24 Linear Combinations and

More information

COMP6463: λ-calculus

COMP6463: λ-calculus COMP6463: λ-calculus 1. Basics Michael Norrish Michael.Norrish@nicta.com.au Canberra Research Lab., NICTA Semester 2, 2015 Outline Introduction Lambda Calculus Terms Alpha Equivalence Substitution Dynamics

More information

3.1 Basic properties of real numbers - continuation Inmum and supremum of a set of real numbers

3.1 Basic properties of real numbers - continuation Inmum and supremum of a set of real numbers Chapter 3 Real numbers The notion of real number was introduced in section 1.3 where the axiomatic denition of the set of all real numbers was done and some basic properties of the set of all real numbers

More information

A version of for which ZFC can not predict a single bit Robert M. Solovay May 16, Introduction In [2], Chaitin introd

A version of for which ZFC can not predict a single bit Robert M. Solovay May 16, Introduction In [2], Chaitin introd CDMTCS Research Report Series A Version of for which ZFC can not Predict a Single Bit Robert M. Solovay University of California at Berkeley CDMTCS-104 May 1999 Centre for Discrete Mathematics and Theoretical

More information

Variations on a theme: call-by-value and factorization

Variations on a theme: call-by-value and factorization Variations on a theme: call-by-value and factorization Beniamino Accattoli INRIA & LIX, Ecole Polytechnique Accattoli (INRIA Parsifal) Variations on a theme: call-by-value and factorization 1 / 31 Outline

More information

in Linear Logic Denis Bechet LIPN - Institut Galilee Universite Paris 13 Avenue Jean-Baptiste Clement Villetaneuse, France Abstract

in Linear Logic Denis Bechet LIPN - Institut Galilee Universite Paris 13 Avenue Jean-Baptiste Clement Villetaneuse, France Abstract Second Order Connectives and roof Transformations in Linear Logic Denis Bechet LIN - Institut Galilee Universite aris 1 Avenue Jean-Baptiste Clement 90 Villetaneuse, France e-mail: dbe@lipnuniv-paris1fr

More information

form, but that fails as soon as one has an object greater than every natural number. Induction in the < form frequently goes under the fancy name \tra

form, but that fails as soon as one has an object greater than every natural number. Induction in the < form frequently goes under the fancy name \tra Transnite Ordinals and Their Notations: For The Uninitiated Version 1.1 Hilbert Levitz Department of Computer Science Florida State University levitz@cs.fsu.edu Intoduction This is supposed to be a primer

More information

SUBSPACES OF COMPUTABLE VECTOR SPACES

SUBSPACES OF COMPUTABLE VECTOR SPACES SUBSPACES OF COMPUTABLE VECTOR SPACES RODNEY G. DOWNEY, DENIS R. HIRSCHFELDT, ASHER M. KACH, STEFFEN LEMPP, JOSEPH R. MILETI, AND ANTONIO MONTALB AN Abstract. We show that the existence of a nontrivial

More information

A RELATION BETWEEN SCHUR P AND S. S. Leidwanger. Universite de Caen, CAEN. cedex FRANCE. March 24, 1997

A RELATION BETWEEN SCHUR P AND S. S. Leidwanger. Universite de Caen, CAEN. cedex FRANCE. March 24, 1997 A RELATION BETWEEN SCHUR P AND S FUNCTIONS S. Leidwanger Departement de Mathematiques, Universite de Caen, 0 CAEN cedex FRANCE March, 997 Abstract We dene a dierential operator of innite order which sends

More information

Introduction to lambda calculus Part 2

Introduction to lambda calculus Part 2 Introduction to lambda calculus Part 2 Antti-Juhani Kaijanaho 2017-01-24... 1 Untyped lambda calculus 1.1 Syntax... x, y, z Var t, u Term t, u ::= x t u λx t... In this document, I will be using the following

More information

On some Metatheorems about FOL

On some Metatheorems about FOL On some Metatheorems about FOL February 25, 2014 Here I sketch a number of results and their proofs as a kind of abstract of the same items that are scattered in chapters 5 and 6 in the textbook. You notice

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

On 3-valued paraconsistent Logic Programming

On 3-valued paraconsistent Logic Programming Marcelo E. Coniglio Kleidson E. Oliveira Institute of Philosophy and Human Sciences and Centre For Logic, Epistemology and the History of Science, UNICAMP, Brazil Support: FAPESP Syntax Meets Semantics

More information

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori Combining Unication- and Disunication Algorithms Tractable and Intractable Instances Klaus U. Schulz CIS, University of Munich Oettingenstr. 67 80538 Munchen, Germany e-mail: schulz@cis.uni-muenchen.de

More information

About Typed Algebraic Lambda-calculi

About Typed Algebraic Lambda-calculi About Typed Algebraic Lambda-calculi Benoît Valiron INRIA Saclay/LIX Palaiseau, France valiron@lix.polytechnique.fr Abstract Arrighi and Dowek (2008) introduce an untyped lambdacalculus together with a

More information

Non-Idempotent Typing Operators, beyond the λ-calculus

Non-Idempotent Typing Operators, beyond the λ-calculus Non-Idempotent Typing Operators, beyond the λ-calculus Soutenance de thèse Pierre VIAL IRIF (Univ. Paris Diderot and CNRS) December 7, 2017 Non-idempotent typing operators P. Vial 0 1 /46 Certification

More information

Relational Graph Models, Taylor Expansion and Extensionality

Relational Graph Models, Taylor Expansion and Extensionality Relational Graph Models, Taylor Expansion and Extensionality Domenico Ruoppolo Giulio Manzonetto Laboratoire d Informatique de Paris Nord Université Paris-Nord Paris 13 (France) MFPS XXX Ithaca, New York

More information

Every formula evaluates to either \true" or \false." To say that the value of (x = y) is true is to say that the value of the term x is the same as th

Every formula evaluates to either \true or \false. To say that the value of (x = y) is true is to say that the value of the term x is the same as th A Quick and Dirty Sketch of a Toy Logic J Strother Moore January 9, 2001 Abstract For the purposes of this paper, a \logic" consists of a syntax, a set of axioms and some rules of inference. We dene a

More information

A.J. Kfoury y. December 20, Abstract. Various restrictions on the terms allowed for substitution give rise

A.J. Kfoury y. December 20, Abstract. Various restrictions on the terms allowed for substitution give rise A General Theory of Semi-Unication Said Jahama Boston University (jahama@cs.bu.edu) A.J. Kfoury y Boston University (kfoury@cs.bu.edu) December 20, 1993 Technical Report: bu-cs # 93-018 Abstract Various

More information

Operational Semantics

Operational Semantics Operational Semantics Semantics and applications to verification Xavier Rival École Normale Supérieure Xavier Rival Operational Semantics 1 / 50 Program of this first lecture Operational semantics Mathematical

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Lazy Strong Normalization

Lazy Strong Normalization Lazy Strong Normalization Luca Paolini 1,2 Dipartimento di Informatica Università di Torino (ITALIA) Elaine Pimentel 1,2 Departamento de Matemática Universidade Federal de Minas Gerais (BRASIL) Dipartimento

More information

CS411 Notes 3 Induction and Recursion

CS411 Notes 3 Induction and Recursion CS411 Notes 3 Induction and Recursion A. Demers 5 Feb 2001 These notes present inductive techniques for defining sets and subsets, for defining functions over sets, and for proving that a property holds

More information

There are infinitely many set variables, X 0, X 1,..., each of which is

There are infinitely many set variables, X 0, X 1,..., each of which is 4. Second Order Arithmetic and Reverse Mathematics 4.1. The Language of Second Order Arithmetic. We ve mentioned that Peano arithmetic is sufficient to carry out large portions of ordinary mathematics,

More information

arxiv: v1 [math.ca] 6 May 2016

arxiv: v1 [math.ca] 6 May 2016 An elementary purely algebraic approach to generalized functions and operational calculus Vakhtang Lomadze arxiv:1605.02050v1 [math.ca] 6 May 2016 Andrea Razmadze Mathematical Institute, Mathematics Department

More information

Partially commutative linear logic: sequent calculus and phase semantics

Partially commutative linear logic: sequent calculus and phase semantics Partially commutative linear logic: sequent calculus and phase semantics Philippe de Groote Projet Calligramme INRIA-Lorraine & CRIN CNRS 615 rue du Jardin Botanique - B.P. 101 F 54602 Villers-lès-Nancy

More information

A Behavioural Model for Klop s Calculus

A Behavioural Model for Klop s Calculus Replace this file with prentcsmacro.sty for your meeting, or with entcsmacro.sty for your meeting. Both can be found at the ENTCS Macro Home Page. A Behavioural Model for Klop s Calculus Mariangiola Dezani-Ciancaglini

More information

Functional Database Query Languages as. Typed Lambda Calculi of Fixed Order. Gerd G. Hillebrand and Paris C. Kanellakis

Functional Database Query Languages as. Typed Lambda Calculi of Fixed Order. Gerd G. Hillebrand and Paris C. Kanellakis Functional Database Query Languages as Typed Lambda Calculi of Fixed Order Gerd G. Hillebrand and Paris C. Kanellakis Department of Computer Science Brown University Providence, Rhode Island 02912 CS-94-26

More information

What is a Categorical Model of the Differential and the Resource λ-calculi?

What is a Categorical Model of the Differential and the Resource λ-calculi? What is a Categorical Model of the Differential and the Resource λ-calculi? Giulio Manzonetto a a Department of Computer Science, Radboud University, Nijmegen, The Netherlands Email: G.Manzonetto@cs.ru.nl

More information

Abstract In usual type theory, if a function f is of type! 0 and an argument a is of type, then the type of fa is immediately given to be 0 and no men

Abstract In usual type theory, if a function f is of type! 0 and an argument a is of type, then the type of fa is immediately given to be 0 and no men Canonical typing and -conversion Fairouz Kamareddine y Department of Computing Science 17 Lilybank Gardens University of Glasgow Glasgow G1 8QQ, Scotland email: fairouz@dcs.glasgow.ac.uk and Rob Nederpelt

More information

Elementary Complexity and Geometry of. Interaction (Extended Abstract) Institut de Mathematiques de Luminy (Marseille), C.N.R.S.

Elementary Complexity and Geometry of. Interaction (Extended Abstract) Institut de Mathematiques de Luminy (Marseille), C.N.R.S. Elementary Complexity and Geometry of Interaction (Extended Abstract) Patrick Baillot 1 and Marco Pedicini 2 1 Institut de Mathematiques de Luminy (Marseille), C.N.R.S. baillot@iml.univ-mrs.fr 2 Istituto

More information

Vector Space Basics. 1 Abstract Vector Spaces. 1. (commutativity of vector addition) u + v = v + u. 2. (associativity of vector addition)

Vector Space Basics. 1 Abstract Vector Spaces. 1. (commutativity of vector addition) u + v = v + u. 2. (associativity of vector addition) Vector Space Basics (Remark: these notes are highly formal and may be a useful reference to some students however I am also posting Ray Heitmann's notes to Canvas for students interested in a direct computational

More information

How to Pop a Deep PDA Matters

How to Pop a Deep PDA Matters How to Pop a Deep PDA Matters Peter Leupold Department of Mathematics, Faculty of Science Kyoto Sangyo University Kyoto 603-8555, Japan email:leupold@cc.kyoto-su.ac.jp Abstract Deep PDA are push-down automata

More information

The Logic of Proofs, Semantically

The Logic of Proofs, Semantically The Logic of Proofs, Semantically Melvin Fitting Dept. Mathematics and Computer Science Lehman College (CUNY), 250 Bedford Park Boulevard West Bronx, NY 10468-1589 e-mail: fitting@lehman.cuny.edu web page:

More information

2. Introduction to commutative rings (continued)

2. Introduction to commutative rings (continued) 2. Introduction to commutative rings (continued) 2.1. New examples of commutative rings. Recall that in the first lecture we defined the notions of commutative rings and field and gave some examples of

More information

The nite submodel property and ω-categorical expansions of pregeometries

The nite submodel property and ω-categorical expansions of pregeometries The nite submodel property and ω-categorical expansions of pregeometries Marko Djordjevi bstract We prove, by a probabilistic argument, that a class of ω-categorical structures, on which algebraic closure

More information

An explicit formula for the free exponential modality of linear logic

An explicit formula for the free exponential modality of linear logic An explicit formula for the free exponential modality of linear logic Paul-André Melliès Nicolas Tabareau Christine Tasson Laboratoire Preuves Programmes Systèmes CNRS & Université Paris 7 - Denis Diderot

More information

Claude Marche. Bat 490, Universite Paris-Sud. Abstract

Claude Marche. Bat 490, Universite Paris-Sud.   Abstract The Word Problem of ACD-Ground theories is Undecidable Claude Marche Laboratoire de Recherche en Informatique (UA 410 CNRS) Bat 490, Universite Paris-Sud 91405 ORSAY CEDEX, FRANCE E-mail: marche@lri.lri.fr

More information

CS 4110 Programming Languages & Logics. Lecture 16 Programming in the λ-calculus

CS 4110 Programming Languages & Logics. Lecture 16 Programming in the λ-calculus CS 4110 Programming Languages & Logics Lecture 16 Programming in the λ-calculus 30 September 2016 Review: Church Booleans 2 We can encode TRUE, FALSE, and IF, as: TRUE λx. λy. x FALSE λx. λy. y IF λb.

More information

Consequence Relations and Natural Deduction

Consequence Relations and Natural Deduction Consequence Relations and Natural Deduction Joshua D Guttman Worcester Polytechnic Institute September 16, 2010 Contents 1 Consequence Relations 1 2 A Derivation System for Natural Deduction 3 3 Derivations

More information

Classical Propositional Logic

Classical Propositional Logic The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,

More information

4.1 Eigenvalues, Eigenvectors, and The Characteristic Polynomial

4.1 Eigenvalues, Eigenvectors, and The Characteristic Polynomial Linear Algebra (part 4): Eigenvalues, Diagonalization, and the Jordan Form (by Evan Dummit, 27, v ) Contents 4 Eigenvalues, Diagonalization, and the Jordan Canonical Form 4 Eigenvalues, Eigenvectors, and

More information

Concrete Domains. Gilles Kahn INRIA Sophia Antipolis Gordon D. Plotkin University of Edinburgh

Concrete Domains. Gilles Kahn INRIA Sophia Antipolis Gordon D. Plotkin University of Edinburgh Concrete Domains Gilles Kahn INRIA Sophia Antipolis Gordon D. Plotkin University of Edinburgh May 21, 1993 Abstract This paper introduces the theory of a particular kind of computation domains called concrete

More information

Handbook of Logic and Proof Techniques for Computer Science

Handbook of Logic and Proof Techniques for Computer Science Steven G. Krantz Handbook of Logic and Proof Techniques for Computer Science With 16 Figures BIRKHAUSER SPRINGER BOSTON * NEW YORK Preface xvii 1 Notation and First-Order Logic 1 1.1 The Use of Connectives

More information

Garrett: `Bernstein's analytic continuation of complex powers' 2 Let f be a polynomial in x 1 ; : : : ; x n with real coecients. For complex s, let f

Garrett: `Bernstein's analytic continuation of complex powers' 2 Let f be a polynomial in x 1 ; : : : ; x n with real coecients. For complex s, let f 1 Bernstein's analytic continuation of complex powers c1995, Paul Garrett, garrettmath.umn.edu version January 27, 1998 Analytic continuation of distributions Statement of the theorems on analytic continuation

More information

Notes taken by Graham Taylor. January 22, 2005

Notes taken by Graham Taylor. January 22, 2005 CSC4 - Linear Programming and Combinatorial Optimization Lecture : Different forms of LP. The algebraic objects behind LP. Basic Feasible Solutions Notes taken by Graham Taylor January, 5 Summary: We first

More information

usual one uses sequents and rules. The second one used special graphs known as proofnets.

usual one uses sequents and rules. The second one used special graphs known as proofnets. Math. Struct. in omp. Science (1993), vol. 11, pp. 1000 opyright c ambridge University Press Minimality of the orrectness riterion for Multiplicative Proof Nets D E N I S B E H E T RIN-NRS & INRILorraine

More information

On the dependencies of logical rules

On the dependencies of logical rules On the dependencies of logical rules Marc Bagnol 1, Amina Doumane 2, and Alexis Saurin 2 1 IML, Université d'aix-marseille, bagnol@iml.univ-mrs.fr 2 PPS, CNRS, Université Paris Diderot & INRIA, {amina.doumane,alexis.saurin}@pps.univ-paris-diderot.fr

More information

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University Formal Epistemology: Lecture Notes Horacio Arló-Costa Carnegie Mellon University hcosta@andrew.cmu.edu Logical preliminaries Let L 0 be a language containing a complete set of Boolean connectives, including

More information

Constructing classical realizability models of Zermelo-Fraenkel set theory

Constructing classical realizability models of Zermelo-Fraenkel set theory Constructing classical realizability models of Zermelo-Fraenkel set theory Alexandre Miquel Plume team LIP/ENS Lyon June 5th, 2012 Réalisabilité à Chambéry Plan 1 The theory ZF ε 2 The model M (A ) of

More information

CS632 Notes on Relational Query Languages I

CS632 Notes on Relational Query Languages I CS632 Notes on Relational Query Languages I A. Demers 6 Feb 2003 1 Introduction Here we define relations, and introduce our notational conventions, which are taken almost directly from [AD93]. We begin

More information

Automata on linear orderings

Automata on linear orderings Automata on linear orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 September 25, 2006 Abstract We consider words indexed by linear

More information

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism A. Avron 1, A. Ciabattoni 2, and A. Zamansky 1 1 Tel-Aviv University 2 Vienna University of Technology Abstract. We apply the semantic

More information

Logic Part I: Classical Logic and Its Semantics

Logic Part I: Classical Logic and Its Semantics Logic Part I: Classical Logic and Its Semantics Max Schäfer Formosan Summer School on Logic, Language, and Computation 2007 July 2, 2007 1 / 51 Principles of Classical Logic classical logic seeks to model

More information

A Discrete Duality Between Nonmonotonic Consequence Relations and Convex Geometries

A Discrete Duality Between Nonmonotonic Consequence Relations and Convex Geometries A Discrete Duality Between Nonmonotonic Consequence Relations and Convex Geometries Johannes Marti and Riccardo Pinosio Draft from April 5, 2018 Abstract In this paper we present a duality between nonmonotonic

More information

Lecture Notes on Inductive Definitions

Lecture Notes on Inductive Definitions Lecture Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 September 2, 2004 These supplementary notes review the notion of an inductive definition and

More information

Investigation of Prawitz s completeness conjecture in phase semantic framework

Investigation of Prawitz s completeness conjecture in phase semantic framework Investigation of Prawitz s completeness conjecture in phase semantic framework Ryo Takemura Nihon University, Japan. takemura.ryo@nihon-u.ac.jp Abstract In contrast to the usual Tarskian set-theoretic

More information

From Constructibility and Absoluteness to Computability and Domain Independence

From Constructibility and Absoluteness to Computability and Domain Independence From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main

More information

The duality of computation

The duality of computation The duality of computation (notes for the 3rd International Workshop on Higher-Order Rewriting) Hugo Herbelin LIX - INRIA-Futurs - PCRI Abstract. The work presented here is an extension of a previous work

More information

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010) http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product

More information

Lecture Notes on Inductive Definitions

Lecture Notes on Inductive Definitions Lecture Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 August 28, 2003 These supplementary notes review the notion of an inductive definition and give

More information

August 23, 2017 Let us measure everything that is measurable, and make measurable everything that is not yet so. Galileo Galilei. 1.

August 23, 2017 Let us measure everything that is measurable, and make measurable everything that is not yet so. Galileo Galilei. 1. August 23, 2017 Let us measure everything that is measurable, and make measurable everything that is not yet so. Galileo Galilei 1. Vector spaces 1.1. Notations. x S denotes the fact that the element x

More information

Transport of niteness structures and applications

Transport of niteness structures and applications Under consideration for publication in Math. Struct. in Comp. Science Transport of niteness structures and applications C H R I S T I N E T A S S O N 1 and L I O N E L V A U X 2 1 Preuves, Programmes et

More information

Lattices, closure operators, and Galois connections.

Lattices, closure operators, and Galois connections. 125 Chapter 5. Lattices, closure operators, and Galois connections. 5.1. Semilattices and lattices. Many of the partially ordered sets P we have seen have a further valuable property: that for any two

More information

Theory of Computation

Theory of Computation Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 1: Introducing Formal Languages Motivation I This course is about the study of a fascinating

More information

a (b + c) = a b + a c

a (b + c) = a b + a c Chapter 1 Vector spaces In the Linear Algebra I module, we encountered two kinds of vector space, namely real and complex. The real numbers and the complex numbers are both examples of an algebraic structure

More information

Toward a General Rewriting-Based Framework for Reducibility

Toward a General Rewriting-Based Framework for Reducibility Toward a General Rewriting-Based Framework for Reducibility Colin Riba INRIA Sophia Antipolis Médeterranée Colin.Riba@sophia.inria.fr December 18, 2008 Reducibility is a powerful proof method which applies

More information

On the Standardization Theorem for λβη-calculus

On the Standardization Theorem for λβη-calculus On the Standardization Theorem for λβη-calculus Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp

More information

2 C. A. Gunter ackground asic Domain Theory. A poset is a set D together with a binary relation v which is reexive, transitive and anti-symmetric. A s

2 C. A. Gunter ackground asic Domain Theory. A poset is a set D together with a binary relation v which is reexive, transitive and anti-symmetric. A s 1 THE LARGEST FIRST-ORDER-AXIOMATIZALE CARTESIAN CLOSED CATEGORY OF DOMAINS 1 June 1986 Carl A. Gunter Cambridge University Computer Laboratory, Cambridge C2 3QG, England Introduction The inspiration for

More information

Proof Theoretical Studies on Semilattice Relevant Logics

Proof Theoretical Studies on Semilattice Relevant Logics Proof Theoretical Studies on Semilattice Relevant Logics Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp

More information

A General Type for Storage Operators

A General Type for Storage Operators A General Type for Storage Operators Karim NOUR LAMA - Equipe de Logique, Université de Chambéry 73376 Le Bourget du Lac e-mail nour@univ-savoie.fr Abstract In 1990, J.L. Krivine introduced the notion

More information

Part II. Logic and Set Theory. Year

Part II. Logic and Set Theory. Year Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]

More information

Note On Parikh slender context-free languages

Note On Parikh slender context-free languages Theoretical Computer Science 255 (2001) 667 677 www.elsevier.com/locate/tcs Note On Parikh slender context-free languages a; b; ; 1 Juha Honkala a Department of Mathematics, University of Turku, FIN-20014

More information

Intersection Types for

Intersection Types for Intersection Types for -Trees Steffen van Bakel Franco Barbanera Mariangiola Dezani-Ciancaglini Fer-Jan de Vries Department of Computing, Imperial College, 180 Queen s Gate, London SW7 2BZ, UK E-mail:

More information

Criteria for existence of semigroup homomorphisms and projective rank functions. George M. Bergman

Criteria for existence of semigroup homomorphisms and projective rank functions. George M. Bergman Criteria for existence of semigroup homomorphisms and projective rank functions George M. Bergman Suppose A, S, and T are semigroups, e: A S and f: A T semigroup homomorphisms, and X a generating set for

More information

Minimum and maximum values *

Minimum and maximum values * OpenStax-CNX module: m17417 1 Minimum and maximum values * Sunil Kumar Singh This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 2.0 In general context, a

More information

Safety Analysis versus Type Inference

Safety Analysis versus Type Inference Information and Computation, 118(1):128 141, 1995. Safety Analysis versus Type Inference Jens Palsberg palsberg@daimi.aau.dk Michael I. Schwartzbach mis@daimi.aau.dk Computer Science Department, Aarhus

More information

2 logic, such as those for resolution and hyperresolution. A number of recent developments serve as the motivation for the current paper. In [2, 3], i

2 logic, such as those for resolution and hyperresolution. A number of recent developments serve as the motivation for the current paper. In [2, 3], i Sequents, Frames, and Completeness Thierry Coquand 1 and Guo-Qiang Zhang 2?? 1 Department of Computer Science, University of Goteborg S 412 96, Goteborg, Sweden coquand@cs.chalmers.se 2 Department of Computer

More information