Debian Codegraph @

plugins/firstorder/formula.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 Constr
13 open EConstr
14
15 type flags = {
16 reds : RedFlags.reds;
17 }
18
19 val (=?) : ('a -> 'a -> int) -> ('b -> 'b -> int) ->
20 'a -> 'a -> 'b -> 'b -> int
21
22 val (==?) : ('a -> 'a -> 'b ->'b -> int) -> ('c -> 'c -> int) ->
23 'a -> 'a -> 'b -> 'b -> 'c ->'c -> int
24
25 type ('a,'b) sum = Left of 'a | Right of 'b
26
27 type counter = bool -> metavariable
28
29 val construct_nhyps : Environ.env -> pinductive -> int array
30
31 val ind_hyps : Environ.env -> Evd.evar_map -> int -> pinductive ->
32 constr list -> EConstr.rel_context array
33
34 module Env :
35 sig
36 type t
37 val empty : t
38 end
39
40 type atom
41
42 val repr_atom : Env.t -> atom -> EConstr.t
43 val compare_atom : atom -> atom -> int
44 val meta_in_atom : metavariable -> atom -> bool
45
46 type atoms = { positive:atom list; negative:atom list }
47
48 type _ side =
49 | Hyp : bool -> [ `Hyp ] side (* true if treated as hint *)
50 | Concl : [ `Goal ] side
51
52 type right_pattern =
53 Rarrow
54 | Rand
55 | Ror
56 | Rfalse
57 | Rforall
58 | Rexists of metavariable*constr*bool
59
60 type left_arrow_pattern=
61 LLatom
62 | LLfalse of pinductive*constr list
63 | LLand of pinductive*constr list
64 | LLor of pinductive*constr list
65 | LLforall of constr
66 | LLexists of pinductive*constr list
67 | LLarrow of constr*constr*constr
68
69 type left_pattern=
70 Lfalse
71 | Land of pinductive
72 | Lor of pinductive
73 | Lforall of metavariable*constr*bool
74 | Lexists of pinductive
75 | LA of left_arrow_pattern
76
77 type _ identifier = private
78 | GoalId : [ `Goal ] identifier
79 | FormulaId : GlobRef.t -> [ `Hyp ] identifier
80
81 val goal_id : [ `Goal ] identifier
82 val formula_id : Environ.env -> GlobRef.t -> [ `Hyp ] identifier
83
84 type uid
85 val eq_uid : uid -> uid -> bool
86
87 type _ pattern =
88 | LeftPattern : left_pattern -> [ `Hyp ] pattern
89 | RightPattern : right_pattern -> [ `Goal ] pattern
90
91 type 'a t = private {
92 id: 'a identifier;
93 uid: uid;
94 pat: 'a pattern;
95 atoms: atoms}
96
97 type any_formula = AnyFormula : 'a t -> any_formula
98
99 val build_formula : flags:flags -> Env.t -> Environ.env -> Evd.evar_map -> 'a side -> 'a identifier -> types ->
100 counter -> Env.t * ('a t, atom) sum