Dear all,

recently, I stumbled upon the problem, that there is no proper fundef-cong rule 
for map on Option-types.

I added it manually to our developedment, but perhaps this should be integrated 
in Option.thy

lemma option_map_cong[fundef_cong]: 
"xs = ys \<Longrightarrow> \<lbrakk>\<And> x. ys = Some x \<Longrightarrow> f x 
= g x\<rbrakk> \<Longrightarrow> Option.map f xs = Option.map g ys"
  by (cases ys, auto)

Cheers,
René
_______________________________________________
isabelle-dev mailing list
[email protected]
https://mailmanbroy.informatik.tu-muenchen.de/mailman/listinfo/isabelle-dev

Reply via email to