src/HOL/Statespace/state_fun.ML
changeset 45620 f2a587696afb
parent 45363 208634369af2
child 45661 ec6ba4b1f6d5
--- a/src/HOL/Statespace/state_fun.ML	Wed Nov 23 22:07:55 2011 +0100
+++ b/src/HOL/Statespace/state_fun.ML	Wed Nov 23 22:59:39 2011 +0100
@@ -78,7 +78,7 @@
   addsimps (@{thms list.inject} @ @{thms char.inject}
     @ @{thms list.distinct} @ @{thms char.distinct} @ @{thms simp_thms})
   addsimprocs [lazy_conj_simproc]
-  addcongs [@{thm block_conj_cong}]);
+  |> Simplifier.add_cong @{thm block_conj_cong});
 
 end;
 
@@ -88,8 +88,8 @@
     @ [@{thm StateFun.lookup_update_id_same}, @{thm StateFun.id_id_cancel},
       @{thm StateFun.lookup_update_same}, @{thm StateFun.lookup_update_other}])
   addsimprocs [lazy_conj_simproc]
-  addcongs @{thms block_conj_cong}
-  addSolver StateSpace.distinctNameSolver);
+  addSolver StateSpace.distinctNameSolver
+  |> fold Simplifier.add_cong @{thms block_conj_cong});
 
 val ex_lookup_ss = HOL_ss addsimps @{thms StateFun.ex_id};
 
@@ -160,7 +160,7 @@
   (@{thm StateFun.update_apply} :: @{thm Fun.o_apply} :: @{thms list.inject} @ @{thms char.inject}
     @ @{thms list.distinct} @ @{thms char.distinct})
   addsimprocs [lazy_conj_simproc, StateSpace.distinct_simproc]
-  addcongs @{thms block_conj_cong});
+  |> fold Simplifier.add_cong @{thms block_conj_cong});
 
 in