Abstract
We present a new proof of decidability of higher-order subtyping in the presence of bounded quantification. The algorithm is formulated as a judgement which operates on beta-eta-normal forms. Transitivity and closure under application are proven directly and syntactically, without the need for a model construction or reasoning on longest beta-reduction sequences. The main technical tool is hereditary substitution, i.e., substitution of one normal form into another, resolving all freshly generated redexes on the fly. Hereditary substitutions are used to keep types in normal-form during execution of the subtyping algorithm. Termination of hereditary substitutions can be proven in an elementary way, by a lexicographic induction on the kind of the substituted variable and the size of the expression substituted into—this is what enables a purely syntactic metatheory.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Abel, A.: Implementing a normalizer using sized heterogeneous types. In: McBride, C., Uustalu, T. (eds.) Wksh. on Mathematically Structured Functional Programming, MSFP 2006 (2006)
Abel, A.: Polarized subtyping for sized types. In: Grigoriev, D., Harrison, J., Hirsch, E.A. (eds.) CSR 2006. LNCS, vol. 3967, pp. 381–392. Springer, Heidelberg (2006)
Abadi, M., Cardelli, L.: A Theory of Objects. Springer, Heidelberg (1996)
Amadio, R., Curien, P.-L.: Domains and Lambda Calculi. Cambridge University Press, Cambridge (1997)
Adams, R.: A Modular Hierarchy of Logical Frameworks. Ph.D. thesis, University of Manchester (2005)
Cardelli, L.: Structural subtyping and the notion of power type. In: Proc. of the 15th ACM Symp. on Principles of Programming Languages, POPL 1988, pp. 70–79 (1988)
Compagnoni, A.B., Goguen, H.: Typed operational semantics for higher-order subtyping. Inf. Comput. 184(2), 242–297 (2003)
Compagnoni, A., Goguen, H.: Anti-symmetry of higher-order subtyping and equality by subtyping. Math. Struct. in Comput. Sci. 16, 41–65 (2006)
Compagnoni, A., Goguen, H.: Subtyping à la Church. In: Barendsen, E., Capretta, V., Geuvers, H., Niqui, M. (eds.) Reflections on Type Theory, λ-calculus, and the Mind. Essays dedicated to Henk Barendregt on the Occasion of his 60th Birthday. Radboud University Nijmegen (2007)
Compagnoni, A.B.: Decidability of higher-order subtyping with intersection types. In: Pacholski, L., Tiuryn, J. (eds.) CSL 1994. LNCS, vol. 933, pp. 46–60. Springer, Heidelberg (1995)
Cardelli, L., Wegner, P.: On understanding types, data abstraction, and polymorphism. ACM Computing Surveys 17(4), 471–522 (1985)
Girard, J.-Y., Lafont, Y., Taylor, P.: Proofs and Types. Cambridge Tracts in Theoretical Computer Science, vol. 7. Cambridge University Press, Cambridge (1989)
Harper, R., Licata, D.: Mechanizing metatheory in a logical framework. J. Func. Program 17(4–5), 613–673 (2007)
Lee, D.K., Crary, K., Harper, R.: Towards a mechanized metatheory of Standard ML. In: Hofmann, M., Felleisen, M. (eds.) Proc. of the 34th ACM Symp. on Principles of Programming Languages, POPL 2007, pp. 173–184. ACM Press, New York (2007)
Lévy, J.-J.: An algebraic interpretation of the λβK-calculus; and an application of a labelled λ-calculus. Theor. Comput. Sci. 2(1), 97–114 (1976)
Mitchell, J.C.: Toward a typed foundation for method specialization and inheritance. In: Proc. of the 17th ACM Symp. on Principles of Programming Languages, POPL 1990, pp. 109–124 (1990)
Pierce, B.C.: Bounded quantification is undecidable. In: POPL, pp. 305–315 (1992)
Pierce, B.C.: Types and Programming Languages. MIT Press, Cambridge (2002)
Prawitz, D.: Natural Deduction. Almqvist & Wiksell, Stockholm, 1965. Republication by Dover Publications Inc., Mineola (2006)
Pierce, B.C., Steffen, M.: Higher order subtyping. Theor. Comput. Sci. 176(1,2), 235–282 (1997)
Rodriguez, D.: Algorithmic Subtyping for Higher Order Bounded Quantification. Diploma thesis, LMU Munich (2007)
Steffen, M.: Polarized Higher-Order Subtyping. Ph.D. thesis, Technische Fakultät, Universität Erlangen (1998)
Watkins, K., Cervesato, I., Pfenning, F., Walker, D.: A concurrent logical framework I: Judgements and properties. Tech. rep., School of Computer Science. Carnegie Mellon University, Pittsburgh (2003)
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 2008 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Abel, A., Rodriguez, D. (2008). Syntactic Metatheory of Higher-Order Subtyping. In: Kaminski, M., Martini, S. (eds) Computer Science Logic. CSL 2008. Lecture Notes in Computer Science, vol 5213. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-87531-4_32
Download citation
DOI: https://doi.org/10.1007/978-3-540-87531-4_32
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-87530-7
Online ISBN: 978-3-540-87531-4
eBook Packages: Computer ScienceComputer Science (R0)