src/LCF/ex/Ex2.thy
author wenzelm
Tue, 11 Nov 2014 11:47:53 +0100
changeset 58973 2a683fb686fd
parent 58889 5b7a9633cfa8
child 58974 cbc2ac19d783
permissions -rw-r--r--
more Isar proof methods;

section {* Example 3.8 *}

theory Ex2
imports LCF
begin

axiomatization
  P     :: "'a => tr" and
  F     :: "'b => 'b" and
  G     :: "'a => 'a" and
  H     :: "'a => 'b => 'b" and
  K     :: "('a => 'b => 'b) => ('a => 'b => 'b)"
where
  F_strict:     "F(UU) = UU" and
  K:            "K = (%h x y. P(x) => y | F(h(G(x),y)))" and
  H:            "H = FIX(K)"

declare F_strict [simp] K [simp]

lemma example: "ALL x. F(H(x::'a,y::'b)) = H(x,F(y))"
  apply (simplesubst H)
  apply (induct "K:: ('a=>'b=>'b) => ('a=>'b=>'b)")
  apply simp
  apply (simp split: COND_cases_iff)
  done

end