Virtual Class: Logic

Introduction

Classes 7a and 7b, which are about logic, will be held in virtual form. This page guides you through the lecture, which consists of short videos done live during class hours, and some text containing tasks for you to think about and/or discuss with other students. The idea is that the instructor gives short 10-15 minute lectures about each topic and you work through the problems between these videos and discuss them with the instructor and other students over the video call. However, the videos will be recorded and you also have the option to work through the class content at another time, and send questions via email or slack. Please indicate which section your question is about, to make it easier for me to respond effectively. This page contains all materials for classes 7a and 7b, because they form one logical unit. The class is designed to be held as two separate 1-1.5 hour lectures, including the exercises. The videos will use the slides for lecture 7 from the website.

Propositional Logic and Interpretations

Watch this video:

You are given an interpretation $W = \{ a, b, c \}$. For each of the following formulas determine if $W$ is a model for that formula.

Answer:

Next, define your own interpretation $W$, which is a model for all of the following formulas:

Answer:

Predicate Logic

Continue with this video:

You are given an interpretation

Over the domain

For each of the following formulas, determine if $W$ is a model of that formula over $D$.

Answer:

Now define an interpretation $W$ that is a model for none of the following formulas:

Answer:

Data Structures

Continue with this video:

This concludes part 1.

Inference

Continue with this video:

You have a robot with a knowledge base

The robot also knows two rules:

Answer the query: Is Canada cold? What is your proof?

Answer:

Actions

Continue with this video:

Below you are given the state $s_0$ and the effects $e_1$, $e_2$, $e_3$ of three actions. Apply $e_1$ to $s_0$ and determine the resulting state $s_1$. Apply $e_2$ to $s_1$ and determine the resulting state $s_2$. Finally, apply $e_3$ to $s_2$ and determine a final state $s_3$.

Answer: