Debian Codegraph @

pretyping/printingFlags.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 module Detype : sig
12 type t = {
13 universes : bool;
14 (** Should we print hidden sort quality variables? *)
15 qualities : bool;
16 relevances : bool;
17 (** If true, prints full local context of evars *)
18 evar_instances : bool;
19 wildcard : bool;
20 fast_names : bool;
21 synth_match_return : bool;
22 matching : bool;
23 primproj_params : bool;
24 unfolded_primproj_as_match : bool;
25 match_paramunivs : bool;
26 always_regular_match_style : bool;
27 nonpropositional_letin_types : bool;
28 }
29
30 val make_raw : t -> t
31
32 val current : unit -> t
33
34 val current_ignore_raw : unit -> t
35 end
36
37 module Extern : sig
38 module FactorizeEqns : sig
39 type t = {
40 (* If true, contract branches with same r.h.s. and same matching
41 variables in a disjunctive pattern *)
42 factorize_match_patterns : bool;
43 (* If this flag is true and the last non unique clause of a
44 "match" is a variable-free disjunctive pattern, turn it into a
45 catch-call case *)
46 allow_match_default_clause : bool;
47 }
48
49 val make_raw : t -> t
50
51 val current : unit -> t
52
53 val current_ignore_raw : unit -> t
54 end
55
56 module Records : sig
57 type t
58
59 val make_raw : t -> t
60
61 val current : unit -> t
62
63 val current_ignore_raw : unit -> t
64
65 (** Tells whether record syntax should be used for some record. If
66 the inductive is not a record, the result is meaningless. *)
67 val use_record_syntax : t -> Names.inductive -> bool
68 end
69
70 type t = {
71 (* This tells to skip types if a variable has this type by default *)
72 use_implicit_types : bool;
73 records : Records.t;
74 implicits : bool;
75 (** When [implicits] is on then [implicits_explicit_args] tells
76 how implicit args are printed. If on, implicit args are
77 printed with the form (id:=arg) otherwise arguments are
78 printed normally and the function is prefixed by "@". *)
79 implicits_explicit_args : bool;
80 (* Tells if implicit arguments not known to be inferable from a rigid
81 position are systematically printed *)
82 implicits_defensive : bool;
83 coercions : bool;
84 parentheses : bool;
85 notations : bool;
86 (* primitive tokens, like strings *)
87 raw_literals : bool;
88 (* This governs printing of projections using the dot notation symbols *)
89 projections : bool;
90 float : bool;
91 factorize_eqns : FactorizeEqns.t;
92 (* None = unlimited *)
93 depth : int option;
94 }
95
96 val make_raw : t -> t
97
98 val current : unit -> t
99
100 val current_ignore_raw : unit -> t
101 end
102
103 (** Combined detyping and extern flags. *)
104 type t = {
105 detype : Detype.t;
106 extern : Extern.t;
107 }
108
109 val make_raw : t -> t
110
111 val current : unit -> t
112
113 val current_ignore_raw : unit -> t
114
115 (** The following flag is still accessed directly, but not when printing constr. *)
116 val print_universes : bool ref
117
118 module PrintingInductiveMake (_ : sig
119 val encode : Environ.env -> Libnames.qualid -> Names.inductive
120 val member_message : Pp.t -> bool -> Pp.t
121 val field : string
122 val title : string
123 end)
124 : Goptions.RefConvertArg
125 with type t = Names.inductive
126 and module Set = Names.Indset_env
127
128 val set_extern_depth : int option -> unit