src/LCF/ex/Ex3.thy
author wenzelm
Tue, 17 Jul 2007 13:19:18 +0200
changeset 23823 441148ca8323
parent 19755 90f80de04c46
child 27208 5fe899199f85
permissions -rw-r--r--
added General/print_mode.ML, pure_setup.ML;


(* $Id$ *)

header {* Addition with fixpoint of successor *}

theory Ex3
imports LCF
begin

consts
  s     :: "'a => 'a"
  p     :: "'a => 'a => 'a"

axioms
  p_strict:     "p(UU) = UU"
  p_s:          "p(s(x),y) = s(p(x,y))"

declare p_strict [simp] p_s [simp]

lemma example: "p(FIX(s),y) = FIX(s)"
  apply (tactic {* induct_tac "s" 1 *})
  apply (simp (no_asm))
  apply (simp (no_asm))
  done

end