summaryrefslogtreecommitdiff
path: root/plugins/setoid_ring/newring.mli
blob: f417c87cdeb6c3802e1f55b1cfd313dd63c78652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

open Names
open Constr
open Libnames
open Globnames
open Constrexpr
open Tacexpr
open Proof_type
open Newring_ast

val protect_tac_in : string -> Id.t -> unit Proofview.tactic

val protect_tac : string -> unit Proofview.tactic

val closed_term : constr -> global_reference list -> unit Proofview.tactic

val process_ring_mods :
  constr_expr ring_mod list ->
  constr coeff_spec * (constr * constr) option *
  cst_tac_spec option * raw_tactic_expr option *
  raw_tactic_expr option *
  (cst_tac_spec * constr_expr) option *
  constr_expr option * constr_expr option

val add_theory :
  Id.t ->
  Evd.evar_map * constr ->
  (constr * constr) option ->
  constr coeff_spec ->
  cst_tac_spec option ->
  raw_tactic_expr option * raw_tactic_expr option ->
  (cst_tac_spec * constr_expr) option ->
  constr_expr option ->
  constr_expr option -> unit

val ic : constr_expr -> Evd.evar_map * constr

val from_name : ring_info Spmap.t ref

val ring_lookup :
  Geninterp.Val.t ->
  constr list ->
  constr list -> constr -> unit Proofview.tactic

val process_field_mods :
  constr_expr field_mod list ->
  constr coeff_spec *
  (constr * constr) option * constr option *
  cst_tac_spec option * raw_tactic_expr option *
  raw_tactic_expr option *
  (cst_tac_spec * constr_expr) option *
  constr_expr option * constr_expr option

val add_field_theory :
  Id.t ->
  Evd.evar_map * constr ->
  (constr * constr) option ->
  constr coeff_spec ->
  cst_tac_spec option ->
  constr option ->
  raw_tactic_expr option * raw_tactic_expr option ->
  (cst_tac_spec * constr_expr) option ->
  constr_expr option ->
  constr_expr option -> unit

val field_from_name : field_info Spmap.t ref

val field_lookup :
  Geninterp.Val.t ->
  constr list ->
  constr list -> constr -> unit Proofview.tactic