Debian Codegraph @

pretyping/pattern.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 (** {5 Patterns} *)
14
15 (** Cases pattern variables *)
16 type patvar = Id.t
17
18 type case_info_pattern =
19 { cip_style : Constr.case_style;
20 cip_ind : inductive option;
21 cip_extensible : bool (** does this match end with _ => _ ? *) }
22
23 type 'i constr_pattern_r =
24 | PRef of GlobRef.t
25 | PVar of Id.t
26 | PEvar of (Evar.t * 'i constr_pattern_r list)
27 | PRel of int
28 | PApp of 'i constr_pattern_r * 'i constr_pattern_r array
29 | PSoApp of patvar * 'i constr_pattern_r list
30 | PProj of Projection.t * 'i constr_pattern_r
31 | PLambda of Name.t * 'i constr_pattern_r * 'i constr_pattern_r
32 | PProd of Name.t * 'i constr_pattern_r * 'i constr_pattern_r
33 | PLetIn of Name.t * 'i constr_pattern_r * 'i constr_pattern_r option * 'i constr_pattern_r
34 | PSort of UnivGen.QualityOrSet.t
35 | PMeta of patvar option
36 | PIf of 'i constr_pattern_r * 'i constr_pattern_r * 'i constr_pattern_r
37 | PCase of case_info_pattern * (Name.t array * 'i constr_pattern_r) option * 'i constr_pattern_r *
38 (int * Name.t array * 'i constr_pattern_r) list (** index of constructor, nb of args *)
39 | PFix of (int array * int) * (Name.t array * 'i constr_pattern_r array * 'i constr_pattern_r array)
40 | PCoFix of int * (Name.t array * 'i constr_pattern_r array * 'i constr_pattern_r array)
41 | PInt of Uint63.t
42 | PFloat of Float64.t
43 | PString of Pstring.t
44 | PArray of 'i constr_pattern_r array * 'i constr_pattern_r * 'i constr_pattern_r
45 | PExtra of 'i
46
47 type constr_pattern = Util.Empty.t constr_pattern_r
48
49 type uninstantiated_pattern = Genarg.glob_generic_argument constr_pattern_r
50
51 (** Nota : in a [PCase], the array of branches might be shorter than
52 expected, denoting the use of a final "_ => _" branch *)