src/HOLCF/ex/Dagstuhl.thy
author haftmann
Fri, 17 Mar 2006 14:20:24 +0100
changeset 19281 b411f25fff25
parent 17291 94f6113fe9ed
child 19742 86f21beabafc
permissions -rw-r--r--
added example for operational classes and code generator
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2570
24d7e8fb8261 added Classlib.* and Witness.*,
oheimb
parents:
diff changeset
     1
(* $Id$ *)
24d7e8fb8261 added Classlib.* and Witness.*,
oheimb
parents:
diff changeset
     2
17291
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
     3
theory Dagstuhl
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
     4
imports Stream
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
     5
begin
2570
24d7e8fb8261 added Classlib.* and Witness.*,
oheimb
parents:
diff changeset
     6
24d7e8fb8261 added Classlib.* and Witness.*,
oheimb
parents:
diff changeset
     7
consts
17291
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
     8
  y  :: "'a"
2570
24d7e8fb8261 added Classlib.* and Witness.*,
oheimb
parents:
diff changeset
     9
17291
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
    10
constdefs
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
    11
  YS :: "'a stream"
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
    12
  "YS == fix$(LAM x. y && x)"
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
    13
  YYS :: "'a stream"
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
    14
  "YYS == fix$(LAM z. y && y && z)"
2570
24d7e8fb8261 added Classlib.* and Witness.*,
oheimb
parents:
diff changeset
    15
17291
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
    16
ML {* use_legacy_bindings (the_context ()) *}
94f6113fe9ed converted to Isar theory format;
wenzelm
parents: 10835
diff changeset
    17
2570
24d7e8fb8261 added Classlib.* and Witness.*,
oheimb
parents:
diff changeset
    18
end
24d7e8fb8261 added Classlib.* and Witness.*,
oheimb
parents:
diff changeset
    19