Logic programming beyond Prolog
- đ¤ Speaker: Maarten van Emden, University of Victoria, Canada
- đ Date & Time: Thursday 09 October 2014, 14:00 - 15:00
- đ Venue: Auditorium, Microsoft Research Ltd, 21 Station Road, Cambridge, CB1 2FB
Abstract
A program in pure Prolog is an executable specification. For example, Quicksort in Prolog is a logical formula, yet shows creditable performance on long lists. But such executable specifications are a compromise: the logic is compromised by algorithmic considerations, yet only indirectly executable via an abstract machine.
This talk introduces relational programming, a method that solves the difficulty with Prolog programming by a separation of concerns. It requires writing three texts: (1) Axioms, a logical formula that specifies the problem and is not compromised by algorithmic considerations, (2) Theorem, a logical formula that expresses the algorithm, and (3) Code, a transcription of Theorem to C++. Correctness of Code relies on the logical justification of Theorem by Axioms and on a faithful transcription of Theorem to C++.
Sorting is an example where relational programming has the advantage of a higher degree of abstractness: the data to be sorted can be any C++ data type that satisfies the axioms of linear order, while the Prolog version is limited to the Herbrand universe. Another advantage of relational programs is that they can be shown to have a model-theoretic and fixpoint semantics equivalent to each other and analogous to those of pure Prolog programs.
Series This talk is part of the Microsoft Research Cambridge, public talks series.
Included in Lists
- All Talks (aka the CURE list)
- Auditorium, Microsoft Research Ltd, 21 Station Road, Cambridge, CB1 2FB
- bld31
- Cambridge Centre for Data-Driven Discovery (C2D3)
- Cambridge talks
- Chris Davis' list
- Guy Emerson's list
- Interested Talks
- Microsoft Research Cambridge, public talks
- ndk22's list
- ob366-ai4er
- Optics for the Cloud
- personal list
- PMRFPS's
- rp587
- School of Technology
- Small Lecture Theatre, Microsoft Research Ltd, 21 Station Road, Cambridge, CB1 2FB
- Trust & Technology Initiative - interesting events
- yk449
Note: Ex-directory lists are not shown.
![[Talks.cam]](/static/images/talkslogosmall.gif)

Maarten van Emden, University of Victoria, Canada
Thursday 09 October 2014, 14:00-15:00