, Since Thr E (P ) is a countable set, let i be an injection from Thr E (P )/ ? to N \ {0, 1}. thread. Notice that ? asc is functional: if e 1 ? asc e 2 , we write e 2 = asc

, If (a 1 , c 1 ) ? asc (a 2 , c 2 ) then ?a 3 ? {0, 1} *, vol.2

, As in Sec. 11.1.3, we notice that, in a thread, every occurrence has the same applicative depth

, ? If e = a ? supp mut (P ), then ad(e) = ad(a)

, Asc(e) = e. As noted in Observation 11.1, p. 241, a top ascendant is either located in an ax-node or an abs-node (asc is total on app-nodes), motivating the notion of syntactic polarity (see Sec. 11.1.2 for examples), We set, for all e ? bisupp mut (P ), Asc(e) = asc i (e), where i is maximal (i.e. asc i (e) is defined, but not asc i+1 (e)). Thus, Asc(e) is the top ascendant of e. Remark that if e = (a, ?) with a ? Ax P or e = a ? supp mut (P )

, ? If thr(e) = ? and Pol

, ? If ? is left/right-consumed at e and Pol(e) = ? (resp. Pol(e) = )

, Since ? pi also defines an injective function and p 1 ? pi p 2 implies that p 1 (in a ?x) and p 2 (in an axiom) do not have ascendants, compare with Lemma, vol.13, issue.6

, Lemma 13.6 means an edge thread can have at most two connex components, THE SURJECTIVITY OF THE COLLAPSE OF SEQUENTIAL INTERSECTION TYPES Lemmas 13.5 and 13.6 may be illustrated by Fig. 11.1, p.240

, ? If the top occurrence of an ascendant thread is in an ax-rule typing a variable x s.t. x is not

, because if (a, c) ? E(P ), t(a) = ?x and (a, c) does not have an ascendant, then (1) 1 is not a prefix of c (if we had c = 1 · c 0 , then (a · 0, c 0 ) would be an ascendant of, ? Since we consider threads of mutable edges, no thread can have only negative occurrences (contrary to the blue thread in Fig. 11.1)

?. , Thus, c = k · c 0 for some k ? N \ {0, 1} and (a, c) has a positive polar inverse which is (pos(a · 0

, The referent of ?, denoted ref(?) is the top ascendant of the positive ascendant thread included in ?

, ? A thread whose referent is an argument referent (resp. an axiom referent resp. an inner referent) is said to be an argument thread (resp. an axiom thread, resp. an inner thread)

, The applicative depth of ?, denoted ad(?), is defined by ad(?) = ad(ref(?))

?. Let, . {?, and . Thr, as observed in Sec. 11.1.3. The referent of a thread ? is the unique element of the intersection ? ?ref(P ), we have, for all e ? ?, ad(e) ad(?), vol.13

, We extended the non-idempotent intersection types of the ?-calculus into non-idempotent intersection and union types for the ? µ-calculus. This allowed us to provide typetheoretic characterizations of head and strong normalization in the ? µ-calculus, along with upper bounds to the length of the head reduction strategy and of all reductions sequences in the former and in the latter case respectively, Perspectives on Part II: the ? µ-Calculus, vol.184

, Obtaining exact bounds for normalizing reduction sequence (instead of just upper bounds) à la B-L, vol.14

, Proving that inhabitation is decidable as for non-idempotent intersection

, Studying the models associated e.g., to H ?µ , investigating the quantitative to qualitative collapse as in, vol.42

, Providing quantitative inter. and union. types for other classical calculi, e.g., the ?µ?µ?µ?µ, vol.33

, Simultaneously, we gave a semantic proof that the hereditary head reduction strategy is complete for (infinitary) weak normalization in the infinitary calculus ? 001 , which is an extension of arguments that were hitherto used in the finite case. Last, we characterized the set of hereditary permutations by means of S-types, which gives a positive answer to TLCA Problem # 20. Many natural extensions of these contributions come to mind (conclusion on p. 232): Infinitary normalization and system S, beyond Klop's question ? Identifying other sets of Böhm trees (besides hereditary permutations) that can be characterized with system S. ? Characterizing strong normalization in ? 001. ? Extending the characterization of WN (and possibly SN) to the other infinitary calculi ? 111 and ? 101, Perspective on Part III: Infinitary Normalization We provided a type-theoretic characterization of the set of hereditary head normalizing ?-terms, thus answering positively to Klop's question

, Perspective on Part IV: Non-Productive Reduction

=. {(?,-?-)-|-r-?-t-:-?-},

, ? Can we extract a tree-like semantics from R? ? Applications to observational theories (TLCA Problem # 18), possible new semantic proofs, etc. ? Is the collapse from R w to D w (irrelevant non-idempotent intersection to irrelevant idempotent intersection) surjective? ? Investigating whether the proofs of Chapters 12 and and 13 could be reformulated, ? Studying the equational theory of R. ? Does infinitary subject expansion hold

, An intersection type system is then defined as a colored operad (i.e. a symmetric multicategory with possibly more than one object) endowed with 2-arrows, that is, arrows between arrows: a multimorphism generalizes the notion of typed judgment ? t : B, where t is now thought as a multimorphism from ? to B. Intuitively, there is a 2-arrow from ? t : B to ? t : B if the latter judgment is obtained from the former by subject reduction steps. An intersection type system is built from a given restriction of the ?-calculus (e.g., the set of ?-terms endowed with head reduction) and a given subset of the simply typed polyadic calculus by a pullback construction, inspired form the Grothendieck construction. This framework enables us to almost automatically build new systems of intersection types in this way, Polyadic Approximations and Fibrations and Intersection Types: a categorical interpretation of intersection type theory We conclude by saying a few words about a work that was not presented in this thesis, that provides a categorical understanding of intersection type systems (whereas we have been more focused on the "concrete machinery" of typing throughout this document)

S. Abramsky and C. Ong, Full abstraction in the lazy lambda calculus, Inf. Comput, vol.105, issue.2, pp.159-267, 1993.
DOI : 10.1006/inco.1993.1044

URL : https://doi.org/10.1006/inco.1993.1044

B. Accattoli, E. Bonelli, D. Kesner, and C. Lombardi, A nonstandard standardization theorem, Proceedings of the 41st Annual ACM Symposium on Principles of Programming Languages
DOI : 10.1145/2535838.2535886

B. Accattoli and D. Kesner, The structural lambda-calculus, Proceedings of 24th EACSL Conference on Computer Science Logic, vol.6247, pp.381-395, 2010.
URL : https://hal.archives-ouvertes.fr/hal-00528228

S. Amini and T. Erhard, On Classical PCF, Linear Logic and the MIX Rule, 24th EACSL Annual Conference on Computer Science Logic (CSL 2015), volume 41 of Leibniz International Proceedings in Informatics (LIPIcs), pp.582-596, 2015.

Y. Andou, Church-rosser property of a simple reduction for full first-order classical natural deduction, Annals of Pure Applied Logic, vol.119, issue.1-3, pp.225-237, 2003.

Z. M. Ariola, H. Herbelin, and A. Saurin, Classical call-by-need and duality, Typed Lambda Calculi and Applications10th International Conference, TLCA 2011, vol.6690, pp.27-44, 2011.
DOI : 10.1007/978-3-642-21691-6_6

URL : https://hal.archives-ouvertes.fr/inria-00630156

D. Baelde, A. Doumane, and A. Saurin, Infinitary proof theory: the multiplicative additive case, 25th EACSL Annual Conference on Computer Science Logic, CSL 2016, vol.62, pp.1-42, 2016.
URL : https://hal.archives-ouvertes.fr/hal-01339037

H. Barendregt, The Lambda-Calculus: Its Syntax and Sematics. Ellis Horwood series in computers and their applications, 1985.

H. Barendregt, M. Coppo, and M. Dezani-ciancaglini, A filter lambda model and the completeness of type assignment, Bulletin of Symbolic Logic, vol.48, pp.931-940, 1983.

H. Barendregt and J. W. Klop, Applications of infinitary lambda calculus, Inf. Comput, vol.207, issue.5, pp.559-582, 2009.
DOI : 10.1016/j.ic.2008.09.003

URL : https://doi.org/10.1016/j.ic.2008.09.003

A. Berarducci, Infinite lambda-calculus and non-sensible models, Lecture Notes in Pure and Applied Mathematics, vol.180, pp.339-377, 1996.
DOI : 10.1201/9780203748671-17

A. Berarducci and M. Dezani-ciancaglini, Infinite lambdacalculus and types, Theor. Comput. Sci, vol.212, issue.1-2, pp.29-75, 1999.

A. Berarducci and B. Intrigila, Some new results on easy lambdaterms, Theor. Comput. Sci, vol.121, issue.1&2, pp.71-88, 1993.
DOI : 10.1016/0304-3975(93)90084-7

URL : https://doi.org/10.1016/0304-3975(93)90084-7

A. Bernadet and S. Lengrand, Complexity of strongly normalising ?terms via non-idempotent intersection types, Foundations of Software Science and Computation Structures (FOSSACS), vol.6604, 2011.
DOI : 10.1007/978-3-642-19805-2_7

URL : https://hal.archives-ouvertes.fr/hal-01110489

A. Bernadet and S. Lengrand, Non-idempotent intersection types and strong normalisation, Logical Methods in Computer Science, vol.9, issue.4, 2013.
DOI : 10.2168/lmcs-9(4:3)2013

URL : https://hal.archives-ouvertes.fr/hal-00906778

A. Bucciarelli, A. Carraro, G. Favro, and A. Salibra, Graph easy sets of mute lambda terms, Theor. Comput. Sci, vol.629, pp.51-63, 2016.
DOI : 10.1016/j.tcs.2015.12.024

URL : https://iris.unive.it/bitstream/10278/3664684/1/tcs-muti-revisione-23-novembre-ore19.pdf

A. Bucciarelli and T. Ehrhard, On phase semantics and denotational semantics: the exponentials, Ann. Pure Appl. Logic, vol.109, issue.3, pp.205-241, 2001.
DOI : 10.1016/s0168-0072(00)00056-7

URL : https://hal.archives-ouvertes.fr/hal-00527042

A. Bucciarelli, T. Ehrhard, and G. Manzonetto, Not enough points is enough, Computer Science Logic, 21st International Workshop, vol.4646, pp.298-312, 2007.
URL : https://hal.archives-ouvertes.fr/hal-00148820

A. Bucciarelli, D. Kesner, and S. Rocca, The inhabitation problem for non-idempotent intersection types, vol.38, pp.341-354
DOI : 10.1007/978-3-662-44602-7_26

URL : https://hal.archives-ouvertes.fr/hal-01402082

A. Bucciarelli, D. Kesner, and D. Ventura, Strong normalization through intersection types and memory, Electr. Notes Theor. Comput. Sci, vol.323, pp.75-91, 2016.
DOI : 10.1016/j.entcs.2016.06.006

URL : https://doi.org/10.1016/j.entcs.2016.06.006

A. Bucciarelli, D. Kesner, and D. Ventura, Non-idempotent intersection types for the lambda-calculus. Mathematical Structures in Computer Science, 2017.

F. Cardone and J. R. Hindley, Lambda-Calculus and Combinators in the 20th Century, volume 5 of Handbook of the History of Logic, 2009.

C. Daniel-de, Sémantique de la logique linéaire et temps de calcul, 2007.

C. Daniel-de, Execution time of lambda terms via denotational semantics and intersection types. Mathematical Structures in Computer Science, 2017.

A. Church, A Note on the Entscheidungsproblem, J. Symb. Log, vol.1, issue.1, pp.40-41, 1936.
DOI : 10.2307/2269326

A. Church, An unsolvable problem of elementary number theory, Amer. J. of Math, issue.58, pp.345-363, 1936.
DOI : 10.2307/2371045

A. Church, A formulation of the simple theory of types, J. Symb. Log, vol.5, issue.2, pp.56-68, 1940.

M. Coppo and M. Dezani-ciancaglini, A new type assignment for lambda-terms, Archive for Mathematical Logic, vol.19, pp.139-156, 1978.
DOI : 10.1007/bf02011875

M. Coppo and M. Dezani-ciancaglini, An extension of the basic functionality theory for the ?-calculus, Notre Dame Journal of Formal Logic, vol.4, pp.685-693, 1980.

T. Coquand, Une théorie des constructions, 1985.

T. Coquand and G. Huet, Constructions: A higher order proof system for mechanizing mathematics, European Conference on Computer Algebra, vol.85, pp.151-184, 1985.
DOI : 10.1007/3-540-15983-5_13

URL : https://hal.archives-ouvertes.fr/inria-00076155

T. Coquand and C. Paulin-mohring, Indutively defined types, Proceedings of Colog'88, vol.41

. Springer-verlag, , 1990.

P. , L. Curien, and H. Herbelin, The duality of computation, Proceedings of the Fifth ACM SIGPLAN International Conference on Functional Programming (ICFP '00), pp.233-243, 2000.
URL : https://hal.archives-ouvertes.fr/inria-00156377

B. Haskell, R. Curry, and . Feys, Combinatory Logic, volume I, 1958.

L. Czajka, A coinductive confluence proof for infinitary lambda-calculus, Rewriting and Typed Lambda Calculi-Joint International Conference, vol.8560, pp.164-178, 2014.

F. Damiani and P. Giannini, A decidable intersection type system based on relevance, vol.55, pp.707-725

E. D. Benedetti and S. Rocca, Bounding normalization time through intersection types, vol.51, pp.48-57

, Proceedings of the 8th International Conference on Theoretical Computer Science (TCS), vol.8705, 2014.

J. Daniel, S. Dougherty, P. Ghilezan, and . Lescanne, Characterizing strong normalization in the curien-herbelin symmetric lambda calculus: Extending the coppo-dezani heritage, Theoretical Computer Science, vol.398, issue.1-3, pp.114-128, 2008.

A. Dudenhefner and J. Rehof, Intersection type calculi of bounded dimension, Proceedings of the 44th ACM SIGPLAN Symposium on Principles of Programming Languages, pp.653-665, 2017.

A. Dudenhefner and J. Rehof, Typability in bounded dimension, pp.1-12

T. Ehrhard, Collapsing non-idempotent intersection types, Proceedings of 26th EACSL Conference on Computer Science Logic, vol.16, pp.259-273, 2012.
URL : https://hal.archives-ouvertes.fr/hal-00712219

J. Endrullis, D. Helle-hvid-hansen, A. Hendriks, A. Polonsky, and . Silva, A coinductive framework for infinitary rewriting and equational reasoning, 26th International Conference on Rewriting Techniques and Applications, RTA 2015, vol.36, pp.143-159, 2015.

P. Gardner, Discovering needed reductions using type theory, Hagiya and Mitchell, vol.55, pp.555-574

G. Gentzen, Untersuchungen über das logische schließen, Mathematische Zeitschrift, issue.39, pp.405-431, 1934.

J. Girard, Une extension de l'interprétation de Gödeì l'analyse, et son application à l'élimination des coupures dans l'analyse et la théorie des types, Proceedings of the Scandinavian Logic Symposium, 1971.

J. Girard, Interprétation fonctionnelle et élimination des coupures dans l'arithmétique d'ordre supérieur, 1972.

J. Girard, Linear logic, Theoretical Computer Science, vol.50, pp.1-102, 1987.
URL : https://hal.archives-ouvertes.fr/inria-00075966

J. Girard, Locus solum: From the rules of logic to the logic of rules, Mathematical Structures in Computer Science, vol.11, issue.3, pp.301-506, 2001.

J. Girard, Y. Lafont, and P. Taylor, Proofs and Types, 1990.

S. Graham, -. , and L. Paolini, Proceedings of the Sixth Workshop on Intersection Types and Related Systems (ITRS), vol.121, 2012.
URL : https://hal.archives-ouvertes.fr/hal-00912611

C. Grellois and P. Melliès, An infinitary model of linear logic, Foundations of Software Science and Computation Structures-18th International Conference, FoSSaCS 2015, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2015, vol.9034, pp.41-55, 2015.

C. Grellois and P. Melliès, Relational semantics of linear logic and higher-order model checking, 24th EACSL Annual Conference on Computer Science Logic, CSL 2015, vol.41, pp.260-276, 2015.

T. Griffin, A Formulae-as-Types Notion of Control, 17th Annual ACM Symposium on Principles of Programming Languages (POPL), pp.47-58, 1990.
DOI : 10.1145/96709.96714

M. Hagiya and J. C. Mitchell, Theoretical Aspects of Computer Software, International Conference TACS '94, vol.789, 1994.

J. , R. Hindley, and J. P. Seldin, Introduction to Combinators and Lambda-Calculus, 1980.

G. Jacopini, A condition for identifying two elements of whatever model of combinatory logic, Lambda-Calculus and Computer Science Theory, Proceedings of the Symposium Held in Rome, vol.37, pp.213-219, 1975.

R. Kennaway, J. W. Klop, M. R. Sleep, and F. Vries, Infinitary lambda calculus. Theor. Comput. Sci, vol.175, issue.1, pp.93-125, 1997.

D. Kesner, A theory of explicit substitutions with safe and full composition, Logical Methods in Computer Science, vol.5, issue.1, pp.1-29, 2009.
URL : https://hal.archives-ouvertes.fr/hal-00524735

D. Kesner, Reasoning about call-by-need by means of types, Foundations of Software Science and Computation Structures-19th International Conference, FOSSACS 2016, Held as Part of the European Joint Conferences on Theory and Practice of Software, vol.9634, pp.424-441, 2016.

D. Kesner and D. Ventura, Quantitative types for the linear substitution calculus, vol.38, pp.296-310
URL : https://hal.archives-ouvertes.fr/hal-01402078

D. Kesner and D. Ventura, A resource aware computational interpretation for herbelin's syntax, Theoretical Aspects of Computing-ICTAC 2015-12th International Colloquium, vol.9399, pp.388-403, 2015.

D. Kesner and P. Vial, Types as Resources for Classical Natural Deduction, 2nd International Conference on Formal Structures for Computation and Deduction, pp.1-15, 2017.

A. Kfoury, A linearization of the lambda-calculus and consequences, 1996.

A. Kfoury and J. Wells, Principality and type inference for intersection types using expansion variables, Theoretical Computer Science, vol.311, issue.1-3, pp.1-70, 2004.

K. Kikuchi and T. Sakurai, A translation of intersection and union types for the ?µ-calculus, Programming Languages and Systems-12th Asian Symposium, vol.8858, pp.120-139, 1719.

C. Stephen, Kleene. ?-definability and recursiveness, Duke Mathematical Journal, issue.2, pp.340-353, 1936.

. Stephen-cole-kleene, On the interpretation of intuitionistic number theory, J. Symb. Log, vol.10, issue.4, pp.109-124, 1945.

J. Krivine, Lambda-calculus, types and models. Ellis Horwood series in computers and their applications, 1993.
URL : https://hal.archives-ouvertes.fr/cel-00574575

T. Kurata, A type theoretical view of böhm-trees, Typed Lambda Calculi and Applications, Third International Conference on Typed Lambda Calculi and Applications, TLCA '97, pp.231-247, 1997.

J. Lambek and P. J. Scott, Introduction to Higher-Order Categorical Logic, 1986.

J. Peter and . Landin, Correspondence between ALGOL 60 and church's lambdanotation: part I, Commun. ACM, vol.8, issue.2, pp.89-101, 1965.

J. Peter and . Landin, A correspondence between ALGOL 60 and church's lambdanotations: Part II, Commun. ACM, vol.8, issue.3, pp.158-167, 1965.

O. Laurent, On the denotational semantics of the untyped lambda-mu calculus, 2004.

J. Lévy, An algebraic interpretation of equality in some models of the lambda calculus, Lambda Calculus and Computer Science Theory, 1975.

G. Longo, Set-theoretical models of lambda calculus: Theories, expansions and isomorphisms, Annals of Pure and Applied Logic, 1983.
DOI : 10.1016/0168-0072(83)90030-1

URL : https://doi.org/10.1016/0168-0072(83)90030-1

G. Manzonetto, Lambda Calculus, Linear Logic and Symbolic Computation, 2017.

B. Venneri, M. Coppo, and M. Dezani-ciancaglini, Functional characters of solvable terms, Mathematical Logic Quarterly, vol.27, pp.45-58, 1981.

P. Martin-löf, An intuitionistic theory of types: Predicative part, Proceedings of the Logic Colloquium '73, 1975.

P. Martin-löf, An Intuitionistic Theory of Types (technical report, pp.127-172, 1972.

D. Mazza, An infinitary affine lambda-calculus isomorphic to the full lambda-calculus, Proceedings of the 27th Annual IEEE Symposium on Logic in Computer Science, LICS 2012, pp.471-480, 2012.
DOI : 10.1109/lics.2012.57

D. Mazza, L. Pellissier, and P. Vial, Polyadic Approximations, Fibrations and Intersection types, Proceedings of the 45th ACM SIGPLAN Symposium on Principles of Programming Languages, pp.1-26, 2017.
DOI : 10.1145/3158094

A. Paul-, N. Melliès, and . Zeilberger, Functors are type refinement systems, Proceedings of POPL, pp.3-16, 2015.

R. Milner, A theory of type polymorphism in programming, J. Comput. Syst. Sci, vol.17, issue.3, pp.348-375, 1978.

H. Nakano, A modality for recursion, 15th Annual IEEE Symposium on Logic in Computer Science, pp.255-266, 2000.
DOI : 10.1109/lics.2000.855774

M. Peter, H. G. Neergaard, and . Mairson, Types, potency, and idempotency: why nonlinearity and amnesia make a type system work, Proceedings of the Ninth ACM SIGPLAN International Conference on Functional Programming (ICFP), pp.138-149, 2004.

L. Ong and S. J. Ramsay, Verifying higher-order functional programs with pattern matching algebraic data type s, Proceedings of the 38th Annual ACM Symposium on Principles of Programming Languages (POPL), pp.587-598, 2011.
DOI : 10.1145/1925844.1926453

, 32nd Annual ACM/IEEE Symposium on Logic in Computer Science, 2017.

M. Pagani and S. Rocca, Solvability in resource lambdacalculus, Foundations of Software Science and Computation Structures, vol.6014, pp.358-373, 2010.
DOI : 10.1007/978-3-642-12032-9_25

URL : http://lipn.univ-paris13.fr/~pagani/fossacs10.pdf

M. Parigot, ?µ-calculus: an algorithmic interpretation of classical natural deduction, International Conference on Logic Programming and Automated Reasoning, vol.624, pp.190-201, 1992.
DOI : 10.1007/bfb0013061

M. Parigot, Classical proofs as programs, Computational Logic and Proof Theory, Third Kurt Gödel Colloquium, KGC'93, vol.713, pp.263-276, 1993.
DOI : 10.1007/bfb0022575

M. Parigot, Proofs of strong normalisation for second order classical natural deduction, J. Symb. Log, vol.62, issue.4, pp.1461-1479, 1997.
DOI : 10.2307/2275652

P. , M. Pédrot, and A. Saurin, Programming Languages and Systems-25th European Symposium on Programming, ESOP 2016, Held as Part of the European Joint Conferences on Theory and Practice of Software, vol.9632, pp.616-643, 2016.

E. Polonovski, Substitutions explicites, logique et normalisation, 2004.
URL : https://hal.archives-ouvertes.fr/tel-00007962

D. Prawitz, Natural deduction: A proof-theoretical study, Acta Universitatis Stockholmiensis, Stockholm studies in philosophy, vol.3, 1965.

C. Raffalli, Data types, infinity and equality in system af 2, Computer Science Logic, p.7

. Workshop, U. Swansea, and . Kingdom, Selected Papers, Lecture Notes in Computer Science, vol.832, pp.280-294, 1993.

. Springer, , 1993.

L. Santocanale, A calculus of circular proofs and its categorical semantics, 2001.
URL : https://hal.archives-ouvertes.fr/hal-01261170

H. Schwichtenberg, Definierbare Funktionen im ?-Kalkül mit Typen, Arch. Math Logik, vol.17, pp.113-114, 1976.

P. Selinger, Control categories and duality: on the categorical semantics of the lambda-mu calculus, Mathematical Structures in Computer Science, vol.11, issue.2, pp.207-260, 2001.

R. I. Soare, Turing Computability-Theory and Applications. Theory and Applications of Computability, 2016.

W. W. Tait, Intensional interpretations of functionals of finite type I, J. Symb. Log, vol.32, issue.2, pp.198-212, 1967.

M. Tatsuta, Types for hereditary head normalizing terms, Functional and Logic Programming, 9th International Symposium, vol.4989, pp.195-209, 2008.

. Springer, , 2008.

M. Tatsuta, Types for hereditary permutators, Proceedings of the TwentyThird Annual IEEE Symposium on Logic in Computer Science, LICS 2008, pp.24-27

A. Turing, On computable numbers with an application to the " Entscheidungsproblem, 1936.

A. M. Turing, Computability and ?-definability, J. Symb. Log, vol.2, issue.4, pp.153-163, 1937.

P. Urzyczyn, The emptiness problem for intersection types, Journal of Symbolic Logic, vol.64, issue.3, pp.1195-1215, 1999.

. Steffen-van-bakel, Complete restrictions of the intersection type discipline, Theor. Comput. Sci, vol.102, issue.1, pp.135-163, 1992.

. Steffen-van-bakel, Intersection type assignment systems, Theor. Comput. Sci, vol.151, issue.2, pp.385-435, 1995.

. Steffen-van-bakel, Completeness and partial soundness results for intersection and union typing for lambda _ µµ, Ann. Pure Appl. Logic, vol.161, issue.11, pp.1400-1430, 2010.

. Steffen-van-bakel, Sound and complete typing for lambda-mu, Proceedings Fifth Workshop on Intersection Types and Related Systems, ITRS 2010, vol.45, pp.31-44, 2010.

F. Steffen-van-bakel, U. Barbanera, and . De'liguoro, Characterisation of strongly normalising lambda-mu-terms, vol.51, pp.1-17

F. Steffen-van-bakel, U. Barbanera, and . De'liguoro, , 2017.

P. Femke-van-raamsdonk, M. H. Severi, H. Sørensen, and . Xi, Perpetual reductions in lambda-calculus, Inf. Comput, vol.149, issue.2, pp.173-225, 1999.

L. Vaux, Typed Lambda Calculi and Applications, 8th International Conference, Lecture Notes in Computer Science, vol.4583, pp.381-395, 2007.

P. Vial, Infinitary intersection types as sequences: A new answer to Klop's problem, pp.1-12
DOI : 10.1109/lics.2017.8005103

A. Whitehead, B. Russell, and . Principia-mathematica, , pp.1925-1927

A. A. Complements and . Klop's-problem,

, Reduction and Approximability The rigid constructions presented here ensure "trackability", contrary to multiset constructions of system R. We show here a few applications useful to prove that approximability is stable under reduction or expansion (Lemma 10.5). We consider a derivation P

, We say p 1 subjugates p 2 if, for all finite f P P , p 1 ? f P implies p 2 ? f P

?. We, are equinecessary (written p 1 ? p 2 ) if, for all finite f P P , p 1 ? f P iff p 2 ? f P

, Moreover, let B 1 , B 2 ? P. Then B 1 and B 2 are equinecessary if every p 1 ? B 1 (resp

, There are many elementary equinecessity cases that are easy to observe. We need only a few ones and we define asc(p) and Asc(p) s.t, p ? asc(p) and p ? Asc, p.for

, ? asc(p) is defined for any p ? bisupp(P ) which is not in an axiom leaf.-Left bipositions: asc(a, x, k · c) = (a · , x, k · c)

, asc(a, 1 · c) = (a · 0, c) and asc(a, k · c) = (a · 0, x, k · c) if k 2, Right bipositions (abs): if t(a) = ?x, asc(a, ?) = (a · 0, ?)

?. Asc, let h be maximal such that asc h p is defined, p) is a right biposition and is defined as the highest right biposition related to p by asc.-Right bipositions: if p = (a, c)

, let h be maximal (if it exists) such that asc h (p) exists, Left bipositions: if p = (a, x, k·c)

, Asc(p) is defined for any right biposition p. If p is quantitative, then Asc(p) is also defined for any left biposition. An examination of the app-rule shows that, if t(a) = @, for all k 2, Since t ? ? 001 (and not in ? 111 ? ? 001 )

, A very important case of equinecessity is this one (with the same notations as in Sec. 10.3.5 e.g., a = b): (a · 1, k · c) ? (a · 10 · a k , x, k · c) and (a · 1, k · c) ? (a · k, c), Assume t| b = (?x.r)s

, B * be the set obtained from Asc(B) by replacing any (a·10·a k , c) by (a·k, c)

, For the converse implication, we just have to replace 0 B by Asc( 0 B )

A. Remark, This also allows us to prove that a derivation P is approximable iff P is quantitative and, for all finite set of right bipositions 0 B ? bisupp(P ), there exists f P P such that 0 B ? bisupp( f P ). The implication ? is obvious by Definition 10, 4 and Lemma, vol.10, issue.5

, Let 0 B ? bisupp( f P ) be a finite set of bipositions

, Since P is quantitative, for all p ? 0 B, Asc(b) is defined. We set 0 B * = Asc( 0 B), so that

, By equinecessity, 0 B ? bisupp( f P ). imply that, for a derivation P to be approximable, it is enough to have: "P is quantitative and, for all 0 B ? bisupp(P ) finite set of root bipositions, there exists f P P such that 0 B ? bisupp( f P ), B * is a set of right bipositions equinecessary to 0 B. By hypothesis, there is f P P such that 0 B * ? bisupp( f P )

, This allows us to define some binary relations on B, that will be denoted by an arrow. Notice that those relations are defined on B (and not on B ? B), Conditions (c1), (c2), (c3), (c4)

. ?-type-formation-;-?-a,-x-?-v-,-c-?-n-*-,-k-?-n,

. ?-type-formation-;-?-a,-x-?-v-,-c-?-n-*,

?. Axiom-formation, For all a ? A such that t(a) = x, for all c ? N * , (a, x, k·c) ? ax (a, c)

, For all a ? A s.t. t(a) = ?x, for all c ? N * , ? Right Ascendance @ (ra@): For all a ? A s, ? Right Ascendance ? (ra?)

, For all a ? A s.t. t(a) = ?x:-(la?1) For all k 2, c ? N * , (a, k·c) ? asc (a·0, x, k·c)-(la?2) For all y ? V , k 2, ? Left Ascendance ? (la?)

, For all a ? A, x ? V , k 2 s.t. t(a) = @ and (a, x, k) ? B, for all c ? N * , (a, x, k·c) ? asc (a · , x, k · c)

?. Consumption, For all a ? A s.t. t(a) = @, for all k 2

, We will consider ? @ , the reflexive transitive symmetric closure of ? ax ? ? asc ? ? pi ? ?: relation ? @ helps us to track a type symbol through a derivation. For instance, in P ex

?. @. , All those bipositions also point to type variable o. An attentive observation of the relations above shows that, for P to be a derivation typing t, then B must be closed under ? t1 , ? t2 , ? @. Type formation ensures that the supports of the types (on the right-hand sides of ) are well formed e.g., closure under ? t1 ensures that the supports of types are trees and closure under ? t2 means that any non terminal node in a type has a son on track 1, We have (?, 1) ? asc (0, ?) ? asc (03, ?) ax ? (03, x, 2) asc

, Right ascendance explains how the type given in a rule is partially computed from the type given in one of its premises

, FINITE OR NOT) APPROXIMATIONS 341 at position a. Consumption is related to the app-rule: the left-hand side of the arrow type typing the left-hand side of the application (bipositions of the form (a·1, k·c) must be equal to the sequence of types given to the argument

, (c4), (c5) and closure under? t1 ,? t2 , ? @ are not enough to guarantee that P is a derivation, Conditions (c1), (c2), (c3)

, ? Non terminal nodes are arrow (lab1): For all p ? B \ Lves(B), P (p) =?

, ? Leaves are type variables (lab2): For all p ? Lves(B), P (p) ? O

, ? Matching leaves labels (lab3): for all p 1 , p 2 ? Lves(B) such that p 1 ? @ p, vol.2

, We claim and prove: Proposition A.1. The function P is a S-derivation typing t iff is satisfies (c1), (c2), (c3), (c4), (c5), (lab1), (lab2), (lab3) and is closed under ? t1

, The necessity of those conditions has been discussed

, lab2), it easy to check that, for all a ? A and x ? V , T (a) is a type and C(a)(x) is sequence type of Typ 111. Using (c5, lab1

, let k be the unique integer 2 such that (a, x, k) ? B. By (axf ), closure by ? @ and (lab3) (w.r.t. ? ax ), the function (c ? C(a)(x)(c) and (c ? T (a)(c) are equal. Moreover, by (r1) again, ? Correctness of ax-rules: let a ? A such that t(a) = x. By (r1)

, By (r2), (?, 1) ? B, so (a, ?) / ? Lves(B) and 1 ? supp(T (a)) so T (a) is an arrow type (if it were a type variable, ? Correctness of abs-rules: let a ? A such that t(a) = ?x

, (a)) comes from the definition of left ascendance (see (la?1) and (la?2)) and (lab3) (w.r.t. ? asc ). By (ra?) and (lab3) (w.r.t. ? asc ), the functions c ? T (a)(1 · c) and c ? T (a · 0)(x) are equal i

. Thus,

, The fact that C(a) = ?{1}?K C(a · ) comes from the definition of left ascendance (see (laapp)) and (lab3) (w.r.t. ? asc ), but also from (c4) and the fact that every C(a · )(x) is a correct sequence judgment. By (c1), (a, ?) ? B, so, by (raapp), ? Correctness of app-rules: let a ? A such that t(a) = x

, · c) APPENDIX A. COMPLEMENTS TO KLOP'S PROBLEM are equal i.e. T (a) = Tg(T (a · 1)). By (con) and (lab3) (w.r.t. ?), the functions (k, c) ? T (a · 1)(k · c) and (k, c) ? T (a · k, By (ra@) and (lab3) (w.r.t. ? asc ), the functions c ? T (a)(c) and c ? T (a · 1

. Thus,

?. ?p-?-deriv,-p-i-,-p-j-?-p, Let (P i ) i?I be a non-empty family of derivations typing the same term t, such that ?i, A.3.1 Meets and Joins of Derivations Families Lemma A.1

, We check first that if one of the P i satisfies (c1), (c2), (c3), (c4), (c5), then P also does

, This works because:-For all a ? A := out(B) such that t(a) = x, for all i ? I, ? The stability of P under ? t1 , ? t2 and ? @ comes from the stability of under those for the P i. However, ? @ depends on B := bisupp(P )

, such that t(a) = @ and (a, x, k) ? B, for all i ? I, uptr P (a, x, k) = uptr P i (a

, Thus, the relation ? @ of P is the intersection of those of the P i (i ranging over I)

?. Condition and . ?p-?-deriv,-p-i-,-p-j-?-p-implies-that-p-?-lves, P ) iff p ? Lves(()P i ) for all i. Thus, P also satisfies (lab1) and (lab2). Finally, P satisfies

A. Lemma, . ;-j-?-i, and . ?p-?-deriv,-p-i-,-p-j-?-p, Let (P i ) i?I be a non-empty family of derivations typing the same term, such that ?i, vol.2

?. ?p-?-deriv,-p-i-,-p-j-?-p, P i ) for some i, then P i (p) = o (for some o ? O), so, for all j ? I such that p ? bisupp(P j ), P j (p) = o i.e. p ? Lves(()P j ). Thus, p ? Lves(B), ? We check first that, since P i satisfies (c1), (c2), (c3), (c4)

·. S-1-)-?, · S n ) ? o) ? PP o In the case above, we also say that o is the last type variable of (S, T ) (for short, · T ?(n) ) ? o)

?. A-pair-(s and T. Pp, PPP o ) for all o ? O, o occurs at most once in S

, Let us set t = p x. Let y ? o y be an injection from B = supp(t) to O. We associate to each b ? supp(t) two indeterminates X b and Y b. The idea is that X b is a placeholder for the types of head variables and Y b is a placeholder for the types of the sub-hereditary permutations of t. We denote by B p the set of positions b of subterms of t that are y-HP for some y ? V and, for all b ? B p, The condition of properness is here to ensure that every variable occurs at a level deeper than its binder and to distinguish them from one another (see the proof of Claim A.2), p.hvp

. Formally and |. Set-b-p-=-{?}-?-{b-·-2, (b) is the longest b 0 such b 0 ? b · {0, 1} *. For all b ? B p , we abusively denote by or(b) the order or(t| b ) of t| b and by x b the head variable of hv, p.hvp

. Moreover, p y?n with n = or(b) 0, y = x b and ? ? S n. We then denote by ? b the permutation ? and we set set, vol.1, p.1

, S(b) = F(b)

, T (t)) is a proper permutation pair. From there, it is not difficult to built a (quantitative) S-derivation P , such that, for all b ? B p , P (b) = x b : (2 · S(b)) t| b : T (b). Since t is a normal form, By proceeding as in Sec. A.4, we prove that, for all b ? B p , (S(b)

, P an approximable S-derivation and U a permutation type such that P t : U. Then t is a hereditary permutation

·. S-n-)-?-o and . Moreover, 7, the empty sequence type ( ) does not occur in U , so that t : U is unforgetful. Since P is approximable

.. .. , Since T and S are types of order n, we must have p = q n (the abs-rule creates an arrow whereas the app-rule destroys one). Moreover, S 1, · S) ?y 1. .. y p .x t 1. .. t q : T is derivable by means of an approximable derivation P *

). ?-o-?-;-p, .. ;. , and .. .. , o ?(p) are the respective last type variable of T ?(1)

.. Thus, , vol.1

A. Lemma, 5 expresses the fact that, in an unforgetful derivation typing a normal form, every type nested in a subterm at applicative depth n occurs at applicative

A. Lemma, Let P be an approximable derivation concluding with C t : T , where t is a normal form, and a ? bisupp(P ) such that ad, p.1

.. .. , t q occur at applicative depth 1 in T 0. Moreover, the types of all subterms occurring at applicative depth 1 are nested in the APPENDIX B. RESIDUATION, THREADS AND ISOMORPHISMS IN SYSTEM S op this root interface, we will now build a hybrid derivation P concluding with C t : T with T ? T , as it was announced at the beginning of Sec. 13.2. Conventions on metavariables a and ? As in Sec. 10.3.5 and 12.4.1, the letter a will stand for a position of P that corresponds to the root of the redex (i.e. a ? supp(P ) and a = b) and the letter ? for other positions in supp(P ) or even in A. We set Ax ? (a) = Ax P a·1·0 (x) and Tr ? (a) = {tr P (? 0 ) | ? 0 ? Ax ? (a)} = Rt(T P (a · 1)). Thus, Ax ? (a) is the set of positions of the redex variable (to be substituted) above a and Tr ? (a) is the set of the axiom tracks that have been used for them. For instance, system R 0 ). Thus, the types of the arguments t 1

, After reduction, the app-rule and abs-rule at positions a and a · 0 have been destroyed and the position of this judgment ? ?. Likewise, ? represents a judgment, Thus, its position must be of the form a · 1 · 0 · ? ?

, Thus, its position must

, ? Paradigm ?: if ? = a·k R ·? 0 where a = b and k R ? Arg(a), then Res b (?) = a·a kL ·? 0 with k L = ? ?1 a (k R )

, ? Paradigm ?: if ? = a · 1 · 0 · ? 0 where a ? supp(P ), a = b and ? 0 = a k

, Outside the redex: if b ?, then Res b (?) = ? APPENDIX B. RESIDUATION, THREADS AND ISOMORPHISMS IN SYSTEM S op We define then P as the labelled tree s.t. supp(P ) = A and for all ? ? A

, We intend to prove that P is a correct hybrid derivation typing t. As hinted at Sec. 13.2, we must check that a type T(?) (where ? ? A) may only be replaced, C (? ) t | ? : T (? ) (so that C = C P and T = T P as expected)

, Quasi-Residuation in the Hybrid Setting In order to check that, it is convenient to extend residuation into quasi-residuation: namely, we define quasi-residual QRes b (?)

, ? We do not necessarily have t(?) = t (? ) or child(?) = child (? ) when ? = QRes b (?) (compare with Lemma B.1) and QRes b is usually not injective. For instance, if t = (?x.y)y, t = y, b = ? = ? = ? , then t b ? t , ? = QRes b (?) but t(?) = @ = y = t (? ) and child

?. However, quasi-residuals will be useful to define the isomorphisms Res b|? , ResR b|? and ResL b|? below

B. Lemma, This lemma is also a definition: that of the quasi-residuation, vol.2

, (?) where ? = Res ?1 b (? ). Besides, if ? ? Ax or ? a · a k (for a = b, then T (? ) = T(?)

, ? More precisely, if P is endowed with an interface (? a ) a=b at position b (extending the root-interface (? a ) a=b ), then, for all ? ? A and ? ? A such that QRes b (?) = ?

, ? When Res b (?) = ? , we write Res b|? instead of QRes b|?. Moreover, Res b|? is the identity if ? ? Ax or ? a · a k for some a ? A, a = b and k ? AxTr

. Proof, We proceed by 001-induction on ? ? A := supp(P ) and split the cases as suggested in Remark B.2. ? Paradigm ?: Res b (?) = ? and ? a · a k (for some a ? A

, Subcase t(?) = y: here, t(?) = y = x and T (? ) = T(?)

, Subcase t(?) = ?y: ? · 0 ? A, Res b (? · 0) = ? · 0 and by IH, we have T (? · 0) = T(? · 0) and Res b|?·0 is the identity id T(?·0)

, Since T(?) = C(? · 0)(y) ? T(? · 0) and T (? ) = C(? · 0)(y) ? T (? · 0), we also have T(?) = T (?) and we set Res b|? = id T(?)

, Subcase t(?) = @: ? · 1 ? A, Res b (? · 1) = ? · 1 and by IH, we have T (? · 0) = T(? · 0) and Res b|?·1 is the identity id T(?·1)

, Moreover, T(?) = Tg(T(? · 1)) and T (? ) = Tg(T (? )). So T(?) = T(? ) and we set Res b|? = id T(?)

B. 1. Subject-reduction-?-paradigm, = b):-Subcase ? = a · 1 · 0 · a kL and ? = a · a kL : ? = Res b (a · k R ) (where k R = ? a (k L )) and by IH, T (? ) = T(a · k R ). Moreover, since T(?) = L(?)| kL , we can set QRes b|? = ? a|kL

, Subcase t(?) = ?y: ?·0 ? A, Res b (?·0) = ? ·0: we set Res b|? = C(?·0)(y) ? QRes b|?·0

, Subcase t(?) = @: ?·1 ? A, Res b (?·1) = ? ·1: we set Res b|? = Tg(QRes b|?·1 )

, ? Outside the redex: ? b:-Subcase ? ? Ax : here, t(?) = y = x and T (? ) = T(?)

. Subcase-?-=, a = Res b (a · 1 · 0) and by IH, we have an type isomorphism QRes b|a·1·0 : T(a · 1 · 0) ? T(a). Since T(a · 1 · 0) = T(a), we can set QRes b|a = QRes b|a·1·0

, Subcase t(?) = ?y: ? · 0 ? A, QRes b (? · 0) = ? · 0 and we set Res b|? = C(? · 0)(y) ? QRes b|?·0

, Subcase t(?) = @: ?·1 ? A, QRes b (?·1) = ? ·1: we set Res b|? = Tg(QRes b|?·1 )

, ? It is far easier to define the residual of a biposition for a derivation of S: if P is trivial, whenever ? := Res b (?) is defined, the residual biposition of p := (?, ?) ? bisupp(P ) is Res b

?. Thus, bisupp(P ) such that ? = b · 1, whereas in Sec. 12.4.1, it was also defined for ? = a · 1. Actually, we will extend QRes b (?, c) in this case (see Remark B.7), but now, quasi-residuation is defined for all

, Residual Interface We notice that if ? ? supp @ (P ) and ? = b, then Res b (?) is defined. So, for ? ? A @ (Sec. B.1.1), we set L (? ) = Sc(T (? · 1)), ArgTr (? ) = {k 2 | ? ? A } and R (? ) = (k · T (? · k)) k?ArgTr (?). We write then Inter (? ) for the set of sequence type isomor

, Thanks to Lemma B.1: ? Since QRes b|?·1 is a type isomorphism from T(? · 1) to T (? · 1) and L (? ) = Sc(T (? · 1)), then T (? · 1) is an arrow type (since T(? · 1) is) and we define the sequence type isomorphism, Assume that ? ? A @. Let us write ? = Res ?1 b (? )

, We can define ResR b|? by ResR b|? (k · ?) = k · Res b|?·k (?)

, Since ? supp induces a bijection from ArgTr 1 (a 1 ) to ArgTr 2 (a 2 ) (notation ArgTr is defined on p. 294), we define a sequence type isomorphism ? R

B. Remark, The isomorphisms between S-derivations defined in Appendix A.5 are isomorphisms of operable derivations

, Ax 0 , we set T 0 (a 0 ) = ? a

, {? supp (a 0 ) | al 0 ? Ax ? (x)} for all a ? A and x ? V. Since ? supp induces a bijection from Ax to Ax 0 , we can set tr 0 (?(a)) = ? tr (a) for all a ? Ax, ? Let Ax 0 (?(a))(x) =

, Since ? tr is an injection whose domain is Ax, we can define pos 0 : codom(()? tr ) ? Ax with pos 0 (k 0 ) = a 0

, can write ? a,x for the context isomorphism from C(a)(x) to C 0 (a 0 )(x) such that ? a, x (k ·?) = ? tr

, We can now define a type T 0 (?(a)) and a type isomorphism ? a from T(a) to T 0 (?(a)) for all a ? A by 001-induction

, If t(a) = ?x, we set T 0 (a 0 ) = C 0 (a 0 )(x) ? T 0 (a 0 · 0) and ? a = ? a·0,x ? ? a·0

, We set then ArgTr 0 (?(a)) = {k 0 2 | ?k ? ArgTr(a)