aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/ssr/ssripats.mli
blob: 5f5c7f34a4ca81a707522664b226957e4dccc460 (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
79
80
81
82
83
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2017     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

(* This file is (C) Copyright 2006-2015 Microsoft Corporation and Inria. *)

open API
open Ssrmatching_plugin
open Ssrast
open Ssrcommon

type block_names = (int * EConstr.types array) option

(* For case/elim with eq generation: args are elim_tac introeq_tac ipats
 * elim E : "=> ipats" where E give rise to introeq_tac *)
val tclEQINTROS :
           ?ind:block_names ref ->
           ?ist:ist ->
           v82tac ->
           v82tac -> ssripats -> v82tac
(* special case with no eq and tactic taking ist *)
val tclINTROS :
           ist ->
           (ist -> v82tac) ->
           ssripats -> v82tac

(* move=> ipats *)
val introstac : ?ist:ist -> ssripats -> v82tac

val elim_intro_tac :
  Ssrast.ssripats ->
  ?ist:Tacinterp.interp_sign ->
  [> `EConstr of 'a * 'b * EConstr.t ] ->
  Ssrast.ssripat option ->
  Proof_type.tactic ->
  bool ->
  Ssrast.ssrhyp list ->
  Proof_type.goal Evd.sigma -> Proof_type.goal list Evd.sigma

(* "move=> top; tac top; clear top" respecting the speed *)
val with_top : (EConstr.t -> v82tac) -> tac_ctx tac_a

val ssrmovetac :
  Ltac_plugin.Tacinterp.interp_sign ->
  Ssrast.ssrterm list *
    (Ssrast.ssripat option *
       (((Ssrast.ssrdocc * Ssrmatching.cpattern) list
        list * Ssrast.ssrclear) *
          Ssrast.ssripats)) ->
  Proof_type.tactic

val movehnftac : Proof_type.goal Evd.sigma -> Proof_type.goal list Evd.sigma

val with_dgens :
  (Ssrast.ssrdocc * Ssrmatching.cpattern) list
   list * Ssrast.ssrclear ->
  ((Ssrast.ssrdocc * Ssrmatching.cpattern) list ->
   Ssrast.ssrdocc * Ssrmatching.cpattern ->
   Ltac_plugin.Tacinterp.interp_sign -> Proof_type.tactic) ->
  Ltac_plugin.Tacinterp.interp_sign -> Proof_type.tactic

val ssrcasetac :
  Ltac_plugin.Tacinterp.interp_sign ->
  Ssrast.ssrterm list *
    (Ssrast.ssripat option *
       (((Ssrast.ssrdocc * Ssrmatching.cpattern) list list * Ssrast.ssrclear) *
          Ssrast.ssripats)) ->
  Proof_type.tactic

val ssrapplytac :
  Tacinterp.interp_sign ->
  Ssrast.ssrterm list *
    ('a *
       ((((Ssrast.ssrhyps option * Ssrmatching_plugin.Ssrmatching.occ) *
            (Ssrast.ssrtermkind * Tacexpr.glob_constr_and_expr))
           list list * Ssrast.ssrhyps) *
          Ssrast.ssripats)) ->
  Proof_type.tactic