We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f8de4a commit c2c6b1fCopy full SHA for c2c6b1f
2 files changed
Solver.v
@@ -177,7 +177,7 @@ Ltac2 find_contradiction hyps_map: constr :=
177
| name :: rest =>
178
Control.plus (fun _=> try_contra hyps_map name) (fun _ => try_contras hyps_map rest)
179
| [] =>
180
- Control.throw (Tactic_failure (Some (fprintf "No contradiction found")))
+ Control.zero (Tactic_failure (Some (fprintf "No contradiction found")))
181
end in
182
try_contras hyps_map (List.map fst (FMap.bindings hyps_map)).
183
Tests.v
@@ -209,6 +209,12 @@ Section Tests.
209
strict_order lt.
210
Qed.
211
212
+ (* make sure we can `try` failed solving *)
213
+ Goal False.
214
+ Proof.
215
+ try (strict_order lt).
216
+ Abort.
217
+
218
(* ---- Long chains ---- *)
219
220
(* 10-element chain *)
0 commit comments