# HG changeset patch # User Cezary Kaliszyk # Date 1307536355 -32400 # Node ID 1233af5cea95c16d8bff702b105e3fb23ed59d4e # Parent 80bbb023402577460f94b5d0bdae3e336230bfd4 Issue with 'default' diff -r 80bbb0234025 -r 1233af5cea95 Nominal/Ex/TypeSchemes.thy --- a/Nominal/Ex/TypeSchemes.thy Wed Jun 08 12:30:56 2011 +0100 +++ b/Nominal/Ex/TypeSchemes.thy Wed Jun 08 21:32:35 2011 +0900 @@ -71,9 +71,12 @@ using assms by blast +--"The following two terms have the same type, however the first one is a valid default, but the second one no" definition "MYUNDEFINED \ undefined" +term "\(x :: (name \ ty) list \ ty + (name \ ty) list \ tys). MYUNDEFINED :: ty + tys" +term "\(x :: (name \ ty) list \ ty + (name \ ty) list \ tys). sum_case (\x. Inl (undefined :: ty)) (\x. Inr (undefined :: tys)) x" -nominal_primrec (default "\x. MYUNDEFINED") +nominal_primrec (default "\(x :: (name \ ty) list \ ty + (name \ ty) list \ tys). MYUNDEFINED :: ty + tys") subst :: "(name \ ty) list \ ty \ ty" and substs :: "(name \ ty) list \ tys \ tys" where