Skip to content

Commit 6de2386

Browse files
Merge pull request #217 from ppedrot/clean-tacmach-api
Adapt to rocq-prover/rocq#21336.
2 parents 88f6939 + 64710ff commit 6de2386

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp_eauto.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ let eauto_unif_flags: Unification.unify_flags = auto_flags_of_state TransparentS
3939
let e_give_exact ?(flags: Unification.unify_flags = eauto_unif_flags) (c: types): unit tactic =
4040
Goal.enter begin fun gl ->
4141
let sigma, t1 = Tacmach.pf_type_of gl c in
42-
let t2 = Tacmach.pf_concl gl in
42+
let t2 = Proofview.Goal.concl gl in
4343
if occur_existential sigma t1 || occur_existential sigma t2 then
4444
Tacticals.tclTHENLIST [
4545
Unsafe.tclEVARS sigma;
@@ -53,7 +53,7 @@ let e_assumption: trace tactic =
5353
TraceTactics.typedGoalEnter begin fun gl ->
5454
let hyps = Goal.hyps gl in
5555
let sigma = Goal.sigma gl in
56-
let concl = Tacmach.pf_concl gl in
56+
let concl = Proofview.Goal.concl gl in
5757
if List.is_empty hyps then
5858
Tacticals.tclZEROMSG (str "No applicable tactic.")
5959
else
@@ -140,15 +140,15 @@ let tclTraceComplete (t: trace tactic): trace tactic =
140140
let rec e_trivial_fail_db (db_list: hint_db list) (local_db: hint_db) (forbidden_tactics: Pp.t list): trace tactic =
141141
let next = TraceTactics.typedGoalEnter begin fun gl ->
142142
let d = Declaration.get_id @@ Tacmach.pf_last_hyp gl in
143-
let local_db = push_resolve_hyp (Tacmach.pf_env gl) (Tacmach.project gl) d local_db in
143+
let local_db = push_resolve_hyp (Proofview.Goal.env gl) (Proofview.Goal.sigma gl) d local_db in
144144
e_trivial_fail_db db_list local_db forbidden_tactics
145145
end in
146146
TraceTactics.typedGoalEnter begin fun gl ->
147147
let secvars = compute_secvars gl in
148148
let tacl =
149149
e_assumption ::
150150
(Tactics.intro <*> next) ::
151-
(e_trivial_resolve (Tacmach.pf_env gl) (Tacmach.project gl) db_list local_db secvars (Tacmach.pf_concl gl) forbidden_tactics)
151+
(e_trivial_resolve (Proofview.Goal.env gl) (Proofview.Goal.sigma gl) db_list local_db secvars (Proofview.Goal.concl gl) forbidden_tactics)
152152
in
153153
tclTraceFirst (List.map tclTraceComplete tacl)
154154
end

0 commit comments

Comments
 (0)