adamc@81: (* Copyright (c) 2008, Adam Chlipala adamc@81: * All rights reserved. adamc@81: * adamc@81: * Redistribution and use in source and binary forms, with or without adamc@81: * modification, are permitted provided that the following conditions are met: adamc@81: * adamc@81: * - Redistributions of source code must retain the above copyright notice, adamc@81: * this list of conditions and the following disclaimer. adamc@81: * - Redistributions in binary form must reproduce the above copyright notice, adamc@81: * this list of conditions and the following disclaimer in the documentation adamc@81: * and/or other materials provided with the distribution. adamc@81: * - The names of contributors may not be used to endorse or promote products adamc@81: * derived from this software without specific prior written permission. adamc@81: * adamc@81: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" adamc@81: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE adamc@81: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE adamc@81: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE adamc@81: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR adamc@81: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF adamc@81: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS adamc@81: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN adamc@81: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) adamc@81: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE adamc@81: * POSSIBILITY OF SUCH DAMAGE. adamc@81: *) adamc@81: adamc@81: signature ELAB_OPS = sig adamc@81: adam@1303: exception SubUnif adam@1303: adamc@623: val liftKindInKind : int -> Elab.kind -> Elab.kind adamc@623: val subKindInKind : int * Elab.kind -> Elab.kind -> Elab.kind adamc@623: adamc@623: val liftKindInCon : int -> Elab.con -> Elab.con adamc@623: val subKindInCon : int * Elab.kind -> Elab.con -> Elab.con adamc@623: adamc@81: val liftConInCon : int -> Elab.con -> Elab.con adamc@81: val subConInCon : int * Elab.con -> Elab.con -> Elab.con adamc@81: val subStrInSgn : int * int -> Elab.sgn -> Elab.sgn adamc@81: adamc@81: val hnormCon : ElabEnv.env -> Elab.con -> Elab.con adam@1714: val reduceCon : ElabEnv.env -> Elab.con -> Elab.con adamc@81: adamc@1034: val identity : int ref adamc@1034: val distribute : int ref adamc@1034: val fuse : int ref adamc@1034: val reset : unit -> unit adamc@1034: adamc@81: end