Debian Codegraph @

kernel/opaqueproof.mli

raw symbols SCIP
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 Names
12 open Mod_subst
13
14 (** This module implements the handling of opaque proof terms.
15 Opaque proof terms are special since:
16 - they can be lazily computed and substituted
17 - they are stored in an optionally loaded segment of .vo files
18 An [opaque] proof terms holds an index into an opaque table. *)
19
20 type 'a delayed_universes =
21 | PrivateMonomorphic of 'a
22 | PrivatePolymorphic of Univ.ContextSet.t (** local constraints *)
23
24 type opaquetab
25 type opaque
26
27 val empty_opaquetab : opaquetab
28
29 val create : DirPath.t -> opaquetab -> opaque * opaquetab
30
31 type opaque_proofterm = Constr.t * unit delayed_universes
32
33 type opaque_handle
34
35 module HandleMap : CSig.MapS with type key = opaque_handle
36
37 (** Opaque terms are indexed by their library
38 dirpath and an integer index. The two functions above activate
39 this indirect storage, by telling how to retrieve terms.
40 *)
41
42 val subst_opaque : substitution -> opaque -> opaque
43
44 val discharge_opaque : Cooking.cooking_info -> opaque -> opaque
45
46 val repr_handle : opaque_handle -> int
47
48 val mem_handle : opaque_handle -> opaquetab -> bool
49
50 val repr : opaque -> substitution list * Cooking.cooking_info list * DirPath.t * opaque_handle