File: NUM_TO_INT_CONV.doc

package info (click to toggle)
hol-light 20170109-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 36,568 kB
  • ctags: 8,549
  • sloc: ml: 540,018; cpp: 439; lisp: 286; java: 279; makefile: 262; sh: 229; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (34 lines) | stat: -rw-r--r-- 904 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
\DOC NUM_TO_INT_CONV

\TYPE {NUM_TO_INT_CONV : conv}

\SYNOPSIS
Maps an assertion over natural numbers to equivalent over reals.

\DESCRIBE
Given a term, with arbitrary quantifier alternations over the natural numbers,
{NUM_TO_INT_CONV} proves its equivalence to a term involving integer operations
and quantifiers. Some preprocessing removes certain natural-specific operations
such as {PRE} and cutoff subtraction, quantifiers are systematically
relativized to the set of positive integers.

\FAILURE
Never fails.

\EXAMPLE
{
  # NUM_TO_INT_CONV `n - m <= n`;;
  val it : thm =
    |- n - m <= n <=>
       (!i. ~(&0 <= i) \/
            (~(&m = &n + i) \/ &0 <= &n) /\ (~(&n = &m + i) \/ i <= &n))
}

\USES
Mostly intended as a preprocessing step to allow rules for the integers to 
deduce facts about natural numbers too.

\SEEALSO
ARITH_RULE, INT_ARITH, INT_OF_REAL_THM, NUM_SIMPLIFY_CONV.

\ENDDOC