src/Pure/Isar/method.ML
changeset 61843 1803599838a6
parent 61841 4d3527b94f2a
child 61917 35ec3757d3c1
equal deleted inserted replaced
61842:00b70452dc7f 61843:1803599838a6
   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))