doc-src/LaTeXsugar/Sugar/document/Sugar.tex
changeset 17214 af174eeafba1
parent 17175 1eced27ee0e1
child 18723 91d67d2f121c
equal deleted inserted replaced
17213:ba65f3e5653c 17214:af174eeafba1
     5 \isadelimtheory
     5 \isadelimtheory
     6 %
     6 %
     7 \endisadelimtheory
     7 \endisadelimtheory
     8 %
     8 %
     9 \isatagtheory
     9 \isatagtheory
    10 \isamarkupfalse%
       
    11 %
    10 %
    12 \endisatagtheory
    11 \endisatagtheory
    13 {\isafoldtheory}%
    12 {\isafoldtheory}%
    14 %
    13 %
    15 \isadelimtheory
    14 \isadelimtheory
    25 the art of mixing \LaTeX\ text and Isabelle theories and never want to
    24 the art of mixing \LaTeX\ text and Isabelle theories and never want to
    26 typeset a theorem by hand anymore because they have experienced the
    25 typeset a theorem by hand anymore because they have experienced the
    27 bliss of writing \verb!@!\verb!{thm[display]setsum_cartesian_product[no_vars]}!
    26 bliss of writing \verb!@!\verb!{thm[display]setsum_cartesian_product[no_vars]}!
    28 and seeing Isabelle typeset it for them:
    27 and seeing Isabelle typeset it for them:
    29 \begin{isabelle}%
    28 \begin{isabelle}%
    30 {\isacharparenleft}{\isasymSum}x{\isasymin}A{\isachardot}\ {\isasymSum}y{\isasymin}B{\isachardot}\ f\ x\ y{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}{\isasymSum}z{\isasymin}A\ {\isasymtimes}\ B{\isachardot}\ f\ {\isacharparenleft}fst\ z{\isacharparenright}\ {\isacharparenleft}snd\ z{\isacharparenright}{\isacharparenright}%
    29 {\isacharparenleft}{\isasymSum}x{\isasymin}A{\isachardot}\ {\isasymSum}y{\isasymin}B{\isachardot}\ f\ x\ y{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}{\isasymSum}{\isacharparenleft}x{\isacharcomma}\ y{\isacharparenright}{\isasymin}A\ {\isasymtimes}\ B{\isachardot}\ f\ x\ y{\isacharparenright}%
    31 \end{isabelle}
    30 \end{isabelle}
    32 No typos, no omissions, no sweat.
    31 No typos, no omissions, no sweat.
    33 If you have not experienced that joy, read Chapter 4, \emph{Presenting
    32 If you have not experienced that joy, read Chapter 4, \emph{Presenting
    34 Theories}, \cite{LNCS2283} first.
    33 Theories}, \cite{LNCS2283} first.
    35 
    34 
   168 \isadelimML
   167 \isadelimML
   169 %
   168 %
   170 \endisadelimML
   169 \endisadelimML
   171 %
   170 %
   172 \isatagML
   171 \isatagML
   173 \isamarkupfalse%
       
   174 %
   172 %
   175 \endisatagML
   173 \endisatagML
   176 {\isafoldML}%
   174 {\isafoldML}%
   177 %
   175 %
   178 \isadelimML
   176 \isadelimML
   479 \isadelimML
   477 \isadelimML
   480 %
   478 %
   481 \endisadelimML
   479 \endisadelimML
   482 %
   480 %
   483 \isatagML
   481 \isatagML
   484 \isamarkupfalse%
       
   485 %
   482 %
   486 \endisatagML
   483 \endisatagML
   487 {\isafoldML}%
   484 {\isafoldML}%
   488 %
   485 %
   489 \isadelimML
   486 \isadelimML
   524 \isadelimtheory
   521 \isadelimtheory
   525 %
   522 %
   526 \endisadelimtheory
   523 \endisadelimtheory
   527 %
   524 %
   528 \isatagtheory
   525 \isatagtheory
   529 \isamarkupfalse%
       
   530 %
   526 %
   531 \endisatagtheory
   527 \endisatagtheory
   532 {\isafoldtheory}%
   528 {\isafoldtheory}%
   533 %
   529 %
   534 \isadelimtheory
   530 \isadelimtheory