Debian Codegraph @

contrib/wordn/help/ENTRIES/prove_word_val.doc

raw
1 \DOC prove_word_val
2
3 \TYPE {prove_word_val : int -> thm}
4
5 \LIBRARY wordn
6
7 \SYNOPSIS
8 Proves the theorem characterizing the conversion functions between the
9 types {:wordn} and {:num}.
10
11 \DESCRIBE
12 {prove_word_val} takes a natural number as its single argument. It
13 proves a theorem which characterizes the conversion functions {NVALn}
14 and {NWORDn}. The theorem is returned as the function value, and it
15 takes the following form:
16 {
17 |- (!w. NWORDn(NVALn w) = w) /\
18 (!m. m < (2 EXP n) ==> (NVALn(NWORDn m) = m))
19 }
20
21 \FAILURE
22 Fails if the type {:wordn} or the conversion functions {:NVALn} and
23 {:NWORDn} have not been defined.
24
25 \EXAMPLE
26 The following HOL session illustrates the use of this function:
27 {
28 # let WORD_VAL_3 = save_thm(`WORD_VAL_3`, prove_word_val 3);;
29 WORD_VAL_3 =
30 |- (!w. NWORD3(NVAL3 w) = w) /\
31 (!n. n < (2 EXP 3) ==> (NVAL3(NWORD3 n) = n))
32 }
33
34 \SEEALSO
35 {define_wordn_type}, {define_word_val}.
36
37 \ENDDOC