skip to main content
10.1145/3471875.3472990acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
research-article

Actions you can handle: dependent types for AI plans

Published:18 August 2021Publication History

ABSTRACT

Verification of AI is a challenge that has engineering, algorithmic and programming language components. For example, AI planners are deployed to model actions of autonomous agents. They comprise a number of searching algorithms that, given a set of specified properties, find a sequence of actions that satisfy these properties. Although AI planners are mature tools from the algorithmic and engineering points of view, they have limitations as programming languages. Decidable and efficient automated search entails restrictions on the syntax of the language, prohibiting use of higher-order properties or recursion. This paper proposes a methodology for embedding plans produced by AI planners into the dependently-typed language Agda, which enables users to reason about and verify more general and abstract properties of plans, and also provides a more holistic programming language infrastructure for modelling plan execution.

References

  1. Mohammad Abdulaziz and Dominik Berger. 2021. Computing Plan-Length Bounds Using Lengths of Longest Paths. In Thirty-Fifth AAAI Conference on Artificial Intelligence, AAAI 2021, Thirty-Third Conference on Innovative Applications of Artificial Intelligence, IAAI 2021, The Eleventh Symposium on Educational Advances in Artificial Intelligence, EAAI 2021, Virtual Event, February 2-9, 2021. 11709–11717.Google ScholarGoogle Scholar
  2. Mohammad Abdulaziz and Peter Lammich. 2018. A formally verified validator for classical planning problems and solutions. In 2018 IEEE 30th International Conference on Tools with Artificial Intelligence (ICTAI). 474–479.Google ScholarGoogle ScholarCross RefCross Ref
  3. Mohammad Abdulaziz and Peter Lammich. 2020. AI Planning Languages Semantics. Arch. Formal Proofs, 2020 (2020).Google ScholarGoogle Scholar
  4. David W. Albrecht, John N. Crossley, and John S. Jeavons. 1997. New Curry-Howard Terms for Full Linear Logic. Theor. Comput. Sci., 185, 2 (1997), 217–235. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Ana Bove, Peter Dybjer, and Ulf Norell. 2009. A brief overview of Agda–a functional language with dependent types. In International Conference on Theorem Proving in Higher Order Logics. 73–78. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Cristiano Calcagno, Dino Distefano, Jérémy Dubreil, Dominik Gabi, Pieter Hooimeijer, Martino Luca, Peter O’Hearn, Irene Papakonstantinou, Jim Purbrick, and Dulma Rodriguez. 2015. Moving fast with software verification. In NASA Formal Methods Symposium. 3–11.Google ScholarGoogle ScholarCross RefCross Ref
  7. Michael Cashmore, Anna Collins, Benjamin Krarup, Senka Krivic, Daniele Magazzeni, and David Smith. 2019. Towards explainable AI planning as a service. arXiv preprint arXiv:1908.05059.Google ScholarGoogle Scholar
  8. Iliano Cervesato and Frank Pfenning. 2002. A Linear Logical Framework. Inf. Comput., 179, 1 (2002), 19–75. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Lukáš Chrpa, Pavel Surynek, and Jiří Vyskočil. 2007. Encoding of planning problems and their optimizations in linear logic. In Applications of Declarative Programming and Knowledge Management. Springer, 54–68.Google ScholarGoogle Scholar
  10. Daniel C Dennett. 2006. Cognitive wheels: The frame problem of AI.Google ScholarGoogle Scholar
  11. Lucas Dixon, Alan Smaill, and Tracy Tsang. 2009. Plans, Actions and Dialogues Using Linear Logic. Journal of Logic, Language and Information, 18, 2 (2009), 251–289. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Rebecca Eifler, Michael Cashmore, Jörg Hoffmann, Daniele Magazzeni, and Marcel Steinmetz. 2020. A new approach to plan-space explanation: Analyzing plan-property dependencies in oversubscription planning. In Proceedings of the AAAI Conference on Artificial Intelligence. 34, 9818–9826.Google ScholarGoogle ScholarCross RefCross Ref
  13. Rebecca Eifler, Marcel Steinmetz, Alvaro Torralba, and Jörg Hoffmann. 2020. Plan-space explanation via plan-property dependencies: Faster algorithms & more powerful properties. In 29th International Joint Conference on Artificial Intelligence, IJCAI 2020. 4091–4097.Google ScholarGoogle ScholarCross RefCross Ref
  14. George W Ernst and Allen Newell. 1969. GPS: A case study in generality and problem solving. Academic Pr.Google ScholarGoogle Scholar
  15. Richard Fikes and Nils J. Nilsson. 1971. STRIPS: A New Approach to the Application of Theorem Proving to Problem Solving. Artificial Intelligence, 2, 3/4 (1971), 189–208.Google ScholarGoogle ScholarCross RefCross Ref
  16. Peng Fu and Ekaterina Komendantskaya. 2017. Operational semantics of resolution and productivity in Horn clause logic. Formal Asp. Comput., 29, 3 (2017), 453–474. Google ScholarGoogle ScholarCross RefCross Ref
  17. Peng Fu, Ekaterina Komendantskaya, Tom Schrijvers, and Andrew Pond. 2016. Proof Relevant Corecursive Resolution. In Functional and Logic Programming - 13th International Symposium, FLOPS 2016, Kochi, Japan, March 4-6, 2016, Proceedings (Lecture Notes in Computer Science, Vol. 9613). Springer, 126–143.Google ScholarGoogle Scholar
  18. Alfonso Gerevini and Derek Long. 2005. Plan constraints and preferences in PDDL3. Technical Report 2005-08-07, Department of Electronics for Automation ….Google ScholarGoogle Scholar
  19. Cordell Green. 1969. Theorem proving by resolution as a basis for question-answering systems. Machine intelligence, 4 (1969), 183–205.Google ScholarGoogle Scholar
  20. Patrick J Hayes. 1981. The frame problem and related problems in artificial intelligence. In Readings in Artificial Intelligence. Elsevier, 223–230.Google ScholarGoogle Scholar
  21. A. Hill, M. Daggitt, F. Farka, K. Komendantskaya, and C. Schwaab. 2021. Agda Code for Proof Carrying Plans, 2018 – 2021. https://github.com/PDTypesGoogle ScholarGoogle Scholar
  22. Alasdair Hill, Ekaterina Komendantskaya, and Ronald P. A. Petrick. 2020. Proof-Carrying Plans: a Resource Logic for AI Planning. In PPDP ’20: 22nd International Symposium on Principles and Practice of Declarative Programming, Bologna, Italy, 9-10 September, 2020. ACM, 14:1–14:13. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Charles Antony Richard Hoare. 1969. An axiomatic basis for computer programming. Commun. ACM, 12, 10 (1969), 576–580. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Joshua S. Hodas and Dale Miller. 1994. Logic Programming in a Fragment of Intuitionistic Linear Logic. Inf. Comput., 110, 2 (1994), 327–365. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Samin S Ishtiaq and Peter W O’Hearn. 2001. BI as an assertion language for mutable data structures. In Proceedings of the 28th ACM SIGPLAN-SIGACT symposium on Principles of programming languages. 14–26. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. Eric Jacopin. 1993. Classical AI planning as theorem proving: The case of a fragment of linear logic. In AAAI Fall Symposium on Automated Deduction in Nonstandard Logics. 62–66.Google ScholarGoogle Scholar
  27. John McCarthy and Patrick J Hayes. 1981. Some philosophical problems from the standpoint of artificial intelligence. In Readings in artificial intelligence. Elsevier, 431–450.Google ScholarGoogle Scholar
  28. Drew McDermott, Malik Ghallab, Adele Howe, Craig Knoblock, Ashwin Ram, Manuela Veloso, Daniel Weld, and David Wilkins. 1998. PDDL-the planning domain definition language.Google ScholarGoogle Scholar
  29. Cathy O’neil. 2016. Weapons of math destruction: How big data increases inequality and threatens democracy. Crown. Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. Peter O’Hearn, John Reynolds, and Hongseok Yang. 2001. Local reasoning about programs that alter data structures. In International Workshop on Computer Science Logic. 1–19. Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. Peter W O’hearn. 2007. Resources, concurrency, and local reasoning. Theoretical computer science, 375, 1-3 (2007), 271–307. Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. Jeff Polakow and Frank Pfenning. 2001. Ordered linear logic and applications. Carnegie Mellon University Pittsburgh. Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. David Pym. 2019. Resource semantics: logic as a modelling technology. ACM SIGLOG News, 6, 2 (2019), 5–41. Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. Anders Schack-Nielsen and Carsten Schürmann. 2008. Celf - A Logical Framework for Deductive and Concurrent Systems (System Description). In Automated Reasoning, 4th International Joint Conference, IJCAR 2008, Sydney, Australia, August 12-15, 2008, Proceedings, Alessandro Armando, Peter Baumgartner, and Gilles Dowek (Eds.) (Lecture Notes in Computer Science, Vol. 5195). Springer, 320–326. Google ScholarGoogle ScholarDigital LibraryDigital Library
  35. Christopher Schwaab, Ekaterina Komendantskaya, Alasdair Hill, Frantisek Farka, Ronald P. A. Petrick, Joe B. Wells, and Kevin Hammond. 2019. Proof-Carrying Plans. In Practical Aspects of Declarative Languages - 21th International Symposium, PADL 2019, Lisbon, Portugal, January 14-15, 2019, Proceedings, José Júlio Alferes and Moa Johansson (Eds.) (Lecture Notes in Computer Science, Vol. 11372). Springer, 204–220.Google ScholarGoogle Scholar
  36. Mark Steedman. 2002. Plans, affordances, and combinatory grammar. Linguistics and Philosophy, 25, 5-6 (2002), 723–753.Google ScholarGoogle ScholarCross RefCross Ref

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    TyDe 2021: Proceedings of the 6th ACM SIGPLAN International Workshop on Type-Driven Development
    August 2021
    22 pages
    ISBN:9781450386166
    DOI:10.1145/3471875

    Copyright © 2021 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 18 August 2021

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • research-article

    Upcoming Conference

    ICFP '24

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader