Re: [isabelle] Basic help with class and instantiation

>   class cls1 =
>     fixes
>       cls1_x :: "'a" and
>       cls1_f :: "'a ⇒ 'a" and
>       cls1_g :: "nat ⇒ 'a"
>     assumes
>       cls1_fg_prop: "(cls1_f (cls1_g (0::nat))) = (cls1_g (0::nat))"


>         then show "(cls1_f (cls1_g (0::nat))) = (cls1_g (0::nat))"
>           using df and dg by simp

you don't have a type constraint on the *result* type here, e.g.

>         then show "(cls1_f (cls1_g (0::nat)) :: int) = (cls1_g (0::nat))"

If this does not help, please boil down your example to something
simpler until it work, and post the last non-working version.



PGP available:

Attachment: signature.asc
Description: OpenPGP digital signature

This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.