src/ZF/List.ML
changeset 484 70b789956bd3
parent 477 53fc8ad84b33
child 516 1957113f0d7d
equal deleted inserted replaced
483:4d1614d8f119 484:70b789956bd3
     8 
     8 
     9 structure List = Datatype_Fun
     9 structure List = Datatype_Fun
    10  (val thy        = Univ.thy
    10  (val thy        = Univ.thy
    11   val thy_name   = "List"
    11   val thy_name   = "List"
    12   val rec_specs  = [("list", "univ(A)",
    12   val rec_specs  = [("list", "univ(A)",
    13                       [(["Nil"],    "i", NoSyn), 
    13                       [(["Nil"],    "i", 	NoSyn), 
    14                        (["Cons"],   "[i,i]=>i", NoSyn)])]
    14                        (["Cons"],   "[i,i]=>i",	NoSyn)])]
    15   val rec_styp   = "i=>i"
    15   val rec_styp   = "i=>i"
    16   val sintrs     = ["Nil : list(A)",
    16   val sintrs     = ["Nil : list(A)",
    17                     "[| a: A;  l: list(A) |] ==> Cons(a,l) : list(A)"]
    17                     "[| a: A;  l: list(A) |] ==> Cons(a,l) : list(A)"]
    18   val monos      = []
    18   val monos      = []
    19   val type_intrs = datatype_intrs
    19   val type_intrs = datatype_intrs