Debian Codegraph @

plugins/ltac2/tac2match.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 EConstr
13
14 (** This file extends Matching with the main logic for Ltac2 match goal. *)
15
16 type context = Constr_matching.context
17
18 type match_pattern =
19 | MatchPattern of Pattern.constr_pattern
20 | MatchContext of Pattern.constr_pattern
21
22 type match_context_hyps = match_pattern option * match_pattern
23
24 type match_rule = match_context_hyps list * match_pattern
25
26 val match_goal:
27 Environ.env ->
28 Evd.evar_map ->
29 constr ->
30 rev:bool ->
31 match_rule ->
32 ((Id.t * context option option * context option) list * (* List of hypotheses matching: name + body context + context *)
33 context option * (* Context for conclusion *)
34 Ltac_pretype.patvar_map (* Pattern variable substitution *)) Proofview.tactic