Bounding Principles for Decision Problems with Intersection Types

Size: px
Start display at page:

Download "Bounding Principles for Decision Problems with Intersection Types"

Transcription

1 Bounding Principles for Decision Problems with Intersection Types Jakob Rehof Technical University of Dortmund, Germany TYPES 2017, May 30th, Budapest, Hungary

2 Acknowledgements My students in Dortmund (former and present) including Jan Bessai, Boris Düdder (now Copenhagen), Andrej Dudenhefner, Moritz Martens (now in industry) Collaborators, including Paweł Urzyczyn (Warsaw), George Heineman (WPI Boston), Ugo de Liguoro (Torino) Colleagues, including Mariangiola Dezani, Simona Ronchi Della Rocca, Mario Coppo and the Torino λ-calculus group, Roger Hindley (Swansey), Aleksy Schubert and Warsaw group TYPES (Warsaw 2010, Bergen 2011, Novi Sad 2016)

3 Intersection Types and Decision Problems Intersection types [CDC80; CDCV81; BCDC83] allow terms to be assigned multiple types Γ M : τ 1... τ n Due to their enormous expressive power, the classical decision problems, typability and inhabitation, are undecidable Compare with simple types: Typability is in linear time (unification) Inhabitation (provability in minimal intuitionistic logic) is Pspace-complete [Sta79]

4 Intersection Types Definition ([CDCV80],[BCDC83],..., [BDS13]) Types T : σ, τ ::= a σ τ σ τ, Atoms a A Γ, x : τ x : τ (Var) Γ, x : σ M : A ( I) Γ λx.m : σ A Γ M : σ τ Γ N : σ ( E) Γ M N : τ Γ M : τ 1 Γ M : τ 2 ( I) Γ M : τ 1 τ 2 Γ M : τ 1 τ 2 ( E) Γ M : τ i

5 Bounding principles We are concerned with understanding the borderline between decidability and undecidability for these decision problems Motivations can be practical, purely theoretical, or (preferably) both

6 Bounding principles We are concerned with understanding the borderline between decidability and undecidability for these decision problems Motivations can be practical, purely theoretical, or (preferably) both We are especially interested in generic bounding principles such that: The rules (logic) of the system remain(s) intact Interesting levels of expressiveness are retained (depending on bound), up to complete recovery, e.g., S = k S k Decidability, complexity, algorithms pivot around the bound New (fine) structure of the decision problems is exposed

7 Some examples... a very non-exhaustive list... time(k): In many cases not very revealing space(k) regular languages time( f(n)), space( f(n)) complexity theory Quantifier alternation Logical hierarchies Bounded depth Frege systems Proof complexity Transfinite induction up to α Gentzen ɛ 0, ordinal analysis......

8 In λ-calculus Type Systems and This Talk Pervasive principles Functional order and rank of a logical operator (after Leivant [Lei83]) For intersection types: Refinement After Freeman and Pfenning, PLDI 1991 [FP91] Semantic types Bounded combinatory logic, TLCA 2011, CSL 2012 ff. [RU11; Düd+12] Non-idempotence Bucciareli, Kesner, Ronchi Della Rocca, TCS 2014 [BKRDR14] Norm and dimension D&R, POPL 2017, LICS 2017 [DR17a; DR17b]

9 Rank Rank-bound wrt. a logical operator (after Leivant [Lei83]): Rank = maximal order (nesting depth to the left of ) at which the operator can appear. Example: system F (operator ) Example: intersection types (operator ) Definition (Intersection type rank) rank(τ) = 0 if τ is a simple type rank(σ τ) = max(rank(σ) + 1, rank(τ)) rank(σ τ) = max(1, rank(σ), rank(τ))

10 Typability and Inhabitation Given a (standard) type system Γ M : τ we consider decision problems Typability. Given M, does there exist Γ and τ such that Γ M : τ? Inhabitation. Given Γ and τ, does there exist M such that Γ M : τ?

11 Typability and Inhabitation Given a (standard) type system Γ M : τ we consider decision problems Typability. Given M, does there exist Γ and τ such that Γ M : τ? Inhabitation. Given Γ and τ, does there exist M such that Γ M : τ? Assuming the standard property (for Γ = {x i : τ i } (i=1...n) ) Γ M : τ λx 1... λx n.m : τ 1 τ n τ we can consider rank k-bounded versions of the problems by asking for M : σ, where σ is rank k.

12 Typability and Inhabitation (in rank k)

13 System F Inhabitation is undecidable M. H. Löb, Embedding First Order Predicate Logic in Fragments of Intuitionistic Logic, JSL 1976 [L 76] See also P. Urzyczyn, Inhabitation in typed lambda-calculi (A syntactic approach), TLCA 1997 [Urz97] Typability is undecidable J. Wells, Typability and Type-Checking in the Second-Order lambda-calculus are Equivalent and Undecidable, LICS 1994 [Wel94] Typability is decidable for rank 2 und undecidable for all ranks k > 2 A. Kfoury and J. Wells, A Direct Algorithm for Type Inference in the Rank-2 Fragment of the Second-Order lambda-calculus, LFP 1994 [KW99]

14 Intersection Types: Typability Typability is undecidable Follows from characterization of normalization and solvability properties Coppo, Dezani, Venneri [CDCV81], Pottinger [Pot80], see also Ghilezan [Ghi96] and Barendregt, Dekkers, Statman [BDS13] Rank-bounded fragments Decidable in all bounded-rank fragements: A. Kfoury and J. Wells, Principality and Decidable Type Inference for Finite-Rank Intersection Types, POPL 1999 [KW99] Complexity exponential in rank: Kfoury, Mairson, Turbak and Wells, Relating Typability and Expressiveness in Finite-Rank Intersection Type Systems, ICFP 1999 [Kfo+99]

15 Intersection Types: Inhabitation Inhabitation is undecidable P. Urzyczyn, The Emptiness Problem for Intersection Types, JSL 1999 [Urz99] via reduction from halting problems for queue automata using rank 4 intersections Related to the λ-definability problem S. Salvati, Recognizability in the Simply Typed Lambda-Calculus, WoLLIC 2009 [Sal09] Salvati, Manzonetto, Gehrke and Barendregt, Urzyczyn and Loader are logically related, ICALP 2012 [Sal+12] Undecidability of λ-definability: Loader 1993 [Loa01]

16 Intersection Types: Rank-Bounded Inhabitation Rank 2-inhabitation is decidable Equivalent to rank 2-polymorphism: H. Yokouchi, Embedding a Second Order Type System into an Intersection Type System, I&C 1995 [Yok95] Exptime-hard: D. Kuśmierek, The Inhabitation Problem for Rank Two Intersection Types, TLCA 2007 [Kus07] Rank 2-inhabitation is Expspace-complete and rank k-inabitation is undecidable for all ranks k > 2 P. Urzyczyn, Inhabitation of Low-Rank Intersection Types, TLCA 2009 [Urz09] Proof techniques via bus machines, an alternating, expanding instruction device, also used to show Expxpace-completeness of inhabitation with explicit intersection [RU12]

17 Combinatory Logic Synthesis (CLS) A type-theoretic approach to component-oriented synthesis Component-oriented Synthesis Synthesis relative to library (repository) of components Combinatory Logic Synthesis (CLS) Libraries need classification systems to enable retrieval and composition Classification Taxonomy Types CLS Bottom-up specification Hoare logic

18 Combinatory Logic Synthesis (CLS) A type-theoretic approach to component-oriented synthesis

19 Combinatory Logic Synthesis (CLS) A type-theoretic approach to component-oriented synthesis Can we use inhabitation in combinatory logic with intersection types as a foundation for component-oriented, type-based synthesis? Typed combinators X : τ as named interfaces Automated composition synthesis via inhabitation Intersection types as semantic types (cf. also Haack,Wells,Yakobowski et al. [Haa+02; WY05]) for specification Beyond purely functional composition via meta-programming compose a meta-program which, when executed, computes (say) a Java program

20 Combinatory Logic Synthesis (CLS) This idea was developed in a series of papers, including: Finite Combinatory Logic with Intersection Types, TLCA 2011 [RU11] First mention of CL with intersection types as semantic specifications for synthesis via inhabitation Bounded Combinatory Logic, CSL 2012 [Düd+12] Complexity hierarchy for relativized inhabitation with CL Using Inhabitation in Bounded Combinatory Logic with Intersection Types for Composition Synthesis, ITRS 2012 [Düd+12] First short experiments Towards Combinatory Logic Synthesis, BEAT 2013 [Reh13] Outline of research program Design and Synthesis from Components (Dagstuhl Seminar 14232), 2014 (organized by Rehof and Vardi) [RV14] The idea of synthesis from components Staged Composition Synthesis, ESOP 2014 [DMR14] Moving to the meta-level via modal types Mixin Composition Synthesis Based on Intersection Types, TLCA 2015 [Bes+15] First study of object-oriented features The idea of using intersection types as foundation for type-based synthesis also taken up for λ-calculus inhabitation, see Frankle, Osera, Walker, Zdancewic, POPL 2016 [Fra+16]

21 Combinatory Logic Synthesis (CLS) It is currently being developed into a meta-programming framework based on a combinatory extension to Scala led by Jan Bessai (TU Dortmund), Boris Düdder (U Copenhagen), George Heineman (WPI Boston) Combinatory Logic Synthesizer, ISOLA 2014 [Bes+14] Synthesizing Type-safe Compositions in Feature Oriented Software Designs using Staged Composition, ModSyn-PL 2015 [DRH15] Towards Migrating Object-Oriented Frameworks to Enable Synthesis of Product Line Members, SPLC 2015 [Hei+15] Combinatory Synthesis of Classes using Feature Grammars, FACS 2015 [Bes+16b] A Long and Winding Road Towards Modular Synthesis, ISOLA 2016 [Hei+16] Combinatory Process Synthesis, ISOLA 2016 [Bes+16a] Component-Oriented Synthesis via Algebras and Combinatory Logic, in preparation

22 Example Repository Γ = { customerform : (String java.net.url OptionSelection Form) dropdownselector : (java.net.url OptionSelection) radiobut tonselector : (java.net.url OptionSelection) companytitle : String databaselocation : java.net.url logolocation : java.net.url alternatelogolocation : java.net.url } From: Scala integrated framework for CLS by Bessai, Düdder, Dudenhefner, Heinemann

23 Example Repository Γ = { customerform : (String java.net.url OptionSelection Form) (Title Location(Logo) ChoiceDialog(α) OrderMenu(α)) dropdownselector : (java.net.url OptionSelection) (Location( Database) ChoiceDialog( DropDown)) radiobut tonselector : (java.net.url OptionSelection) (Location( Database) ChoiceDialog(RadioBut tons)) companytitle : String Title databaselocation : java.net.url Location( Database) logolocation : java.net.url Location(Logo) alternatelogolocation : java.net.url Location(Logo) }

24 Combinator Interface in Scala

25 Combinator Implementation in Scala

26 Variations

27 Web Interface to Inhabitation Service

28 Combinatory Logic With Intersection Types cl(, ) Γ, X : τ X : S(τ) (var) Γ e : τ σ Γ e : τ ( E) Γ (e e ) : σ Γ e : τ Γ e : σ ( I) Γ e : τ σ Γ e : τ τ σ ( ) Γ e : σ Types are taken modulo associativity, commutativity and idempotence of, and is least preorder containing (cf. [BCDC83]) σ ω, ω ω ω, σ τ σ, σ τ τ, σ σ σ; (σ τ) (σ ρ) σ τ ρ; If σ σ and τ τ then σ τ σ τ and σ τ σ τ. Note The SKI-calculus has been studied with intersection types (Dezani and Hindley [DCH92]) But, in CLS, the combinatory theory Γ represents an arbitrary repository (basis not fixed)

29 CLS World View CL over arbitrary bases is a general theory of component collections (repositories) Each repository is a combinatory theory The special implementation theory {S, K, I} is one, very special case Cellarius Harmonia Macrocosmica Planisphaerium Copernicanum

30 Relativized Inhabitation We consider the relativized inhabitation problem: Given a set of typed combinators Γ and τ, does there exist combinatory expression e such that Γ e : τ? 1 See also talk on Wednesday by A. Dudenhefner, Lower End of the Linial-Post Spectrum

31 Relativized Inhabitation We consider the relativized inhabitation problem: Given a set of typed combinators Γ and τ, does there exist combinatory expression e such that Γ e : τ? Inhabitation for fixed base {S, K, I} is Pspace-complete in simple types (Statman s theorem) Relativized inhabitation is much harder Undecidable in simple types: Linial-Post theorems, 1948ff. [LP49] 1 1 See also talk on Wednesday by A. Dudenhefner, Lower End of the Linial-Post Spectrum

32 Relativized Inhabitation We consider the relativized inhabitation problem: Given a set of typed combinators Γ and τ, does there exist combinatory expression e such that Γ e : τ? Inhabitation for fixed base {S, K, I} is Pspace-complete in simple types (Statman s theorem) Relativized inhabitation is much harder Undecidable in simple types: Linial-Post theorems, 1948ff. [LP49] 1 The CLS view: Already in simple types, relativized inhabitation defines a Turing-complete logic programming language for component composition Reduction from 2-counter automata [Reh13] Similar idea used to prove undecidability for synthesis in ML relative to library of functions [BSWC16] 1 See also talk on Wednesday by A. Dudenhefner, Lower End of the Linial-Post Spectrum

33 Linial-Post Spectrum... 2Exptime? Exptime Pspace co-np Ptime R T R Subintuitionistic logics IPL (S4) Intermediate logics CPL

34 Bounded Combinatory Logic bcl k (, ) Levels l(a) = 0, for a A; l(τ σ) = 1 + max{l(τ), l(σ)}; l( n i=1 τ i) = max{l(τ i ) i = 1,..., n}. l(s) = max{l(s(α)) S(α) α}

35 Bounded Combinatory Logic bcl k (, ) Levels l(a) = 0, for a A; l(τ σ) = 1 + max{l(τ), l(σ)}; l( n i=1 τ i) = max{l(τ i ) i = 1,..., n}. l(s) = max{l(s(α)) S(α) α} bcl k (, ), k 0 (and finite CL, fcl, with S = id). [l(s) k] Γ, X : τ k X : S(τ) (var) Γ k e : τ σ Γ k e : τ ( E) Γ k (e e ) : σ Γ k e : τ Γ k e : σ ( I) Γ k e : τ σ Γ k e : τ τ σ ( ) Γ k e : σ Bounded Combinatory Logic, CSL 2012 [Düd+12]

36 Complexity for Finite and Bounded CL Theorem (TLCA 2011 [RU11]) For finite combinatory logic fcl: 1 Relativized inhabitation in fcl( ) is in Ptime 2 Relativized inhabitation in fcl(, ) is Exptime-complete Theorem (CSL 2012 [Düd+12]) For bounded combinatory logic bcl k : 1 Relativized inhabitation in bcl k ( ) is Exptime-complete for all k 2 Relativized inhabitation in bcl k (, ) is (k + 2)-Exptime-complete

37 Upper Bound ATM for bcl k (, ): Aspace(exp k+1 (n)) Input : Γ, τ, k Γ = { f : (0 1) (1 0), x : (α β) (β γ) (α γ)} τ = (0 0) (1 1)

38 Upper Bound ATM for bcl k (, ): Aspace(exp k+1 (n)) Input : Γ, τ, k Γ = { f : (0 1) (1 0), x : (α β) (β γ) (α γ)} τ = (0 0) (1 1) loop : 1 choose (x : σ) Γ; σ = (0 0) (0 0) (0 0) 2 σ := {S(σ) S S (Γ,τ,k) x }; (1 1) (1 1) (1 1)

39 Upper Bound ATM for bcl k (, ): Aspace(exp k+1 (n)) Input : Γ, τ, k Γ = { f : (0 1) (1 0), x : (α β) (β γ) (α γ)} τ = (0 0) (1 1) loop : 1 choose (x : σ) Γ; σ = (0 0) (0 0) (0 0) 2 σ := {S(σ) S S (Γ,τ,k) x }; (1 1) (1 1) (1 1) 3 choose m {0,..., σ }; (0 1) (1 0) (0 0) 4 choose P P m (σ ); (1 0) (0 1) (1 1)

40 Upper Bound ATM for bcl k (, ): Aspace(exp k+1 (n)) Input : Γ, τ, k Γ = { f : (0 1) (1 0), x : (α β) (β γ) (α γ)} τ = (0 0) (1 1) loop : 1 choose (x : σ) Γ; σ = (0 0) (0 0) (0 0) 2 σ := {S(σ) S S (Γ,τ,k) x }; (1 1) (1 1) (1 1) 3 choose m {0,..., σ }; (0 1) (1 0) (0 0) 4 choose P P m (σ ); (1 0) (0 1) (1 1) 5 if ( π P tgt m (π) τ) then (0 0) (1 1) τ 6 if (m = 0) then accept;

41 Upper Bound ATM for bcl k (, ): Aspace(exp k+1 (n)) Input : Γ, τ, k Γ = { f : (0 1) (1 0), x : (α β) (β γ) (α γ)} τ = (0 0) (1 1) loop : 1 choose (x : σ) Γ; σ = (0 0) (0 0) (0 0) 2 σ := {S(σ) S S (Γ,τ,k) x }; (1 1) (1 1) (1 1) 3 choose m {0,..., σ }; (0 1) (1 0) (0 0) 4 choose P P m (σ ); (1 0) (0 1) (1 1) 5 if ( π P tgt m (π) τ) then (0 0) (1 1) τ 6 if (m = 0) then accept; 7 else 8 9 forall(i = 1... m) τ := π P arg i (π); τ :=(0 1) (1 0) τ :=(1 0) (0 1) 10 goto loop; 11 else reject;

42 Upper Bound ATM for bcl k (, ): Aspace(exp k+1 (n)) Input : Γ, τ, k Γ = { f : (0 1) (1 0), x : (α β) (β γ) (α γ)} τ = (0 0) (1 1) loop : 1 choose (x : σ) Γ; σ = (0 0) (0 0) (0 0) 2 σ := {S(σ) S S (Γ,τ,k) x }; (1 1) (1 1) (1 1) 3 choose m {0,..., σ }; (0 1) (1 0) (0 0) 4 choose P P m (σ ); (1 0) (0 1) (1 1) 5 if ( π P tgt m (π) τ) then (0 0) (1 1) τ 6 if (m = 0) then accept; 7 else 8 9 forall(i = 1... m) τ := π P arg i (π); τ :=(0 1) (1 0) τ :=(1 0) (0 1) 10 goto loop; 11 else reject; (x f) f : (0 0) (1 1)

43 Lower bound - main ideas Generic reduction by simulation of exp k+1 (n)-space bounded alternating Turing machines. Given ATM M, we construct, in polynomial time, an environment Γ such that M is accepting if and only if Γ k? : Tape is solvable

44 Lower bound - main ideas Generic reduction by simulation of exp k+1 (n)-space bounded alternating Turing machines. Given ATM M, we construct, in polynomial time, an environment Γ such that M is accepting if and only if Γ k? : Tape is solvable For any fixed level-parameter K: Intersection type numerals i K : we can represent numbers 0 i exp K+1 (n) 1 as intersection types. We can represent ATM configurations C of size exp K+1 (n) as intersection types [C ] Exploiting K-bounded polymorphism, we can represent these types implicitly in polynomial sized types ATM sequences C 1 C 2 C m coded by reverse implications [C i+1 ] [C i ] in Γ

45 Refinement (after [FP91]) Definition Let T o be simple types over an atom o. Fix X A and define uniform types U X (τ) for τ T o : U X (o) = X U X (τ σ) = (U X (τ) U X (σ))

46 Refinement (after [FP91]) Definition Let T o be simple types over an atom o. Fix X A and define uniform types U X (τ) for τ T o : U X (o) = X U X (τ σ) = (U X (τ) U X (σ)) With such types we can represent any finite function f : A B at the type level by a A(a f(a))

47 Refinement (after [FP91]) Definition Let T o be simple types over an atom o. Fix X A and define uniform types U X (τ) for τ T o : U X (o) = X U X (τ σ) = (U X (τ) U X (σ)) With such types we can represent any finite function f : A B at the type level by a A(a f(a)) We can express finite abstract interpretations, e.g., succ : (Nat Nat) (zero pos) (pos pos) (even odd) (odd even)

48 Refinement (after [FP91]) Definition Let T o be simple types over an atom o. Fix X A and define uniform types U X (τ) for τ T o : U X (o) = X U X (τ σ) = (U X (τ) U X (σ)) With such types we can represent any finite function f : A B at the type level by a A(a f(a)) We can express finite abstract interpretations, e.g., succ : (Nat Nat) (zero pos) (pos pos) (even odd) (odd even) Typability (λ-calculus) is in linear time over simple types, and type inference is computable [FP91]

49 Refinement (after [FP91]) Definition Let T o be simple types over an atom o. Fix X A and define uniform types U X (τ) for τ T o : U X (o) = X U X (τ σ) = (U X (τ) U X (σ)) With such types we can represent any finite function f : A B at the type level by a A(a f(a)) We can express finite abstract interpretations, e.g., succ : (Nat Nat) (zero pos) (pos pos) (even odd) (odd even) Typability (λ-calculus) is in linear time over simple types, and type inference is computable [FP91] Inhabitation (λ-calculus) is undecidable.

50 Refinement (after [FP91]) Definition Let T o be simple types over an atom o. Fix X A and define uniform types U X (τ) for τ T o : U X (o) = X U X (τ σ) = (U X (τ) U X (σ)) With such types we can represent any finite function f : A B at the type level by a A(a f(a)) We can express finite abstract interpretations, e.g., succ : (Nat Nat) (zero pos) (pos pos) (even odd) (odd even) Typability (λ-calculus) is in linear time over simple types, and type inference is computable [FP91] Inhabitation (λ-calculus) is undecidable. Proof: Note that [Sal+12] uses only uniform types for λ-definability.

51 CL(, ) over Uniform (Refinement) Types Definition Let T o be simple types over an atom o. Fix X A and define uniform types U X (τ) for τ T o : U X (o) = X U X (τ σ) = (U X (τ) U X (σ)) Corollary Relativized inhabitation with uniform types is nonelementary recursive. Proof. Upper bound: every problem Γ? : σ is decidable within bcl k (, ) with k = max{l(τ) σ rn(γ) U X (τ)}. Lower bound: notice that all constructions in l.b. for bcl k (, ) can be carried out with uniform types.

52 Corollary: Henkin s theory Ω in bcl k (, ) Satisfiability of formulae Φ ::= 0 x 1 1 x 1 x k y k+1 Φ x k.φ Φ Φ where x k ranges over D k with D 0 = {0, 1}, D k+1 = P(D k ). L. Henkin: A theory of propositional types, Fundamenta Informaticae 52 (1963) Representation in bcl k (, ) (for sufficiently large k): A set variable x k is represented by a type variable x k. Membership predicate Mem k Num k (x k ) Num k+1 (y k+1 ) In k (x k, y k+1 ) Mem k (x k, y k+1 ) where In k (x k, x k 1) and NotIn(x k, x k 0) are axioms. Use alternation to code quantifiers as usual (Urzyczyn 1997).

53 Ongoing: optimization & algorithm engineering From B. Düdder: Automatic Synthesis of Component & Connector-Software Architectures with Bounded Combinatory Logic, Diss. Dortmund, Aug

54 Inhabitation in Bounded Dimension Pieter Brueghel the Elder - The Dutch Proverbs - Google Art Project.jpg 1559 Intersection Type Calculi of Bounded Dimension, POPL 2017 [DR17a]

55 Strict Intersection Types Definition (Strict Intersection Types) T s A, B ::= a σ A T σ, τ ::= A 1 A n n 1 Definition (Strict Type Assignment [Bak11](Def. 5.1)) 1 i n (Var) Γ, x : Γ s M : A i for i = 1... n n ( I) A i=1 i s x : A i Γ s M : n i=1 A i Γ s M : σ A Γ s N : σ ( E) Γ s M N : A Γ, x : σ s M : A ( I) Γ s λx.m : σ A

56 Notational Variant Definition (Strict Intersection Types) A, B ::= a σ A σ, τ ::= [A 1,..., A n ] n 1 Definition (Strict Type Assignment [Bak11](Def. 5.1)) 1 i n Γ, x : [A 1,..., A n ] s x : [A i ] (Var) Γ s M : [A i ] for i = 1... n ( I) Γ s M : [A i,..., A n ] Γ s M : [σ A] Γ s N : σ ( E) Γ s M N : [A] Γ, x : σ s M : [A] Γ s λx.m : [σ A] ( I)

57 Set Theoretic Elaborations Definition (Elaborations) P, Q, R ::= x S (λx.p) S (P Q) S, S = [A 1,..., A n ], n 1 Definition (P Q, defined for P Q ) x S x S x S S (λx.p) S (λx.q) S (λx.p Q) S S (PQ) S (P Q ) S ((P P )(Q Q )) S S Definition (Norm ) x S = S (λx.p) S = max{ P, S } (PQ) S = max{ P, Q, S }

58 Set Theoretic Elaborations Definition (Elaborations) P, Q, R ::= x S (λx.p) S (P Q) S, S = [A 1,..., A n ], n 1 Definition (P Q, defined for P Q ) Definition (Norm ) x S x S x S S (λx.p) S (λx.q) S (λx.p Q) S S (PQ) S (P Q ) S ((P P )(Q Q )) S S x S = S (λx.p) S = max{ P, S } (PQ) S = max{ P, Q, S } Non-negativity : P > 0 Subadditivity : P Q P + Q for P Q

59 Set Theoretic Elaboration System Definition (Γ P : σ) 1 i n Γ, x : [A 1,..., A n ] x [A i ] : [A i ] (Var) Γ, x : σ P : [A] Γ (λx.p) [σ A] : [σ A] ( I) Γ P : [σ A] Γ Q : σ ( E) Γ (P Q) [A] : [A] Γ P i : [A i ] for i = 1... n ( I) Γ n i=1 P i : [A 1,..., A n ]

60 Set Theoretic Elaboration System Definition (Γ P : σ) 1 i n Γ, x : [A 1,..., A n ] x [A i ] : [A i ] (Var) Γ, x : σ P : [A] Γ (λx.p) [σ A] : [σ A] ( I) Γ P : [σ A] Γ Q : σ ( E) Γ (P Q) [A] : [A] Γ P i : [A i ] for i = 1... n ( I) Γ n i=1 P i : [A 1,..., A n ] Intuition The operation n i=1 P i allows us to measure usage of ( I) as a logical resource under norm

61 Set Theoretic Elaboration System Definition (Γ P : σ) 1 i n Γ, x : [A 1,..., A n ] x [A i ] : [A i ] (Var) Γ, x : σ P : [A] Γ (λx.p) [σ A] : [σ A] ( I) Γ P : [σ A] Γ Q : σ ( E) Γ (P Q) [A] : [A] Γ P i : [A i ] for i = 1... n ( I) Γ n i=1 P i : [A 1,..., A n ] Definition Write Γ M P : σ iff Γ P : σ with M P. Clearly, Γ s M : σ iff P. Γ M P : σ

62 Intersection Type Calculus of Bounded Dimension Definition (λ [ ] n ) Γ n M : σ iff P. Γ M P : σ with P n Lemma Γ s M : σ iff Γ n M : σ for some n > 0 Definition (Dimension) The set theoretic dimension of a term M at Γ and σ is dim σ Γ = min{n Γ n M : σ}

63 Subject Reduction in Bounded Dimension Terms can be elaborated in non-increasing norm under β-reduction: Theorem (Subject Reduction for λ [ ] n ) If Γ M P : τ and M β M, then there exists R with R P such that Γ M R : τ Consequences: Each dimensional fragment λ [ ] n is a meaningful type system. Inhabitation in bounded dimension for λ [ ] n can be limited to search for normal forms.

64 Inhabitation in Bounded Set Theoretic Dimension Problem (Inhabitation for λ [ ] ) Given environment Γ, type σ and number n > 0: is there a term M such that Γ n M : σ?

65 Inhabitation in Bounded Set Theoretic Dimension Problem (Inhabitation for λ [ ] ) Given environment Γ, type σ and number n > 0: is there a term M such that Γ n M : σ? Theorem The inhabitation problem for λ [ ] is undecidable. Proof. By subject reduction and normalization it suffices to search for normal forms in norm n. Let N be the size of input. By the subformula property [BCDC83] (Lemma 4.5), inhabitation in bounded norm N is equivalent to inhabitation. Proposition For n = 1 set-theoretic inhabitation is Pspace-complete ([RU12] Cor. 22).

66 Multiset Elaboration System Definition Treat types σ = [A 1,..., A n ] and sets S as multisets s and let denote multiset union. Definition ( P : s) 1 i n, x : [A 1,..., A n ] x [A i ] : [A i ] (Var), x : s P : [A] (λx.p) [σ A] : [s A] ( I) P : [s A] Q : s ( E) (P Q) [A] : [A] P i : [A i ] for i = 1... n ( ) ( I) n P i=1 i : [A 1,..., A n ] where ( ) is for each x s in n i=1 P i if x free in M, then s (x).

67 Examples Example (I λx.x) x [a] x [b] ( I) ( I) (λx.x [a] ) [a a] (λx.x [b] ) [b b] ( I) P := (λx.x [a, b] ) [a a, b b] P = 2 Example (ω λx.xx) x [a a] x [a] ( E) (x [a a] x [a] ) [a] P := (λx.(x [a a] x [a] ) [a] ) [[a, a a] a] P = 1 ( I) Note that the system is non-idempotent and non-linear.

68 Examples Example (x(y(λz.z)) Let A [a a, b b] e, B [b b, c c] f, = {x : [e, f] g, y : [A, B]}. We have P : [e], where P is x [[e, f] g] (y [A, B] (λz.z a b b c ) a a b b b b c c )

69 Beyond Rank 2 Inhabitation The rank hierarchy jumps from Expspace in rank 2 to infinity at ranks k 3, as was shown by urzyczyn [Urz09] But we can show [DR17a] that dimensional bound provides a rank-independent stratification, decidable in each dimensional bound, and subsuming the rank 2 fragment in Expspace Camille Flammarions 1833 (excerpt)

70 Inhabitation in Bounded Multiset Dimension Definition Γ n M : σ iff, P, s. ( M = P : s with Γ = and σ = s and P n) where ( ) collapses multisets to underlying sets.

71 Inhabitation in Bounded Multiset Dimension Definition Γ n M : σ iff, P, s. ( M = P : s with Γ = and σ = s and P n) where ( ) collapses multisets to underlying sets. Problem (Γ n? : σ) Given Γ, σ and n > 0: is there a term M such that Γ n M : σ?

72 Inhabitation in Bounded Multiset Dimension Definition Γ n M : σ iff, P, s. ( M = P : s with Γ = and σ = s and P n) where ( ) collapses multisets to underlying sets. Problem (Γ n? : σ) Given Γ, σ and n > 0: is there a term M such that Γ n M : σ? Theorem Inhabitation in bounded multiset dimension is Expspace-complete. For each dimensional bound d > 0, inhabitation is in ATIME(N 2d ) where N denotes the size of the input Γ and σ.

73 Inhabitation in Bounded Multiset Dimension Definition Γ n M : σ iff, P, s. ( M = P : s with Γ = and σ = s and P n) where ( ) collapses multisets to underlying sets. Problem (Γ n? : σ) Given Γ, σ and n > 0: is there a term M such that Γ n M : σ? Theorem Inhabitation in bounded multiset dimension is Expspace-complete. For each dimensional bound d > 0, inhabitation is in ATIME(N 2d ) where N denotes the size of the input Γ and σ. Corollary For each fixed n inhabitation in multiset dimension n is Pspace-complete.

74 Dimensional Analysis of Rank 2 Typings Proposition Suppose we can derive N = P : [A 1,..., A n ] in rank 2, where N is a normal form. Then P = n.

75 Dimensional Analysis of Rank 2 Typings Proposition Suppose we can derive N = P : [A 1,..., A n ] in rank 2, where N is a normal form. Then P = n. Consequence Substantial generalization of inhabitation in rank 2 fragment, generalizing across all ranks within Expspace.

76 Dimensional Analysis of Rank 2 Typings Proposition Suppose we can derive N = P : [A 1,..., A n ] in rank 2, where N is a normal form. Then P = n. Consequence Substantial generalization of inhabitation in rank 2 fragment, generalizing across all ranks within Expspace. Remark Compare to linear, non-idempotent system of Bucciareli, Kesner, Ronchi Della Rocca [BKRDR14]: Inhabitation is decidable [BKRDR14] and NP-complete [DR17a] Typability is undecidable.

77 The World Cellarius Harmonia Macrocosmica Planisphaerium Copernicanum

78 The World 1 N

79 Multiset Dimension and Parallel Constraints Luca Pacioli, attr. Jacopo de Barbari 1495 (excerpt)

80 Inhabitation (after Urzyczyn [Urz97])

81 Inhabitation

82 Inhabitation

83 Inhabitation

84 Inhabitation

85 Inhabitation

86 Inhabitation

87 Inhabitation

88 Intersection Type Inhabitation (after Urzyczyn [Urz09])

89 Intersection Type Inhabitation

90 Intersection Type Inhabitation

91 Intersection Type Inhabitation

92 Intersection Type Inhabitation

93 Intersection Type Inhabitation

94 Multiset Norm and Dimension

95 Multiset Norm and Dimension See also our talk at TYPES 2016, Rank 3 Inhabitation of Intersection Types Revisited [Bes+16c] and extended version at arxiv.

96 Typability in Bounded Dimension Five-set Venn diagram using congruent ellipses in a 5-fold rotationally symmetrical arrangement devised by Branko Grünbaum. Typability in Bounded Dimension, LICS 2017 [DR17b]

97 Elaboration Types

98 Elaboration Types

99 Elaboration Types

100 Elaboration Types

101 Subformula Filtration The classical subformula property ([BCDC83], Lemma 4.5) says that, on normal forms, every decoration type is a subformula of some observable type We can show that, on all typable terms, one can obtain the subformula fitration property: Every constituent subformula is also a decoration type For X T s, we induce a filtration function F X : T T which removes subformula components of intersection types not appearing in X

102 Subformula Filtration The classical subformula property ([BCDC83], Lemma 4.5) says that, on normal forms, every decoration type is a subformula of some observable type We can show that, on all typable terms, one can obtain the subformula fitration property: Every constituent subformula is also a decoration type For X T s, we induce a filtration function F X : T T which removes subformula components of intersection types not appearing in X Proposition Let T P denote the decoration types in P and suppose T P X. Then In particluar, taking T P = X we have Γ P : σ F X (Γ) F X (P) : F X (σ) Γ P : σ F TP (Γ) F TP (P) : F TP (σ)

103 Subformula Filtration Example For P (λx.x a ) [a, b] a we have T P = {a, [a, b] a} and since b T P we get F TP (P) = (λx.x a ) [a] a

104 Bounded Width Theorem Definition (Width) a = 1 σ A = max{ σ, A } A 1 A m = max{m, A 1,..., A m } Lift to environments, elaborations, and derivations by taking maximal width over all types appearing. Theorem (Bounded Width Property) Let a derivation D Γ M P : σ be given with P d. Then there exists a derivation D Γ M P : σ such that D d M and P = P. Proof. By filtration with F TP and using F TP (D T P together with T P P M d M

105 Typability in Bounded Dimension Problem (Typability in bounded set-theoretic dimension) Given a λ-term M and a dimension d, does there exist Γ and σ such that Γ d M : σ? (Recall: Γ d M : σ iff P. Γ P : σ, P M, P d)

106 Typability in Bounded Dimension Problem (Typability in bounded set-theoretic dimension) Given a λ-term M and a dimension d, does there exist Γ and σ such that Γ d M : σ? (Recall: Γ d M : σ iff P. Γ P : σ, P M, P d) Theorem The typability problem in bounded set-theoretic dimension is Pspace-complete.

107 Typability in Bounded Dimension Problem (Typability in bounded set-theoretic dimension) Given a λ-term M and a dimension d, does there exist Γ and σ such that Γ d M : σ? (Recall: Γ d M : σ iff P. Γ P : σ, P M, P d) Theorem The typability problem in bounded set-theoretic dimension is Pspace-complete. Remark The upper bound is constructed by nondeterministic reduction to standard unification.

108 Conclusion We can probably do much more (algorithmically) with intersection types than (I, at least) thought possible! Principles of bounding complementary to that of rank exist and are both useful and logically interesting

109 Ongoing & Future Work Further work on Scala-integrated, combinatory meta-programming framework and applications to software composition synthesis Type inference and theory of principal elaborations in bounded dimension Theory of abstract vector space structure of elaborations (semimodule over semiring of type substitution actions) More speculative: Integration of CLS with generate-and-test loops Applications in probabilistic program induction and learning Applications to theorem proving: automatic composition of proof tactics?

110 Bibliography I Steffen van Bakel. Strict Intersection Types for the Lambda Calculus. In: ACM Computing Surveys 43.3 (2011). doi: / H. P. Barendregt, M. Coppo, and M. Dezani-Ciancaglini. A Filter Lambda Model and the Completeness of Type Assignment. In: Journal of Symbolic Logic 48.4 (1983), pp doi: / H. P. Barendregt, W. Dekkers, and R. Statman. Lambda Calculus with Types. Perspectives in Logic, Cambridge University Press, isbn: Jan Bessai et al. Combinatory Logic Synthesizer. In: ISoLA 14. Ed. by Tiziana Margaria and Bernhard Steffen. Vol , pp

111 Bibliography II Jan Bessai et al. Mixin Composition synthesis Based on Intersection Types. In: LIPIcs-Leibniz International Proceedings in Informatics. Vol. 38. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik Jan Bessai et al. Combinatory Process Synthesis. In: Leveraging Applications of Formal Methods, Verification and Validation: Foundational Techniques - 7th International Symposium, ISoLA 2016, Imperial, Corfu, Greece, October 10-14, 2016, Proceedings, Part I. 2016, pp doi: / _19. url:

112 Bibliography III Jan Bessai et al. Combinatory Synthesis of Classes using Feature Grammars. In: Proceedings of the 12th International Conference on Formal Aspects of Component Software (FACS 15). Ed. by C. Braga and P.C. Olveczky. Vol Springer, 2016, pp doi: / _7. Jan Bessai et al. Rank 3 Inhabitation of Intersection Types Revisited. In: Proceedings TYPES 2016, 22nd International Conference on Types for Proofs and Programs, Novi Sad, May Antonio Bucciareli, Delia Kesner, and Simona Ronchi Della Rocca. The inhabitation problem for non-idempotent intersection types. In: TCS 2014, Proceedings of 8th IFIP TC 1/WG 2.2 International Conference on Theoretical Computer Science, Rome, Italy, September 1-3, Springer, doi: / \_26.

113 Bibliography IV Marcin Benke, Aleksy Schubert, and Daria Walukiewicz-Chrzaszcz. Synthesis of Functional Programs with Help of First-Order Intuitionistic Logic. In: 1st International Conference on Formal Structures for Computation and Deduction (FSCD 2016). Ed. by Delia Kesner and Brigitte Pientka. Vol. 52. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl Leibniz-Zentrum fuer Informatik, 2016, 12:1 12:16. isbn: doi: url: http: //drops.dagstuhl.de/opus/volltexte/2016/5976. M. Coppo and M. Dezani-Ciancaglini. An Extension of Basic Functionality Theory for Lambda-Calculus. In: Notre Dame Journal of Formal Logic 21 (1980), pp

114 Bibliography V Mario Coppo, Mariangiola Dezani-Ciancaglini, and Betti Venneri. Principal Type Schemes and Lambda-Calculus Semantics. In: To H. B. Curry. Essays on Combinatory Logic, Lambda-calculus and Formalism. Ed.: R. Hindley and J. Seldin. Accademic Press, London, 1980, pp M. Coppo, M. Dezani-Ciancaglini, and B. Venneri. Functional Characters of Solvable Terms. In: Zeitschrift für mathematische Logik und Grundlagen der Mathematik (1981), pp M. Dezani-Ciancaglini and R. Hindley. Intersection Types for Combinatory Logic. In: Theoretical Computer Science (1992), pp

115 Bibliography VI Boris Düdder, Moritz Martens, and Jakob Rehof. Staged Composition Synthesis. In: ESOP 2014, Proceedings of European Symposium on Programming, Grenoble, France Vol LNCS. Springer, 2014, pp Andrej Dudenhefner and Jakob Rehof. Intersection Type Calculi of Bounded Dimension. In: POPL 2017, Proceedings of the 44th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, Paris, France, January Andrej Dudenhefner and Jakob Rehof. Typability in Bounded Dimension. In: LICS 2017, Proceedings of the 32nd ACM/IEEE Symposium on Logic in Computer Science, Reykjavik, Iceland, June

116 Bibliography VII Boris Düdder, Jakob Rehof, and George T. Heineman. Synthesizing Type-Safe Compositions in Feature Oriented Software Designs Using Staged Composition. In: Proceedings of the 19th International Conference on Software Product Line, SPLC 2015, Nashville, TN, USA, July 20-24, , pp doi: / url: Boris Düdder et al. Bounded Combinatory Logic. In: CSL 2012, Proceedings of Computer Science Logic. Vol. 16. LIPIcs. Schloss Dagstuhl, 2012, pp

117 Bibliography VIII Boris Düdder et al. Using Inhabitation in Bounded Combinatory Logic with Intersection Types for Composition Synthesis. In: Proceedings Sixth Workshop on Intersection Types and Related Systems, ITRS 2012, Dubrovnik, Croatia, 29th June Ed. by Stéphane Graham-Lengrand and Luca Paolini. Vol EPTCS. 2012, pp doi: /EPTCS url: T. Freeman and F. Pfenning. Refinement Types for ML. In: Proceedings of PLDI 91. ACM, 1991, pp Jonathan Frankle et al. Example-Directed Synthesis: A Type-Theoretic Interpretation. In: POPL 16. ACM. 2016, pp S. Ghilezan. Strong Normalization and Typability with Intersection Types. In: Notre Dame Journal of Formal Logic 37.1 (1996), pp doi: /ndjfl/

118 Bibliography IX Christian Haack et al. Fully Automatic Adaptation of Software Components Based on Semantic Specifications. In: AMAST. Vol LNCS. Springer, 2002, pp George T. Heineman et al. Towards Migrating Object-Oriented Frameworks to Enable Synthesis of Product Line Members. In: Proceedings of the 19th International Conference on Software Product Line, SPLC 2015, Nashville, TN, USA, July 20-24, , pp doi: / url:

119 Bibliography X George T. Heineman et al. A Long and Winding Road Towards Modular Synthesis. In: Leveraging Applications of Formal Methods, Verification and Validation: Foundational Techniques - 7th International Symposium, ISoLA 2016, Imperial, Corfu, Greece, October 10-14, 2016, Proceedings, Part I. 2016, pp doi: / _21. url: Assaf J. Kfoury et al. Relating Typability and Expressiveness in Finite-Rank Intersection Type Systems (Extended Abstract). In: Proceedings of the fourth ACM SIGPLAN International Conference on Functional Programming (ICFP 99), Paris, France, September 27-29, Ed. by Didier Rémi and Peter Lee. ACM, 1999, pp doi: /

120 Bibliography XI Dariusz Kusmierek. The Inhabitation Problem for Rank Two Intersection Types. In: TLCA 2007, Proceedings of Typed Lambda Calculus and Applications. Vol LNCS. Springer, 2007, pp A. J. Kfoury and J. B. Wells. Principality and Decidable Type Inference for Finite-Rank Intersection Types. In: POPL 1999, Proceedings of the 26th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, San Antonio, TX, USA, January 20-22, , pp doi: / Martin H. Löb. Embedding First Order Predicate Logic in Fragments of Intuitionistic Logic. In: J. Symbolic Logic 41.4 (1976), pp

121 Bibliography XII D. Leivant. Polymorphic Type Inference. In: POPL 1983, Proceedings of the 10th ACM Symposium on Principles of Programming Languages. 1983, pp doi: / Ralph Loader. The undecidability of lambda definability. In: Logic, Meaning and Computation: Essays in Memory of Alonzo Church (2001), pp Samuel Linial and Emil L. Post. Recursive Unsolvability of the Deducibility, Tarski s Completeness and Independence of Axioms Problems of Propositional Calculus. In: Bulletin of the American Mathematical Society 55 (1949), p. 50. G. Pottinger. A Type Assignment for the Strongly Normalizable Lambda-Terms. In: To H. B. Curry: Essays on Combinatory Logic, Lambda Calculus and Formalism. Ed. by J. Hindley and J. Seldin. Academic Press, 1980, pp

122 Bibliography XIII Jakob Rehof. Towards Combinatory Logic Synthesis. In: BEAT 2013, 1st International Workshop on Behavioural Types. ACM, Jakob Rehof and Paweł Urzyczyn. Finite Combinatory Logic with Intersection Types. In: TLCA 2011, Proceedings of Typed Lambda Calculus and Applications. Vol LNCS. Springer, 2011, pp Jakob Rehof and Paweł Urzyczyn. The Complexity of Inhabitation with Explicit Intersection. In: Logic and Program Semantics - Essays Dedicated to Dexter Kozen on the Occasion of His 60th Birthday. Ed. by Robert L. Constable and Alexandra Silva. Vol LNCS. Springer, 2012, pp

123 Bibliography XIV Jakob Rehof and Moshe Y. Vardi. Design and Synthesis from Components. Dagstuhl Seminar In: vol Dagstuhl Reports S. Salvati et al. Urzyczyn and Loader are logically related. In: ICALP 2012, Proceedings of Automata, Languages, and Programming - 39th International Colloquium. Vol LNCS. Springer, 2012, pp doi: / _34. S. Salvati. Recognizability in the Simply Typed Lambda-Calculus. In: WoLLIC 2009, Proceedings of Workshop on Logic, Language, Information and Computation. Ed. by H. Ono, M. Kanazawa, and R. J. G. B. de Queiroz. Vol LNCS. Springer, 2009, pp

124 Bibliography XV Richard Statman. Intuitionistic Propositional Logic is Polynomial-space Complete. In: Theoretical Computer Science 9 (1979), pp doi: / (79) P. Urzyczyn. Inhabitation of Low-Rank Intersection Types. In: TLCA 2009, Proceedings of Typed Lambda Calculus and Applications. Vol LNCS. Springer, 2009, pp doi: / _26. P. Urzyczyn. Inhabitation in Typed Lambda-Calculi (A Syntactic Approach). In: TLCA 97, Typed Lambda Calculi and Applications, Proceedings. Vol LNCS. Springer, 1997, pp doi: / P. Urzyczyn. The Emptiness Problem for Intersection Types. In: Journal of Symbolic Logic 64.3 (1999), pp doi: /

125 Bibliography XVI J. B. Wells. Typability and Type-Checking in the Second-Order lambda-calculus are Equivalent and Undecidable. In: Proceedings of the Ninth Annual Symposium on Logic in Computer Science (LICS 94), Paris, France, July 4-7, , pp doi: /LICS Joe B. Wells and Boris Yakobowski. Graph-Based Proof Counting and Enumeration with Applications for Program Fragment Synthesis. In: LOPSTR Vol LNCS. Springer, 2005, pp Hirofumi Yokouchi. Embedding a Second Order Type System into an Intersection Type System. In: Inf. Comput (1995), pp doi: /inco

Komponenten- und Service-orientierte Softwarekonstruktion

Komponenten- und Service-orientierte Softwarekonstruktion Komponenten- und Service-orientierte Softwarekonstruktion Vorlesung 5: Combinatory Logic Synthesis Jakob Rehof LS XIV Software Engineering TU Dortmund Sommersemester 2015 SS 2015 J. Rehof (TU Dortmund)

More information

Combinatory Logic and Program Synthesis

Combinatory Logic and Program Synthesis Combinatory Logic and Program Synthesis Jakob Rehof Technical University of Dortmund Joint work w. B. Düdder, M. Martens (Dortmund) and P. Urzyczyn (Warsaw) and special thanks to Roger Hindley and the

More information

The Intersection Type Unification Problem

The Intersection Type Unification Problem The Intersection Type Unification Problem Andrej Dudenhefner 1, Moritz Martens 2, and Jakob Rehof 3 1 Department of Computer Science, Technical University of Dortmund, Dortmund, Germany andrej.dudenhefner@cs.tu-dortmund.de

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

Realisability methods of proof and semantics with application to expansion

Realisability methods of proof and semantics with application to expansion Realisability methods of proof and semantics with application to expansion First Year Examination Supervisors : Professor Fairouz Kamareddine and Doctor Joe B. Wells Student : Vincent Rahli ULTRA group,

More information

Inhabitation of Low-Rank Intersection Types

Inhabitation of Low-Rank Intersection Types Inhabitation of Low-Rank Intersection Types Pawe l Urzyczyn Institute of Informatics, University of Warsaw urzy@mimuw.edu.pl Abstract. We prove that the inhabitation problem ( Does there exist a closed

More information

Silvia Ghilezan and Jelena Ivetić

Silvia Ghilezan and Jelena Ivetić PUBLICATIONS DE L INSTITUT MATHÉMATIQUE Nouvelle série, tome 82(96) (2007), 85 91 DOI 102298/PIM0796085G INTERSECTION TYPES FOR λ Gtz -CALCULUS Silvia Ghilezan and Jelena Ivetić Abstract. We introduce

More information

MIXIN COMPOSITION SYNTHESIS BASED ON INTERSECTION TYPES

MIXIN COMPOSITION SYNTHESIS BASED ON INTERSECTION TYPES Logical Methods in Computer Science Vol. 14(1:18)2018, pp. 1 37 https://lmcs.episciences.org/ Submitted Apr. 29, 2016 Published Feb. 27, 2018 MIXIN COMPOSITION SYNTHESIS BASED ON INTERSECTION TYPES JAN

More information

Intersection Type System with de Bruijn Indices

Intersection Type System with de Bruijn Indices Intersection Type System with de Bruijn Indices Daniel Lima Ventura 1 and Mauricio Ayala-Rincón 1 and Fairouz Kamareddine 2 1 Grupo de Teoria da Computação, Dep. de Matemática Universidade de Brasília,

More information

Intersection Synchronous Logic

Intersection Synchronous Logic UnB 2007 p. 1/2 Intersection Synchronous Logic Elaine Gouvêa Pimentel Simona Ronchi della Rocca Luca Roversi UFMG/UNITO, 2007 UnB 2007 p. 2/2 Outline Motivation UnB 2007 p. 2/2 Outline Motivation Intuitionistic

More information

Two-Variable Logic with Counting and Linear Orders

Two-Variable Logic with Counting and Linear Orders Two-Variable Logic with Counting and Linear Orders (Ongoing work) Witold Charatonik Piotr Witkowski Institute of Computer Science University of Wroc law FIT 2015, Warszawa Plan of the talk 1 Motivations

More information

Synthesis of Functional Programs with Help of First-Order Intuitionistic Logic

Synthesis of Functional Programs with Help of First-Order Intuitionistic Logic Synthesis of Functional Programs with Help of First-Order Intuitionistic Logic Marcin Benke 1, Aleksy Schubert 2, and Daria Walukiewicz-Chrząszcz 3 1 Institute of Informatics, University of Warsaw, Warsaw,

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

TERMS FOR NATURAL DEDUCTION, SEQUENT CALCULUS AND CUT ELIMINATION IN CLASSICAL LOGIC

TERMS FOR NATURAL DEDUCTION, SEQUENT CALCULUS AND CUT ELIMINATION IN CLASSICAL LOGIC TERMS FOR NATURAL DEDUCTION, SEQUENT CALCULUS AND CUT ELIMINATION IN CLASSICAL LOGIC SILVIA GHILEZAN Faculty of Engineering, University of Novi Sad, Novi Sad, Serbia e-mail address: gsilvia@uns.ns.ac.yu

More information

Constructive approach to relevant and affine term calculi

Constructive approach to relevant and affine term calculi Constructive approach to relevant and affine term calculi Jelena Ivetić, University of Novi Sad, Serbia Silvia Ghilezan,University of Novi Sad, Serbia Pierre Lescanne, University of Lyon, France Silvia

More information

Intersection Types and Lambda Theories

Intersection Types and Lambda Theories Intersection Types and Lambda Theories M.Dezani-Ciancaglini S.Lusin Abstract We illustrate the use of intersection types as a semantic tool for showing properties of the lattice of λ-theories. Relying

More information

On Typability for Rank-2 Intersection Types with Polymorphic Recursion

On Typability for Rank-2 Intersection Types with Polymorphic Recursion On Typability for Rank-2 Intersection Types with Polymorphic Recursion Tachio Terauchi EECS Department University of California, Berkeley Alex Aiken Computer Science Department Stanford University Abstract

More information

A General Technique for Analyzing Termination in Symmetric Proof Calculi

A General Technique for Analyzing Termination in Symmetric Proof Calculi A General Technique for Analyzing Termination in Symmetric Proof Calculi Daniel J. Dougherty 1, Silvia Ghilezan 2 and Pierre Lescanne 3 1 Worcester Polytechnic Institute, USA, dd@cs.wpi.edu 2 Faculty of

More information

On Modal Logics of Partial Recursive Functions

On Modal Logics of Partial Recursive Functions arxiv:cs/0407031v1 [cs.lo] 12 Jul 2004 On Modal Logics of Partial Recursive Functions Pavel Naumov Computer Science Pennsylvania State University Middletown, PA 17057 naumov@psu.edu June 14, 2018 Abstract

More information

Synthesis Jan Bessai Algebra Signatures Synthesis Jan Bessai Terms Synthesis Type System Sort Translations Inhabitation Target Translation

Synthesis Jan Bessai Algebra Signatures Synthesis Jan Bessai Terms Synthesis Type System Sort Translations Inhabitation Target Translation 2017-06-21 1 / 27 Last Time: Pandoras Box Real Programming Languages mostly informal specifications complex rule systems (ML: approx. 200 rules) lots and lots of variation (c.f. Pure s) sometimes broken

More information

Observability for Pair Pattern Calculi

Observability for Pair Pattern Calculi Observability for Pair Pattern Calculi Antonio Bucciarelli 1, Delia Kesner 2, and Simona Ronchi Della Rocca 3 1,2 Univ Paris Diderot, Sorbonne Paris Cité, PPS, UMR 7126, CNRS, Paris, France 3 Dipartimento

More information

Subtyping and Intersection Types Revisited

Subtyping and Intersection Types Revisited Subtyping and Intersection Types Revisited Frank Pfenning Carnegie Mellon University International Conference on Functional Programming (ICFP 07) Freiburg, Germany, October 1-3, 2007 Joint work with Rowan

More information

Call-by-value non-determinism in a linear logic type discipline

Call-by-value non-determinism in a linear logic type discipline Call-by-value non-determinism in a linear logic type discipline Alejandro Díaz-Caro? Giulio Manzonetto Université Paris-Ouest & INRIA LIPN, Université Paris 13 Michele Pagani LIPN, Université Paris 13

More information

Completeness Theorems and λ-calculus

Completeness Theorems and λ-calculus Thierry Coquand Apr. 23, 2005 Content of the talk We explain how to discover some variants of Hindley s completeness theorem (1983) via analysing proof theory of impredicative systems We present some remarks

More information

Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete.

Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete. Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete. Yevgeny Kazakov and Hans de Nivelle MPI für Informatik, Saarbrücken, Germany E-mail:

More information

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

Outline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018

Outline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018 Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 3. Logarithmic Space Reinhard Pichler Institute of Logic and Computation DBAI Group TU Wien 3. Logarithmic Space 3.1 Computational

More information

The Complexity of Transducer Synthesis from Multi-Sequential Specifications

The Complexity of Transducer Synthesis from Multi-Sequential Specifications The Complexity of Transducer Synthesis from Multi-Sequential Specifications Léo Exibard 12 Emmanuel Filiot 13 Ismaël Jecker 1 Tuesday, August 28 th, 2018 1 Université libre de Bruxelles 2 LIS Aix-Marseille

More information

On Typability for Rank-2 Intersection Types with Polymorphic Recursion

On Typability for Rank-2 Intersection Types with Polymorphic Recursion On Typability for Rank-2 Intersection Types with Polymorphic Recursion Tachio Terauchi Alex Aiken Electrical Engineering and Computer Sciences University of California at Berkeley Technical Report No.

More information

The Minimal Graph Model of Lambda Calculus

The Minimal Graph Model of Lambda Calculus The Minimal Graph Model of Lambda Calculus Antonio Bucciarelli 1 and Antonino Salibra 2 1 Université Paris 7, Equipe PPS, 2 place Jussieu, 72251 Paris Cedex 05, France buccia@pps.jussieu.fr, 2 Università

More information

An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras

An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California 1. Residuated Lattices with iteration 2. Background: Semirings and Kleene algebras 3. A Gentzen system

More information

On Elementary Linear Logic and polynomial time (Extended Abstract)

On Elementary Linear Logic and polynomial time (Extended Abstract) On Elementary Linear Logic and polynomial time (Extended Abstract) Patrick Baillot ENS Lyon, Université de Lyon, LIP (UMR 5668 CNRS-ENSL-INRIA-UCBL) 1 Introduction Linear logic (LL) [Gir87] has been used

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

Safety Analysis versus Type Inference for Partial Types

Safety Analysis versus Type Inference for Partial Types Safety Analysis versus Type Inference for Partial Types Jens Palsberg palsberg@daimi.aau.dk Michael I. Schwartzbach mis@daimi.aau.dk Computer Science Department, Aarhus University Ny Munkegade, DK-8000

More information

Lecture Notes on Combinatory Modal Logic

Lecture Notes on Combinatory Modal Logic Lecture Notes on Combinatory Modal Logic 15-816: Modal Logic Frank Pfenning Lecture 9 February 16, 2010 1 Introduction The connection between proofs and program so far has been through a proof term assignment

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

More information

Interval Temporal Logics over Strongly Discrete Linear Orders: the Complete Picture

Interval Temporal Logics over Strongly Discrete Linear Orders: the Complete Picture Interval Temporal Logics over Strongly Discrete Linear Orders: the Complete Picture D.Bresolin, D. Della Monica, A. Montanari, P. Sala, G. Sciavicco ICE-TCS, School of Computer Science, Reykjavik University,

More information

Intersection and Singleton Type Assignment Characterizing Finite Böhm-Trees

Intersection and Singleton Type Assignment Characterizing Finite Böhm-Trees Information and Computation 178, 1 11 (2002) doi:101006/inco20022907 Intersection and Singleton Type Assignment Characterizing Finite Böhm-Trees Toshihiko Kurata 1 Department of Mathematics, Tokyo Metropolitan

More information

Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death

Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer Science University of Virginia www.cs.virginia.edu/~njb2b/theory

More information

Lambda Calculus with Types. Henk Barendregt ICIS Radboud University Nijmegen The Netherlands

Lambda Calculus with Types. Henk Barendregt ICIS Radboud University Nijmegen The Netherlands Lambda Calculus with Types Henk Barendregt ICIS Radboud University Nijmegen The Netherlands New book Cambridge University Press / ASL Perspectives in Logic, 2011 Lambda Calculus with Types (698 pp) Authors:

More information

Extended Abstract: Reconsidering Intuitionistic Duality

Extended Abstract: Reconsidering Intuitionistic Duality Extended Abstract: Reconsidering Intuitionistic Duality Aaron Stump, Harley Eades III, Ryan McCleeary Computer Science The University of Iowa 1 Introduction This paper proposes a new syntax and proof system

More information

On the use of guards for logics with data

On the use of guards for logics with data Author manuscript, published in "Proceedings of MFCS 2011, Warsaw : Poland (2011)" DOI : 10.1007/978-3-642-22993-0_24 On the use of guards for logics with data Thomas Colcombet 1, Clemens Ley 2, Gabriele

More information

Intelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University

Intelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University Intelligent Agents Formal Characteristics of Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University Extensions to the slides for chapter 3 of Dana Nau with contributions by

More information

Call-by-Value Non-determinism in a Linear Logic Type Discipline

Call-by-Value Non-determinism in a Linear Logic Type Discipline Call-by-Value Non-determinism in a Linear Logic Type Discipline Alejandro Díaz-Caro 1,, Giulio Manzonetto 1,2, and Michele Pagani 1,2 1 Université Paris 13, Sorbonne Paris Cité, LIPN, F-93430, Villetaneuse,

More information

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65 Undecidable Problems Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, 2018 1/ 65 Algorithmically Solvable Problems Let us assume we have a problem P. If there is an algorithm solving

More information

Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic

Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic Mauro Ferrari 1, Camillo Fiorentini 2 1 DiSTA, Univ. degli Studi dell Insubria, Varese, Italy 2 DI, Univ.

More information

Church and Curry: Combining Intrinsic and Extrinsic Typing

Church and Curry: Combining Intrinsic and Extrinsic Typing Church and Curry: Combining Intrinsic and Extrinsic Typing Frank Pfenning Dedicated to Peter Andrews on the occasion of his retirement Department of Computer Science Carnegie Mellon University April 5,

More information

α-recursion Theory and Ordinal Computability

α-recursion Theory and Ordinal Computability α-recursion Theory and Ordinal Computability by Peter Koepke University of Bonn 1 3. 2. 2007 Abstract Motivated by a talk of S. D. Friedman at BIWOC we show that the α-recursive and α-recursively enumerable

More information

Reasoning about call-by-need by means of types

Reasoning about call-by-need by means of types Reasoning about call-by-need by means of types Delia Kesner Univ. Paris-Diderot, SPC, IRIF, CNRS, France Abstract. We first develop a (semantical) characterization of call-byneed normalization by means

More information

Simulation Preorder on Simple Process Algebras

Simulation Preorder on Simple Process Algebras Simulation Preorder on Simple Process Algebras Antonín Kučera and Richard Mayr Faculty of Informatics MU, Botanická 68a, 6000 Brno, Czech Repubic, tony@fi.muni.cz Institut für Informatik TUM, Arcisstr.,

More information

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005 Complexity Theory Knowledge Representation and Reasoning November 2, 2005 (Knowledge Representation and Reasoning) Complexity Theory November 2, 2005 1 / 22 Outline Motivation Reminder: Basic Notions Algorithms

More information

Contents Propositional Logic: Proofs from Axioms and Inference Rules

Contents Propositional Logic: Proofs from Axioms and Inference Rules Contents 1 Propositional Logic: Proofs from Axioms and Inference Rules... 1 1.1 Introduction... 1 1.1.1 An Example Demonstrating the Use of Logic in Real Life... 2 1.2 The Pure Propositional Calculus...

More information

Using models to model-check recursive schemes

Using models to model-check recursive schemes Using models to model-check recursive schemes S Salvati and I Walukiewicz Université de Bordeaux, INRIA, CNRS, LaBRI UMR5800 Abstract We propose a model-based approach to the model checking problem for

More information

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

Types as Resources for Classical Natural Deduction

Types as Resources for Classical Natural Deduction Types as Resources for Classical Natural Deduction Delia Kesner 1 and Pierre Vial 2 1 IRIF (CNRS and Université Paris-Diderot), Paris, France 2 IRIF (CNRS and Université Paris-Diderot), Paris, France Abstract

More information

Rank-2 intersection for recursive definitions

Rank-2 intersection for recursive definitions Fundamenta Informaticae XXI (2001) 1001 1044 1001 IOS Press Rank-2 intersection for recursive definitions Ferruccio Damiani Dipartimento di Informatica Università di Torino Corso Svizzera 185, I-10149

More information

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

More information

Principles of Knowledge Representation and Reasoning

Principles of Knowledge Representation and Reasoning Principles of Knowledge Representation and Reasoning Complexity Theory Bernhard Nebel, Malte Helmert and Stefan Wölfl Albert-Ludwigs-Universität Freiburg April 29, 2008 Nebel, Helmert, Wölfl (Uni Freiburg)

More information

Preuves de logique linéaire sur machine, ENS-Lyon, Dec. 18, 2018

Preuves de logique linéaire sur machine, ENS-Lyon, Dec. 18, 2018 Université de Lorraine, LORIA, CNRS, Nancy, France Preuves de logique linéaire sur machine, ENS-Lyon, Dec. 18, 2018 Introduction Linear logic introduced by Girard both classical and intuitionistic separate

More information

Solvability in Resource Lambda-Calculus

Solvability in Resource Lambda-Calculus Solvability in Resource Lambda-Calculus Michele Pagani and Simona Ronchi della Rocca Dipartimento di Informatica Università di Torino C.so Svizzera 185 10149 Torino (IT) {pagani,ronchi}@di.unito.it Abstract.

More information

AN INTRODUCTION TO COMPUTABILITY THEORY

AN INTRODUCTION TO COMPUTABILITY THEORY AN INTRODUCTION TO COMPUTABILITY THEORY CINDY CHUNG Abstract. This paper will give an introduction to the fundamentals of computability theory. Based on Robert Soare s textbook, The Art of Turing Computability:

More information

Soft Linear Logic and the Polynomial Hierarchy (Extended Abstract)

Soft Linear Logic and the Polynomial Hierarchy (Extended Abstract) Soft Linear Logic and the Polynomial Hierarchy (Extended Abstract) Brian F. Redmond Department of Computing, Mathematics and Statistical Sciences Grande Prairie Regional College 10726-106 Avenue, Grande

More information

Lambda Calculus. Andrés Sicard-Ramírez. Semester Universidad EAFIT

Lambda Calculus. Andrés Sicard-Ramírez. Semester Universidad EAFIT Lambda Calculus Andrés Sicard-Ramírez Universidad EAFIT Semester 2010-2 Bibliography Textbook: Hindley, J. R. and Seldin, J. (2008). Lambda-Calculus and Combinators. An Introduction. Cambridge University

More information

The Curry-Howard Isomorphism

The Curry-Howard Isomorphism The Curry-Howard Isomorphism Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) The Curry-Howard Isomorphism MFES 2008/09

More information

LOGIC PROPOSITIONAL REASONING

LOGIC PROPOSITIONAL REASONING LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1

More information

Kleene realizability and negative translations

Kleene realizability and negative translations Q E I U G I C Kleene realizability and negative translations Alexandre Miquel O P. D E. L Ō A U D E L A R April 21th, IMERL Plan 1 Kleene realizability 2 Gödel-Gentzen negative translation 3 Lafont-Reus-Streicher

More information

Static Program Analysis using Abstract Interpretation

Static Program Analysis using Abstract Interpretation Static Program Analysis using Abstract Interpretation Introduction Static Program Analysis Static program analysis consists of automatically discovering properties of a program that hold for all possible

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

Origin in Mathematical Logic

Origin in Mathematical Logic Lambda Calculus Origin in Mathematical Logic Foundation of mathematics was very much an issue in the early decades of 20th century. Cantor, Frege, Russel s Paradox, Principia Mathematica, NBG/ZF Origin

More information

Characterizing strong normalization in the Curien-Herbelin symmetric lambda calculus: extending the Coppo-Dezani heritage

Characterizing strong normalization in the Curien-Herbelin symmetric lambda calculus: extending the Coppo-Dezani heritage Characterizing strong normalization in the Curien-Herbelin symmetric lambda calculus: extending the Coppo-Dezani heritage Daniel J. Dougherty a, Silvia Ghilezan b, Pierre Lescanne c a Worcester Polytechnic

More information

Scuola Estiva di Logica Gargnano, August

Scuola Estiva di Logica Gargnano, August Linear Logic, Linear Logic, Università degli Studi di Torino Scuola Estiva di Logica 2015 Gargnano, August 28 2015 Complexity theory Linear Logic, study of complexity classes and their relations define

More information

Unicity of type inhabitants; a Work in Progress

Unicity of type inhabitants; a Work in Progress Unicity of type inhabitants; a Work in Progress Gabriel Scherer Gallium (INRIA Paris-Rocquencourt) May 30, 2013 Gabriel Scherer (Gallium) Unique Inhabitants; WIP May 30, 2013 1 / 27 What? This talk is

More information

Principal Typings in a Restricted Intersection Type System for Beta Normal Forms with de Bruijn Indices

Principal Typings in a Restricted Intersection Type System for Beta Normal Forms with de Bruijn Indices Principal Typings in a Restricted Intersection Type System for Beta Normal Forms with de Bruijn Indices Daniel Lima Ventura 1 and Mauricio Ayala-Rincón 1 and Fairouz Kamareddine 2 1 Grupo de Teoria da

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

Type Theory and Constructive Mathematics. Type Theory and Constructive Mathematics Thierry Coquand. University of Gothenburg

Type Theory and Constructive Mathematics. Type Theory and Constructive Mathematics Thierry Coquand. University of Gothenburg Type Theory and Constructive Mathematics Type Theory and Constructive Mathematics Thierry Coquand University of Gothenburg Content An introduction to Voevodsky s Univalent Foundations of Mathematics The

More information

Introduction to Kleene Algebra Lecture 14 CS786 Spring 2004 March 15, 2004

Introduction to Kleene Algebra Lecture 14 CS786 Spring 2004 March 15, 2004 Introduction to Kleene Algebra Lecture 14 CS786 Spring 2004 March 15, 2004 KAT and Hoare Logic In this lecture and the next we show that KAT subsumes propositional Hoare logic (PHL). Thus the specialized

More information

Logical Closure Properties of Propositional Proof Systems

Logical Closure Properties of Propositional Proof Systems Logical Closure Properties of Propositional Proof Systems (Extended Abstract) Olaf Beyersdorff Institut für Theoretische Informatik, Leibniz Universität Hannover, Germany beyersdorff@thi.uni-hannover.de

More information

Lecture Notes on Sequent Calculus

Lecture Notes on Sequent Calculus Lecture Notes on Sequent Calculus 15-816: Modal Logic Frank Pfenning Lecture 8 February 9, 2010 1 Introduction In this lecture we present the sequent calculus and its theory. The sequent calculus was originally

More information

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages COMP/MATH 300 Topics for Spring 2017 June 5, 2017 Review and Regular Languages Exam I I. Introductory and review information from Chapter 0 II. Problems and Languages A. Computable problems can be expressed

More information

Non-emptiness Testing for TMs

Non-emptiness Testing for TMs 180 5. Reducibility The proof of unsolvability of the halting problem is an example of a reduction: a way of converting problem A to problem B in such a way that a solution to problem B can be used to

More information

From Monadic Second-Order Definable String Transformations to Transducers

From Monadic Second-Order Definable String Transformations to Transducers From Monadic Second-Order Definable String Transformations to Transducers Rajeev Alur 1 Antoine Durand-Gasselin 2 Ashutosh Trivedi 3 1 University of Pennsylvania 2 LIAFA, Université Paris Diderot 3 Indian

More information

Automata Theoretic Account of Proof Search

Automata Theoretic Account of Proof Search Automata Theoretic Account of Proof Search Aleksy Schubert 1, Wil Dekkers 2, and Henk P. Barendregt 2 1 University of Warsaw, ul. Banacha 2, 02-097 Warsaw, Poland alx@mimuw.edu.pl 2 Radboud University,

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 15 Ana Bove May 17th 2018 Recap: Context-free Languages Chomsky hierarchy: Regular languages are also context-free; Pumping lemma

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

More information

Introduction to Turing Machines

Introduction to Turing Machines Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability

More information

Introduction to dependent type theory. CIRM, May 30

Introduction to dependent type theory. CIRM, May 30 CIRM, May 30 Goals of this presentation Some history and motivations Notations used in type theory Main goal: the statement of main properties of equality type and the univalence axiom First talk P ropositions

More information

ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS

ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS Bulletin of the Section of Logic Volume 18/2 (1989), pp. 57 61 reedition 2006 [original edition, pp. 57 62] A. L. Rastsvetaev ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS 1. Introduction The

More information

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

Model Checking for Modal Intuitionistic Dependence Logic

Model Checking for Modal Intuitionistic Dependence Logic 1/71 Model Checking for Modal Intuitionistic Dependence Logic Fan Yang Department of Mathematics and Statistics University of Helsinki Logical Approaches to Barriers in Complexity II Cambridge, 26-30 March,

More information

Classical Combinatory Logic

Classical Combinatory Logic Computational Logic and Applications, CLA 05 DMTCS proc. AF, 2006, 87 96 Classical Combinatory Logic Karim Nour 1 1 LAMA - Equipe de logique, Université de Savoie, F-73376 Le Bourget du Lac, France Combinatory

More information

Theory of Computation (IX) Yijia Chen Fudan University

Theory of Computation (IX) Yijia Chen Fudan University Theory of Computation (IX) Yijia Chen Fudan University Review The Definition of Algorithm Polynomials and their roots A polynomial is a sum of terms, where each term is a product of certain variables and

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

Decidable structures between Church-style and Curry-style

Decidable structures between Church-style and Curry-style Decidable structures between Church-style and Curry-style Ken-etsu Fujita 1 and Aleksy Schubert 2 1 Gunma University Tenjin-cho 1-5-1, Kiryu 376-8515, Japan fujita@cs.gunma-u.ac.jp 2 The University of

More information

Advanced Lambda Calculus Lecture 5

Advanced Lambda Calculus Lecture 5 Advanced Lambda Calculus Lecture 5 The fathers Alonzo Church (1903-1995) as mathematics student at Princeton University (1922 or 1924) Haskell B. Curry (1900-1982) as BA in mathematics at Harvard (1920)

More information

Implicit Computational Complexity

Implicit Computational Complexity Implicit Computational Complexity Simone Martini Dipartimento di Scienze dell Informazione Università di Bologna Italy Bertinoro International Spring School for Graduate Studies in Computer Science, 6

More information

TheTwo-VariableGuardedFragmentwith Transitive Guards Is 2EXPTIME-Hard

TheTwo-VariableGuardedFragmentwith Transitive Guards Is 2EXPTIME-Hard TheTwo-VariableGuardedFragmentwith Transitive Guards Is 2EXPTIME-Hard Emanuel Kieroński Institute of Computer Science University of Wroc law ul. Przesmyckiego 20, 51-151 Wroc law, Poland kiero@ii.uni.wroc.pl

More information

Recent Developments in and Around Coaglgebraic Logics

Recent Developments in and Around Coaglgebraic Logics Recent Developments in and Around Coaglgebraic Logics D. Pattinson, Imperial College London (in collaboration with G. Calin, R. Myers, L. Schröder) Example: Logics in Knowledge Representation Knowledge

More information

Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky. Radboud University Nijmegen. March 5, 2012

Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky. Radboud University Nijmegen. March 5, 2012 1 λ Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky Radboud University Nijmegen March 5, 2012 2 reading Femke van Raamsdonk Logical Verification Course Notes Herman Geuvers Introduction to

More information