# HG changeset patch # User nipkow # Date 1236587071 -3600 # Node ID 79a7491ac1fd359b57474b8cf10fac9090543bdd # Parent 6a02238da8e9a63c61691a9993e98c2c0d14474d Docs updates diff -r 6a02238da8e9 -r 79a7491ac1fd src/HOL/Docs/MainDoc.thy --- a/src/HOL/Docs/MainDoc.thy Fri Mar 06 22:06:33 2009 +0100 +++ b/src/HOL/Docs/MainDoc.thy Mon Mar 09 09:24:31 2009 +0100 @@ -74,23 +74,22 @@ @{term"ALL xx. x < y \ P"}\\ @{term"ALL x>=y. P"} & @{term[source]"\x. x \ y \ P"}\\ @{term"ALL x>y. P"} & @{term[source]"\x. x > y \ P"}\\ +\multicolumn{2}{@ {}l@ {}}{Similarly for @{text"\"} instead of @{text"\"}}\\ @{term"LEAST x. P"} & @{term[source]"Least (\x. P)"}\\ \end{supertabular} -Similar for @{text"\"} instead of @{text"\"}. - \section{Set} Sets are predicates: @{text[source]"'a set = 'a \ bool"} \bigskip \begin{supertabular}{@ {} l @ {~::~} l @ {}} -@{const "{}"} & @{term_type_only "{}" "'a set"}\\ +@{const Set.empty} & @{term_type_only "Set.empty" "'a set"}\\ @{const insert} & @{term_type_only insert "'a\'a set\'a set"}\\ @{const Collect} & @{term_type_only Collect "('a\bool)\'a set"}\\ -@{const "op :"} & @{term_type_only "op :" "'a\'a set\bool"}\\ -@{const "op Un"} & @{term_type_only "op Un" "'a set\'a set \ 'a set"}\\ -@{const "op Int"} & @{term_type_only "op Int" "'a set\'a set \ 'a set"}\\ +@{const "op :"} & @{term_type_only "op :" "'a\'a set\bool"} \qquad(\textsc{ascii} @{text":"})\\ +@{const Set.Un} & @{term_type_only Set.Un "'a set\'a set \ 'a set"} \qquad(\textsc{ascii} @{text"Un"})\\ +@{const Set.Int} & @{term_type_only Set.Int "'a set\'a set \ 'a set"} \qquad(\textsc{ascii} @{text"Int"})\\ @{const UNION} & @{term_type_only UNION "'a set\('a \ 'b set) \ 'b set"}\\ @{const INTER} & @{term_type_only INTER "'a set\('a \ 'b set) \ 'b set"}\\ @{const Union} & @{term_type_only Union "'a set set\'a set"}\\ @@ -112,10 +111,10 @@ @{term[source]"A \ B"} & @{term[source]"B \ A"}\\ @{term[source]"A \ B"} & @{term[source]"B < A"}\\ @{term"{x. P}"} & @{term[source]"Collect(\x. P)"}\\ -@{term"UN x:I. A"} & @{term[source]"UNION I (\x. A)"}\\ -@{term"UN x. A"} & @{term[source]"UNION UNIV (\x. A)"}\\ -@{term"INT x:I. A"} & @{term[source]"INTER I (\x. A)"}\\ -@{term"INT x. A"} & @{term[source]"INTER UNIV (\x. A)"}\\ +@{term[mode=xsymbols]"UN x:I. A"} & @{term[source]"UNION I (\x. A)"}\\ +@{term[mode=xsymbols]"UN x. A"} & @{term[source]"UNION UNIV (\x. A)"}\\ +@{term[mode=xsymbols]"INT x:I. A"} & @{term[source]"INTER I (\x. A)"}\\ +@{term[mode=xsymbols]"INT x. A"} & @{term[source]"INTER UNIV (\x. A)"}\\ @{term"ALL x:A. P"} & @{term[source]"Ball A (\x. P)"}\\ @{term"EX x:A. P"} & @{term[source]"Bex A (\x. P)"}\\ @{term"range f"} & @{term[source]"f ` UNIV"}\\ @@ -345,14 +344,14 @@ \section{Set\_Interval} \begin{supertabular}{@ {} l @ {~::~} l @ {}} -@{const lessThan} & @{typeof lessThan}\\ -@{const atMost} & @{typeof atMost}\\ -@{const greaterThan} & @{typeof greaterThan}\\ -@{const atLeast} & @{typeof atLeast}\\ -@{const greaterThanLessThan} & @{typeof greaterThanLessThan}\\ -@{const atLeastLessThan} & @{typeof atLeastLessThan}\\ -@{const greaterThanAtMost} & @{typeof greaterThanAtMost}\\ -@{const atLeastAtMost} & @{typeof atLeastAtMost}\\ +@{const lessThan} & @{term_type_only lessThan "'a::ord \ 'a set"}\\ +@{const atMost} & @{term_type_only atMost "'a::ord \ 'a set"}\\ +@{const greaterThan} & @{term_type_only greaterThan "'a::ord \ 'a set"}\\ +@{const atLeast} & @{term_type_only atLeast "'a::ord \ 'a set"}\\ +@{const greaterThanLessThan} & @{term_type_only greaterThanLessThan "'a::ord \ 'a \ 'a set"}\\ +@{const atLeastLessThan} & @{term_type_only atLeastLessThan "'a::ord \ 'a \ 'a set"}\\ +@{const greaterThanAtMost} & @{term_type_only greaterThanAtMost "'a::ord \ 'a \ 'a set"}\\ +@{const atLeastAtMost} & @{term_type_only atLeastAtMost "'a::ord \ 'a \ 'a set"}\\ \end{supertabular} \subsubsection*{Syntax} @@ -366,8 +365,11 @@ @{term "atLeastLessThan x y"} & @{term[source] "atLeastLessThan x y"}\\ @{term "greaterThanAtMost x y"} & @{term[source] "greaterThanAtMost x y"}\\ @{term "atLeastAtMost x y"} & @{term[source] "atLeastAtMost x y"}\\ -@{term "UN i:{..n}. A"} & @{term[source] "\ i \ {..n}. A"}\\ +@{term[mode=xsymbols] "UN i:{..n}. A"} & @{term[source] "\ i \ {..n}. A"}\\ +@{term[mode=xsymbols] "UN i:{.. i \ {.."} instead of @{text"\"}}\\ @{term "setsum (%x. t) {a..b}"} & @{term[source] "setsum (\x. t) {a..b}"}\\ +@{term "setsum (%x. t) {a..x. t) {a..