equal
deleted
inserted
replaced
167 else error "Illegal schematic variable(s) in term"; |
167 else error "Illegal schematic variable(s) in term"; |
168 |
168 |
169 fun cert_axm sg (name, raw_tm) = |
169 fun cert_axm sg (name, raw_tm) = |
170 let |
170 let |
171 val (t, T, _) = Sign.certify_term sg raw_tm |
171 val (t, T, _) = Sign.certify_term sg raw_tm |
172 handle TYPE arg => error (Sign.exn_type_msg sg arg) |
172 handle TYPE (msg, _, _) => error msg |
173 | TERM (msg, _) => error msg; |
173 | TERM (msg, _) => error msg; |
174 in |
174 in |
175 assert (T = propT) "Term not of type prop"; |
175 assert (T = propT) "Term not of type prop"; |
176 (name, no_vars t) |
176 (name, no_vars t) |
177 end |
177 end |