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

[Merged by Bors] - chore: drop use of trivial in use #1153

Closed
wants to merge 6 commits into from

Conversation

hrmacbeth
Copy link
Member

@hrmacbeth hrmacbeth commented Dec 21, 2022

After filling an existential, use will resolve the remaining goals if they are "easy". Before this PR this was done by trying trivial. I have downgraded to with_reducible rfl. This means use will no longer solve goals which are

  • definitional equalities which require the unfolding of non-reducible definitions
  • tactics other than rfl which are called by trivial (notably decide, which can get slow)

Note that this brings use closer to the mathlib3 version: there it tried the trivial' tactic, which again only looked at definitional equality up to reducible definitions, and whose kitchen-sink did not include decide.

See discussion:
https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/use

@hrmacbeth hrmacbeth added the awaiting-review The author would like community review of the PR label Dec 21, 2022
@hrmacbeth hrmacbeth added the t-meta Tactics, attributes or user commands label Jan 2, 2023
@digama0
Copy link
Member

digama0 commented Jan 10, 2023

bors r+

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Jan 10, 2023
bors bot pushed a commit that referenced this pull request Jan 10, 2023
After filling an existential, `use` will resolve the remaining goals if they are "easy".  Before this PR this was done by trying `trivial`.  I have downgraded to `with_reducible rfl`.  This means `use` will no longer solve goals which are
- definitional equalities which require the unfolding of non-reducible definitions
- tactics other than `rfl` which are called by `trivial` (notably `decide`, which can get slow)

Note that this brings `use` closer to the mathlib3 version:  there it tried the `trivial'` tactic, which again only looked at definitional equality up to reducible definitions, and whose kitchen-sink did not include `decide`. 

See discussion:
https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/use
@bors
Copy link

bors bot commented Jan 10, 2023

Build failed (retrying...):

  • Build

bors bot pushed a commit that referenced this pull request Jan 10, 2023
After filling an existential, `use` will resolve the remaining goals if they are "easy".  Before this PR this was done by trying `trivial`.  I have downgraded to `with_reducible rfl`.  This means `use` will no longer solve goals which are
- definitional equalities which require the unfolding of non-reducible definitions
- tactics other than `rfl` which are called by `trivial` (notably `decide`, which can get slow)

Note that this brings `use` closer to the mathlib3 version:  there it tried the `trivial'` tactic, which again only looked at definitional equality up to reducible definitions, and whose kitchen-sink did not include `decide`. 

See discussion:
https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/use
@bors
Copy link

bors bot commented Jan 10, 2023

Build failed:

  • Build

@hrmacbeth
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Jan 10, 2023
After filling an existential, `use` will resolve the remaining goals if they are "easy".  Before this PR this was done by trying `trivial`.  I have downgraded to `with_reducible rfl`.  This means `use` will no longer solve goals which are
- definitional equalities which require the unfolding of non-reducible definitions
- tactics other than `rfl` which are called by `trivial` (notably `decide`, which can get slow)

Note that this brings `use` closer to the mathlib3 version:  there it tried the `trivial'` tactic, which again only looked at definitional equality up to reducible definitions, and whose kitchen-sink did not include `decide`. 

See discussion:
https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/use
@bors
Copy link

bors bot commented Jan 10, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore: drop use of trivial in use [Merged by Bors] - chore: drop use of trivial in use Jan 10, 2023
@bors bors bot closed this Jan 10, 2023
@bors bors bot deleted the hrmacbeth-use branch January 10, 2023 18:23
jcommelin pushed a commit that referenced this pull request Jan 23, 2023
After filling an existential, `use` will resolve the remaining goals if they are "easy".  Before this PR this was done by trying `trivial`.  I have downgraded to `with_reducible rfl`.  This means `use` will no longer solve goals which are
- definitional equalities which require the unfolding of non-reducible definitions
- tactics other than `rfl` which are called by `trivial` (notably `decide`, which can get slow)

Note that this brings `use` closer to the mathlib3 version:  there it tried the `trivial'` tactic, which again only looked at definitional equality up to reducible definitions, and whose kitchen-sink did not include `decide`. 

See discussion:
https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors. t-meta Tactics, attributes or user commands
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants