Nominal/Test.thy
changeset 1304 dc65319809cc
parent 1302 d3101a5b9c4d
child 1309 b395b902cf0d
child 1312 b0eae8c93314
equal deleted inserted replaced
1303:c28403308b34 1304:dc65319809cc
    66 
    66 
    67 thm f0_raw.simps
    67 thm f0_raw.simps
    68 
    68 
    69 text {* example type schemes *}
    69 text {* example type schemes *}
    70 
    70 
       
    71 (* does not work yet
    71 nominal_datatype t =
    72 nominal_datatype t =
    72   Var "name"
    73   Var "name"
    73 | Fun "t" "t"
    74 | Fun "t" "t"
    74 
    75 
    75 (* does not work yet
       
    76 nominal_datatype tyS =
    76 nominal_datatype tyS =
    77   All xs::"name list" ty::"t_raw" bind xs in ty
    77   All xs::"name list" ty::"t_raw" bind xs in ty
    78 *)
    78 *)
    79 
    79 
    80 (* also does not work
       
    81 nominal_datatype t = 
    80 nominal_datatype t = 
    82   Var "name" 
    81   Var "name" 
    83 | Fun "t" "t"
    82 | Fun "t" "t"
    84 and  tyS = 
    83 and  tyS = 
    85   All xs::"name list" ty::"t" bind xs in ty
    84   All xs::"name set" ty::"t" bind xs in ty
    86 *)
       
    87 
    85 
    88 (* example 1 from Terms.thy *)
    86 (* example 1 from Terms.thy *)
    89 
    87 
    90 nominal_datatype trm1 =
    88 nominal_datatype trm1 =
    91   Vr1 "name"
    89   Vr1 "name"