equal
deleted
inserted
replaced
215 fun replay_proof atom_table clauses (clause_table, empty_id) = |
215 fun replay_proof atom_table clauses (clause_table, empty_id) = |
216 let |
216 let |
217 (* Thm.cterm -> int option *) |
217 (* Thm.cterm -> int option *) |
218 fun index_of_literal chyp = ( |
218 fun index_of_literal chyp = ( |
219 case (HOLogic.dest_Trueprop o Thm.term_of) chyp of |
219 case (HOLogic.dest_Trueprop o Thm.term_of) chyp of |
220 (Const ("Not", _) $ atom) => |
220 (Const (@{const_name "Not"}, _) $ atom) => |
221 SOME (~ (the (Termtab.lookup atom_table atom))) |
221 SOME (~ (the (Termtab.lookup atom_table atom))) |
222 | atom => |
222 | atom => |
223 SOME (the (Termtab.lookup atom_table atom)) |
223 SOME (the (Termtab.lookup atom_table atom)) |
224 ) handle TERM _ => NONE; (* 'chyp' is not a literal *) |
224 ) handle TERM _ => NONE; (* 'chyp' is not a literal *) |
225 |
225 |