Debian Codegraph @

engine/evar_kinds.ml

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 type record_field = { fieldname : Constant.t; recordname : Names.inductive }
26
27 type question_mark = {
28 qm_obligation: obligation_definition_status;
29 qm_name: Name.t;
30 qm_record_field: record_field option;
31 }
32
33 let default_question_mark = {
34 qm_obligation=Define true;
35 qm_name=Anonymous;
36 qm_record_field=None;
37 }
38
39 type t =
40 | ImplicitArg of GlobRef.t * (int * Id.t)
41 * bool (** Force inference *)
42 | BinderType of Name.t
43 | EvarType of Id.t option * Evar.t (* type of an optionally named evar *)
44 | NamedHole of Id.t (* coming from some ?[id] syntax *)
45 | QuestionMark of question_mark
46 | CasesType of bool (* true = a subterm of the type *)
47 | InternalHole
48 | TomatchTypeParameter of inductive * int
49 | GoalEvar
50 | ImpossibleCase
51 | MatchingVar of matching_var_kind
52 | VarInstance of Id.t
53 | SubEvar of subevar_kind option * Evar.t
54 | RewriteRulePattern of Name.t
55
56 type glob_evar_kind =
57 | GImplicitArg of GlobRef.t * (int * Id.t) * bool (** Force inference *)
58 | GBinderType of Name.t
59 | GNamedHole of bool (* fresh? *) * Id.t (* coming from some ?[id] syntax *)
60 | GQuestionMark of question_mark
61 | GCasesType
62 | GInternalHole
63 | GImpossibleCase