Skip to content

Commit

Permalink
fix: minor aspects
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Mar 15, 2022
1 parent bc07e56 commit 3cde7da
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions ise-lab-knowledge-representation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
% version
\newcommand{\versionmajor}{1}
\newcommand{\versionminor}{0}
\newcommand{\versionpatch}{0}
\newcommand{\versionpatch}{1}
\newcommand{\version}{\versionmajor.\versionminor.\versionpatch}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title[\currentLab{} -- Knowledge Representation]{Knowledge Representation with Horn Clauses}
Expand Down Expand Up @@ -130,7 +130,8 @@ \section{Premises}
\item[ie] an algorithm for decising the \alert{unsatisfiability} of FOL formul\ae{} in \alert{Skolemized form}
%
\begin{itemize}
\item Skolem form $\approx$ all variables are \alert{universally} quantified at the beginning of the formula
\item[ie] all variables are \alert{universally} quantified at the beginning of the formula
\item[cf] \uurl{https://mathworld.wolfram.com/SkolemizedForm.html}
\end{itemize}

\item SL = Selective Linear
Expand Down Expand Up @@ -308,7 +309,7 @@ \subsection{Terms}
\item $\variable{X}$ is a variable
\item $\functor{s}(\variable{X})$, $\functor{s}(\functor{z})$, etc. are structures
\item $\mathcal{F} = \{ \functor{s}, \functor{z} \}$ \hfill {\footnotesize(where $\functor{s}$ is a 1-ary functor, while $\functor{z}$ is 0-ary)}
\item $\mathcal{V} = \{ \functor{X} \}$
\item $\mathcal{V} = \{ \variable{X} \}$
\end{itemize}
\end{exampleblock}
\end{frame}
Expand Down Expand Up @@ -761,6 +762,25 @@ \subsection{Horn Clauses}
\end{exampleblock}
\end{frame}

\begin{frame}{Skip to Exercises}
\begin{block}{You may already start some exercises}
\begin{enumerate}
\item exercise about terms on slide \ref{slide:first-exercise-on-terms}
\item exercise about Herbrand universe on slide \ref{slide:second-exercise-on-terms}
\item exercise about clauses on slide \ref{slide:first-exercise-on-clauses}
\item exercise about theories on slide \ref{slide:second-exercise-on-clauses}
\end{enumerate}
\end{block}

\begin{alertblock}{Prerequisites}
\begin{itemize}
\item consider reading slide \ref{slide:prolog} (relevant Prolog-related aspects)
\item consider reading slide \ref{slide:tuprolog-overview} (relevant \twopkt{}-related aspects)
\end{itemize}
before proceeding with exercises
\end{alertblock}
\end{frame}

%===============================================================================
\section{Flexibility of Logic Representation}
%===============================================================================
Expand Down Expand Up @@ -1038,6 +1058,7 @@ \section{About Horn Clauses in Prolog}
%===============================================================================

\begin{frame}{Prolog Overview}
\label{slide:prolog}
\begin{itemize}
\item Most relevant language in the \alert{logic programming} playground

Expand Down Expand Up @@ -1125,6 +1146,7 @@ \section{Practice}
\subsection{\tuprolog{} and \twopkt{}}

\begin{frame}{\twopkt{} Overview}
\label{slide:tuprolog-overview}
\begin{itemize}
\item Multi-platform, Kotlin-based reboot of \tuprolog{}
%
Expand Down Expand Up @@ -1224,6 +1246,7 @@ \subsection{Exercises on terms}
\startExercise{}

\begin{frame}{\currentExercise{} -- Terms construction}
\label{slide:first-exercise-on-terms}

\begin{block}{Goal}
Understand the basics of terms construction in \twopkt{}
Expand All @@ -1234,6 +1257,8 @@ \subsection{Exercises on terms}
\startExercise{}

\begin{frame}{\currentExercise{} -- Herbrand Universe}
\label{slide:second-exercise-on-terms}

\begin{block}{Goal}
\begin{itemize}
\item Implement the algorithm for constructing the Herbrand Universe \ldots
Expand Down Expand Up @@ -1262,7 +1287,7 @@ \subsection{Exercises on Horn clauses}
\startExercise{}

\begin{frame}{\currentExercise{} -- Clauses construction}

\label{slide:first-exercise-on-clauses}
\begin{block}{Goal}
Understand the basics of clauses and theories construction in \twopkt{}
\end{block}
Expand All @@ -1272,6 +1297,7 @@ \subsection{Exercises on Horn clauses}
\startExercise{}

\begin{frame}{\currentExercise{} -- Theory Analysis}
\label{slide:second-exercise-on-clauses}
\begin{block}{Goal}
\begin{itemize}
\item Write an algorithm aimed at inspecting a theory, in order to compute:
Expand Down

0 comments on commit 3cde7da

Please sign in to comment.