| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | open Vmvalues |
| 12 | |
| 13 | val reduce_fix : int -> vfix -> vfun array * values array |
| 14 | (** bodies , types *) |
| 15 | |
| 16 | val reduce_cofix : int -> vcofix -> values array * values array |
| 17 | (** bodies , types *) |
| 18 | |
| 19 | val type_of_switch : vswitch -> values |
| 20 | |
| 21 | val branch_of_switch : int -> vswitch -> (int * values) array |
| 22 | |
| 23 | val reduce_fun : int -> vfun -> values |
| 24 | |
| 25 | (** [decompose_vfun2 k f1 f2] takes two functions [f1] and [f2] at current |
| 26 | DeBruijn level [k], with [n] lambdas in common, returns [n] and the reduced |
| 27 | bodies under those lambdas. *) |
| 28 | val decompose_vfun2 : int -> vfun -> vfun -> int * values * values |
| 29 | |
| 30 | (** Apply a value *) |
| 31 | |
| 32 | val apply_whd : int -> kind -> values |