# HG changeset patch # User wenzelm # Date 979846833 -3600 # Node ID a0dc597d91731f41d577a84902f7e001218e2be9 # Parent 808e9dbc68c4bbf3dd31347503dd59d4773b304b show(_i): check goal; diff -r 808e9dbc68c4 -r a0dc597d9173 src/Pure/Isar/proof.ML --- a/src/Pure/Isar/proof.ML Thu Jan 18 20:39:53 2001 +0100 +++ b/src/Pure/Isar/proof.ML Thu Jan 18 20:40:33 2001 +0100 @@ -90,10 +90,10 @@ -> theory -> state val chain: state -> state val from_facts: thm list -> state -> state - val show: (state -> state Seq.seq) -> string -> context attribute list - -> string * (string list * string list) -> state -> state - val show_i: (state -> state Seq.seq) -> string -> context attribute list - -> term * (term list * term list) -> state -> state + val show: (bool -> state -> state) -> (state -> state Seq.seq) -> string + -> context attribute list -> string * (string list * string list) -> bool -> state -> state + val show_i: (bool -> state -> state) -> (state -> state Seq.seq) -> string + -> context attribute list -> term * (term list * term list) -> bool -> state -> state val have: (state -> state Seq.seq) -> string -> context attribute list -> string * (string list * string list) -> state -> state val have_i: (state -> state Seq.seq) -> string -> context attribute list @@ -619,14 +619,18 @@ (*local goals*) -fun local_goal prepp kind f name atts args state = +fun local_goal' prepp kind check f name atts args int state = state |> setup_goal open_block prepp kind f name atts args - |> warn_extra_tfrees state; + |> warn_extra_tfrees state + |> check int; -val show = local_goal ProofContext.bind_propp Show; -val show_i = local_goal ProofContext.bind_propp_i Show; -val have = local_goal ProofContext.bind_propp Have; +fun local_goal prepp kind f name atts args = + local_goal' prepp kind (K I) f name atts args false; + +val show = local_goal' ProofContext.bind_propp Show; +val show_i = local_goal' ProofContext.bind_propp_i Show; +val have = local_goal ProofContext.bind_propp Have; val have_i = local_goal ProofContext.bind_propp_i Have;