Quelle Framework.thy
Sprache: Isabelle
|
|
(*:maxLineLen=78:*)
theory Framework
imports Main Base
begin
chapter ‹The Isabelle/Isar Framework \label{ch:isar-framework}›
text ‹
Isabelle/Isar cite‹"Wenzel:1999:TPHOL" and "Wenzel-PhD" and
"Nipkow-TYPES02" and "Wiedijk:1999:Mizar" and "Wenzel-Paulson:2006" and
"Wenzel:2006:Festschrift"› is a generic framework for developing formal
mathematical documents with full proof checking. Definitions, statements and
proofs are organized as theories. A collection of theories sources may be
presented as a printed document; see also \chref{ch:document-prep}.
The main concern of Isar is the design of a human-readable structured proof
language, which is called the ``primary proof format'' in Isar terminology.
Such a primary proof language is somewhere in the middle between the
extremes of primitive proof objects and actual natural language.
Thus Isar challenges the traditional way of recording informal proofs in
mathematical prose, as well as the common tendency to see fully formal
proofs directly as objects of some logical calculus (e.g.\ ‹λ›-terms in a
version of type theory). Technically, Isar is an interpreter of a simple
block-structured language for describing the data flow of local facts and
goals, interspersed with occasional invocations of proof methods. Everything
is reduced to logical inferences internally, but these steps are somewhat
marginal compared to the overall bookkeeping of the interpretation process.
Thanks to careful design of the syntax and semantics of Isar language
elements, a formal record of Isar commands may later appear as an
intelligible text to the human reader.
The Isar proof language has emerged from careful analysis of some inherent
virtues of the logical framework Isabelle/Pure cite‹"paulson-found" and
"paulson700"›, notably composition of higher-order natural deduction rules,
which is a generalization of Gentzen's original calculus cite‹"Gentzen:1935"›. The approach of generic inference systems in Pure is
continued by Isar towards actual proof texts. See also
\figref{fig:natural-deduction}
\begin{figure}[htb]
\begin{center}
\begin{minipage}[t]{0.9\textwidth}
\textbf{Inferences:}
\begin{center}
\begin{tabular}{l@ {\qquad}l}
\infer{‹B›}{‹A ⟶ B› & ‹A›} &
\infer{‹A ⟶ B›}{\infer*{‹B›}{‹[A]›}} \\
\end{tabular}
\end{center}
\textbf{Isabelle/Pure:}
\begin{center}
\begin{tabular}{l@ {\qquad}l}
‹(A ⟶ B) ==> A ==> B› &
‹(A ==> B) ==> A ⟶ B›
\end{tabular}
\end{center}
\textbf{Isabelle/Isar:}
\begin{center}
\begin{minipage}[t]{0.4\textwidth}
@{theory_text [display, indent = 2]
‹have "A ⟶ B" 🚫 Type 🚫‹Proof.context› represents proof contexts.
also have A \<proof>
finally have B .\<close>}
\end{minipage}
\begin{minipage}[t]{0.4\textwidth}
@{theory_text [display, indent = 2]
\<open>have "A \<longrightarrow> B"
proof
assume A
then show B \<proof>
qed\<close>}
\end{minipage}
\end{center}
\end{minipage}
\end{center}
\caption{Natural Deduction via inferences according to Gentzen, rules in
Isabelle/Pure, and proofs in Isabelle/Isar}\label{fig:natural-deduction}
\end{figure}
\<^medskip>
Concrete applications require another intermediate layer: an object-logic.
Isabelle/HOL \<^cite>\<open>"isa-tutorial"\<close> (simply-typed set-theory) is most
commonly used; elementary examples are given in the directories
\<^dir>\<open>~~/src/Pure/Examples\<close> and \<^dir>\<open>~~/src/HOL/Examples\<close>. Some examples
demonstrate how to start a fresh object-logic from Isabelle/Pure, and use
Isar proofs from the very start, despite the lack of advanced proof tools at
such an early stage (e.g.\ see
\<^file>\<open>~~/src/Pure/Examples/Higher_Order_Logic.thy\<close>). Isabelle/FOL \<^cite>\<open>"isabelle-logics"\<close> and Isabelle/ZF \<^cite>\<open>"isabelle-ZF"\<close> also work, but are
much less developed.
In order to illustrate natural deduction in Isar, we shall subsequently
refer to the background theory and library of Isabelle/HOL. This includes
common notions of predicate logic, naive set-theory etc.\ using fairly
standard mathematical notation. From the perspective of generic natural
deduction there is nothing special about the logical connectives of HOL
(\<open>\<and>\<close>, \<open>\<or>\<close>, \<open>\<forall>\<close>, \<open>\<exists>\<close>, etc.), only the resulting reasoning principles are
relevant to the user. There are similar rules available for set-theory
operators (\<open>\<inter>\<close>, \<open>\<union>\<close>, \<open>\<Inter>\<close>, \<open>\<Union>\<close>, etc.), or any other theory developed in the
library (lattice theory, topology etc.).
Subsequently we briefly review fragments of Isar proof texts corresponding
directly to such general deduction schemes. The examples shall refer to
set-theory, to minimize the danger of understanding connectives of predicate
logic as something special.
\<^medskip>
The following deduction performs \<open>\<inter>\<close>-introduction, working forwards from
assumptions towards the conclusion. We give both the Isar text, and depict
the primitive rule involved, as determined by unification of fact and goal
statements against rules that are declared in the library context.
\<close>
text_raw \<open>\medskip\begin{minipage}{0.6\textwidth}\<close>
(*<*)
notepad
begin
fix x :: 'a and A B
(*>*)
assume "x \<in> A" and "x \<in> B"
then have "x \<in> A \<inter> B" ..
(*<*)
end
(*>*)
text_raw \<open>\end{minipage}\begin{minipage}{0.4\textwidth}\<close>
text \<open>
\infer{\<open>x \<in> A \<inter> B\<close>}{\<open>x \<in> A\<close> & \<open>x \<in> B\<close>}
\<close>
text_raw \<open>\ \<^descr> \<open>@cjava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 114
text \<open>
\<^medskip>
Note that \<^theory_text>\<open>assume\<close> augments the proof context, \<^theory_text>\<open>then\<close> indicates that the
fact beused thenext ,and^heory_text><penh\<close>statesan
intermediate goal. The two dots ``\<^theory_text>\<open>..\<close>'' refer to a complete proof of this
claim, using the indicated facts and experimentationMLinsideIsar.
could have been more explicit here by spelling out java.lang.StringIndexOutOfBoundsException: Range [0, 56) out of bounds for length 8
\^heory_text\o>y\c>:
\<text\open
(*<*)
notepad
begin
fix x :: 'a and A B
(*>*)
assume "x \<in> A" and "the usual ,partial selections, combinators for lifting
operations on the .
(*<*)
end
(*>*)
<>
The of <\inter><lose>-introduction rule the inference,
which proceeds from given
java.lang.StringIndexOutOfBoundsException: Range [18, 9) out of bounds for length 19
next introduction \<open><><><lose>
withina set.This a
\end{mldeclsmldecls
member of the collection\^>Type <M><Cg\close is of \^><>\c>
\<close>
text_raw \<open>\medskip\begin{minipagejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(*<*)
otepad
begin
fix :' and<>
(>)
have "x \<in> \<Inter>\<A>"
proof
fix\java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
" \<n>\A"
show "x \text <>
qed
(*<*)
end
(*>*)
are separate declaration mechanisms for any of the three kinds of contexts:
text \<open>
infer{<pen> <>\Inter><><}\*\open> <>A<}\open>[A][A \<>\A]<>}
\<close>
text_raw \<open>\end{minipage}\<>
text \open>
\^>
This Isar reasoning pattern again refers to the primitive rule depicted
above. The system determines it in the ``\<^theory_text>\<open>proof\<close>'' step, which could have
been spelled out more explicitly as ``\<^theory_text>\<open>proof (rule InterI)\<close>''. Note that
the rule involves both a local parameter \<open>A\<close> and an assumption \<open>A \<in> \<A>\<close> in
the nested reasoning. Such compound rules typically demands a genuine
subproof in Isar, working backwards rather than forwards as seen before. In
the proof body we encounter the \<^theory_text>\<open>fix\<close>-\<^theory_text>\<open>assume\<close>-\<^theory_text>\<open>show\<close> outline of nested
subproofs that is typical for Isar. The final \<^theory_text>\<open>show\<close> is like \<^theory_text>\<open>have\<close>
of the enclosing , the
from .
\<^medskip>
inserts hose exponential blowup!
all \<open>x\<close> such that \<open>\<exists>A. x \<in> A \<and> A \<in> \<A>\java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
does not mention \< sensible manner. Then the standard scheme degenerates to the projection to
\<pen\<close>such \<open> \<n A\close>and\open>A \in <A><close>hold This corresponds to the following
Isar proof and inference rule,respectively:
\<close>
text_raw \<open>\medskip\begin{minipage}{0.6paragraph \<open>Proof context data\<close>
(*<*)
notepad
begin
fix x :: 'a \^medskip>
(*>*)
assume "x \<in> \<Union>\<A>"
then have
proof
fix A
assume "x \<in> A" and "A \<in
show C \<proof>
qed
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
end
(*>*)
text_raw \<open>\end{with the following signature:
text \<open>
\infer{\<open>C\<close>}{\<open>x \<in> \<Union>\<A>\<close> & \infer*{\<open>C\<close>~}{\<open>[A][x \<in> A, A \<in> \<A>]\<close>}}
\<close>
text_raw \<open>\end{minipage}\<close>
text \<open>
\<^medskip>
Although the Isar proof follows the natural deduction rule closely, the text
reads not as natural as anticipated. There is a double occurrence of an
arbitrary conclusion \<open>C\<close>, which represents the final result, but is
irrelevant for now. This issue arises for any elimination rule involving
local parameters. Isar provides the derived language element \<^theory_text>\<open>obtain\<close>,
which is able to perform the same elimination proof more conveniently:
\<close>
(*<*)
notepad
begin
fix x :: 'a and \<A>
(*>*)
assume "x \<in> \<Union>\<A>"
then obtain A where "x \<in> A"
(*<*)
end
**java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
\java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
Here we avoid to other provideexclusiveaccess forthe
forward reasoning. The rule involved in the ``\<^theory_text>\<open>..\<close (,proof context.This interface observes java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
before.
\<>
section \< an Isabellemodulemay .
text \<open>
The Pure logic \<^ \egin{}
-order <cite\open>church40\close>In-
define_ML_functorjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 36
\\nd{ldeclsjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
<
\java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 21
\<open\^>\^java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 129
\<open>\<And>x. B(x) <\.cjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 51
<> <java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 84
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 78
Here only the types of syntactic terms, and the propositions of java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 33
<java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
feature of the val get: theory
but the formal system can never java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 6
On java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 74
calculus for nestednatural ,java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 155
formulae over \<open>\<And>\<close>\<java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
higher-java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 48
\<close>
ion\open>java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 46
text \<open>
Term syntax provides explicitjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
application \<open>b f =
type-inference; terms of type \<open>prop\<close> are called propositions. Logicaljava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
statements are end;
operates on judgments of the java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 6
x\<^sub>text <open>
leftimplicit. inferencer \<open><amma \>\phi\c>
representation of a set of terms: all operations are linear in the number of
theory:
\[
infer{\o\turnstile \c}\open>< mbox~ axiom}
\qquad
\infer{\<open>AObserve the<ML_text\openm\> the slots of
\]
\[
\infer{\<openlist . be usedfor data mergesjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
\qquadOurjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 48
\\\ <turnstile ()<close}\<pen><amma < <>x x\c}
\]
\[
\{<>< - \turnstile> < \close>{<pen>\> \>B\>
\quad
\infer{\<open>\<Gamma>\<^java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
]
reain\\ :\java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 131
monotonic\java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 76
>\>java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0
<
An object-logic introduces java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 24
\<open>i
> < implicit judgment and like\open><nd :o \< o
\<Rightarrow> o\<close>text \>
\<open>conjI: A \<Longrightarrow \^><configurationoption< a type
are Pure nitial- ,
application ({:-)thatis
(.g\\^heory_text\open>efinition<close>,\^heory_text><<,<\ofun <java.lang.StringIndexOutOfBoundsException: Range [155, 154) out of bounds for length 180
<java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 79
text \<open>
main reasoning
mechanisms of .
formulae, using \<open>\<And
Multiple parameters and java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
inaright-manner.
> (\<And>.B )\equiv \A> <>B )<
connectives \fromanotherslot context
always normal hereare in
proposition , the
\>0<, \o>\c>atomic \openH<sub1 <,H<subn< same
format thatoutermost java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
Horn clauses \<open>A\<^java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
For example, the \<{ g:"roof.context >' Config. >'a" \\
a :
\[
\<\close~<prop><x\in>A< < < <n \inter \close>
\ boolConfig.}\
This is a plain Horn clause, since no further nesting on the left is
involved. The {Attrib.:"inding - C.eneric - real -
Formula with realConfig.T"\\
\[
\openI:c>\^\open>\And> <><>\java.lang.StringIndexOutOfBoundsException: Range [81, 79) out of bounds for length 138
\]
<>
Goals are also represented as rules: \java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<>A^java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 128
finished. To allow \<open>C\<close> being a java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 97
hidden from the configuration option\\<, <default<java.lang.StringIndexOutOfBoundsException: Range [100, 99) out of bounds for length 100
\[
\begingetmapinacjava.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 74
\[@)\C\Ljava.lang.StringIndexOutOfBoundsException: Range [61, 59) out of bounds for length 76
\infer[(@{java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
\enda}
\]
Goal states are mlex \java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
achieved. Here the two main reasoning principles option called \<open>my_flag\<close> with constant d <ML><false<.
resolution}, for\close>
zero or more subgoals), and @{inference assumption}, for ML \>
(finding a short-circuit with localAttribsjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 72
for \>\<s>, \dots,x\^>\close for <open>n \ge \close>.
\
\ Now the thejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 74
\(<>< ^>H<x\java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 143
{\begin{tabular}{rl}
<<vecA\v>a<java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 68
\<opendeclare[[my_flag=true]java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
\And\^>x ^> <\java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 107
\<open>goal unifier:\java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
\<open>(\<lambda> java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
\end{ML_val <><>( < \java.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 77
\]
\^java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
\[
{\begin{tabular}{rl}
\<open>goal:\<close> &
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
\<open>assm<java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
\end{tabular}java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
\]
The trace illustrates goal- reasoning in
Isabelle/Pure:
{\footnotesize
\<^medskip>
\{tabular}r@ {quad}}
\<open>(A \<and> B \<Longrightarrow> B \<and> A
\<open>(A \<and , introduce java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 72
\<open>(A \<and> java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 0
\( <>B <java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 149
\<open>#\<dots>\ bjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
\<open>A \<and> B \< @ .java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 49
\end{tabular}
\<^medskip>
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
{java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 78
{java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 77
accommodate @{define_ML Namejava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 81
In java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 76
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 90
{java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 68
{\small
[
@inferencerefinement}]
{\<open>C\<vartheta>\<close>}
{\begin{tabular}{java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
\<open>subgoal:\<close> &
\<open>(\<And>\<^vec>x. \<^vec>H \java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<>ubproof\close> java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
\<pen><vec> \^vec> <>B \^a< quad for \o\^veca< \
\<open>concl unifier:\<close> &
\<open>(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
\<open <medskipjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
\open(<\^x \^j(<veca\^>)\>=<sub>i<\close>\uad each \<open>H<subi< \
\end{tabular}}
\]}
Here the \<open>subproof\<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
outline val names Variable.ames_of \^context>;
indicated in the text results in a marked =Name.nvent names ""5
>\<pen>ix\close>-<theory_text><pen>ssume\close>-<theory_text><>\close>enables to fit result of quite
robustly
flexibility: the subproof only needs to fit modulo unification);
assumptions may be subset of the subgoalpremises(
\\<lose
\<close>
section \<open>The java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
text \<open>
Structured proofs are presentedtext \open>
entities of Puren> \<close>(r <>ndexname\close> a a and a
allows number.This allows efficient renaming by the
only. canonical way rename collections
indexnamesapart from each other is this: determine the maximum index
proof language is given in \figref{fig:isar-syntax}.
\ collec by \<> +\close> is
\begin{\open>-\<close>.
\begin{tabular}{rcl}
\<open>main\<close> & \<open , basic type indexed
&\open>|<lose>&\^>\open> : if name:props for vars\close> \\
& \<open>|\<close> & \<
\<^\f<>\
& & \(,)c a java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 43
&&\java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 71
& \<open>|\< \<^item> \<open\ <x\< a ,
&
<^item> \open>x.\<lose> .
& & \quad\<^theory_text>\<open>obtains may acquire large index after several maxidx shifts have
\<open>\close> <>\close>&\^heory_text>\open>"refinement<*proper_proof\close>\
\<open>refinement\<close> & \<open>=\ ,notablyattheendof proof works by variants
& \<open>|\<close> & \<^theory_text>\<open>supply name = thms\<close> \\
\open|\<lose> \^heory_text\open>subgoal premisesname vars""<>\
& \<\close>
&
\<proper_proof<>& \>=\close>&\s\^up>" m\^up>?"c>\
&\{ldeclsjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
\<open>statement\<close> & e{}
& \<open>|\<close> & \<^theory_text>\<open>note name = thms\<close> \\
& \<open>|\<close> & \<^theory_text>\<open>let "term" = "term"\<close> \\
& \<open>|\<close> & \<^theory_text>\<open>write name (mixfix)\<close> \\
& \<open>|\<close> & \<^theory_text>\<open>fix vars\<close> \\
& \<open>|\<close> & \<^theory_text
\^ <\>< java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 89
\<close>\
& \<open>|\<close> & \<^theory_text> non-egative for situations where \o>x -1\close> isused injectbasic
&\open|<close> \t><open>then\<sup?"\close>\java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
& \<open>|\<close>\close
& \<open>|\<close> & \<^theory_text>\<open>with thms goal\<close> \\
&\<open>|\<close> & \<^theory_text>\<open>also\<close>~~~\<open>|\<close>~~~\<^theory_text>\<open>finally goal\<close> \\
& \<open>|\<close> & \<^theory_text>\<open>moreover\<close>~~~\<open>|\<close>~~~\<^theory_text>\<open>ultimately goal\<close> \\
\<open>goal\<close> & \<open>=\<close> & \<^theory_text \^><>ong \<close> of of -mpty name . The
& \< packed representation uses a dot as separator, in ``\<open>A.b.c\close''.The last
component is called \<^emph>\<open>base name\<close>, the remaining prefix is called
& \<open>|\<close> & \<^theory_text>\<open>consider \<^emph>\openqualifier\<close> (which may be empty). The qualifier can be understood as the
&\<open>|<>&\^heory_text><>btain name)clause"\close>\
\< blockstructure ourfreeform longnamesdonotenforceany
strictdisciplinejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
\end{center}
gisar}
\end{figure}
practice longnames usuallyrepresent1- qualification ML
as an exercise in purity and minimalism. The code should not make any assumptions about the particullong
\appref{ap:main-grammar} describes the primitive parts of the core language
(category \<open>proof\<close>), which is embedded into the main outer theory syntax via
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
\<^theory_text>\<open>termination\<close>).
The syntax for terms and propositions is inherited from Pure (and the
object-logic). A \<open>entities that are not enteredjava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 75
by -rder java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 69
separated by the \<
\^medskip
Facts { b:"string - string" \
``\<^theory_text>\<open>have a: A \<proof>\ @ java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 57
literal proposition \<open>\<open>A\<close>\<close>. Moreover, fact@define_MLLong_Nameimplode stringlist -string}\java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
that modify either the theorem java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 15
expression < <\><~o<java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 110
to the @{inference resolution} inference <^>\^ML>\open>ong_Namequalifier<>\open>ame\<lose>returns the of a .
\secref{sec:framework-resolution}, while ``\<open < <\acjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 114
introduction rule in thejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
The special fact called ``@{fact this}'' always refers to the last result,
theory_text>\openn\<,\^><pen>\close> <t><>have<>, \^theory_text><s\>Since\^><>note\close> occurs
frequently together with \<^java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 8
\<^medskipjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 60
\{{cl
partiallyqualifiedexternalnames andfullyqualifiedinternal
\^><> a\close <>\<quiv\close \^><>from a
abular}
\<^medskiplare\<close> operation augments a name space according to the accesses
The \< byagiven binding,anda naming policy thecontext..
may be populated later. The command \<^theory_text>\<open>method_setup\<close> allows to define proof
methods semantically in Isabelle/ML. The Eisbach java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 0
methodss,as recursiveexpressionsover existingm
\<^citeformal java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 68
Methods use the facts indicated by \<^theory_text>\< , java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 75
the goal state. Some basic methods are java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 13
leaves the goal unchanged, `@{ethod this}'' applies the facts as rules to
the goal, ``@{ binding.Normally the namingis implicit the theory orproof context.
the result goal both `{ethodthis' `{ (urejava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
rule}'' refer to @{inference resolution} of
\secjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 75
(Pure) rule}'' may be specified java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
as @{attribute (Pure) elim} or @{attribute ( <java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 13
declared as @{attribute (Pure) intro}.
<theory_text\open>< `@method ' which subsumes
@{method rule} class.
``@{method "succeed"}''. Further abbreviations for.g.\fact \<open>c.intro\<close> for a
``\<^theory_text>\<open>by method\<^sub>1 method\< \openc<. java.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 85
` conflicts java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 67
`\^\o>facts<close>'operates the by applying equalitiesjava.lang.StringIndexOutOfBoundsException: Index 105 out of bounds for length 105
\<medskipjava.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
Block structure \^medskip>
body of a subproof ``\<^theory_text>\<open>proof \<dots> qed\<close>'' already provides implicit nesting. \begin{abular}ll}
both situations, \<^theory_text>\<open>next\ java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 55
acts like closing an implicit block scope and opening another one. There java.lang.StringIndexOutOfBoundsException: Range [0, 77) out of bounds for length 58
no direct connection to java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 8
The commands \<^java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 17
\secref{sec:framework-context}), @{define_ML Binding.empty: binding}Binding \
he resultingfrom a nestedsubproof see
}) java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 73
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 60
\<close>
\open> elements\{ecfjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 72
text \<open>
In judgments \<open>\<java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 15
proof @{define_ML_type \
for type-nference abbreviations
facts, end{}
The \<^descr> T <ML_type><binding\close>represents the conceptof name bindingsjava.lang.StringIndexOutOfBoundsException: Index 100 out of bounds for length 100
arbitrary-ut-ixed entity a givent; in results exported from the
context,\open\close>may become .The <\java.lang.StringIndexOutOfBoundsException: Range [82, 81) out of bounds for length 149
a <java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 159
locally, while the included inference tells how to discharge \<open>A\<close> from
results \<open>A \<turnstile> antiquotation @{L_antiquotationbinding}.
i.e.\ it may only occur <binding<> The \<openjava.lang.StringIndexOutOfBoundsException: Index 104 out of bounds for length 104
Thejava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 103
The derived element
<java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 114
\[
\infer[(@{inference_def export})]{\<open>\<strut salso \chrefclocal-}.
qjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
\implementationofjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 75
\java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
<java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 13
The most interesting derived context element in Isar is \ front java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 33
manner <\java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 98
parameters \<open>\<^vec>x\<java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
together with a proof of a case rule stating that this extension is
conservative (i.e.\ may be removed from closed results later on):
\<^medskip>
\begin{tabular}{l}
\<^theory_text>\<open>\<langle>facts\<java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 0
\quad \<^theory_text>\<open>have "case": "\<And>thesis. (\ java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 31
\quad ^ <ML\java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 113
\ name the java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 78
\qquad \<^theory_text>\<open>assume [intro]: "\<And
\java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 92
\quad \<^java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 0
quad\\java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 134
\end{tabular}
<java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 13
[
\infer[(@{inference elimination})]{\< \^escr <\Ndeclare<java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 109
\tabular{}
\<open>case:\<close> &
\<open>\<Gamma> \<turnstile> java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<\c>java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
\<open>\<Gamma> \<union> \<^vec>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
\end{tabular}}
\]
the name `\opent\close>'is specific for
arbitrary-but- \<^ML_type>\<open.java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 43
we java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 81
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
for This ope for java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 73
without parameters is similar java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
involves tobe provenseparately.
\<^medskip>
The subsequent Isar proof texts explain all java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 8
above%<java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
within a block, the exported result is indicated via \<^ @{L_antiquotation_def"" <M\close>\
\>
(*<*)
theorem True
proof
(*>*)
text_raw \<open>\begin{java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 9
B "<
}
\java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
text_raw \<open>\end{minipage}\quad\begin{ The following example yields the source position of
{
assume A
have B \<proof>
}
note \<open>A \<Longrightarrow> B\text<java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
3]mjava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 96
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
have "B x"\
}
note \<open>B a\<close>
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
{
obtain x where "A x" \<proof>
have B \<proof>
}
note \<open>B\<close>
text_raw \<open>\end{minipage}\<close>
(*<*)
qed
(>)
text \java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 0
\<^bigskip>
This explains the meaning of Isar
states getting in the way.
\<close>
subsection \<open>Structured statements \label{sec:framework-stmt}\<close>
text \<open>
The syntax of top-level theorem statements is defined as follows:
\<^medskip>
\begin{tabular}{rcl}
\<open>statement\<close> & \<open>\<equiv>\<close> & \<^theory_text>\<open>name: props and \<dots>\<close> \\
& \<open>|\<close> & \<open>context\<^sup>* conclusion\<close> \\[0.5ex]
\<open>context\<close> & \<open>\<equiv>\<close> & \<^theory_text>\<open>fixes vars and \<dots>\<close> \\
& \<open>|\<close> & \<^theory_text>\<open>assumes name: props and \<dots>\<close> \\
\<open>conclusion\<close> & \<open>\<equiv>\<close> & \<^theory_text>\<open>shows name: props and \<dots>\<close> \\
& \<open>|\<close> & \<^theory_text>\<open>obtains vars and \<dots> where name: props and \<dots>\<close> \\
& & \quad \<open>\<BBAR> \<dots>\<close> \\
\end{tabular}
\<^medskip>
A simple statement consists of named propositions. The full form admits
local context elements followed by the actual conclusions, such as ``\<^theory_text>\<open>fixes
x assumes A x shows B x\<close>''. The final result emerges as a Pure rule after
discharging the context: \<^prop>\<open>\<And>x. A x \<Longrightarrow> B x\<close>.
The \<^theory_text>\<open>obtains\<close> variant is another abbreviation defined below; unlike
\<^theory_text>\<open>obtain\<close> (cf.\ \secref{sec:framework-context}) there may be several
``cases'' separated by ``\<open>\<BBAR>\<close>'', each consisting of several parameters
(\<open>vars\<close>) and several premises (\<open>props\<close>). This specifies multi-branch
elimination rules.
\<^medskip>
\begin{tabular}{l}
\<^theory_text>\<open>obtains "\<^vec>x" where "\<^vec>A" "\<^vec>x" "\<BBAR>" \<dots> \<equiv>\<close> \\[0.5ex]
\quad \<^theory_text>\<open>fixes thesis\<close> \\
\quad \<^theory_text>\<open>assumes [intro]: "\<And>\<^vec>x. \<^vec>A \<^vec>x \<Longrightarrow> thesis" and \<dots>\<close> \\
\quad \<^theory_text>\<open>shows thesis\<close> \\
\end{tabular}
\<^medskip>
Presenting structured statements in such an ``open'' format usually
simplifies the subsequent proof, because the outer structure of the problem
is already laid out directly. E.g.\ consider the following canonical
patterns for \<^theory_text>\<open>shows\<close> and \<^theory_text>\<open>obtains\<close>, respectively:
\<close>
text_raw \<open>\begin{minipage}{0.5\textwidth}\<close>
theorem
fixes x and y
assumes "A x" and "B y"
shows "C x y"
proof -
from \<open>A x\<close> and \<open>B y\<close>
show "C x y" \<proof>
qed
text_raw \<open>\end{minipage}\begin{minipage}{0.5\textwidth}\<close>
theorem
obtains x and y
where "A x" and "B y"
proof -
have "A a" and "B b" \<proof>
then show thesis ..
qed
text_raw \<open>\end{minipage}\<close>
text \<open>
\<^medskip>
Here local facts \<open>\<open>A x\<close>\<close> and \<open>\<open>B y\<close>\<close> are referenced immediately; there is no
need to decompose the logical rule structure again. In the second proof the
final ``\<^theory_text>\<open>then show thesis ..\<close>'' involves the local rule case \<open>\<And>x y. A x \<Longrightarrow> B
y \<Longrightarrow> thesis\<close> for the particular instance of terms \<open>a\<close> and \<open>b\<close> produced in the
body.
\<close>
subsection \<open>Structured proof refinement \label{sec:framework-subproof}\<close>
text \<open>
By breaking up the grammar for the Isar proof language, we may understand a
proof text as a linear sequence of individual proof commands. These are
interpreted as transitions of the Isar virtual machine (Isar/VM), which
operates on a block-structured configuration in single steps. This allows
users to write proof texts in an incremental manner, and inspect
intermediate configurations for debugging.
The basic idea is analogous to evaluating algebraic expressions on a stack
machine: \<open>(a + b) \<cdot> c\<close> then corresponds to a sequence of single transitions
for each symbol \<open>(, a, +, b, ), \<cdot>, c\<close>. In Isar the algebraic values are
facts or goals, and the operations are inferences.
\<^medskip>
The Isar/VM state maintains a stack of nodes, each node contains the local
proof context, the linguistic mode, and a pending goal (optional). The mode
determines the type of transition that may be performed next, it essentially
alternates between forward and backward reasoning, with an intermediate
stage for chained facts (see \figref{fig:isar-vm}).
\begin{figure}[htb]
\begin{center}
\includegraphics[width=0.8\textwidth]{isar-vm}
\end{center}
\caption{Isar/VM modes}\label{fig:isar-vm}
\end{figure}
For example, in \<open>state\<close> mode Isar acts like a mathematical scratch-pad,
accepting declarations like \<^theory_text>\<open>fix\<close>, \<^theory_text>\<open>assume\<close>, and claims like \<^theory_text>\<open>have\<close>,
\<^theory_text>\<open>show\<close>. A goal statement changes the mode to \<open>prove\<close>, which means that we
may now refine the problem via \<^theory_text>\<open>unfolding\<close> or \<^theory_text>\<open>proof\<close>. Then we are again
in \<open>state\<close> mode of a proof body, which may issue \<^theory_text>\<open>show\<close> statements to solve
pending subgoals. A concluding \<^theory_text>\<open>qed\<close> will return to the original \<open>state\<close>
mode one level upwards. The subsequent Isar/VM trace indicates block
structure, linguistic mode, goal state, and inferences:
\<close>
text_raw \<open>\begingroup\footnotesize\<close>
(*<*)notepad begin
(*>*)
text_raw \<open>\begin{minipage}[t]{0.18\textwidth}\<close>
have "A \<longrightarrow> B"
proof
assume A
show B
\<proof>
qed
text_raw \<open>\end{minipage}\quad
\begin{minipage}[t]{0.06\textwidth}
\<open>begin\<close> \\
\\
\\
\<open>begin\<close> \\
\<open>end\<close> \\
\<open>end\<close> \\
\end{minipage}
\begin{minipage}[t]{0.08\textwidth}
\<open>prove\<close> \\
\<open>state\<close> \\
\<open>state\<close> \\
\<open>prove\<close> \\
\<open>state\<close> \\
\<open>state\<close> \\
\end{minipage}\begin{minipage}[t]{0.35\textwidth}
\<open>(A \<longrightarrow> B) \<Longrightarrow> #(A \<longrightarrow> B)\<close> \\
\<open>(A \<Longrightarrow> B) \<Longrightarrow> #(A \<longrightarrow> B)\<close> \\
\\
\\
\<open>#(A \<longrightarrow> B)\<close> \\
\<open>A \<longrightarrow> B\<close> \\
\end{minipage}\begin{minipage}[t]{0.4\textwidth}
\<open>(init)\<close> \\
\<open>(resolution impI)\<close> \\
\\
\\
\<open>(refinement #A \<Longrightarrow> B)\<close> \\
\<open>(finish)\<close> \\
\end{minipage}\<close>
(*<*)
end
(*>*)
text_raw \<open>\endgroup\<close>
text \<open>
Here the @{inference refinement} inference from
\secref{sec:framework-resolution} mediates composition of Isar subproofs
nicely. Observe that this principle incorporates some degree of freedom in
proof composition. In particular, the proof body allows parameters and
assumptions to be re-ordered, or commuted according to Hereditary Harrop
Form. Moreover, context elements that are not used in a subproof may be
omitted altogether. For example:
\<close>
text_raw \<open>\begin{minipage}{0.5\textwidth}\<close>
(*<*)
notepad
begin
(*>*)
have "\<And>x y. A x \<Longrightarrow> B y \<Longrightarrow> C x y"
proof -
fix x and y
assume "A x" and "B y"
show "C x y" \<proof>
qed
text_raw \<open>\end{minipage}\begin{minipage}{0.5\textwidth}\<close>
(*<*)
next
(*>*)
have "\<And>x y. A x \<Longrightarrow> B y \<Longrightarrow> C x y"
proof -
fix x assume "A x"
fix y assume "B y"
show "C x y" \<proof>
qed
text_raw \<open>\end{minipage}\\[3ex]\begin{minipage}{0.5\textwidth}\<close>
(*<*)
next
(*>*)
have "\<And>x y. A x \<Longrightarrow> B y \<Longrightarrow> C x y"
proof -
fix y assume "B y"
fix x assume "A x"
show "C x y" \<proof>
qed
text_raw \<open>\end{minipage}\begin{minipage}{0.5\textwidth}\<close>
(*<*)
next
(*>*)
have "\<And>x y. A x \<Longrightarrow> B y \<Longrightarrow> C x y"
proof -
fix y assume "B y"
fix x
show "C x y" \<proof>
qed
(*<*)
end
(*>*)
text_raw \<open>\end{minipage}\<close>
text \<open>
\<^medskip>
Such fine-tuning of Isar text is practically important to improve
readability. Contexts elements are rearranged according to the natural flow
of reasoning in the body, while still observing the overall scoping rules.
\<^medskip>
This illustrates the basic idea of structured proof processing in Isar. The
main mechanisms are based on natural deduction rule composition within the
Pure framework. In particular, there are no direct operations on goal states
within the proof body. Moreover, there is no hidden automated reasoning
involved, just plain unification.
\<close>
subsection \<open>Calculational reasoning \label{sec:framework-calc}\<close>
text \<open>
The existing Isar infrastructure is sufficiently flexible to support
calculational reasoning (chains of transitivity steps) as derived concept.
The generic proof elements introduced below depend on rules declared as
@{attribute trans} in the context. It is left to the object-logic to provide
a suitable rule collection for mixed relations of \<open>=\<close>, \<open><\<close>, \<open>\<le>\<close>, \<open>\<subset>\<close>, \<open>\<subseteq>\<close>
etc. Due to the flexibility of rule composition
(\secref{sec:framework-resolution}), substitution of equals by equals is
covered as well, even substitution of inequalities involving monotonicity
conditions; see also \<^cite>\<open>\<open>\S6\<close> in "Wenzel-PhD"\<close> and \<^cite>\<open>"Bauer-Wenzel:2001"\<close>.
The generic calculational mechanism is based on the observation that rules
such as \<open>trans:\<close>~\<^prop>\<open>x = y \<Longrightarrow> y = z \<Longrightarrow> x = z\<close> proceed from the premises
towards the conclusion in a deterministic fashion. Thus we may reason in
forward mode, feeding intermediate results into rules selected from the
context. The course of reasoning is organized by maintaining a secondary
fact called ``@{fact calculation}'', apart from the primary ``@{fact this}''
already provided by the Isar primitives. In the definitions below,
@{attribute OF} refers to @{inference resolution}
(\secref{sec:framework-resolution}) with multiple rule arguments, and
\<open>trans\<close> represents to a suitable rule from the context:
\begin{matharray}{rcl}
\<^theory_text>\<open>also"\<^sub>0"\<close> & \equiv & \<^theory_text>\<open>note calculation = this\<close> \\
\<^theory_text>\<open>also"\<^sub>n\<^sub>+\<^sub>1"\<close> & \equiv & \<^theory_text>\<open>note calculation = trans [OF calculation this]\<close> \\[0.5ex]
\<^theory_text>\<open>finally\<close> & \equiv & \<^theory_text>\<open>also from calculation\<close> \\
\end{matharray}
The start of a calculation is determined implicitly in the text: here
\<^theory_text>\<open>also\<close> sets @{fact calculation} to the current result; any subsequent
occurrence will update @{fact calculation} by combination with the next
result and a transitivity rule. The calculational sequence is concluded via
\<^theory_text>\<open>finally\<close>, where the final result is exposed for use in a concluding claim.
Here is a canonical proof pattern, using \<^theory_text>\<open>have\<close> to establish the
intermediate results:
\<close>
(*<*)
notepad
begin
fix a b c d :: 'a
(*>*)
have "a = b" \<proof>
also have "\<dots> = c" \<proof>
also have "\<dots> = d" \<proof>
finally have "a = d" .
(*<*)
end
(*>*)
text \<open>
The term ``\<open>\<dots>\<close>'' (literal ellipsis) is a special abbreviation provided by
the Isabelle/Isar term syntax: it statically refers to the right-hand side
argument of the previous statement given in the text. Thus it happens to
coincide with relevant sub-expressions in the calculational chain, but the
exact correspondence is dependent on the transitivity rules being involved.
\<^medskip>
Symmetry rules such as \<^prop>\<open>x = y \<Longrightarrow> y = x\<close> are like transitivities with
only one premise. Isar maintains a separate rule collection declared via the
@{attribute sym} attribute, to be used in fact expressions ``\<open>a
[symmetric]\<close>'', or single-step proofs ``\<^theory_text>\<open>assume "x = y" then have "y = x"
..\<close>''.
\<close>
end
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|