diff -r bda7527ccf05 -r cc2d676d5395 src/Doc/Tutorial/Inductive/Mutual.thy --- a/src/Doc/Tutorial/Inductive/Mutual.thy Wed Dec 26 16:07:28 2018 +0100 +++ b/src/Doc/Tutorial/Inductive/Mutual.thy Wed Dec 26 16:25:20 2018 +0100 @@ -32,7 +32,7 @@ txt\\noindent The proof is by rule induction. Because of the form of the induction theorem, -it is applied by @{text rule} rather than @{text erule} as for ordinary +it is applied by \rule\ rather than \erule\ as for ordinary inductive definitions: \ @@ -69,11 +69,11 @@ you write \commdx{inductive} instead of \isacommand{inductive\_set} and @{prop"evn n"} instead of @{prop"n \ Even"}. When defining an n-ary relation as a predicate, it is recommended to curry -the predicate: its type should be \mbox{@{text"\\<^sub>1 \ \ \ \\<^sub>n \ bool"}} +the predicate: its type should be \mbox{\\\<^sub>1 \ \ \ \\<^sub>n \ bool\} rather than -@{text"\\<^sub>1 \ \ \ \\<^sub>n \ bool"}. The curried version facilitates inductions. +\\\<^sub>1 \ \ \ \\<^sub>n \ bool\. The curried version facilitates inductions. -When should you choose sets and when predicates? If you intend to combine your notion with set theoretic notation, define it as an inductive set. If not, define it as an inductive predicate, thus avoiding the @{text"\"} notation. But note that predicates of more than one argument cannot be combined with the usual set theoretic operators: @{term"P \ Q"} is not well-typed if @{text"P, Q :: \\<^sub>1 \ \\<^sub>2 \ bool"}, you have to write @{term"%x y. P x y & Q x y"} instead. +When should you choose sets and when predicates? If you intend to combine your notion with set theoretic notation, define it as an inductive set. If not, define it as an inductive predicate, thus avoiding the \\\ notation. But note that predicates of more than one argument cannot be combined with the usual set theoretic operators: @{term"P \ Q"} is not well-typed if \P, Q :: \\<^sub>1 \ \\<^sub>2 \ bool\, you have to write @{term"%x y. P x y & Q x y"} instead. \index{inductive predicates|)} \