src/Pure/meta_simplifier.ML
changeset 17046 8da7f68d0893
parent 16985 7df8abe926c3
child 17203 29b2563f5c11
equal deleted inserted replaced
17045:e108cd5b6986 17046:8da7f68d0893
  1110     prover: how to solve premises in conditional rewrites and congruences
  1110     prover: how to solve premises in conditional rewrites and congruences
  1111 *)
  1111 *)
  1112 
  1112 
  1113 fun rewrite_cterm mode prover ss ct =
  1113 fun rewrite_cterm mode prover ss ct =
  1114   (inc simp_depth;
  1114   (inc simp_depth;
  1115    if !simp_depth mod 10 = 0
  1115    if !simp_depth mod 20 = 0
  1116    then warning ("Simplification depth " ^ string_of_int (!simp_depth))
  1116    then warning ("Simplification depth " ^ string_of_int (!simp_depth))
  1117    else ();
  1117    else ();
  1118    trace_cterm false "SIMPLIFIER INVOKED ON THE FOLLOWING TERM:" ss ct;
  1118    trace_cterm false "SIMPLIFIER INVOKED ON THE FOLLOWING TERM:" ss ct;
  1119    let val {thy, t, maxidx, ...} = Thm.rep_cterm ct
  1119    let val {thy, t, maxidx, ...} = Thm.rep_cterm ct
  1120        val res = bottomc (mode, prover, thy, maxidx) ss ct
  1120        val res = bottomc (mode, prover, thy, maxidx) ss ct