Nominal/Ex/Term8.thy
author Christian Urban <urbanc@in.tum.de>
Sun, 09 May 2010 12:26:10 +0100
changeset 2082 0854af516f14
parent 2045 6800fcaafa2a
child 2097 60ce41a11180
permissions -rw-r--r--
cleaned up a bit the examples; added equivariance to all examples

theory Term8
imports "../NewParser"
begin

(* example 8 *)

atom_decl name

(* this should work but gives an error at the moment:
   seems like in the symmetry proof
*)

nominal_datatype foo =
  Foo0 "name"
| Foo1 b::"bar" f::"foo" bind_set "bv b" in f
and bar =
  Bar0 "name"
| Bar1 "name" s::"name" b::"bar" bind s in b
binder
  bv
where
  "bv (Bar0 x) = {}"
| "bv (Bar1 v x b) = {atom v}"


end