equal
deleted
inserted
replaced
45 fun dbind s = Binding.name (dnam ^ s); |
45 fun dbind s = Binding.name (dnam ^ s); |
46 val const_rep = (dbind "_rep" , dtype ->> dtype2, NoSyn); |
46 val const_rep = (dbind "_rep" , dtype ->> dtype2, NoSyn); |
47 val const_abs = (dbind "_abs" , dtype2 ->> dtype , NoSyn); |
47 val const_abs = (dbind "_abs" , dtype2 ->> dtype , NoSyn); |
48 end; |
48 end; |
49 |
49 |
50 val const_finite = (dbind "_finite", dtype-->HOLogic.boolT , NoSyn); |
|
51 |
|
52 val optional_consts = |
50 val optional_consts = |
53 if definitional then [] else [const_rep, const_abs]; |
51 if definitional then [] else [const_rep, const_abs]; |
54 |
52 |
55 in (optional_consts @ [const_finite]) |
53 in optional_consts |
56 end; (* let *) |
54 end; (* let *) |
57 |
55 |
58 (* ----- putting all the syntax stuff together ------------------------------ *) |
56 (* ----- putting all the syntax stuff together ------------------------------ *) |
59 |
57 |
60 fun add_syntax |
58 fun add_syntax |