doc-src/Locales/Locales/document/Examples.tex
changeset 37206 7f2a6f3143ad
parent 36691 842fdcd42159
child 40406 313a24b66a8d
equal deleted inserted replaced
37189:2b4e52ecf6fc 37206:7f2a6f3143ad
   132   Each conclusion has a \emph{foundational theorem} as counterpart
   132   Each conclusion has a \emph{foundational theorem} as counterpart
   133   in the theory.  Technically, this is simply the theorem composed
   133   in the theory.  Technically, this is simply the theorem composed
   134   of context and conclusion.  For the transitivity theorem, this is
   134   of context and conclusion.  For the transitivity theorem, this is
   135   \isa{partial{\isacharunderscore}order{\isachardot}trans}:
   135   \isa{partial{\isacharunderscore}order{\isachardot}trans}:
   136   \begin{isabelle}%
   136   \begin{isabelle}%
   137 \ \ partial{\isacharunderscore}order\ {\isacharquery}le\ {\isasymequiv}\isanewline
   137 \ \ {\isasymlbrakk}partial{\isacharunderscore}order\ {\isacharquery}le{\isacharsemicolon}\ {\isacharquery}le\ {\isacharquery}x\ {\isacharquery}y{\isacharsemicolon}\ {\isacharquery}le\ {\isacharquery}y\ {\isacharquery}z{\isasymrbrakk}\ {\isasymLongrightarrow}\ {\isacharquery}le\ {\isacharquery}x\ {\isacharquery}z%
   138 \isaindent{\ \ }{\isacharparenleft}{\isasymforall}x{\isachardot}\ {\isacharquery}le\ x\ x{\isacharparenright}\ {\isasymand}\isanewline
       
   139 \isaindent{\ \ }{\isacharparenleft}{\isasymforall}x\ y{\isachardot}\ {\isacharquery}le\ x\ y\ {\isasymlongrightarrow}\ {\isacharquery}le\ y\ x\ {\isasymlongrightarrow}\ x\ {\isacharequal}\ y{\isacharparenright}\ {\isasymand}\isanewline
       
   140 \isaindent{\ \ }{\isacharparenleft}{\isasymforall}x\ y\ z{\isachardot}\ {\isacharquery}le\ x\ y\ {\isasymlongrightarrow}\ {\isacharquery}le\ y\ z\ {\isasymlongrightarrow}\ {\isacharquery}le\ x\ z{\isacharparenright}%
       
   141 \end{isabelle}%
   138 \end{isabelle}%
   142 \end{isamarkuptext}%
   139 \end{isamarkuptext}%
   143 \isamarkuptrue%
   140 \isamarkuptrue%
   144 %
   141 %
   145 \isamarkupsubsection{Targets: Extending Locales%
   142 \isamarkupsubsection{Targets: Extending Locales%
  1262   reuse is called \emph{interpretation}.  Locales generalise
  1259   reuse is called \emph{interpretation}.  Locales generalise
  1263   interpretation from theorems to conclusions, enabling the reuse of
  1260   interpretation from theorems to conclusions, enabling the reuse of
  1264   definitions and other constructs that are not part of the
  1261   definitions and other constructs that are not part of the
  1265   specifications of the locales.
  1262   specifications of the locales.
  1266 
  1263 
  1267   The first from of interpretation we will consider in this tutorial
  1264   The first form of interpretation we will consider in this tutorial
  1268   is provided by the \isakeyword{sublocale} command.  It enables to
  1265   is provided by the \isakeyword{sublocale} command.  It enables to
  1269   modify the import hierarchy to reflect the \emph{logical} relation
  1266   modify the import hierarchy to reflect the \emph{logical} relation
  1270   between locales.
  1267   between locales.
  1271 
  1268 
  1272   Consider the locale hierarchy from Figure~\ref{fig:lattices}(a).
  1269   Consider the locale hierarchy from Figure~\ref{fig:lattices}(a).