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

Support Fact for the slim_check tactic #12565

Closed
grhkm21 opened this issue May 1, 2024 · 0 comments
Closed

Support Fact for the slim_check tactic #12565

grhkm21 opened this issue May 1, 2024 · 0 comments

Comments

@grhkm21
Copy link
Collaborator

grhkm21 commented May 1, 2024

Currently, this fails:

import Mathlib.Tactic.SlimCheck

example {a : ℕ} [Fact a.Prime] : a + 1 = 1 + a := by
  slim_check

While replacing the [Fact a.Prime] instance with (ha : a.Prime) makes it work (with a warning of "Gave up 3 times"). It would be nice for slim_check to support Fact too!

@grhkm21 grhkm21 changed the title Support ` Support Fact for the slim_check tactic May 1, 2024
kmill added a commit that referenced this issue May 1, 2024
mathlib-bors bot pushed a commit that referenced this issue May 1, 2024
Closes #12565

Also adds a sort-of-missing `g.withContext`. I don't think its absence causes any errors.
@mathlib-bors mathlib-bors bot closed this as completed in 59710fc May 1, 2024
apnelson1 pushed a commit that referenced this issue May 12, 2024
Closes #12565

Also adds a sort-of-missing `g.withContext`. I don't think its absence causes any errors.
callesonne pushed a commit that referenced this issue May 16, 2024
Closes #12565

Also adds a sort-of-missing `g.withContext`. I don't think its absence causes any errors.
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.

1 participant