Skip to main content

Higher-Order Logic Programming Languages with Constraints: A Semantics

  • Conference paper
Book cover Typed Lambda Calculi and Applications (TLCA 2007)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 4583))

Included in the following conference series:

Abstract

A Kripke Semantics is defined for a higher-order logic programming language with constraints, based on Church’s Theory of Types and a generic constraint formalism.

Our syntactic formal system, hoHH( \({\cal C}\) ) (higher-order hereditary Harrop formulas with constraints), which extends λProlog’s logic, is shown sound and complete.

A Kripke semantics for equational reasoning in the simply typed lambda-calculus (Kripke Lambda Models) was introduced by Mitchell and Moggi in 1990. Our model theory extends this semantics to include full impredicative higher-order intuitionistic logic, as well as the executable hoHH fragment with typed lambda-abstraction, implication and universal quantification in goals and constraints. This provides a Kripke semantics for the full higher-order hereditarily Harrop logic of λProlog as a special case (with the constraint system chosen to be β,η-conversion).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  • Andrews, P.: Resolution in type theory. Journal of Symbolic Logic, 36(3) (1971)

    Google Scholar 

  • Bai, M., Blair, H.: General model theoretic semantics for higher-order horn logic programming. In: Voronkov, A. (ed.) LPAR 1992. LNCS, vol. 624, Springer, Heidelberg (1992)

    Chapter  Google Scholar 

  • Benzmüller, C., Brown, C.E., Kohlhase, M.: Higher order semantics and extensionality. Journal of Symbolic Logic 69, 1027–1088 (2004)

    Article  MATH  MathSciNet  Google Scholar 

  • Church, A.: A formulation of the simple theory of types. Journal of Symbolic Logic 5, 56–68 (1940)

    Article  MATH  MathSciNet  Google Scholar 

  • DeMarco, M.: Higher Order Logic Programming in the Theory of Types. PhD thesis, Wesleyan University (1999)

    Google Scholar 

  • DeMarco, M., Lipton, J.: Completeness and cut elimination in the intuitionistic theory of types. The Journal of Logic and Computation 15(6), 821–854 (2005)

    Article  MATH  MathSciNet  Google Scholar 

  • Gabbay, D.M., Reyle, U.: N-prolog: an extension of prolog with hypothetical implications i. Journal of Logic Programming 1(4), 319–355 (1984)

    Article  MATH  MathSciNet  Google Scholar 

  • García-Díaz, M., Nieva, S.: Providing declarative semantics for HH extended constraint logic programs. In: PPDP ’04, pp. 55–66. ACM Press, New York (2004)

    Chapter  Google Scholar 

  • Girard, J., Lafont, Y., Taylor, P.: Proofs and Types. Cambridge University Press, Cambridge (1998)

    Google Scholar 

  • Henkin, L.: Completeness in the theory of types. Journal of Symbolic Logic 15, 81–91 (1950)

    Article  MATH  MathSciNet  Google Scholar 

  • Hindley, J.R.: Basic simple type theory. Cambridge University Press, Cambridge (1997)

    MATH  Google Scholar 

  • Jaffar, J., Maher, M.: Constraint logic programming: A survey. Journal of Logic Programming 19/20, 503–581 (1994)

    Article  MathSciNet  Google Scholar 

  • Jagadeesan, R., Nadathur, G., Saraswat, V.A.: Testing concurrent systems: An interpretation of intuitionistic logic. In: Ramanujam, R., Sen, S. (eds.) FSTTCS 2005. LNCS, vol. 3821, pp. 517–528. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  • Lastres, E.: A Semantics for Logic Programs based on HH Formulas. PhD thesis, Università di Pisa (2002)

    Google Scholar 

  • Leach, J., Nieva, S.: A higher-order logic programming language with constraints. In: Kuchen, H., Ueda, K. (eds.) FLOPS 2001. LNCS, vol. 2024, pp. 108–122. Springer, Heidelberg (2001)

    Google Scholar 

  • Leach, J., Nieva, S., Rodríguez-Artalejo, M.: Constraint logic programming with hereditary Harrop formulas. Theory and Practice of Logic Programming 1(4), 409–445 (2001)

    Article  MATH  MathSciNet  Google Scholar 

  • Miller, D.: A logical analysis of modules in logic programming. Journal of Logic Programming, 79–108 (1989)

    Google Scholar 

  • Miller, D., Nadathur, G., Pfenning, F., Scedrov, A.: Uniform proofs as a foundation for logic programming. Annals of Pure and Applied Logic 51(1-2), 125–157 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  • Mitchell, J.: Foundations for Programming Languages. MIT Press, Cambridge, MA (1996)

    Google Scholar 

  • Mitchell, J., Moggi, E.: Kripke-style models for typed lambda calculus. Annals of Pure and Applied Logic 51, 99–124 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  • Nadathur, G.: A proof procedure for the logic of hereditary harrop formulas. Journal of Automated Reasoning 11, 115–145 (1993)

    Article  MATH  MathSciNet  Google Scholar 

  • Saraswat, V.: The category of constraints is cartesian closed. In: LICS ’92. Proc. of the 7th Symposium on Logic in Computer Science, pp. 341–345. IEEE Computer Society Press, Los Alamitos (1992)

    Google Scholar 

  • Takahashi, M.: A proof of cut-elimination in simple type theory. J. Math. Soc. Japan 19(4), 399–410 (1967)

    Article  MATH  MathSciNet  Google Scholar 

  • Tarski, A.: A decision method for elementary algebra and geometry. University of California Press, Berkeley (1951)

    MATH  Google Scholar 

  • van Dalen, D.: Logic and Structure. Springer, Heidelberg (2004)

    MATH  Google Scholar 

  • Wolfram, D.A.: A semantics for λprolog. Theoretical Computer Science 136, 277–289 (1994)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Simona Ronchi Della Rocca

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer Berlin Heidelberg

About this paper

Cite this paper

Lipton, J., Nieva, S. (2007). Higher-Order Logic Programming Languages with Constraints: A Semantics. In: Della Rocca, S.R. (eds) Typed Lambda Calculi and Applications. TLCA 2007. Lecture Notes in Computer Science, vol 4583. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-73228-0_20

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-73228-0_20

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-73227-3

  • Online ISBN: 978-3-540-73228-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics