File: verbose.doc

package info (click to toggle)
hol-light 20131026-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,264 kB
  • ctags: 4,620
  • sloc: ml: 400,325; cpp: 438; java: 279; lisp: 261; makefile: 256; sh: 190; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (52 lines) | stat: -rw-r--r-- 1,497 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
\DOC verbose

\TYPE {verbose : bool ref}

\SYNOPSIS
Flag to control verbosity of informative output.

\DESCRIBE
When the value of {verbose} is set to {true}, the function {remark} will output 
its string argument whenever called. This is used for most informative output 
in automated rules.

\FAILURE
Not applicable.

\EXAMPLE
Consider this call MESON to prove a first-order formula:
{
  # MESON[] `!f g:num->num. (?!x. x = g(f(x))) <=> (?!y. y = f(g(y)))`;;
  0..0..1..solved at 4
  CPU time (user): 0.01
  0..0..1..2..6..11..19..28..37..46..94..151..247..366..584..849..solved at 969
  CPU time (user): 0.12
  0..0..1..solved at 4
  CPU time (user): 0.
  0..0..1..2..6..11..19..28..37..46..94..151..247..366..584..849..solved at 969
  CPU time (user): 0.06
  val it : thm = |- !f g. (?!x. x = g (f x)) <=> (?!y. y = f (g y))
}
\noindent By changing the verbosity level, most of the output disappears:
{
  # verbose := false;;
  val it : unit = ()
  # MESON[] `!f g:num->num. (?!x. x = g(f(x))) <=> (?!y. y = f(g(y)))`;;
  CPU time (user): 0.01
  CPU time (user): 0.13
  CPU time (user): 0.
  CPU time (user): 0.081
  val it : thm = |- !f g. (?!x. x = g (f x)) <=> (?!y. y = f (g y))
}
\noindent and if we also disable timing reporting the action is silent:
{
  # report_timing := false;;
  val it : unit = ()
  # MESON[] `!f g:num->num. (?!x. x = g(f(x))) <=> (?!y. y = f(g(y)))`;;
  val it : thm = |- !f g. (?!x. x = g (f x)) <=> (?!y. y = f (g y))
}

\SEEALSO
remark, report_timing.

\ENDDOC