src/HOL/Tools/sat_funcs.ML
changeset 38549 d0385f2764d8
parent 35625 9c818cab0dd0
child 38558 32ad17fe2b9c
equal deleted inserted replaced
38548:dea0d2cca822 38549:d0385f2764d8
   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