Skip to content

change default value of decide in simp config#2068

Closed
hrmacbeth wants to merge 1 commit intoleanprover:masterfrom
hrmacbeth:patch-1
Closed

change default value of decide in simp config#2068
hrmacbeth wants to merge 1 commit intoleanprover:masterfrom
hrmacbeth:patch-1

Conversation

@hrmacbeth
Copy link
Copy Markdown
Contributor

@hrmacbeth hrmacbeth commented Jan 28, 2023

In #1888, @semorrison changed the default value of decide in the dsimp config from true to false. This is a proposal to do the same for simp.

Perhaps this is a controversial change, so one anecdote: this is currently interacting with another issue (which I think @digama0 will record separately) to make the following simp take 3 seconds, more than 10x as long as simp (config := { decide := false }).

import Std.Data.Rat.Defs

example : (4:Rat) * 1 * 1 + 4 = 0 := by simp ; sorry

Of course, that other issue should also be fixed, and/or Rat should be designed differently to avoid it, but it seems like users will write inefficient decidability instances often enough that the same point of confusion will occur again.

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution! Please make sure to follow our Commit Convention.

@gebner
Copy link
Copy Markdown
Member

gebner commented Jan 29, 2023

@digama0
Copy link
Copy Markdown
Collaborator

digama0 commented Mar 24, 2023

For future reference: the issue with 4 * 1 * 1 + 4 is #2161 (addressed in #2162), I think it is essentially independent.

@hrmacbeth
Copy link
Copy Markdown
Contributor Author

Closing now that an alternative PR for this has been merged.

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 this pull request may close these issues.

3 participants