Table of Contents

Lab: Reasoning systems

Before the lab

Entry quiz

Q&A

  1. A museum query asks for an artwork created by Creator, but two facts match it with different creators. Has unification failed because it produced two answers?
  2. A museum adds new facts about artworks every day and wants all implied classifications to become available before visitors ask questions. Should it reason forward from the facts or backward from visitor queries?
  3. A visitor asks whether a particular artwork is connected to Impressionism. Must the museum system first derive every possible fact about its entire collection?
  4. The museum records that Cubism influenced Futurism, Futurism influenced Constructivism, and Constructivism influenced Cubism. What may happen?

Notebook

Notebook: HCAI_Lab_Reasoning_Systems.swinb

Today, we will use SWISH, an interactive environment for running Prolog programs and notebooks, instead of Google Colab. The notebook follows the usual structure; only the environment is different.

To download the notebook file, click here (Google Drive backup).

Challenge

Work in groups of 2-4 on the Museum Mystery using the provided Starter Notebook in SWISH.

Build an explainable museum detective that identifies artworks from clues about their creators, topics, artistic movements, museums, cities, and relations between movements. Your program should find all matching artworks, classify each mystery as unique, ambiguous, or unsolved, and provide a readable explanation for every candidate.

Begin by completing the missing Prolog rules and use the supplied cases to test your solution. Make sure that your program supports both direct and multi-step clues, handles cycles in the movement-influence graph, and does not treat missing knowledge as negative knowledge. Do not hard-code answers for individual mysteries.

Next, create two mysteries of your own: one with exactly one matching artwork and one with at least two matches. At least one of them should require a derived or multi-step clue. Exchange your mysteries with another group and check whether their detective returns the expected answers and explanations.

Start the challenge during the lab and continue it as part of the self-study regarding classes. Selected groups may demonstrate their mysteries and explain their modelling choices at the next lab, and effective solutions may receive bonus points.

Learn more!