monitoring : (term -> bool) option ref
SOME (fn x => same_const c1 x orelse ... orelse same_const cn x)
- val [FACT] = decls "FACT"; > val FACT = `FACT` : term - computeLib.monitoring := SOME (same_const FACT); - EVAL (Term `FACT 4`); FACT 4 = (if 4 = 0 then 1 else 4 * FACT (PRE 4)) FACT 3 = (if 3 = 0 then 1 else 3 * FACT (PRE 3)) FACT 2 = (if 2 = 0 then 1 else 2 * FACT (PRE 2)) FACT 1 = (if 1 = 0 then 1 else 1 * FACT (PRE 1)) FACT 0 = (if 0 = 0 then 1 else 0 * FACT (PRE 0)) > val it = |- FACT 4 = 24 : thm