Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert_succeeds (exact I) solves the goal #9114

Closed
andres-erbsen opened this issue Nov 29, 2018 · 2 comments · Fixed by #10966
Closed

assert_succeeds (exact I) solves the goal #9114

andres-erbsen opened this issue Nov 29, 2018 · 2 comments · Fixed by #10966
Milestone

Comments

@andres-erbsen
Copy link
Contributor

Version

8.8.2

Operating system

Arch Linux, up to date within one week.

Description of the problem

Goal True.
  assert_succeeds (exact I).
  idtac.
  (* Error: No such goal. *)
Abort.
@SkySkimmer
Copy link
Contributor

assert_fails too.

@JasonGross
Copy link
Member

I think this definition might solve both issues?

Ltac assert_fails tac :=
  tryif (cut True; [ intros _; tac | ]) then fail 0 tac "succeeds" else idtac.

JasonGross added a commit to JasonGross/coq that referenced this issue Oct 26, 2019
JasonGross added a commit to JasonGross/coq that referenced this issue Oct 29, 2019
@coqbot coqbot added this to the 8.11+beta1 milestone Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants