src/HOL/Real/RealInt.thy
author wenzelm
Wed, 10 May 2000 22:34:30 +0200
changeset 8856 435187ffc64e
parent 7334 a90fc1e5fb19
child 10797 028d22926a41
permissions -rw-r--r--
fixed theory deps;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7292
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
     1
(*  Title:       RealInt.thy
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
     2
    ID:         $Id$
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
     3
    Author:      Jacques D. Fleuriot
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
     4
    Copyright:   1999 University of Edinburgh
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
     5
    Description: Embedding the integers in the reals
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
     6
*)
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
     7
8856
435187ffc64e fixed theory deps;
wenzelm
parents: 7334
diff changeset
     8
RealInt = RealOrd +
7292
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
     9
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
    10
constdefs 
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
    11
   real_of_int :: int => real
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
    12
   "real_of_int z == Abs_real(UN (i,j): Rep_Integ z. realrel ^^ 
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
    13
                     {(preal_of_prat(prat_of_pnat(pnat_of_nat i)),
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
    14
                       preal_of_prat(prat_of_pnat(pnat_of_nat j)))})"
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
    15
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
    16
dff3470c5c62 real literals using binary arithmetic
paulson
parents:
diff changeset
    17
end