src/LCF/ex/Ex3.thy
author wenzelm
Tue, 11 Nov 2014 13:40:13 +0100
changeset 58974 cbc2ac19d783
parent 58973 2a683fb686fd
child 58977 9576b510f6a2
permissions -rw-r--r--
simplifie sessions;

section {* Addition with fixpoint of successor *}

theory Ex3
imports "../LCF"
begin

axiomatization
  s     :: "'a => 'a" and
  p     :: "'a => 'a => 'a"
where
  p_strict:     "p(UU) = UU" and
  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 (induct s)
  apply simp
  apply simp
  done

end