179 sign_error (sign,sign')) |
179 sign_error (sign,sign')) |
180 else if ngoals>0 then !result_error_fn state |
180 else if ngoals>0 then !result_error_fn state |
181 (string_of_int ngoals ^ " unsolved goals!") |
181 (string_of_int ngoals ^ " unsolved goals!") |
182 else if (not (null hyps) andalso (not (Locale.in_locale hyps sign))) |
182 else if (not (null hyps) andalso (not (Locale.in_locale hyps sign))) |
183 then !result_error_fn state |
183 then !result_error_fn state |
184 ("Additional hypotheses:\n" ^ |
184 ("Additional hypotheses:\n" ^ |
185 cat_lines (map (Sign.string_of_term sign) hyps)) |
185 cat_lines |
|
186 (map (Sign.string_of_term sign) |
|
187 (filter (fn x => (not (Locale.in_locale [x] sign))) |
|
188 hyps))) |
186 else if not (null xshyps) then !result_error_fn state |
189 else if not (null xshyps) then !result_error_fn state |
187 ("Extra sort hypotheses: " ^ |
190 ("Extra sort hypotheses: " ^ |
188 commas (map (Sign.str_of_sort sign) xshyps)) |
191 commas (map (Sign.str_of_sort sign) xshyps)) |
189 else if Pattern.matches (#tsig(Sign.rep_sg sign)) |
192 else if Pattern.matches (#tsig(Sign.rep_sg sign)) |
190 (term_of chorn, prop) |
193 (term_of chorn, prop) |