equal
deleted
inserted
replaced
739 (case drop (Thm.nprems_of st) names of |
739 (case drop (Thm.nprems_of st) names of |
740 [] => NONE |
740 [] => NONE |
741 | bad => |
741 | bad => |
742 if detect_closure_state st then NONE |
742 if detect_closure_state st then NONE |
743 else |
743 else |
744 SOME (fn () => ("Excessive case names: " ^ commas_quote (map Token.content_of bad) ^ |
744 SOME (fn () => ("Excessive case name(s): " ^ commas_quote (map Token.content_of bad) ^ |
745 Position.here (Position.set_range (Token.range_of bad))))) |
745 Position.here (Position.set_range (Token.range_of bad))))) |
746 |> (fn SOME msg => Seq.single (Seq.Error msg) |
746 |> (fn SOME msg => Seq.single (Seq.Error msg) |
747 | NONE => goal_cases_tac (map Token.content_of names) (ctxt, st))))) |
747 | NONE => goal_cases_tac (map Token.content_of names) (ctxt, st))))) |
748 "bind cases for goals" #> |
748 "bind cases for goals" #> |
749 setup @{binding insert} (Attrib.thms >> (K o insert)) |
749 setup @{binding insert} (Attrib.thms >> (K o insert)) |