doc-src/IsarAdvanced/Codegen/Thy/examples/integers.ML
author urbanc
Fri, 17 Nov 2006 17:32:30 +0100
changeset 21405 26b51f724fe6
parent 21178 c3618fc6a6f7
child 21993 4b802a9e0738
permissions -rw-r--r--
added an intro lemma for freshness of products; set up the simplifier so that it can deal with the compact and long notation for freshness constraints (FIXME: it should also be able to deal with the special case of freshness of atoms)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21178
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     1
structure ROOT = 
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     2
struct
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     3
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     4
structure Codegen = 
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     5
struct
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     6
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     7
fun double_inc a =
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     8
  IntInf.+ ((IntInf.* ((2 : IntInf.int), a)), (1 : IntInf.int));
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     9
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
    10
end; (*struct Codegen*)
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
    11
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
    12
end; (*struct ROOT*)