src/HOLCF/Tools/Domain/domain_syntax.ML
changeset 35515 d631dc53ede0
parent 35497 979706bd5c16
child 35518 3b20559d809b
equal deleted inserted replaced
35514:a2cfa413eaab 35515:d631dc53ede0
    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