--- a/doc-src/LaTeXsugar/Sugar/document/Sugar.tex Tue Mar 10 08:47:45 2009 +0000
+++ b/doc-src/LaTeXsugar/Sugar/document/Sugar.tex Tue Mar 10 11:01:28 2009 +0100
@@ -533,11 +533,11 @@
Likewise, \verb!concl! may be used as a style to show just the
conclusion of a proposition. For example, take \verb!hd_Cons_tl!:
\begin{center}
- \isa{{\isacharparenleft}xs{\isasymColon}{\isacharprime}a\ list{\isacharparenright}\ {\isasymnoteq}\ {\isacharbrackleft}{\isacharbrackright}\ {\isasymLongrightarrow}\ hd\ xs{\isasymcdot}tl\ xs\ {\isacharequal}\ xs}
+ \isa{{\isacharparenleft}xs\ {\isasymColon}\ {\isacharprime}a\ list{\isacharparenright}\ {\isasymnoteq}\ {\isacharbrackleft}{\isacharbrackright}\ {\isasymLongrightarrow}\ hd\ xs{\isasymcdot}tl\ xs\ {\isacharequal}\ xs}
\end{center}
To print just the conclusion,
\begin{center}
- \isa{hd\ {\isacharparenleft}xs{\isasymColon}{\isacharprime}a\ list{\isacharparenright}{\isasymcdot}tl\ xs\ {\isacharequal}\ xs}
+ \isa{hd\ {\isacharparenleft}xs\ {\isasymColon}\ {\isacharprime}a\ list{\isacharparenright}{\isasymcdot}tl\ xs\ {\isacharequal}\ xs}
\end{center}
type
\begin{quote}
--- a/src/HOL/Library/OptionalSugar.thy Tue Mar 10 08:47:45 2009 +0000
+++ b/src/HOL/Library/OptionalSugar.thy Tue Mar 10 11:01:28 2009 +0100
@@ -9,7 +9,7 @@
(* set *)
translations
- "xs" <= "set xs"
+ "xs" <= "CONST set xs"
(* append *)
syntax (latex output)
@@ -26,15 +26,15 @@
(* Let *)
translations
- "_bind (p,DUMMY) e" <= "_bind p (fst e)"
- "_bind (DUMMY,p) e" <= "_bind p (snd e)"
+ "_bind (p,DUMMY) e" <= "_bind p (CONST fst e)"
+ "_bind (DUMMY,p) e" <= "_bind p (CONST snd e)"
"_tuple_args x (_tuple_args y z)" ==
"_tuple_args x (_tuple_arg (_tuple y z))"
- "_bind (Some p) e" <= "_bind p (the e)"
- "_bind (p#DUMMY) e" <= "_bind p (hd e)"
- "_bind (DUMMY#p) e" <= "_bind p (tl e)"
+ "_bind (Some p) e" <= "_bind p (CONST the e)"
+ "_bind (p#DUMMY) e" <= "_bind p (CONST hd e)"
+ "_bind (DUMMY#p) e" <= "_bind p (CONST tl e)"
(* type constraints with spacing *)
setup {*