compile -- broken since 21dac9a60f0c
authorblanchet
Tue, 01 Oct 2013 23:50:35 +0200
changeset 54019 1878bab3e1c9
parent 54018 bd2e127389f2
child 54020 0c7b5aa453bb
compile -- broken since 21dac9a60f0c
src/HOL/BNF/Examples/Misc_Primrec.thy
--- a/src/HOL/BNF/Examples/Misc_Primrec.thy	Tue Oct 01 23:36:02 2013 +0200
+++ b/src/HOL/BNF/Examples/Misc_Primrec.thy	Tue Oct 01 23:50:35 2013 +0200
@@ -45,13 +45,13 @@
 primrec_new
   hf_size :: "hfset \<Rightarrow> nat"
 where
-  "hf_size (HFset X) = 1 + setsum id (fset (fmap hf_size X))"
+  "hf_size (HFset X) = 1 + setsum id (fset (fimage hf_size X))"
 
 primrec_new rename_lam :: "(string \<Rightarrow> string) \<Rightarrow> lambda \<Rightarrow> lambda" where
   "rename_lam f (Var s) = Var (f s)" |
   "rename_lam f (App l l') = App (rename_lam f l) (rename_lam f l')" |
   "rename_lam f (Abs s l) = Abs (f s) (rename_lam f l)" |
-  "rename_lam f (Let SL l) = Let (fmap (map_pair f (rename_lam f)) SL) (rename_lam f l)"
+  "rename_lam f (Let SL l) = Let (fimage (map_pair f (rename_lam f)) SL) (rename_lam f l)"
 
 primrec_new
   sum_i1 :: "('a\<Colon>{zero,plus}) I1 \<Rightarrow> 'a" and