src/LCF/ex/Ex2.thy
author paulson
Thu, 03 Jul 2003 18:07:50 +0200
changeset 14089 7b34f58b1b81
parent 4905 be73ddff6c5a
child 17248 81bf91654e73
permissions -rw-r--r--
converted UNITY/Comp/{AllocImpl,Client} to Isar scripts


(***  Example 3.8  ***)

Ex2 = LCF +

consts
  P	:: "'a => tr"
  F	:: "'a => 'a"
  G	:: "'a => 'a"
  H	:: "'a => 'b => 'b"
  K	:: "('a => 'b => 'b) => ('a => 'b => 'b)"

rules
  F_strict	"F(UU) = UU"
  K		"K = (%h x y. P(x) => y | F(h(G(x),y)))"
  H		"H = FIX(K)"

end