# HG changeset patch # User wenzelm # Date 1192113522 -7200 # Node ID acafb18a47dc517e536f1577a6d062a60a1bf272 # Parent 4d006b03aa4aca828132e0f226d1bfcfd725560f replaced Sign.add_consts_i by Sign.declare_const; diff -r 4d006b03aa4a -r acafb18a47dc doc-src/IsarImplementation/Thy/document/logic.tex --- a/doc-src/IsarImplementation/Thy/document/logic.tex Thu Oct 11 16:05:56 2007 +0200 +++ b/doc-src/IsarImplementation/Thy/document/logic.tex Thu Oct 11 16:38:42 2007 +0200 @@ -328,8 +328,10 @@ \indexml{fastype-of}\verb|fastype_of: term -> typ| \\ \indexml{lambda}\verb|lambda: term -> term -> term| \\ \indexml{betapply}\verb|betapply: term * term -> term| \\ - \indexml{Sign.add-consts-i}\verb|Sign.add_consts_i: (string * typ * mixfix) list -> theory -> theory| \\ - \indexml{Sign.add-abbrev}\verb|Sign.add_abbrev: string -> Markup.property list -> bstring * term -> theory -> (term * term) * theory| \\ + \indexml{Sign.declare-const}\verb|Sign.declare_const: Markup.property list -> bstring * typ * mixfix ->|\isasep\isanewline% +\verb| theory -> term * theory| \\ + \indexml{Sign.add-abbrev}\verb|Sign.add_abbrev: string -> Markup.property list -> bstring * term ->|\isasep\isanewline% +\verb| theory -> (term * term) * theory| \\ \indexml{Sign.const-typargs}\verb|Sign.const_typargs: theory -> string * typ -> typ list| \\ \indexml{Sign.const-instance}\verb|Sign.const_instance: theory -> string * typ list -> typ| \\ \end{mldecls} @@ -366,8 +368,9 @@ \item \verb|betapply|~\isa{{\isacharparenleft}t{\isacharcomma}\ u{\isacharparenright}} produces an application \isa{t\ u}, with topmost \isa{{\isasymbeta}}-conversion if \isa{t} is an abstraction. - \item \verb|Sign.add_consts_i|~\isa{{\isacharbrackleft}{\isacharparenleft}c{\isacharcomma}\ {\isasymsigma}{\isacharcomma}\ mx{\isacharparenright}{\isacharcomma}\ {\isasymdots}{\isacharbrackright}} declares a - new constant \isa{c\ {\isacharcolon}{\isacharcolon}\ {\isasymsigma}} with optional mixfix syntax. + \item \verb|Sign.declare_const|~\isa{properties\ {\isacharparenleft}c{\isacharcomma}\ {\isasymsigma}{\isacharcomma}\ mx{\isacharparenright}} + declares a new constant \isa{c\ {\isacharcolon}{\isacharcolon}\ {\isasymsigma}} with optional mixfix + syntax. \item \verb|Sign.add_abbrev|~\isa{print{\isacharunderscore}mode\ properties\ {\isacharparenleft}c{\isacharcomma}\ t{\isacharparenright}} introduces a new term abbreviation \isa{c\ {\isasymequiv}\ t}. diff -r 4d006b03aa4a -r acafb18a47dc doc-src/IsarImplementation/Thy/logic.thy --- a/doc-src/IsarImplementation/Thy/logic.thy Thu Oct 11 16:05:56 2007 +0200 +++ b/doc-src/IsarImplementation/Thy/logic.thy Thu Oct 11 16:38:42 2007 +0200 @@ -326,8 +326,10 @@ @{index_ML fastype_of: "term -> typ"} \\ @{index_ML lambda: "term -> term -> term"} \\ @{index_ML betapply: "term * term -> term"} \\ - @{index_ML Sign.add_consts_i: "(string * typ * mixfix) list -> theory -> theory"} \\ - @{index_ML Sign.add_abbrev: "string -> Markup.property list -> bstring * term -> theory -> (term * term) * theory"} \\ + @{index_ML Sign.declare_const: "Markup.property list -> bstring * typ * mixfix -> + theory -> term * theory"} \\ + @{index_ML Sign.add_abbrev: "string -> Markup.property list -> bstring * term -> + theory -> (term * term) * theory"} \\ @{index_ML Sign.const_typargs: "theory -> string * typ -> typ list"} \\ @{index_ML Sign.const_instance: "theory -> string * typ list -> typ"} \\ \end{mldecls} @@ -372,8 +374,9 @@ "t u"}, with topmost @{text "\"}-conversion if @{text "t"} is an abstraction. - \item @{ML Sign.add_consts_i}~@{text "[(c, \, mx), \]"} declares a - new constant @{text "c :: \"} with optional mixfix syntax. + \item @{ML Sign.declare_const}~@{text "properties (c, \, mx)"} + declares a new constant @{text "c :: \"} with optional mixfix + syntax. \item @{ML Sign.add_abbrev}~@{text "print_mode properties (c, t)"} introduces a new term abbreviation @{text "c \ t"}.