src/LCF/ex/Ex2.thy
author wenzelm
Sat, 05 Apr 2014 15:03:40 +0200
changeset 56421 1ffd7eaa778b
parent 47025 b2b8ae61d6ad
child 58889 5b7a9633cfa8
permissions -rw-r--r--
updated to jedit_build-20140405: Code2HTML.jar, CommonControls.jar, Console.jar, kappalayout.jar, Navigator.jar, SideKick.jar, doc with jEdit manuals (ant dist-manuals);

header {* 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 (tactic {* induct_tac @{context} "K:: ('a=>'b=>'b) => ('a=>'b=>'b)" 1 *})
  apply simp
  apply (simp split: COND_cases_iff)
  done

end