equal
deleted
inserted
replaced
6 Trees & forests, a mutually recursive type definition. |
6 Trees & forests, a mutually recursive type definition. |
7 *) |
7 *) |
8 |
8 |
9 structure TF = Datatype_Fun |
9 structure TF = Datatype_Fun |
10 (val thy = Univ.thy |
10 (val thy = Univ.thy |
|
11 val thy_name = "TF" |
11 val rec_specs = [("tree", "univ(A)", |
12 val rec_specs = [("tree", "univ(A)", |
12 [(["Tcons"], "[i,i]=>i",NoSyn)]), |
13 [(["Tcons"], "[i,i]=>i",NoSyn)]), |
13 ("forest", "univ(A)", |
14 ("forest", "univ(A)", |
14 [(["Fnil"], "i",NoSyn), |
15 [(["Fnil"], "i",NoSyn), |
15 (["Fcons"], "[i,i]=>i",NoSyn)])] |
16 (["Fcons"], "[i,i]=>i",NoSyn)])] |