Debian Codegraph @

engine/evar_kinds.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
13 (** The kinds of existential variable *)
14
15 (** Should the obligation be defined (opaque or transparent (default)) or
16 defined transparent and expanded in the term? *)
17
18 type obligation_definition_status = Define of bool | Expand
19
20 type matching_var_kind = FirstOrderPatVar of Id.t | SecondOrderPatVar of Id.t
21
22 type subevar_kind = Domain | Codomain | Body
23
24 (* maybe this should be a Projection.t *)
25 (* Represents missing record field *)
26 type record_field = { fieldname : Constant.t; recordname : Names.inductive }
27
28 type question_mark = {
29 qm_obligation: obligation_definition_status;
30 qm_name: Name.t;
31 (* Tracks if the evar represents a missing record field *)
32 qm_record_field: record_field option;
33 }
34
35 (* Default value of question_mark which is used most often *)
36 val default_question_mark : question_mark
37
38 type t =
39 | ImplicitArg of GlobRef.t * (int * Id.t)
40 * bool (** Force inference *)
41 | BinderType of Name.t
42 | EvarType of Id.t option * Evar.t (* type of an optionally named evar *)
43 | NamedHole of Id.t (* coming from some ?[id] syntax *)
44 | QuestionMark of question_mark
45 | CasesType of bool (* true = a subterm of the type *)
46 | InternalHole
47 | TomatchTypeParameter of inductive * int
48 | GoalEvar
49 | ImpossibleCase
50 | MatchingVar of matching_var_kind
51 | VarInstance of Id.t
52 | SubEvar of subevar_kind option * Evar.t
53 | RewriteRulePattern of Name.t
54
55 type glob_evar_kind =
56 | GImplicitArg of GlobRef.t * (int * Id.t) * bool (** Force inference *)
57 | GBinderType of Name.t
58 | GNamedHole of bool (* fresh? *) * Id.t (* coming from some ?[id] syntax *)
59 | GQuestionMark of question_mark
60 | GCasesType
61 | GInternalHole
62 | GImpossibleCase