theory Robot imports
ClockView
SPRViewSingle "HOL-Library.Saturated" begin
(*>*) subsection‹The Robot›
text‹
label{sec:kbps-theory-robot}
begin{figure}[tb] \includegraphics[width=\textwidth]{robot_clock} \caption{The implementation of the robot using the clock semantics.} \label{fig:kbps-theory-robot-clock}
end{figure}
begin{figure}[tb] \includegraphics[width=\textwidth]{robot_spr} \caption{The implementation of the robot using the SPR semantics.} \label{fig:kbps-theory-robot-spr}
end{figure}
the autonomous robot of \S\ref{sec:kbps-robot-intro}: we are
for an implementation of the KBP:
begin{center} \begin{tabular}{lll}
$\mathbf{do}$\\
& $\gcalt$ $\mathbf{K}_{\mbox{robot}}$ \textsf{goal} & $pan style='color:turquoise'>\rightarrow$ \textsf{Halt}\\
& $\gcalt$ $\lnot\mathbf{K}_{\mbox{robot}}$ \textsf{goal} & $\rightarrow$ \textsf{Nothing}\\
$\mathbf{od}$\\ \end{tabular}
end{center}
an environment where positions are identified with the natural
, the robot's sensor is within one of the position, and the \textsf{goal} is true when the position is in \{2,3,4\}$. The robot is initially at position zero, and the effect
its \textsf{Halt} action is to cause the robot to instantaneously
at its current position. A later \textsf{Nothing}
may allow the environment to move the robot further to the
.
obtain a finite environment, we truncate the number line at 5,
is intuitively sound for determinining the robot's behaviour due
the synchronous view, and the fact that if it reaches this
position then it can never satisfy its objective. Running
Haskell code generated by Isabelle yields the automata shown in
~\ref{fig:kbps-theory-robot-clock} and
~\ref{fig:kbps-theory-robot-spr} for the clock and synchronous
recall semantics respectively. These have been minimised using
's algorithm 🍋‹"DBLP:journals/acta/Gries73"›.
(inessential) labels on the states are an upper bound on the set
positions that the robot considers possible when it is in that
. Transitions are annotated with the observations yielded by the
. Double-circled states are those in which the robot performs \textsf{Halt} action, the others \textsf{Nothing}. We observe that
synchronous perfect-recall view yields a ``ratchet'' protocol,
.e. if the robot learns that it is in the goal region then it halts
all time, and that it never overshoots the goal region. Conversely
clock semantics allows the robot to infinitely alternate its
depending on the sensor reading. This is effectively the
of the intuitive implementation that halts iff the sensor
three or more.
can also see that minimisation does not yield the smallest automata
could hope for; in particular there are a lot of redundant states
the prescribed behaviour is the same but the robot's state of
different. This is because our implementations do not
what happens on invalid observations, which we have modelled
errors instead of don't-cares, and these extraneous distinctions
preserved by bisimulation reduction. We discuss this further in
S\ref{sec:kbps-alg-auto-min}.
lemma (in FiniteSingleAgentEnvironment) "Robot.Robot.SPR.implements robot_SPRSingleAlg" unfolding robot_SPRSingleAlg_def by (rule Robot.Robot_SPR.mkSPRSingleAuto_implements)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.