File: INT_POW_CONV.doc

package info (click to toggle)
hol-light 20230128-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 45,636 kB
  • sloc: ml: 688,681; cpp: 439; makefile: 302; lisp: 286; java: 279; sh: 251; yacc: 108; perl: 78; ansic: 57; sed: 39; python: 13
file content (28 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (7)
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
\DOC INT_POW_CONV

\TYPE {INT_POW_CONV : conv}

\SYNOPSIS
Conversion to perform exponentiation on a integer literal of type {:int}.

\DESCRIBE
The call {INT_POW_CONV `c pow n`} where {c} is an integer literal of type
{:int} and {n} is a numeral of type {:num}, returns {|- c pow n = d} where {d}
is the canonical integer literal that is equal to {c} raised to the {n}th
power. The literal {c} may be of the form {&n} or {-- &n} (with nonzero {n} in
the latter case) and the result will be of the same form.

\FAILURE
Fails if applied to a term that is not a permitted integer literal of type
{:int} raised to a numeral power.

\EXAMPLE
{
  # INT_POW_CONV `(-- &2) pow 77`;;
  val it : thm = |- -- &2 pow 77 = -- &151115727451828646838272
}

\SEEALSO
INT_POW_CONV, INT_REDUCE_CONV.

\ENDDOC