| 
10267
 | 
     1  | 
%
  | 
| 
 | 
     2  | 
\begin{isabellebody}%
 | 
| 
 | 
     3  | 
\def\isabellecontext{CTLind}%
 | 
| 
17056
 | 
     4  | 
%
  | 
| 
 | 
     5  | 
\isadelimtheory
  | 
| 
 | 
     6  | 
%
  | 
| 
 | 
     7  | 
\endisadelimtheory
  | 
| 
 | 
     8  | 
%
  | 
| 
 | 
     9  | 
\isatagtheory
  | 
| 
17175
 | 
    10  | 
\isamarkupfalse%
  | 
| 
17056
 | 
    11  | 
%
  | 
| 
 | 
    12  | 
\endisatagtheory
  | 
| 
 | 
    13  | 
{\isafoldtheory}%
 | 
| 
 | 
    14  | 
%
  | 
| 
 | 
    15  | 
\isadelimtheory
  | 
| 
 | 
    16  | 
%
  | 
| 
 | 
    17  | 
\endisadelimtheory
  | 
| 
10267
 | 
    18  | 
%
  | 
| 
10878
 | 
    19  | 
\isamarkupsubsection{CTL Revisited%
 | 
| 
10395
 | 
    20  | 
}
  | 
| 
11866
 | 
    21  | 
\isamarkuptrue%
  | 
| 
10267
 | 
    22  | 
%
  | 
| 
 | 
    23  | 
\begin{isamarkuptext}%
 | 
| 
 | 
    24  | 
\label{sec:CTL-revisited}
 | 
| 
11494
 | 
    25  | 
\index{CTL|(}%
 | 
| 
 | 
    26  | 
The purpose of this section is twofold: to demonstrate
  | 
| 
 | 
    27  | 
some of the induction principles and heuristics discussed above and to
  | 
| 
10283
 | 
    28  | 
show how inductive definitions can simplify proofs.
  | 
| 
10267
 | 
    29  | 
In \S\ref{sec:CTL} we gave a fairly involved proof of the correctness of a
 | 
| 
10795
 | 
    30  | 
model checker for CTL\@. In particular the proof of the
  | 
| 
10267
 | 
    31  | 
\isa{infinity{\isacharunderscore}lemma} on the way to \isa{AF{\isacharunderscore}lemma{\isadigit{2}}} is not as
 | 
| 
11494
 | 
    32  | 
simple as one might expect, due to the \isa{SOME} operator
 | 
| 
10283
 | 
    33  | 
involved. Below we give a simpler proof of \isa{AF{\isacharunderscore}lemma{\isadigit{2}}}
 | 
| 
 | 
    34  | 
based on an auxiliary inductive definition.
  | 
| 
10267
 | 
    35  | 
  | 
| 
 | 
    36  | 
Let us call a (finite or infinite) path \emph{\isa{A}-avoiding} if it does
 | 
| 
 | 
    37  | 
not touch any node in the set \isa{A}. Then \isa{AF{\isacharunderscore}lemma{\isadigit{2}}} says
 | 
| 
 | 
    38  | 
that if no infinite path from some state \isa{s} is \isa{A}-avoiding,
 | 
| 
 | 
    39  | 
then \isa{s\ {\isasymin}\ lfp\ {\isacharparenleft}af\ A{\isacharparenright}}. We prove this by inductively defining the set
 | 
| 
 | 
    40  | 
\isa{Avoid\ s\ A} of states reachable from \isa{s} by a finite \isa{A}-avoiding path:
 | 
| 
 | 
    41  | 
% Second proof of opposite direction, directly by well-founded induction
  | 
| 
 | 
    42  | 
% on the initial segment of M that avoids A.%
  | 
| 
 | 
    43  | 
\end{isamarkuptext}%
 | 
| 
17175
 | 
    44  | 
\isamarkuptrue%
  | 
| 
 | 
    45  | 
\isacommand{consts}\isamarkupfalse%
 | 
| 
 | 
    46  | 
\ Avoid\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequoteopen}state\ {\isasymRightarrow}\ state\ set\ {\isasymRightarrow}\ state\ set{\isachardoublequoteclose}\isanewline
 | 
| 
 | 
    47  | 
\isacommand{inductive}\isamarkupfalse%
 | 
| 
 | 
    48  | 
\ {\isachardoublequoteopen}Avoid\ s\ A{\isachardoublequoteclose}\isanewline
 | 
| 
 | 
    49  | 
\isakeyword{intros}\ {\isachardoublequoteopen}s\ {\isasymin}\ Avoid\ s\ A{\isachardoublequoteclose}\isanewline
 | 
| 
 | 
    50  | 
\ \ \ \ \ \ \ {\isachardoublequoteopen}{\isasymlbrakk}\ t\ {\isasymin}\ Avoid\ s\ A{\isacharsemicolon}\ t\ {\isasymnotin}\ A{\isacharsemicolon}\ {\isacharparenleft}t{\isacharcomma}u{\isacharparenright}\ {\isasymin}\ M\ {\isasymrbrakk}\ {\isasymLongrightarrow}\ u\ {\isasymin}\ Avoid\ s\ A{\isachardoublequoteclose}%
 | 
| 
10267
 | 
    51  | 
\begin{isamarkuptext}%
 | 
| 
 | 
    52  | 
It is easy to see that for any infinite \isa{A}-avoiding path \isa{f}
 | 
| 
12492
 | 
    53  | 
with \isa{f\ {\isadigit{0}}\ {\isasymin}\ Avoid\ s\ A} there is an infinite \isa{A}-avoiding path
 | 
| 
10267
 | 
    54  | 
starting with \isa{s} because (by definition of \isa{Avoid}) there is a
 | 
| 
12492
 | 
    55  | 
finite \isa{A}-avoiding path from \isa{s} to \isa{f\ {\isadigit{0}}}.
 | 
| 
 | 
    56  | 
The proof is by induction on \isa{f\ {\isadigit{0}}\ {\isasymin}\ Avoid\ s\ A}. However,
 | 
| 
10267
 | 
    57  | 
this requires the following
  | 
| 
 | 
    58  | 
reformulation, as explained in \S\ref{sec:ind-var-in-prems} above;
 | 
| 
 | 
    59  | 
the \isa{rule{\isacharunderscore}format} directive undoes the reformulation after the proof.%
 | 
| 
 | 
    60  | 
\end{isamarkuptext}%
 | 
| 
17175
 | 
    61  | 
\isamarkuptrue%
  | 
| 
 | 
    62  | 
\isacommand{lemma}\isamarkupfalse%
 | 
| 
 | 
    63  | 
\ ex{\isacharunderscore}infinite{\isacharunderscore}path{\isacharbrackleft}rule{\isacharunderscore}format{\isacharbrackright}{\isacharcolon}\isanewline
 | 
| 
 | 
    64  | 
\ \ {\isachardoublequoteopen}t\ {\isasymin}\ Avoid\ s\ A\ \ {\isasymLongrightarrow}\isanewline
 | 
| 
 | 
    65  | 
\ \ \ {\isasymforall}f{\isasymin}Paths\ t{\isachardot}\ {\isacharparenleft}{\isasymforall}i{\isachardot}\ f\ i\ {\isasymnotin}\ A{\isacharparenright}\ {\isasymlongrightarrow}\ {\isacharparenleft}{\isasymexists}p{\isasymin}Paths\ s{\isachardot}\ {\isasymforall}i{\isachardot}\ p\ i\ {\isasymnotin}\ A{\isacharparenright}{\isachardoublequoteclose}\isanewline
 | 
| 
17056
 | 
    66  | 
%
  | 
| 
 | 
    67  | 
\isadelimproof
  | 
| 
 | 
    68  | 
%
  | 
| 
 | 
    69  | 
\endisadelimproof
  | 
| 
 | 
    70  | 
%
  | 
| 
 | 
    71  | 
\isatagproof
  | 
| 
17175
 | 
    72  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
    73  | 
{\isacharparenleft}erule\ Avoid{\isachardot}induct{\isacharparenright}\isanewline
 | 
| 
 | 
    74  | 
\ \isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
    75  | 
{\isacharparenleft}blast{\isacharparenright}\isanewline
 | 
| 
 | 
    76  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
    77  | 
{\isacharparenleft}clarify{\isacharparenright}\isanewline
 | 
| 
 | 
    78  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
    79  | 
{\isacharparenleft}drule{\isacharunderscore}tac\ x\ {\isacharequal}\ {\isachardoublequoteopen}{\isasymlambda}i{\isachardot}\ case\ i\ of\ {\isadigit{0}}\ {\isasymRightarrow}\ t\ {\isacharbar}\ Suc\ i\ {\isasymRightarrow}\ f\ i{\isachardoublequoteclose}\ \isakeyword{in}\ bspec{\isacharparenright}\isanewline
 | 
| 
 | 
    80  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
    81  | 
{\isacharparenleft}simp{\isacharunderscore}all\ add{\isacharcolon}\ Paths{\isacharunderscore}def\ split{\isacharcolon}\ nat{\isachardot}split{\isacharparenright}\isanewline
 | 
| 
 | 
    82  | 
\isacommand{done}\isamarkupfalse%
 | 
| 
 | 
    83  | 
%
  | 
| 
17056
 | 
    84  | 
\endisatagproof
  | 
| 
 | 
    85  | 
{\isafoldproof}%
 | 
| 
 | 
    86  | 
%
  | 
| 
 | 
    87  | 
\isadelimproof
  | 
| 
 | 
    88  | 
%
  | 
| 
 | 
    89  | 
\endisadelimproof
  | 
| 
11866
 | 
    90  | 
%
  | 
| 
10267
 | 
    91  | 
\begin{isamarkuptext}%
 | 
| 
 | 
    92  | 
\noindent
  | 
| 
11494
 | 
    93  | 
The base case (\isa{t\ {\isacharequal}\ s}) is trivial and proved by \isa{blast}.
 | 
| 
10267
 | 
    94  | 
In the induction step, we have an infinite \isa{A}-avoiding path \isa{f}
 | 
| 
 | 
    95  | 
starting from \isa{u}, a successor of \isa{t}. Now we simply instantiate
 | 
| 
 | 
    96  | 
the \isa{{\isasymforall}f{\isasymin}Paths\ t} in the induction hypothesis by the path starting with
 | 
| 
 | 
    97  | 
\isa{t} and continuing with \isa{f}. That is what the above $\lambda$-term
 | 
| 
10878
 | 
    98  | 
expresses.  Simplification shows that this is a path starting with \isa{t} 
 | 
| 
 | 
    99  | 
and that the instantiated induction hypothesis implies the conclusion.
  | 
| 
10267
 | 
   100  | 
  | 
| 
11196
 | 
   101  | 
Now we come to the key lemma. Assuming that no infinite \isa{A}-avoiding
 | 
| 
11277
 | 
   102  | 
path starts from \isa{s}, we want to show \isa{s\ {\isasymin}\ lfp\ {\isacharparenleft}af\ A{\isacharparenright}}. For the
 | 
| 
 | 
   103  | 
inductive proof this must be generalized to the statement that every point \isa{t}
 | 
| 
11494
 | 
   104  | 
``between'' \isa{s} and \isa{A}, in other words all of \isa{Avoid\ s\ A},
 | 
| 
11196
 | 
   105  | 
is contained in \isa{lfp\ {\isacharparenleft}af\ A{\isacharparenright}}:%
 | 
| 
10267
 | 
   106  | 
\end{isamarkuptext}%
 | 
| 
17175
 | 
   107  | 
\isamarkuptrue%
  | 
| 
 | 
   108  | 
\isacommand{lemma}\isamarkupfalse%
 | 
| 
 | 
   109  | 
\ Avoid{\isacharunderscore}in{\isacharunderscore}lfp{\isacharbrackleft}rule{\isacharunderscore}format{\isacharparenleft}no{\isacharunderscore}asm{\isacharparenright}{\isacharbrackright}{\isacharcolon}\isanewline
 | 
| 
 | 
   110  | 
\ \ {\isachardoublequoteopen}{\isasymforall}p{\isasymin}Paths\ s{\isachardot}\ {\isasymexists}i{\isachardot}\ p\ i\ {\isasymin}\ A\ {\isasymLongrightarrow}\ t\ {\isasymin}\ Avoid\ s\ A\ {\isasymlongrightarrow}\ t\ {\isasymin}\ lfp{\isacharparenleft}af\ A{\isacharparenright}{\isachardoublequoteclose}%
 | 
| 
17056
 | 
   111  | 
\isadelimproof
  | 
| 
 | 
   112  | 
%
  | 
| 
 | 
   113  | 
\endisadelimproof
  | 
| 
 | 
   114  | 
%
  | 
| 
 | 
   115  | 
\isatagproof
  | 
| 
16069
 | 
   116  | 
%
  | 
| 
 | 
   117  | 
\begin{isamarkuptxt}%
 | 
| 
 | 
   118  | 
\noindent
  | 
| 
 | 
   119  | 
The proof is by induction on the ``distance'' between \isa{t} and \isa{A}. Remember that \isa{lfp\ {\isacharparenleft}af\ A{\isacharparenright}\ {\isacharequal}\ A\ {\isasymunion}\ M{\isasyminverse}\ {\isacharbackquote}{\isacharbackquote}\ lfp\ {\isacharparenleft}af\ A{\isacharparenright}}.
 | 
| 
 | 
   120  | 
If \isa{t} is already in \isa{A}, then \isa{t\ {\isasymin}\ lfp\ {\isacharparenleft}af\ A{\isacharparenright}} is
 | 
| 
 | 
   121  | 
trivial. If \isa{t} is not in \isa{A} but all successors are in
 | 
| 
 | 
   122  | 
\isa{lfp\ {\isacharparenleft}af\ A{\isacharparenright}} (induction hypothesis), then \isa{t\ {\isasymin}\ lfp\ {\isacharparenleft}af\ A{\isacharparenright}} is
 | 
| 
 | 
   123  | 
again trivial.
  | 
| 
 | 
   124  | 
  | 
| 
 | 
   125  | 
The formal counterpart of this proof sketch is a well-founded induction
  | 
| 
 | 
   126  | 
on~\isa{M} restricted to \isa{Avoid\ s\ A\ {\isacharminus}\ A}, roughly speaking:
 | 
| 
 | 
   127  | 
\begin{isabelle}%
 | 
| 
 | 
   128  | 
\ \ \ \ \ {\isacharbraceleft}{\isacharparenleft}y{\isacharcomma}\ x{\isacharparenright}{\isachardot}\ {\isacharparenleft}x{\isacharcomma}\ y{\isacharparenright}\ {\isasymin}\ M\ {\isasymand}\ x\ {\isasymin}\ Avoid\ s\ A\ {\isasymand}\ x\ {\isasymnotin}\ A{\isacharbraceright}%
 | 
| 
 | 
   129  | 
\end{isabelle}
 | 
| 
 | 
   130  | 
As we shall see presently, the absence of infinite \isa{A}-avoiding paths
 | 
| 
 | 
   131  | 
starting from \isa{s} implies well-foundedness of this relation. For the
 | 
| 
 | 
   132  | 
moment we assume this and proceed with the induction:%
  | 
| 
 | 
   133  | 
\end{isamarkuptxt}%
 | 
| 
17175
 | 
   134  | 
\isamarkuptrue%
  | 
| 
 | 
   135  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   136  | 
{\isacharparenleft}subgoal{\isacharunderscore}tac\ {\isachardoublequoteopen}wf{\isacharbraceleft}{\isacharparenleft}y{\isacharcomma}x{\isacharparenright}{\isachardot}\ {\isacharparenleft}x{\isacharcomma}y{\isacharparenright}\ {\isasymin}\ M\ {\isasymand}\ x\ {\isasymin}\ Avoid\ s\ A\ {\isasymand}\ x\ {\isasymnotin}\ A{\isacharbraceright}{\isachardoublequoteclose}{\isacharparenright}\isanewline
 | 
| 
 | 
   137  | 
\ \isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   138  | 
{\isacharparenleft}erule{\isacharunderscore}tac\ a\ {\isacharequal}\ t\ \isakeyword{in}\ wf{\isacharunderscore}induct{\isacharparenright}\isanewline
 | 
| 
 | 
   139  | 
\ \isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   140  | 
{\isacharparenleft}clarsimp{\isacharparenright}\isamarkupfalse%
 | 
| 
16069
 | 
   141  | 
%
  | 
| 
 | 
   142  | 
\begin{isamarkuptxt}%
 | 
| 
 | 
   143  | 
\noindent
  | 
| 
 | 
   144  | 
\begin{isabelle}%
 | 
| 
 | 
   145  | 
\ {\isadigit{1}}{\isachardot}\ {\isasymAnd}t{\isachardot}\ {\isasymlbrakk}{\isasymforall}p{\isasymin}Paths\ s{\isachardot}\ {\isasymexists}i{\isachardot}\ p\ i\ {\isasymin}\ A{\isacharsemicolon}\isanewline
 | 
| 
 | 
   146  | 
\isaindent{\ {\isadigit{1}}{\isachardot}\ {\isasymAnd}t{\isachardot}\ \ }{\isasymforall}y{\isachardot}\ {\isacharparenleft}t{\isacharcomma}\ y{\isacharparenright}\ {\isasymin}\ M\ {\isasymand}\ t\ {\isasymnotin}\ A\ {\isasymlongrightarrow}\isanewline
 | 
| 
 | 
   147  | 
\isaindent{\ {\isadigit{1}}{\isachardot}\ {\isasymAnd}t{\isachardot}\ \ {\isasymforall}y{\isachardot}\ }y\ {\isasymin}\ Avoid\ s\ A\ {\isasymlongrightarrow}\ y\ {\isasymin}\ lfp\ {\isacharparenleft}af\ A{\isacharparenright}{\isacharsemicolon}\isanewline
 | 
| 
 | 
   148  | 
\isaindent{\ {\isadigit{1}}{\isachardot}\ {\isasymAnd}t{\isachardot}\ \ }t\ {\isasymin}\ Avoid\ s\ A{\isasymrbrakk}\isanewline
 | 
| 
 | 
   149  | 
\isaindent{\ {\isadigit{1}}{\isachardot}\ {\isasymAnd}t{\isachardot}\ }{\isasymLongrightarrow}\ t\ {\isasymin}\ lfp\ {\isacharparenleft}af\ A{\isacharparenright}\isanewline
 | 
| 
 | 
   150  | 
\ {\isadigit{2}}{\isachardot}\ {\isasymforall}p{\isasymin}Paths\ s{\isachardot}\ {\isasymexists}i{\isachardot}\ p\ i\ {\isasymin}\ A\ {\isasymLongrightarrow}\isanewline
 | 
| 
 | 
   151  | 
\isaindent{\ {\isadigit{2}}{\isachardot}\ }wf\ {\isacharbraceleft}{\isacharparenleft}y{\isacharcomma}\ x{\isacharparenright}{\isachardot}\ {\isacharparenleft}x{\isacharcomma}\ y{\isacharparenright}\ {\isasymin}\ M\ {\isasymand}\ x\ {\isasymin}\ Avoid\ s\ A\ {\isasymand}\ x\ {\isasymnotin}\ A{\isacharbraceright}%
 | 
| 
 | 
   152  | 
\end{isabelle}
 | 
| 
 | 
   153  | 
Now the induction hypothesis states that if \isa{t\ {\isasymnotin}\ A}
 | 
| 
 | 
   154  | 
then all successors of \isa{t} that are in \isa{Avoid\ s\ A} are in
 | 
| 
 | 
   155  | 
\isa{lfp\ {\isacharparenleft}af\ A{\isacharparenright}}. Unfolding \isa{lfp} in the conclusion of the first
 | 
| 
 | 
   156  | 
subgoal once, we have to prove that \isa{t} is in \isa{A} or all successors
 | 
| 
 | 
   157  | 
of \isa{t} are in \isa{lfp\ {\isacharparenleft}af\ A{\isacharparenright}}.  But if \isa{t} is not in \isa{A},
 | 
| 
 | 
   158  | 
the second 
  | 
| 
 | 
   159  | 
\isa{Avoid}-rule implies that all successors of \isa{t} are in
 | 
| 
 | 
   160  | 
\isa{Avoid\ s\ A}, because we also assume \isa{t\ {\isasymin}\ Avoid\ s\ A}.
 | 
| 
 | 
   161  | 
Hence, by the induction hypothesis, all successors of \isa{t} are indeed in
 | 
| 
 | 
   162  | 
\isa{lfp\ {\isacharparenleft}af\ A{\isacharparenright}}. Mechanically:%
 | 
| 
 | 
   163  | 
\end{isamarkuptxt}%
 | 
| 
17175
 | 
   164  | 
\isamarkuptrue%
  | 
| 
 | 
   165  | 
\ \isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   166  | 
{\isacharparenleft}subst\ lfp{\isacharunderscore}unfold{\isacharbrackleft}OF\ mono{\isacharunderscore}af{\isacharbrackright}{\isacharparenright}\isanewline
 | 
| 
 | 
   167  | 
\ \isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   168  | 
{\isacharparenleft}simp\ {\isacharparenleft}no{\isacharunderscore}asm{\isacharparenright}\ add{\isacharcolon}\ af{\isacharunderscore}def{\isacharparenright}\isanewline
 | 
| 
 | 
   169  | 
\ \isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   170  | 
{\isacharparenleft}blast\ intro{\isacharcolon}\ Avoid{\isachardot}intros{\isacharparenright}%
 | 
| 
16069
 | 
   171  | 
\begin{isamarkuptxt}%
 | 
| 
 | 
   172  | 
Having proved the main goal, we return to the proof obligation that the 
  | 
| 
 | 
   173  | 
relation used above is indeed well-founded. This is proved by contradiction: if
  | 
| 
 | 
   174  | 
the relation is not well-founded then there exists an infinite \isa{A}-avoiding path all in \isa{Avoid\ s\ A}, by theorem
 | 
| 
 | 
   175  | 
\isa{wf{\isacharunderscore}iff{\isacharunderscore}no{\isacharunderscore}infinite{\isacharunderscore}down{\isacharunderscore}chain}:
 | 
| 
 | 
   176  | 
\begin{isabelle}%
 | 
| 
 | 
   177  | 
\ \ \ \ \ wf\ r\ {\isacharequal}\ {\isacharparenleft}{\isasymnot}\ {\isacharparenleft}{\isasymexists}f{\isachardot}\ {\isasymforall}i{\isachardot}\ {\isacharparenleft}f\ {\isacharparenleft}Suc\ i{\isacharparenright}{\isacharcomma}\ f\ i{\isacharparenright}\ {\isasymin}\ r{\isacharparenright}{\isacharparenright}%
 | 
| 
 | 
   178  | 
\end{isabelle}
 | 
| 
 | 
   179  | 
From lemma \isa{ex{\isacharunderscore}infinite{\isacharunderscore}path} the existence of an infinite
 | 
| 
 | 
   180  | 
\isa{A}-avoiding path starting in \isa{s} follows, contradiction.%
 | 
| 
 | 
   181  | 
\end{isamarkuptxt}%
 | 
| 
17175
 | 
   182  | 
\isamarkuptrue%
  | 
| 
 | 
   183  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   184  | 
{\isacharparenleft}erule\ contrapos{\isacharunderscore}pp{\isacharparenright}\isanewline
 | 
| 
 | 
   185  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   186  | 
{\isacharparenleft}simp\ add{\isacharcolon}\ wf{\isacharunderscore}iff{\isacharunderscore}no{\isacharunderscore}infinite{\isacharunderscore}down{\isacharunderscore}chain{\isacharparenright}\isanewline
 | 
| 
 | 
   187  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   188  | 
{\isacharparenleft}erule\ exE{\isacharparenright}\isanewline
 | 
| 
 | 
   189  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   190  | 
{\isacharparenleft}rule\ ex{\isacharunderscore}infinite{\isacharunderscore}path{\isacharparenright}\isanewline
 | 
| 
 | 
   191  | 
\isacommand{apply}\isamarkupfalse%
 | 
| 
 | 
   192  | 
{\isacharparenleft}auto\ simp\ add{\isacharcolon}\ Paths{\isacharunderscore}def{\isacharparenright}\isanewline
 | 
| 
 | 
   193  | 
\isacommand{done}\isamarkupfalse%
 | 
| 
 | 
   194  | 
%
  | 
| 
17056
 | 
   195  | 
\endisatagproof
  | 
| 
 | 
   196  | 
{\isafoldproof}%
 | 
| 
 | 
   197  | 
%
  | 
| 
 | 
   198  | 
\isadelimproof
  | 
| 
 | 
   199  | 
%
  | 
| 
 | 
   200  | 
\endisadelimproof
  | 
| 
11866
 | 
   201  | 
%
  | 
| 
10267
 | 
   202  | 
\begin{isamarkuptext}%
 | 
| 
11196
 | 
   203  | 
The \isa{{\isacharparenleft}no{\isacharunderscore}asm{\isacharparenright}} modifier of the \isa{rule{\isacharunderscore}format} directive in the
 | 
| 
 | 
   204  | 
statement of the lemma means
  | 
| 
11494
 | 
   205  | 
that the assumption is left unchanged; otherwise the \isa{{\isasymforall}p} 
 | 
| 
 | 
   206  | 
would be turned
  | 
| 
10267
 | 
   207  | 
into a \isa{{\isasymAnd}p}, which would complicate matters below. As it is,
 | 
| 
 | 
   208  | 
\isa{Avoid{\isacharunderscore}in{\isacharunderscore}lfp} is now
 | 
| 
 | 
   209  | 
\begin{isabelle}%
 | 
| 
10696
 | 
   210  | 
\ \ \ \ \ {\isasymlbrakk}{\isasymforall}p{\isasymin}Paths\ s{\isachardot}\ {\isasymexists}i{\isachardot}\ p\ i\ {\isasymin}\ A{\isacharsemicolon}\ t\ {\isasymin}\ Avoid\ s\ A{\isasymrbrakk}\ {\isasymLongrightarrow}\ t\ {\isasymin}\ lfp\ {\isacharparenleft}af\ A{\isacharparenright}%
 | 
| 
10267
 | 
   211  | 
\end{isabelle}
 | 
| 
 | 
   212  | 
The main theorem is simply the corollary where \isa{t\ {\isacharequal}\ s},
 | 
| 
11494
 | 
   213  | 
when the assumption \isa{t\ {\isasymin}\ Avoid\ s\ A} is trivially true
 | 
| 
10845
 | 
   214  | 
by the first \isa{Avoid}-rule. Isabelle confirms this:%
 | 
| 
11494
 | 
   215  | 
\index{CTL|)}%
 | 
| 
10267
 | 
   216  | 
\end{isamarkuptext}%
 | 
| 
17175
 | 
   217  | 
\isamarkuptrue%
  | 
| 
 | 
   218  | 
\isacommand{theorem}\isamarkupfalse%
 | 
| 
 | 
   219  | 
\ AF{\isacharunderscore}lemma{\isadigit{2}}{\isacharcolon}\ \ {\isachardoublequoteopen}{\isacharbraceleft}s{\isachardot}\ {\isasymforall}p\ {\isasymin}\ Paths\ s{\isachardot}\ {\isasymexists}\ i{\isachardot}\ p\ i\ {\isasymin}\ A{\isacharbraceright}\ {\isasymsubseteq}\ lfp{\isacharparenleft}af\ A{\isacharparenright}{\isachardoublequoteclose}\isanewline
 | 
| 
17056
 | 
   220  | 
%
  | 
| 
 | 
   221  | 
\isadelimproof
  | 
| 
 | 
   222  | 
%
  | 
| 
 | 
   223  | 
\endisadelimproof
  | 
| 
 | 
   224  | 
%
  | 
| 
 | 
   225  | 
\isatagproof
  | 
| 
17175
 | 
   226  | 
\isacommand{by}\isamarkupfalse%
 | 
| 
 | 
   227  | 
{\isacharparenleft}auto\ elim{\isacharcolon}\ Avoid{\isacharunderscore}in{\isacharunderscore}lfp\ intro{\isacharcolon}\ Avoid{\isachardot}intros{\isacharparenright}\isanewline
 | 
| 
15488
 | 
   228  | 
\isanewline
  | 
| 
17056
 | 
   229  | 
%
  | 
| 
 | 
   230  | 
\endisatagproof
  | 
| 
 | 
   231  | 
{\isafoldproof}%
 | 
| 
 | 
   232  | 
%
  | 
| 
 | 
   233  | 
\isadelimproof
  | 
| 
 | 
   234  | 
%
  | 
| 
 | 
   235  | 
\endisadelimproof
  | 
| 
 | 
   236  | 
%
  | 
| 
 | 
   237  | 
\isadelimtheory
  | 
| 
 | 
   238  | 
%
  | 
| 
 | 
   239  | 
\endisadelimtheory
  | 
| 
 | 
   240  | 
%
  | 
| 
 | 
   241  | 
\isatagtheory
  | 
| 
17175
 | 
   242  | 
\isamarkupfalse%
  | 
| 
17056
 | 
   243  | 
%
  | 
| 
 | 
   244  | 
\endisatagtheory
  | 
| 
 | 
   245  | 
{\isafoldtheory}%
 | 
| 
 | 
   246  | 
%
  | 
| 
 | 
   247  | 
\isadelimtheory
  | 
| 
 | 
   248  | 
%
  | 
| 
 | 
   249  | 
\endisadelimtheory
  | 
| 
10267
 | 
   250  | 
\end{isabellebody}%
 | 
| 
 | 
   251  | 
%%% Local Variables:
  | 
| 
 | 
   252  | 
%%% mode: latex
  | 
| 
 | 
   253  | 
%%% TeX-master: "root"
  | 
| 
 | 
   254  | 
%%% End:
  |