. Shyp, as (t 1 , t 2 ) ? ? p , the conditions (i) and (ii) hold for the premise. By induction, the result follows

}. , ?. ?. , C. ?. , and ?. ??, For any (s 1 , s 2 ) ? ? p , the condition (i) gives us that there exists C 0 ? (? ? N {(s 1 ? s 2 )}) such that C 0, ? ? t 1 ), (? ? t 2 )} ? C) ? S, we have C 0 ? C ?? . Moreover, consider (t 1 , t 2 ). As ? ? N {(t 1 ? t 2 )} S, there exists C 0 ? S such that C 0 ? C ?? . Thus the condition (i) holds for the premise. Moreover, the condition (ii) holds straightforwardly for premise. By induction, the result follows. (Sdone): the result follows by the conditions (i) and (ii

?. Ms-c-s, Lemma 10.1.27 (Finiteness) Let C be a constraint-set and ?

?. Ms-c-s, Let C be a well-ordered normalized constraint-set and ? Then for all normalized constraint-set C ? ? S, C ? is well-ordered, Lemma 10.1.28

?. , S. , C. ??-?c-?-?-s-?.-?, and C. , nor C 2 ? C 1 . Moreover, we say S ? S ? if for all substitution ? such that

D. [. Aiken, E. Kozen, and . Wimmers, Decidability of Systems of Set Constraints with Negative Constraints, Information and Computation, vol.122, issue.1, pp.30-44, 1995.
DOI : 10.1006/inco.1995.1139

A. Aiken and E. L. Wimmers, Type inclusion constraints and type inference, Proceedings of the conference on Functional programming languages and computer architecture , FPCA '93, pp.31-41
DOI : 10.1145/165180.165188

J. Aycock, A brief history of just-in-time, ACM Computing Surveys, vol.35, issue.2, pp.97-113, 2003.
DOI : 10.1145/857076.857077

[. Bakel, Complete restrictions of the intersection type discipline, Theoretical Computer Science, vol.102, issue.1, pp.135-163, 1992.
DOI : 10.1016/0304-3975(92)90297-S

[. Bakel, Intersection Type Disciplines in Lambda Calculus and Applicative Term Rewriting Systems, 1993.

M. [. Barendregt, M. Coppo, and . Dezani-ciancaglini, A filter lambda model and the completeness of type assignment, The Journal of Symbolic Logic, vol.37, issue.04, pp.931-940, 1983.
DOI : 10.1002/malq.19800261902

V. Benzaken, G. Castagna, and A. Frisch, CDuce: an XML-friendly general purpose language, ICFP '03, 2003.

]. S. Bcf-+-03b, D. Boag, M. Chamberlin, D. Fernandez, J. Florescu et al., XQuery 1.0: An XML Query Language, W3C Working Draft, 2003.

F. Baader and W. Snyder, Unification theory, Handbook of Automated Reasoning, pp.445-532, 2001.

B. [. Bono, L. Venneri, and . Bettini, A typed lambda calculus with intersection types, Theoretical Computer Science, vol.398, issue.1-3, pp.95-113, 2008.
DOI : 10.1016/j.tcs.2008.01.046

J. [. Balat, B. Vouillon, and . Yakobowski, Experience report: Ocsigen, a web programming framework, ICFP '09 264 BIBLIOGRAPHY [CD78] M. Coppo and M. Dezani. A new type assignment for lambda-terms. Archiv für mathematische Logik und Grundlagenforschung, pp.139-156, 1978.
URL : https://hal.archives-ouvertes.fr/hal-00495903

M. Coppo, M. Dezani-ciancaglini, and B. Venneri, Functional Characters of Solvable Terms, Zeitschrift f??r Mathematische Logik und Grundlagen der Mathematik, vol.5, issue.2-6, pp.45-58, 1981.
DOI : 10.1002/malq.19810270205

M. [. Coppo, B. Dezani, and . Venneri, Principal type schemes and lambdacalculus semantics, To H.B. Curry. Essays on Combinatory Logic, Lambda-calculus and Formalism, 1980.

R. [. Castagna, D. De-nicola, and . Varacca, Semantic Subtyping for the p-Calculus, 20th Annual IEEE Symposium on Logic in Computer Science (LICS' 05), pp.217-242, 2008.
DOI : 10.1109/LICS.2005.46

M. Coppo and P. Giannini, A complete type inference algorithm for simple intersection types, Proceedings of the 17th Colloquium on Trees in Algebra and Programming, CAAP '92, pp.102-123, 1992.
DOI : 10.1007/3-540-55251-0_6

M. Coppo and P. Giannini, Principal Types and Unification for Simple Intersection Type Systems, Information and Computation, vol.122, issue.1, pp.70-96, 1995.
DOI : 10.1006/inco.1995.1141

K. [. Castagna and . Nguyen, Typed iterators for XML, ICFP '08, pp.15-26, 2008.
URL : https://hal.archives-ouvertes.fr/hal-00336119

G. Castagna, K. Nguy?ênnguy?nguy?ên, Z. Xu, and S. Lenglet, Polymorphic functions with set-theoretic types. Unpublished, 2012.
URL : https://hal.archives-ouvertes.fr/hal-00907166

]. B. Cou83 and . Courcelle, Fundamental properties of infinite trees, Theoretical Computer Science, vol.25, pp.95-169, 1983.

Z. [. Castagna and . Xu, Set-theoretic Foundation of Parametric Polymorphism and Subtyping, ICFP '11, 2011.
URL : https://hal.archives-ouvertes.fr/hal-00618839

]. F. Dam94 and . Damm, Subtyping with union types, intersection types and recursive types II, Research Report, vol.816, 1994.

G. [. Frisch, V. Castagna, and . Benzaken, Semantic subtyping, Journal of the ACM, vol.55, issue.4, pp.1-64, 2008.
DOI : 10.1145/1391289.1391293

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

]. J. Gar98 and . Garrigue, Programming with polymorphic variants, Proc. of ML Workshop, 1998.

P. [. Gesbert, N. Genevès, and . Laya¨?dalaya¨?da, Parametric Polymorphism and Semantic Subtyping: the Logical Connection, ICFP '11, 2011.
URL : https://hal.archives-ouvertes.fr/inria-00585686

[. Girard, Une extension de l'interprétation de Gödel à l'analyse, et son application à l'élimination de coupures dans l'analyse et la théorie des types, Proceedings of the 2nd Scandinavian Logic Symposium, pp.63-92, 1971.

J. Gosling, B. Joy, G. Steele, and G. Bracha, The Java Language Specification Java series, 2005.

]. V. Glps05a, M. Y. Gapeyev, B. C. Levin, A. Pierce, and . Schmitt, The Xtatic experience, PLAN-X, 2005.

]. V. Glps05b, M. Y. Gapeyev, B. C. Levin, A. Pierce, and . Schmitt, The Xtatic compiler and runtime system, 2005.

N. [. Genevès, A. Layä, and . Schmitt, Efficient static analysis of XML paths and types, PLDI '07, 2007.

[. Gilleron, S. Tison, and M. Tommasi, Set Constraints and Automata, Information and Computation, vol.149, issue.1, pp.1-41, 1999.
DOI : 10.1006/inco.1998.2747

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

A. [. Hosoya, G. Frisch, and . Castagna, Parametric polymorphism for XML, POPL '05, 32nd ACM Symposium on Principles of Programming Languages, 2005.
URL : https://hal.archives-ouvertes.fr/hal-00152609

A. [. Hosoya, G. Frisch, and . Castagna, Parametric polymorphism for XML, ACM Transactions on Programming Languages and Systems, vol.32, issue.1, pp.1-56, 2009.
DOI : 10.1145/1596527.1596529

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

G. Higman, Ordering by Divisibility in Abstract Algebras, 266 BIBLIOGRAPHY [Hos01] H. Hosoya. Regular Expression Types for XML, pp.326-336, 1952.
DOI : 10.1112/plms/s3-2.1.326

B. [. Hosoya and . Pierce, Regular expression pattern matching for XML, POPL '01, 25th ACM Symposium on Principles of Programming Languages, 2001.

B. [. Hosoya and . Pierce, XDuce, ACM Transactions on Internet Technology, vol.3, issue.2, pp.117-148, 2003.
DOI : 10.1145/767193.767195

R. Burke, I. Bordawekar, V. Pechtchanski, and . Sarkar, XJ: facilitating XML processing in Java, Proceedings of the 14th international conference on World Wide Web, WWW '05, pp.278-287, 2005.

A. Hejlsberg, S. Wiltamuth, and P. Golde, C? Language Specification, 2003.

]. T. Jim96 and . Jim, What are principal typings and what are they good for?, Proceedings of the 23rd ACM SIGPLAN-SIGACT symposium on Principles of programming languages , POPL '96, pp.42-53
DOI : 10.1145/237721.237728

]. T. Jim00 and . Jim, A polar type system, ICALP Satellite Workshops, pp.323-338, 2000.

A. [. Kirkegaard and . Møller, XAct -XML transformations in Java, Programming Language Technologies for XML (PLAN-X), 2006.

[. Klarlund, A. Møller, and M. I. Schwartzbach, DSD, Proceedings of the third workshop on Formal methods in software practice , FMSP '00, 2000.
DOI : 10.1145/349360.351158

J. [. Kfoury and . Wells, Principality and decidable type inference for finite-rank intersection types, Proceedings of the 26th ACM SIGPLAN-SIGACT symposium on Principles of programming languages , POPL '99, pp.161-174, 1999.
DOI : 10.1145/292540.292556

[. Leivant, Polymorphic type inference, Proceedings of the 10th ACM SIGACT-SIGPLAN symposium on Principles of programming languages , POPL '83, pp.88-98, 1983.
DOI : 10.1145/567067.567077

]. X. Ler90 and . Leroy, The ZINC experiment: an economical implementation of the ML language, 1990.

S. [. Liquori and . Rocca, Intersection-types ?? la Church, Information and Computation, vol.205, issue.9, pp.1371-1386, 2007.
DOI : 10.1016/j.ic.2007.03.005

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

[. Lu and M. Sulzmann, An Implementation of Subtyping Among Regular Expression Types, Proc. of APLAS'04, pp.57-73, 2004.
DOI : 10.1007/978-3-540-30477-7_5

]. R. Mil78 and . Milner, A theory of type polymorphism in programming, Journal of Computer and System Sciences, vol.17, pp.348-375, 1978.

M. Murata, D. Lee, and M. Mani, Taxonomy of XML schema languages using formal language theory, Extreme Markup Languages, 2001.
DOI : 10.1145/1111627.1111631

M. [. Milner, R. Tofte, D. Harper, and . Macqueen, The Definition of Standard ML (Revised), 1997.

[. Odersky, M. Sulzmann, and M. Wehr, Type inference with constrained types, Fourth International Workshop on Foundations of Object-Oriented Programming (FOOL), 1997.
DOI : 10.1002/(SICI)1096-9942(199901/03)5:1<35::AID-TAPO4>3.0.CO;2-4

]. B. Pie02 and . Pierce, Types and Programming Languages, 2002.

[. Pottier and D. Rémy, The essence of ML type inference, Advanced Topics in Types and Programming Languages, pp.389-489, 2005.

C. Benjamin, D. N. Pierce, and . Turner, Local type inference, ACM Trans. Program. Lang. Syst, vol.22, issue.1, pp.1-44, 2000.

A. Pyster, A language construct for "Dovetailing", SIGACT News, pp.38-40, 1976.
DOI : 10.1145/1008591.1008595

C. John and . Reynolds, Towards a theory of type structure, Programming Symposium, pp.408-425, 1974.

]. J. [-rey83 and . Reynolds, Types, abstraction and parametric polymorphism, Information Processing, pp.513-523, 1983.

]. J. [-rey84 and . Reynolds, Polymorphism is not set-theoretic, Semantics of Data Types, pp.145-156, 1984.

]. J. [-rey96 and . Reynolds, Design of the programming language Forsythe, 1996.

]. J. [-rey03 and . Reynolds, What do types mean?: from intrinsic to extrinsic semantics, Programming methodology, 2003.

]. Ron02 and . Rocca, Intersection typed lambda-calculus, Electr. Notes Theor. Comput. Sci, vol.70, issue.1, pp.163-181, 2002.

[. Stefánsson, Systems of set constraints with negative constraints are NEXPTIME-complete, Proceedings Ninth Annual IEEE Symposium on Logic in Computer Science, pp.137-141, 1994.
DOI : 10.1109/LICS.1994.316077

[. Sulzmann, K. Zhuo, and M. Lu, XHaskell ??? Adding Regular Expression Types to Haskell, IFL, pp.75-92, 2007.
DOI : 10.1007/978-3-540-85373-2_5

A. Tarski, A lattice-theoretical fixpoint theorem and its applications, Pacific Journal of Mathematics, vol.5, issue.2, pp.285-309, 1955.
DOI : 10.2140/pjm.1955.5.285

]. J. Vou06 and . Vouillon, Polymorphic regular tree types and patterns, POPL '06, pp.103-114, 2006.

]. P. Wad89 and . Wadler, Theorems for free! In Functional Programming Languages and Computer Architecture, pp.347-359, 1989.

A. [. Wells, R. Dimock, F. A. Muller, and . Turbak, A calculus with polymorphic and polyvariant flow types, Journal of Functional Programming, vol.12, issue.03, pp.183-227, 2002.
DOI : 10.1017/S0956796801004245

C. [. Wells and . Haack, Branching Types, ESOP '02, pp.115-132, 2002.
DOI : 10.1007/3-540-45927-8_9

C. [. Wallace and . Runciman, Haskell and XML: Generic combinators or type based translation?, ICFP '99, pp.148-159, 1999.

C. [. Xi, G. Chen, and . Chen, Guarded recursive datatype constructors, POPL '03, pp.224-235, 2003.