src/LCF/ex/Ex3.thy
author wenzelm
Sat, 01 Jun 2019 11:29:59 +0200
changeset 70299 83774d669b51
parent 60770 240563fbf41d
permissions -rw-r--r--
Added tag Isabelle2019-RC4 for changeset ad2d84c42380

section \<open>Addition with fixpoint of successor\<close>

theory Ex3
imports "../LCF"
begin

axiomatization
  s     :: "'a \<Rightarrow> 'a" and
  p     :: "'a \<Rightarrow> 'a \<Rightarrow> '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